Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 1 | component_class: HAL_HIDL |
| 2 | component_type_version: 1.0 |
| 3 | component_name: "IBluetoothHci" |
| 4 | |
| 5 | package: "android.hardware.bluetooth" |
| 6 | |
| 7 | import: "android.hardware.bluetooth@1.0::IBluetoothHciCallbacks" |
| 8 | import: "android.hardware.bluetooth@1.0::types" |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 9 | import: "android.hidl.base@1.0::types" |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 10 | |
| 11 | interface: { |
| 12 | api: { |
| 13 | name: "initialize" |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 14 | arg: { |
| 15 | type: TYPE_HIDL_INTERFACE |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 16 | predefined_type: "::android::hardware::bluetooth::V1_0::IBluetoothHciCallbacks" |
| 17 | } |
| 18 | callflow: { |
| 19 | entry: true |
| 20 | } |
| 21 | callflow: { |
| 22 | next: "sendHciCommand" |
| 23 | next: "sendAclData" |
| 24 | next: "sendScoData" |
| 25 | next: "close" |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 26 | } |
| 27 | } |
| 28 | |
| 29 | api: { |
| 30 | name: "sendHciCommand" |
| 31 | arg: { |
| 32 | type: TYPE_VECTOR |
| 33 | vector_value: { |
| 34 | type: TYPE_SCALAR |
| 35 | scalar_type: "uint8_t" |
| 36 | } |
| 37 | } |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 38 | callflow: { |
| 39 | next: "sendHciCommand" |
| 40 | next: "sendAclData" |
| 41 | next: "sendScoData" |
| 42 | next: "close" |
| 43 | } |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | api: { |
| 47 | name: "sendAclData" |
| 48 | arg: { |
| 49 | type: TYPE_VECTOR |
| 50 | vector_value: { |
| 51 | type: TYPE_SCALAR |
| 52 | scalar_type: "uint8_t" |
| 53 | } |
| 54 | } |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 55 | callflow: { |
| 56 | next: "sendHciCommand" |
| 57 | next: "sendAclData" |
| 58 | next: "sendScoData" |
| 59 | next: "close" |
| 60 | } |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | api: { |
| 64 | name: "sendScoData" |
| 65 | arg: { |
| 66 | type: TYPE_VECTOR |
| 67 | vector_value: { |
| 68 | type: TYPE_SCALAR |
| 69 | scalar_type: "uint8_t" |
| 70 | } |
| 71 | } |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 72 | callflow: { |
| 73 | next: "sendHciCommand" |
| 74 | next: "sendAclData" |
| 75 | next: "sendScoData" |
| 76 | next: "close" |
| 77 | } |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | api: { |
| 81 | name: "close" |
Zhuoyao Zhang | 65c99d7 | 2017-01-24 13:33:21 -0800 | [diff] [blame] | 82 | callflow: { |
| 83 | exit: true |
| 84 | } |
Myles Watson | 960cae2 | 2016-11-23 16:51:17 -0800 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | } |