blob: b4e42f5fcf1af1aa7bdee9a5076d07c69df754bd [file] [log] [blame]
Brian Duddiecd3a43f2016-12-07 16:53:11 -08001component_class: HAL_HIDL
2component_type_version: 1.0
3component_name: "IContexthub"
4
5package: "android.hardware.contexthub"
6
7import: "android.hardware.contexthub@1.0::IContexthubCallback"
8import: "android.hardware.contexthub@1.0::types"
9
10interface: {
11 api: {
12 name: "getHubs"
13 return_type_hidl: {
14 type: TYPE_VECTOR
15 vector_value: {
16 type: TYPE_STRUCT
17 predefined_type: "::android::hardware::contexthub::V1_0::ContextHub"
18 }
19 }
20 }
21
22 api: {
23 name: "registerCallback"
24 return_type_hidl: {
25 type: TYPE_ENUM
26 predefined_type: "::android::hardware::contexthub::V1_0::Result"
27 }
28 arg: {
29 type: TYPE_SCALAR
30 scalar_type: "uint32_t"
31 }
32 arg: {
33 type: TYPE_HIDL_CALLBACK
34 predefined_type: "IContexthubCallback"
35 is_callback: true
36 }
37 }
38
39 api: {
40 name: "sendMessageToHub"
41 return_type_hidl: {
42 type: TYPE_ENUM
43 predefined_type: "::android::hardware::contexthub::V1_0::Result"
44 }
45 arg: {
46 type: TYPE_SCALAR
47 scalar_type: "uint32_t"
48 }
49 arg: {
50 type: TYPE_STRUCT
51 predefined_type: "::android::hardware::contexthub::V1_0::ContextHubMsg"
52 }
53 }
54
55 api: {
56 name: "loadNanoApp"
57 return_type_hidl: {
58 type: TYPE_ENUM
59 predefined_type: "::android::hardware::contexthub::V1_0::Result"
60 }
61 arg: {
62 type: TYPE_SCALAR
63 scalar_type: "uint32_t"
64 }
65 arg: {
66 type: TYPE_STRUCT
67 predefined_type: "::android::hardware::contexthub::V1_0::NanoAppBinary"
68 }
69 arg: {
70 type: TYPE_SCALAR
71 scalar_type: "uint32_t"
72 }
73 }
74
75 api: {
76 name: "unloadNanoApp"
77 return_type_hidl: {
78 type: TYPE_ENUM
79 predefined_type: "::android::hardware::contexthub::V1_0::Result"
80 }
81 arg: {
82 type: TYPE_SCALAR
83 scalar_type: "uint32_t"
84 }
85 arg: {
86 type: TYPE_SCALAR
87 scalar_type: "uint64_t"
88 }
89 arg: {
90 type: TYPE_SCALAR
91 scalar_type: "uint32_t"
92 }
93 }
94
95 api: {
96 name: "enableNanoApp"
97 return_type_hidl: {
98 type: TYPE_ENUM
99 predefined_type: "::android::hardware::contexthub::V1_0::Result"
100 }
101 arg: {
102 type: TYPE_SCALAR
103 scalar_type: "uint32_t"
104 }
105 arg: {
106 type: TYPE_SCALAR
107 scalar_type: "uint64_t"
108 }
109 arg: {
110 type: TYPE_SCALAR
111 scalar_type: "uint32_t"
112 }
113 }
114
115 api: {
116 name: "disableNanoApp"
117 return_type_hidl: {
118 type: TYPE_ENUM
119 predefined_type: "::android::hardware::contexthub::V1_0::Result"
120 }
121 arg: {
122 type: TYPE_SCALAR
123 scalar_type: "uint32_t"
124 }
125 arg: {
126 type: TYPE_SCALAR
127 scalar_type: "uint64_t"
128 }
129 arg: {
130 type: TYPE_SCALAR
131 scalar_type: "uint32_t"
132 }
133 }
134
135 api: {
136 name: "queryApps"
137 return_type_hidl: {
138 type: TYPE_ENUM
139 predefined_type: "::android::hardware::contexthub::V1_0::Result"
140 }
141 arg: {
142 type: TYPE_SCALAR
143 scalar_type: "uint32_t"
144 }
145 }
146
147}