Chia-I Wu | b00f59d | 2017-01-13 14:47:23 +0800 | [diff] [blame] | 1 | component_class: HAL_HIDL |
| 2 | component_type_version: 2.1 |
| 3 | component_name: "IComposerCallback" |
| 4 | |
| 5 | package: "android.hardware.graphics.composer" |
| 6 | |
| 7 | import: "android.hardware.graphics.composer@2.1::types" |
Zhuoyao Zhang | 3bef939 | 2017-02-13 18:03:06 -0800 | [diff] [blame^] | 8 | import: "android.hidl.base@1.0::types" |
Chia-I Wu | b00f59d | 2017-01-13 14:47:23 +0800 | [diff] [blame] | 9 | |
| 10 | interface: { |
| 11 | attribute: { |
| 12 | name: "::android::hardware::graphics::composer::V2_1::IComposerCallback::Connection" |
| 13 | type: TYPE_ENUM |
| 14 | enum_value: { |
| 15 | scalar_type: "int32_t" |
| 16 | |
| 17 | enumerator: "INVALID" |
| 18 | scalar_value: { |
| 19 | int32_t: 0 |
| 20 | } |
| 21 | enumerator: "CONNECTED" |
| 22 | scalar_value: { |
| 23 | int32_t: 1 |
| 24 | } |
| 25 | enumerator: "DISCONNECTED" |
| 26 | scalar_value: { |
| 27 | int32_t: 2 |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | api: { |
| 33 | name: "onHotplug" |
| 34 | arg: { |
| 35 | type: TYPE_SCALAR |
| 36 | scalar_type: "uint64_t" |
| 37 | } |
| 38 | arg: { |
| 39 | type: TYPE_ENUM |
| 40 | predefined_type: "::android::hardware::graphics::composer::V2_1::IComposerCallback::Connection" |
| 41 | } |
| 42 | callflow: { |
| 43 | next: "*" |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | api: { |
| 48 | name: "onRefresh" |
| 49 | arg: { |
| 50 | type: TYPE_SCALAR |
| 51 | scalar_type: "uint64_t" |
| 52 | } |
| 53 | callflow: { |
| 54 | next: "*" |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | api: { |
| 59 | name: "onVsync" |
| 60 | arg: { |
| 61 | type: TYPE_SCALAR |
| 62 | scalar_type: "uint64_t" |
| 63 | } |
| 64 | arg: { |
| 65 | type: TYPE_SCALAR |
| 66 | scalar_type: "int64_t" |
| 67 | } |
| 68 | callflow: { |
| 69 | next: "*" |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | } |