summaryrefslogtreecommitdiffstats
blob: ef5744972187ed0aa57f00587a23940584eff5d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
// This file is autogenerated by hidl-gen. Do not edit manually.

filegroup {
    name: "android.hardware.gnss@1.0_hal",
    srcs: [
        "types.hal",
        "IAGnss.hal",
        "IAGnssCallback.hal",
        "IAGnssRil.hal",
        "IAGnssRilCallback.hal",
        "IGnss.hal",
        "IGnssBatching.hal",
        "IGnssBatchingCallback.hal",
        "IGnssCallback.hal",
        "IGnssConfiguration.hal",
        "IGnssDebug.hal",
        "IGnssGeofenceCallback.hal",
        "IGnssGeofencing.hal",
        "IGnssMeasurement.hal",
        "IGnssMeasurementCallback.hal",
        "IGnssNavigationMessage.hal",
        "IGnssNavigationMessageCallback.hal",
        "IGnssNi.hal",
        "IGnssNiCallback.hal",
        "IGnssXtra.hal",
        "IGnssXtraCallback.hal",
    ],
}

genrule {
    name: "android.hardware.gnss@1.0_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
    srcs: [
        ":android.hardware.gnss@1.0_hal",
    ],
    out: [
        "android/hardware/gnss/1.0/types.cpp",
        "android/hardware/gnss/1.0/AGnssAll.cpp",
        "android/hardware/gnss/1.0/AGnssCallbackAll.cpp",
        "android/hardware/gnss/1.0/AGnssRilAll.cpp",
        "android/hardware/gnss/1.0/AGnssRilCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssAll.cpp",
        "android/hardware/gnss/1.0/GnssBatchingAll.cpp",
        "android/hardware/gnss/1.0/GnssBatchingCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssConfigurationAll.cpp",
        "android/hardware/gnss/1.0/GnssDebugAll.cpp",
        "android/hardware/gnss/1.0/GnssGeofenceCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssGeofencingAll.cpp",
        "android/hardware/gnss/1.0/GnssMeasurementAll.cpp",
        "android/hardware/gnss/1.0/GnssMeasurementCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssNavigationMessageAll.cpp",
        "android/hardware/gnss/1.0/GnssNavigationMessageCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssNiAll.cpp",
        "android/hardware/gnss/1.0/GnssNiCallbackAll.cpp",
        "android/hardware/gnss/1.0/GnssXtraAll.cpp",
        "android/hardware/gnss/1.0/GnssXtraCallbackAll.cpp",
    ],
}

genrule {
    name: "android.hardware.gnss@1.0_genc++_headers",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
    srcs: [
        ":android.hardware.gnss@1.0_hal",
    ],
    out: [
        "android/hardware/gnss/1.0/types.h",
        "android/hardware/gnss/1.0/hwtypes.h",
        "android/hardware/gnss/1.0/IAGnss.h",
        "android/hardware/gnss/1.0/IHwAGnss.h",
        "android/hardware/gnss/1.0/BnHwAGnss.h",
        "android/hardware/gnss/1.0/BpHwAGnss.h",
        "android/hardware/gnss/1.0/BsAGnss.h",
        "android/hardware/gnss/1.0/IAGnssCallback.h",
        "android/hardware/gnss/1.0/IHwAGnssCallback.h",
        "android/hardware/gnss/1.0/BnHwAGnssCallback.h",
        "android/hardware/gnss/1.0/BpHwAGnssCallback.h",
        "android/hardware/gnss/1.0/BsAGnssCallback.h",
        "android/hardware/gnss/1.0/IAGnssRil.h",
        "android/hardware/gnss/1.0/IHwAGnssRil.h",
        "android/hardware/gnss/1.0/BnHwAGnssRil.h",
        "android/hardware/gnss/1.0/BpHwAGnssRil.h",
        "android/hardware/gnss/1.0/BsAGnssRil.h",
        "android/hardware/gnss/1.0/IAGnssRilCallback.h",
        "android/hardware/gnss/1.0/IHwAGnssRilCallback.h",
        "android/hardware/gnss/1.0/BnHwAGnssRilCallback.h",
        "android/hardware/gnss/1.0/BpHwAGnssRilCallback.h",
        "android/hardware/gnss/1.0/BsAGnssRilCallback.h",
        "android/hardware/gnss/1.0/IGnss.h",
        "android/hardware/gnss/1.0/IHwGnss.h",
        "android/hardware/gnss/1.0/BnHwGnss.h",
        "android/hardware/gnss/1.0/BpHwGnss.h",
        "android/hardware/gnss/1.0/BsGnss.h",
        "android/hardware/gnss/1.0/IGnssBatching.h",
        "android/hardware/gnss/1.0/IHwGnssBatching.h",
        "android/hardware/gnss/1.0/BnHwGnssBatching.h",
        "android/hardware/gnss/1.0/BpHwGnssBatching.h",
        "android/hardware/gnss/1.0/BsGnssBatching.h",
        "android/hardware/gnss/1.0/IGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/IHwGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/BsGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/IGnssCallback.h",
        "android/hardware/gnss/1.0/IHwGnssCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssCallback.h",
        "android/hardware/gnss/1.0/BsGnssCallback.h",
        "android/hardware/gnss/1.0/IGnssConfiguration.h",
        "android/hardware/gnss/1.0/IHwGnssConfiguration.h",
        "android/hardware/gnss/1.0/BnHwGnssConfiguration.h",
        "android/hardware/gnss/1.0/BpHwGnssConfiguration.h",
        "android/hardware/gnss/1.0/BsGnssConfiguration.h",
        "android/hardware/gnss/1.0/IGnssDebug.h",
        "android/hardware/gnss/1.0/IHwGnssDebug.h",
        "android/hardware/gnss/1.0/BnHwGnssDebug.h",
        "android/hardware/gnss/1.0/BpHwGnssDebug.h",
        "android/hardware/gnss/1.0/BsGnssDebug.h",
        "android/hardware/gnss/1.0/IGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/IHwGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/BsGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/IGnssGeofencing.h",
        "android/hardware/gnss/1.0/IHwGnssGeofencing.h",
        "android/hardware/gnss/1.0/BnHwGnssGeofencing.h",
        "android/hardware/gnss/1.0/BpHwGnssGeofencing.h",
        "android/hardware/gnss/1.0/BsGnssGeofencing.h",
        "android/hardware/gnss/1.0/IGnssMeasurement.h",
        "android/hardware/gnss/1.0/IHwGnssMeasurement.h",
        "android/hardware/gnss/1.0/BnHwGnssMeasurement.h",
        "android/hardware/gnss/1.0/BpHwGnssMeasurement.h",
        "android/hardware/gnss/1.0/BsGnssMeasurement.h",
        "android/hardware/gnss/1.0/IGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/IHwGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/BsGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/IGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/IHwGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/BnHwGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/BpHwGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/BsGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/IGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/IHwGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/BsGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/IGnssNi.h",
        "android/hardware/gnss/1.0/IHwGnssNi.h",
        "android/hardware/gnss/1.0/BnHwGnssNi.h",
        "android/hardware/gnss/1.0/BpHwGnssNi.h",
        "android/hardware/gnss/1.0/BsGnssNi.h",
        "android/hardware/gnss/1.0/IGnssNiCallback.h",
        "android/hardware/gnss/1.0/IHwGnssNiCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssNiCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssNiCallback.h",
        "android/hardware/gnss/1.0/BsGnssNiCallback.h",
        "android/hardware/gnss/1.0/IGnssXtra.h",
        "android/hardware/gnss/1.0/IHwGnssXtra.h",
        "android/hardware/gnss/1.0/BnHwGnssXtra.h",
        "android/hardware/gnss/1.0/BpHwGnssXtra.h",
        "android/hardware/gnss/1.0/BsGnssXtra.h",
        "android/hardware/gnss/1.0/IGnssXtraCallback.h",
        "android/hardware/gnss/1.0/IHwGnssXtraCallback.h",
        "android/hardware/gnss/1.0/BnHwGnssXtraCallback.h",
        "android/hardware/gnss/1.0/BpHwGnssXtraCallback.h",
        "android/hardware/gnss/1.0/BsGnssXtraCallback.h",
    ],
}

cc_library {
    name: "android.hardware.gnss@1.0",
    defaults: ["hidl-module-defaults"],
    generated_sources: ["android.hardware.gnss@1.0_genc++"],
    generated_headers: ["android.hardware.gnss@1.0_genc++_headers"],
    export_generated_headers: ["android.hardware.gnss@1.0_genc++_headers"],
    vendor_available: true,
    vndk: {
        enabled: true,
    },
    shared_libs: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "liblog",
        "libutils",
        "libcutils",
    ],
    export_shared_lib_headers: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "libutils",
    ],
}

genrule {
    name: "android.hardware.gnss@1.0-adapter-helper_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
    srcs: [
        ":android.hardware.gnss@1.0_hal",
    ],
    out: [
        "android/hardware/gnss/1.0/AAGnss.cpp",
        "android/hardware/gnss/1.0/AAGnssCallback.cpp",
        "android/hardware/gnss/1.0/AAGnssRil.cpp",
        "android/hardware/gnss/1.0/AAGnssRilCallback.cpp",
        "android/hardware/gnss/1.0/AGnss.cpp",
        "android/hardware/gnss/1.0/AGnssBatching.cpp",
        "android/hardware/gnss/1.0/AGnssBatchingCallback.cpp",
        "android/hardware/gnss/1.0/AGnssCallback.cpp",
        "android/hardware/gnss/1.0/AGnssConfiguration.cpp",
        "android/hardware/gnss/1.0/AGnssDebug.cpp",
        "android/hardware/gnss/1.0/AGnssGeofenceCallback.cpp",
        "android/hardware/gnss/1.0/AGnssGeofencing.cpp",
        "android/hardware/gnss/1.0/AGnssMeasurement.cpp",
        "android/hardware/gnss/1.0/AGnssMeasurementCallback.cpp",
        "android/hardware/gnss/1.0/AGnssNavigationMessage.cpp",
        "android/hardware/gnss/1.0/AGnssNavigationMessageCallback.cpp",
        "android/hardware/gnss/1.0/AGnssNi.cpp",
        "android/hardware/gnss/1.0/AGnssNiCallback.cpp",
        "android/hardware/gnss/1.0/AGnssXtra.cpp",
        "android/hardware/gnss/1.0/AGnssXtraCallback.cpp",
    ],
}

genrule {
    name: "android.hardware.gnss@1.0-adapter-helper_genc++_headers",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
    srcs: [
        ":android.hardware.gnss@1.0_hal",
    ],
    out: [
        "android/hardware/gnss/1.0/AAGnss.h",
        "android/hardware/gnss/1.0/AAGnssCallback.h",
        "android/hardware/gnss/1.0/AAGnssRil.h",
        "android/hardware/gnss/1.0/AAGnssRilCallback.h",
        "android/hardware/gnss/1.0/AGnss.h",
        "android/hardware/gnss/1.0/AGnssBatching.h",
        "android/hardware/gnss/1.0/AGnssBatchingCallback.h",
        "android/hardware/gnss/1.0/AGnssCallback.h",
        "android/hardware/gnss/1.0/AGnssConfiguration.h",
        "android/hardware/gnss/1.0/AGnssDebug.h",
        "android/hardware/gnss/1.0/AGnssGeofenceCallback.h",
        "android/hardware/gnss/1.0/AGnssGeofencing.h",
        "android/hardware/gnss/1.0/AGnssMeasurement.h",
        "android/hardware/gnss/1.0/AGnssMeasurementCallback.h",
        "android/hardware/gnss/1.0/AGnssNavigationMessage.h",
        "android/hardware/gnss/1.0/AGnssNavigationMessageCallback.h",
        "android/hardware/gnss/1.0/AGnssNi.h",
        "android/hardware/gnss/1.0/AGnssNiCallback.h",
        "android/hardware/gnss/1.0/AGnssXtra.h",
        "android/hardware/gnss/1.0/AGnssXtraCallback.h",
    ],
}


cc_library {
    name: "android.hardware.gnss@1.0-adapter-helper",
    defaults: ["hidl-module-defaults"],
    generated_sources: ["android.hardware.gnss@1.0-adapter-helper_genc++"],
    generated_headers: ["android.hardware.gnss@1.0-adapter-helper_genc++_headers"],
    export_generated_headers: ["android.hardware.gnss@1.0-adapter-helper_genc++_headers"],
    vendor_available: true,
    shared_libs: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "liblog",
        "libutils",
        "libcutils",
        "libhidladapter",
        "android.hardware.gnss@1.0",
        "android.hidl.base@1.0-adapter-helper",
    ],
    export_shared_lib_headers: [
        "libhidlbase",
        "libhidltransport",
        "libhwbinder",
        "libutils",
        "libhidladapter",
        "android.hardware.gnss@1.0",
        "android.hidl.base@1.0-adapter-helper",
    ],
}

genrule {
    name: "android.hardware.gnss@1.0-adapter_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
    out: ["main.cpp"]}

cc_test {
    name: "android.hardware.gnss@1.0-adapter",
    shared_libs: [
        "libhidladapter",
        "libhidlbase",
        "libhidltransport",
        "libutils",
        "android.hardware.gnss@1.0",
        "android.hardware.gnss@1.0-adapter-helper",
    ],
    generated_sources: ["android.hardware.gnss@1.0-adapter_genc++"],
}