summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Moreland2017-09-26 08:36:09 -0500
committerandroid-build-merger2017-09-26 08:36:09 -0500
commit7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00 (patch)
treed3eabaf3246368d9703b4fac65efba04590f33ff
parent1573c2e8fd9ad6222f77d9089929a8598ac25d68 (diff)
parent97228c0b7de085b507b78a1bc16e15725de48e4e (diff)
downloadplatform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.gz
platform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.tar.xz
platform-hardware-interfaces-7741c0e17b5bb9ee6a9fdd9e6c1c4eca2dacae00.zip
Update makefiles for hidl adapter. am: 26a0bb2762 am: 73949c1d7e am: b94d0c7290
am: 97228c0b7d Change-Id: Ic4b459b7c1a4325453945b0b00db8f44e4e77c26
-rw-r--r--audio/2.0/Android.bp88
-rw-r--r--audio/effect/2.0/Android.bp102
-rw-r--r--automotive/evs/1.0/Android.bp79
-rw-r--r--automotive/vehicle/2.0/Android.bp75
-rw-r--r--biometrics/fingerprint/2.1/Android.bp75
-rw-r--r--bluetooth/1.0/Android.bp75
-rw-r--r--boot/1.0/Android.bp73
-rw-r--r--broadcastradio/1.0/Android.bp79
-rw-r--r--broadcastradio/1.1/Android.bp84
-rw-r--r--camera/device/1.0/Android.bp83
-rw-r--r--camera/device/3.2/Android.bp83
-rw-r--r--camera/provider/2.4/Android.bp91
-rw-r--r--configstore/1.0/Android.bp73
-rw-r--r--contexthub/1.0/Android.bp75
-rw-r--r--drm/1.0/Android.bp81
-rw-r--r--dumpstate/1.0/Android.bp73
-rw-r--r--gatekeeper/1.0/Android.bp73
-rw-r--r--gnss/1.0/Android.bp111
-rw-r--r--graphics/allocator/2.0/Android.bp81
-rw-r--r--graphics/bufferqueue/1.0/Android.bp81
-rw-r--r--graphics/composer/2.1/Android.bp80
-rw-r--r--graphics/mapper/2.0/Android.bp76
-rw-r--r--health/1.0/Android.bp73
-rw-r--r--ir/1.0/Android.bp73
-rw-r--r--keymaster/3.0/Android.bp73
-rw-r--r--light/2.0/Android.bp73
-rw-r--r--media/omx/1.0/Android.bp94
-rw-r--r--memtrack/1.0/Android.bp73
-rw-r--r--nfc/1.0/Android.bp75
-rw-r--r--power/1.0/Android.bp73
-rw-r--r--radio/1.0/Android.bp81
-rw-r--r--radio/1.1/Android.bp84
-rw-r--r--radio/deprecated/1.0/Android.bp82
-rw-r--r--renderscript/1.0/Android.bp75
-rw-r--r--sensors/1.0/Android.bp73
-rw-r--r--soundtrigger/2.0/Android.bp78
-rw-r--r--tests/bar/1.0/Android.bp86
-rw-r--r--tests/baz/1.0/Android.bp79
-rw-r--r--tests/expression/1.0/Android.bp75
-rw-r--r--tests/extension/light/2.0/Android.bp78
-rw-r--r--tests/foo/1.0/Android.bp81
-rw-r--r--tests/hash/1.0/Android.bp73
-rw-r--r--tests/inheritance/1.0/Android.bp79
-rw-r--r--tests/libhwbinder/1.0/Android.bp75
-rw-r--r--tests/memory/1.0/Android.bp73
-rw-r--r--tests/msgq/1.0/Android.bp75
-rw-r--r--tests/multithread/1.0/Android.bp73
-rw-r--r--tests/pointer/1.0/Android.bp75
-rw-r--r--tests/trie/1.0/Android.bp73
-rw-r--r--tetheroffload/config/1.0/Android.bp73
-rw-r--r--tetheroffload/control/1.0/Android.bp75
-rw-r--r--thermal/1.0/Android.bp73
-rw-r--r--tv/cec/1.0/Android.bp75
-rw-r--r--tv/input/1.0/Android.bp78
-rw-r--r--usb/1.0/Android.bp75
-rw-r--r--vibrator/1.0/Android.bp73
-rw-r--r--vr/1.0/Android.bp73
-rw-r--r--wifi/1.0/Android.bp97
-rw-r--r--wifi/supplicant/1.0/Android.bp95
59 files changed, 4652 insertions, 1 deletions
diff --git a/audio/2.0/Android.bp b/audio/2.0/Android.bp
index cdaaa156..1de1cb7a 100644
--- a/audio/2.0/Android.bp
+++ b/audio/2.0/Android.bp
@@ -108,3 +108,91 @@ cc_library {
108 "android.hardware.audio.common@2.0", 108 "android.hardware.audio.common@2.0",
109 ], 109 ],
110} 110}
111
112genrule {
113 name: "android.hardware.audio@2.0-adapter-helper_genc++",
114 tools: ["hidl-gen"],
115 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0",
116 srcs: [
117 ":android.hardware.audio@2.0_hal",
118 ],
119 out: [
120 "android/hardware/audio/2.0/ADevice.cpp",
121 "android/hardware/audio/2.0/ADevicesFactory.cpp",
122 "android/hardware/audio/2.0/APrimaryDevice.cpp",
123 "android/hardware/audio/2.0/AStream.cpp",
124 "android/hardware/audio/2.0/AStreamIn.cpp",
125 "android/hardware/audio/2.0/AStreamOut.cpp",
126 "android/hardware/audio/2.0/AStreamOutCallback.cpp",
127 ],
128}
129
130genrule {
131 name: "android.hardware.audio@2.0-adapter-helper_genc++_headers",
132 tools: ["hidl-gen"],
133 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0",
134 srcs: [
135 ":android.hardware.audio@2.0_hal",
136 ],
137 out: [
138 "android/hardware/audio/2.0/ADevice.h",
139 "android/hardware/audio/2.0/ADevicesFactory.h",
140 "android/hardware/audio/2.0/APrimaryDevice.h",
141 "android/hardware/audio/2.0/AStream.h",
142 "android/hardware/audio/2.0/AStreamIn.h",
143 "android/hardware/audio/2.0/AStreamOut.h",
144 "android/hardware/audio/2.0/AStreamOutCallback.h",
145 ],
146}
147
148
149cc_library {
150 name: "android.hardware.audio@2.0-adapter-helper",
151 defaults: ["hidl-module-defaults"],
152 generated_sources: ["android.hardware.audio@2.0-adapter-helper_genc++"],
153 generated_headers: ["android.hardware.audio@2.0-adapter-helper_genc++_headers"],
154 export_generated_headers: ["android.hardware.audio@2.0-adapter-helper_genc++_headers"],
155 vendor_available: true,
156 shared_libs: [
157 "libhidlbase",
158 "libhidltransport",
159 "libhwbinder",
160 "liblog",
161 "libutils",
162 "libcutils",
163 "libhidladapter",
164 "android.hardware.audio.common@2.0",
165 "android.hardware.audio@2.0",
166 "android.hidl.base@1.0-adapter-helper",
167 ],
168 export_shared_lib_headers: [
169 "libhidlbase",
170 "libhidltransport",
171 "libhwbinder",
172 "libutils",
173 "libhidladapter",
174 "android.hardware.audio.common@2.0",
175 "android.hardware.audio@2.0",
176 "android.hidl.base@1.0-adapter-helper",
177 ],
178}
179
180genrule {
181 name: "android.hardware.audio@2.0-adapter_genc++",
182 tools: ["hidl-gen"],
183 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio@2.0",
184 out: ["main.cpp"]}
185
186cc_test {
187 name: "android.hardware.audio@2.0-adapter",
188 shared_libs: [
189 "libhidladapter",
190 "libhidlbase",
191 "libhidltransport",
192 "libutils",
193 "android.hardware.audio.common@2.0",
194 "android.hardware.audio@2.0",
195 "android.hardware.audio@2.0-adapter-helper",
196 ],
197 generated_sources: ["android.hardware.audio@2.0-adapter_genc++"],
198}
diff --git a/audio/effect/2.0/Android.bp b/audio/effect/2.0/Android.bp
index fd667f01..d1730e0e 100644
--- a/audio/effect/2.0/Android.bp
+++ b/audio/effect/2.0/Android.bp
@@ -157,3 +157,105 @@ cc_library {
157 "android.hardware.audio.common@2.0", 157 "android.hardware.audio.common@2.0",
158 ], 158 ],
159} 159}
160
161genrule {
162 name: "android.hardware.audio.effect@2.0-adapter-helper_genc++",
163 tools: ["hidl-gen"],
164 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
165 srcs: [
166 ":android.hardware.audio.effect@2.0_hal",
167 ],
168 out: [
169 "android/hardware/audio/effect/2.0/AAcousticEchoCancelerEffect.cpp",
170 "android/hardware/audio/effect/2.0/AAutomaticGainControlEffect.cpp",
171 "android/hardware/audio/effect/2.0/ABassBoostEffect.cpp",
172 "android/hardware/audio/effect/2.0/ADownmixEffect.cpp",
173 "android/hardware/audio/effect/2.0/AEffect.cpp",
174 "android/hardware/audio/effect/2.0/AEffectBufferProviderCallback.cpp",
175 "android/hardware/audio/effect/2.0/AEffectsFactory.cpp",
176 "android/hardware/audio/effect/2.0/AEnvironmentalReverbEffect.cpp",
177 "android/hardware/audio/effect/2.0/AEqualizerEffect.cpp",
178 "android/hardware/audio/effect/2.0/ALoudnessEnhancerEffect.cpp",
179 "android/hardware/audio/effect/2.0/ANoiseSuppressionEffect.cpp",
180 "android/hardware/audio/effect/2.0/APresetReverbEffect.cpp",
181 "android/hardware/audio/effect/2.0/AVirtualizerEffect.cpp",
182 "android/hardware/audio/effect/2.0/AVisualizerEffect.cpp",
183 ],
184}
185
186genrule {
187 name: "android.hardware.audio.effect@2.0-adapter-helper_genc++_headers",
188 tools: ["hidl-gen"],
189 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
190 srcs: [
191 ":android.hardware.audio.effect@2.0_hal",
192 ],
193 out: [
194 "android/hardware/audio/effect/2.0/AAcousticEchoCancelerEffect.h",
195 "android/hardware/audio/effect/2.0/AAutomaticGainControlEffect.h",
196 "android/hardware/audio/effect/2.0/ABassBoostEffect.h",
197 "android/hardware/audio/effect/2.0/ADownmixEffect.h",
198 "android/hardware/audio/effect/2.0/AEffect.h",
199 "android/hardware/audio/effect/2.0/AEffectBufferProviderCallback.h",
200 "android/hardware/audio/effect/2.0/AEffectsFactory.h",
201 "android/hardware/audio/effect/2.0/AEnvironmentalReverbEffect.h",
202 "android/hardware/audio/effect/2.0/AEqualizerEffect.h",
203 "android/hardware/audio/effect/2.0/ALoudnessEnhancerEffect.h",
204 "android/hardware/audio/effect/2.0/ANoiseSuppressionEffect.h",
205 "android/hardware/audio/effect/2.0/APresetReverbEffect.h",
206 "android/hardware/audio/effect/2.0/AVirtualizerEffect.h",
207 "android/hardware/audio/effect/2.0/AVisualizerEffect.h",
208 ],
209}
210
211
212cc_library {
213 name: "android.hardware.audio.effect@2.0-adapter-helper",
214 defaults: ["hidl-module-defaults"],
215 generated_sources: ["android.hardware.audio.effect@2.0-adapter-helper_genc++"],
216 generated_headers: ["android.hardware.audio.effect@2.0-adapter-helper_genc++_headers"],
217 export_generated_headers: ["android.hardware.audio.effect@2.0-adapter-helper_genc++_headers"],
218 vendor_available: true,
219 shared_libs: [
220 "libhidlbase",
221 "libhidltransport",
222 "libhwbinder",
223 "liblog",
224 "libutils",
225 "libcutils",
226 "libhidladapter",
227 "android.hardware.audio.common@2.0",
228 "android.hardware.audio.effect@2.0",
229 "android.hidl.base@1.0-adapter-helper",
230 ],
231 export_shared_lib_headers: [
232 "libhidlbase",
233 "libhidltransport",
234 "libhwbinder",
235 "libutils",
236 "libhidladapter",
237 "android.hardware.audio.common@2.0",
238 "android.hardware.audio.effect@2.0",
239 "android.hidl.base@1.0-adapter-helper",
240 ],
241}
242
243genrule {
244 name: "android.hardware.audio.effect@2.0-adapter_genc++",
245 tools: ["hidl-gen"],
246 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
247 out: ["main.cpp"]}
248
249cc_test {
250 name: "android.hardware.audio.effect@2.0-adapter",
251 shared_libs: [
252 "libhidladapter",
253 "libhidlbase",
254 "libhidltransport",
255 "libutils",
256 "android.hardware.audio.common@2.0",
257 "android.hardware.audio.effect@2.0",
258 "android.hardware.audio.effect@2.0-adapter-helper",
259 ],
260 generated_sources: ["android.hardware.audio.effect@2.0-adapter_genc++"],
261}
diff --git a/automotive/evs/1.0/Android.bp b/automotive/evs/1.0/Android.bp
index 7ae2231c..34aa12f9 100644
--- a/automotive/evs/1.0/Android.bp
+++ b/automotive/evs/1.0/Android.bp
@@ -85,3 +85,82 @@ cc_library {
85 "libutils", 85 "libutils",
86 ], 86 ],
87} 87}
88
89genrule {
90 name: "android.hardware.automotive.evs@1.0-adapter-helper_genc++",
91 tools: ["hidl-gen"],
92 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.evs@1.0",
93 srcs: [
94 ":android.hardware.automotive.evs@1.0_hal",
95 ],
96 out: [
97 "android/hardware/automotive/evs/1.0/AEvsCamera.cpp",
98 "android/hardware/automotive/evs/1.0/AEvsCameraStream.cpp",
99 "android/hardware/automotive/evs/1.0/AEvsDisplay.cpp",
100 "android/hardware/automotive/evs/1.0/AEvsEnumerator.cpp",
101 ],
102}
103
104genrule {
105 name: "android.hardware.automotive.evs@1.0-adapter-helper_genc++_headers",
106 tools: ["hidl-gen"],
107 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.evs@1.0",
108 srcs: [
109 ":android.hardware.automotive.evs@1.0_hal",
110 ],
111 out: [
112 "android/hardware/automotive/evs/1.0/AEvsCamera.h",
113 "android/hardware/automotive/evs/1.0/AEvsCameraStream.h",
114 "android/hardware/automotive/evs/1.0/AEvsDisplay.h",
115 "android/hardware/automotive/evs/1.0/AEvsEnumerator.h",
116 ],
117}
118
119
120cc_library {
121 name: "android.hardware.automotive.evs@1.0-adapter-helper",
122 defaults: ["hidl-module-defaults"],
123 generated_sources: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++"],
124 generated_headers: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++_headers"],
125 export_generated_headers: ["android.hardware.automotive.evs@1.0-adapter-helper_genc++_headers"],
126 vendor_available: true,
127 shared_libs: [
128 "libhidlbase",
129 "libhidltransport",
130 "libhwbinder",
131 "liblog",
132 "libutils",
133 "libcutils",
134 "libhidladapter",
135 "android.hardware.automotive.evs@1.0",
136 "android.hidl.base@1.0-adapter-helper",
137 ],
138 export_shared_lib_headers: [
139 "libhidlbase",
140 "libhidltransport",
141 "libhwbinder",
142 "libutils",
143 "libhidladapter",
144 "android.hardware.automotive.evs@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ],
147}
148
149genrule {
150 name: "android.hardware.automotive.evs@1.0-adapter_genc++",
151 tools: ["hidl-gen"],
152 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.evs@1.0",
153 out: ["main.cpp"]}
154
155cc_test {
156 name: "android.hardware.automotive.evs@1.0-adapter",
157 shared_libs: [
158 "libhidladapter",
159 "libhidlbase",
160 "libhidltransport",
161 "libutils",
162 "android.hardware.automotive.evs@1.0",
163 "android.hardware.automotive.evs@1.0-adapter-helper",
164 ],
165 generated_sources: ["android.hardware.automotive.evs@1.0-adapter_genc++"],
166}
diff --git a/automotive/vehicle/2.0/Android.bp b/automotive/vehicle/2.0/Android.bp
index 879fe0d9..6ccaac76 100644
--- a/automotive/vehicle/2.0/Android.bp
+++ b/automotive/vehicle/2.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.automotive.vehicle@2.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
79 srcs: [
80 ":android.hardware.automotive.vehicle@2.0_hal",
81 ],
82 out: [
83 "android/hardware/automotive/vehicle/2.0/AVehicle.cpp",
84 "android/hardware/automotive/vehicle/2.0/AVehicleCallback.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
92 srcs: [
93 ":android.hardware.automotive.vehicle@2.0_hal",
94 ],
95 out: [
96 "android/hardware/automotive/vehicle/2.0/AVehicle.h",
97 "android/hardware/automotive/vehicle/2.0/AVehicleCallback.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.automotive.vehicle@2.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.automotive.vehicle@2.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.automotive.vehicle@2.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.automotive.vehicle@2.0",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.automotive.vehicle@2.0-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.automotive.vehicle@2.0",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.automotive.vehicle@2.0-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.automotive.vehicle@2.0",
145 "android.hardware.automotive.vehicle@2.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.automotive.vehicle@2.0-adapter_genc++"],
148}
diff --git a/biometrics/fingerprint/2.1/Android.bp b/biometrics/fingerprint/2.1/Android.bp
index 3898da5b..c96bfae5 100644
--- a/biometrics/fingerprint/2.1/Android.bp
+++ b/biometrics/fingerprint/2.1/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.biometrics.fingerprint@2.1-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.biometrics.fingerprint@2.1",
79 srcs: [
80 ":android.hardware.biometrics.fingerprint@2.1_hal",
81 ],
82 out: [
83 "android/hardware/biometrics/fingerprint/2.1/ABiometricsFingerprint.cpp",
84 "android/hardware/biometrics/fingerprint/2.1/ABiometricsFingerprintClientCallback.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.biometrics.fingerprint@2.1-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.biometrics.fingerprint@2.1",
92 srcs: [
93 ":android.hardware.biometrics.fingerprint@2.1_hal",
94 ],
95 out: [
96 "android/hardware/biometrics/fingerprint/2.1/ABiometricsFingerprint.h",
97 "android/hardware/biometrics/fingerprint/2.1/ABiometricsFingerprintClientCallback.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.biometrics.fingerprint@2.1-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.biometrics.fingerprint@2.1-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.biometrics.fingerprint@2.1-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.biometrics.fingerprint@2.1-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.biometrics.fingerprint@2.1",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.biometrics.fingerprint@2.1",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.biometrics.fingerprint@2.1-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.biometrics.fingerprint@2.1",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.biometrics.fingerprint@2.1-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.biometrics.fingerprint@2.1",
145 "android.hardware.biometrics.fingerprint@2.1-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.biometrics.fingerprint@2.1-adapter_genc++"],
148}
diff --git a/bluetooth/1.0/Android.bp b/bluetooth/1.0/Android.bp
index c883c597..222f3e67 100644
--- a/bluetooth/1.0/Android.bp
+++ b/bluetooth/1.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.bluetooth@1.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
79 srcs: [
80 ":android.hardware.bluetooth@1.0_hal",
81 ],
82 out: [
83 "android/hardware/bluetooth/1.0/ABluetoothHci.cpp",
84 "android/hardware/bluetooth/1.0/ABluetoothHciCallbacks.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.bluetooth@1.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
92 srcs: [
93 ":android.hardware.bluetooth@1.0_hal",
94 ],
95 out: [
96 "android/hardware/bluetooth/1.0/ABluetoothHci.h",
97 "android/hardware/bluetooth/1.0/ABluetoothHciCallbacks.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.bluetooth@1.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.bluetooth@1.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.bluetooth@1.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.bluetooth@1.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.bluetooth@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.bluetooth@1.0",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.bluetooth@1.0-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.bluetooth@1.0",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.bluetooth@1.0-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.bluetooth@1.0",
145 "android.hardware.bluetooth@1.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.bluetooth@1.0-adapter_genc++"],
148}
diff --git a/boot/1.0/Android.bp b/boot/1.0/Android.bp
index 4e4efa36..2f4dcc35 100644
--- a/boot/1.0/Android.bp
+++ b/boot/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.boot@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
72 srcs: [
73 ":android.hardware.boot@1.0_hal",
74 ],
75 out: [
76 "android/hardware/boot/1.0/ABootControl.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.boot@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
84 srcs: [
85 ":android.hardware.boot@1.0_hal",
86 ],
87 out: [
88 "android/hardware/boot/1.0/ABootControl.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.boot@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.boot@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.boot@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.boot@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.boot@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.boot@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.boot@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.boot@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.boot@1.0",
136 "android.hardware.boot@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.boot@1.0-adapter_genc++"],
139}
diff --git a/broadcastradio/1.0/Android.bp b/broadcastradio/1.0/Android.bp
index 5b8e2395..a81db930 100644
--- a/broadcastradio/1.0/Android.bp
+++ b/broadcastradio/1.0/Android.bp
@@ -85,3 +85,82 @@ cc_library {
85 "libutils", 85 "libutils",
86 ], 86 ],
87} 87}
88
89genrule {
90 name: "android.hardware.broadcastradio@1.0-adapter-helper_genc++",
91 tools: ["hidl-gen"],
92 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.0",
93 srcs: [
94 ":android.hardware.broadcastradio@1.0_hal",
95 ],
96 out: [
97 "android/hardware/broadcastradio/1.0/ABroadcastRadio.cpp",
98 "android/hardware/broadcastradio/1.0/ABroadcastRadioFactory.cpp",
99 "android/hardware/broadcastradio/1.0/ATuner.cpp",
100 "android/hardware/broadcastradio/1.0/ATunerCallback.cpp",
101 ],
102}
103
104genrule {
105 name: "android.hardware.broadcastradio@1.0-adapter-helper_genc++_headers",
106 tools: ["hidl-gen"],
107 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.0",
108 srcs: [
109 ":android.hardware.broadcastradio@1.0_hal",
110 ],
111 out: [
112 "android/hardware/broadcastradio/1.0/ABroadcastRadio.h",
113 "android/hardware/broadcastradio/1.0/ABroadcastRadioFactory.h",
114 "android/hardware/broadcastradio/1.0/ATuner.h",
115 "android/hardware/broadcastradio/1.0/ATunerCallback.h",
116 ],
117}
118
119
120cc_library {
121 name: "android.hardware.broadcastradio@1.0-adapter-helper",
122 defaults: ["hidl-module-defaults"],
123 generated_sources: ["android.hardware.broadcastradio@1.0-adapter-helper_genc++"],
124 generated_headers: ["android.hardware.broadcastradio@1.0-adapter-helper_genc++_headers"],
125 export_generated_headers: ["android.hardware.broadcastradio@1.0-adapter-helper_genc++_headers"],
126 vendor_available: true,
127 shared_libs: [
128 "libhidlbase",
129 "libhidltransport",
130 "libhwbinder",
131 "liblog",
132 "libutils",
133 "libcutils",
134 "libhidladapter",
135 "android.hardware.broadcastradio@1.0",
136 "android.hidl.base@1.0-adapter-helper",
137 ],
138 export_shared_lib_headers: [
139 "libhidlbase",
140 "libhidltransport",
141 "libhwbinder",
142 "libutils",
143 "libhidladapter",
144 "android.hardware.broadcastradio@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ],
147}
148
149genrule {
150 name: "android.hardware.broadcastradio@1.0-adapter_genc++",
151 tools: ["hidl-gen"],
152 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.0",
153 out: ["main.cpp"]}
154
155cc_test {
156 name: "android.hardware.broadcastradio@1.0-adapter",
157 shared_libs: [
158 "libhidladapter",
159 "libhidlbase",
160 "libhidltransport",
161 "libutils",
162 "android.hardware.broadcastradio@1.0",
163 "android.hardware.broadcastradio@1.0-adapter-helper",
164 ],
165 generated_sources: ["android.hardware.broadcastradio@1.0-adapter_genc++"],
166}
diff --git a/broadcastradio/1.1/Android.bp b/broadcastradio/1.1/Android.bp
index 12e23d69..6626b52c 100644
--- a/broadcastradio/1.1/Android.bp
+++ b/broadcastradio/1.1/Android.bp
@@ -87,3 +87,87 @@ cc_library {
87 "android.hardware.broadcastradio@1.0", 87 "android.hardware.broadcastradio@1.0",
88 ], 88 ],
89} 89}
90
91genrule {
92 name: "android.hardware.broadcastradio@1.1-adapter-helper_genc++",
93 tools: ["hidl-gen"],
94 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.1",
95 srcs: [
96 ":android.hardware.broadcastradio@1.1_hal",
97 ],
98 out: [
99 "android/hardware/broadcastradio/1.1/ABroadcastRadio.cpp",
100 "android/hardware/broadcastradio/1.1/ABroadcastRadioFactory.cpp",
101 "android/hardware/broadcastradio/1.1/ATuner.cpp",
102 "android/hardware/broadcastradio/1.1/ATunerCallback.cpp",
103 ],
104}
105
106genrule {
107 name: "android.hardware.broadcastradio@1.1-adapter-helper_genc++_headers",
108 tools: ["hidl-gen"],
109 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.1",
110 srcs: [
111 ":android.hardware.broadcastradio@1.1_hal",
112 ],
113 out: [
114 "android/hardware/broadcastradio/1.1/ABroadcastRadio.h",
115 "android/hardware/broadcastradio/1.1/ABroadcastRadioFactory.h",
116 "android/hardware/broadcastradio/1.1/ATuner.h",
117 "android/hardware/broadcastradio/1.1/ATunerCallback.h",
118 ],
119}
120
121
122cc_library {
123 name: "android.hardware.broadcastradio@1.1-adapter-helper",
124 defaults: ["hidl-module-defaults"],
125 generated_sources: ["android.hardware.broadcastradio@1.1-adapter-helper_genc++"],
126 generated_headers: ["android.hardware.broadcastradio@1.1-adapter-helper_genc++_headers"],
127 export_generated_headers: ["android.hardware.broadcastradio@1.1-adapter-helper_genc++_headers"],
128 vendor_available: true,
129 shared_libs: [
130 "libhidlbase",
131 "libhidltransport",
132 "libhwbinder",
133 "liblog",
134 "libutils",
135 "libcutils",
136 "libhidladapter",
137 "android.hardware.broadcastradio@1.0",
138 "android.hardware.broadcastradio@1.1",
139 "android.hardware.broadcastradio@1.0-adapter-helper",
140 "android.hidl.base@1.0-adapter-helper",
141 ],
142 export_shared_lib_headers: [
143 "libhidlbase",
144 "libhidltransport",
145 "libhwbinder",
146 "libutils",
147 "libhidladapter",
148 "android.hardware.broadcastradio@1.0",
149 "android.hardware.broadcastradio@1.1",
150 "android.hardware.broadcastradio@1.0-adapter-helper",
151 "android.hidl.base@1.0-adapter-helper",
152 ],
153}
154
155genrule {
156 name: "android.hardware.broadcastradio@1.1-adapter_genc++",
157 tools: ["hidl-gen"],
158 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.broadcastradio@1.1",
159 out: ["main.cpp"]}
160
161cc_test {
162 name: "android.hardware.broadcastradio@1.1-adapter",
163 shared_libs: [
164 "libhidladapter",
165 "libhidlbase",
166 "libhidltransport",
167 "libutils",
168 "android.hardware.broadcastradio@1.0",
169 "android.hardware.broadcastradio@1.1",
170 "android.hardware.broadcastradio@1.1-adapter-helper",
171 ],
172 generated_sources: ["android.hardware.broadcastradio@1.1-adapter_genc++"],
173}
diff --git a/camera/device/1.0/Android.bp b/camera/device/1.0/Android.bp
index b8335f95..e591c62c 100644
--- a/camera/device/1.0/Android.bp
+++ b/camera/device/1.0/Android.bp
@@ -82,3 +82,86 @@ cc_library {
82 "android.hardware.graphics.common@1.0", 82 "android.hardware.graphics.common@1.0",
83 ], 83 ],
84} 84}
85
86genrule {
87 name: "android.hardware.camera.device@1.0-adapter-helper_genc++",
88 tools: ["hidl-gen"],
89 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@1.0",
90 srcs: [
91 ":android.hardware.camera.device@1.0_hal",
92 ],
93 out: [
94 "android/hardware/camera/device/1.0/ACameraDevice.cpp",
95 "android/hardware/camera/device/1.0/ACameraDeviceCallback.cpp",
96 "android/hardware/camera/device/1.0/ACameraDevicePreviewCallback.cpp",
97 ],
98}
99
100genrule {
101 name: "android.hardware.camera.device@1.0-adapter-helper_genc++_headers",
102 tools: ["hidl-gen"],
103 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@1.0",
104 srcs: [
105 ":android.hardware.camera.device@1.0_hal",
106 ],
107 out: [
108 "android/hardware/camera/device/1.0/ACameraDevice.h",
109 "android/hardware/camera/device/1.0/ACameraDeviceCallback.h",
110 "android/hardware/camera/device/1.0/ACameraDevicePreviewCallback.h",
111 ],
112}
113
114
115cc_library {
116 name: "android.hardware.camera.device@1.0-adapter-helper",
117 defaults: ["hidl-module-defaults"],
118 generated_sources: ["android.hardware.camera.device@1.0-adapter-helper_genc++"],
119 generated_headers: ["android.hardware.camera.device@1.0-adapter-helper_genc++_headers"],
120 export_generated_headers: ["android.hardware.camera.device@1.0-adapter-helper_genc++_headers"],
121 vendor_available: true,
122 shared_libs: [
123 "libhidlbase",
124 "libhidltransport",
125 "libhwbinder",
126 "liblog",
127 "libutils",
128 "libcutils",
129 "libhidladapter",
130 "android.hardware.camera.common@1.0",
131 "android.hardware.camera.device@1.0",
132 "android.hardware.graphics.common@1.0",
133 "android.hidl.base@1.0-adapter-helper",
134 ],
135 export_shared_lib_headers: [
136 "libhidlbase",
137 "libhidltransport",
138 "libhwbinder",
139 "libutils",
140 "libhidladapter",
141 "android.hardware.camera.common@1.0",
142 "android.hardware.camera.device@1.0",
143 "android.hardware.graphics.common@1.0",
144 "android.hidl.base@1.0-adapter-helper",
145 ],
146}
147
148genrule {
149 name: "android.hardware.camera.device@1.0-adapter_genc++",
150 tools: ["hidl-gen"],
151 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@1.0",
152 out: ["main.cpp"]}
153
154cc_test {
155 name: "android.hardware.camera.device@1.0-adapter",
156 shared_libs: [
157 "libhidladapter",
158 "libhidlbase",
159 "libhidltransport",
160 "libutils",
161 "android.hardware.camera.common@1.0",
162 "android.hardware.camera.device@1.0",
163 "android.hardware.graphics.common@1.0",
164 "android.hardware.camera.device@1.0-adapter-helper",
165 ],
166 generated_sources: ["android.hardware.camera.device@1.0-adapter_genc++"],
167}
diff --git a/camera/device/3.2/Android.bp b/camera/device/3.2/Android.bp
index 24c21519..8eaf7c10 100644
--- a/camera/device/3.2/Android.bp
+++ b/camera/device/3.2/Android.bp
@@ -82,3 +82,86 @@ cc_library {
82 "android.hardware.graphics.common@1.0", 82 "android.hardware.graphics.common@1.0",
83 ], 83 ],
84} 84}
85
86genrule {
87 name: "android.hardware.camera.device@3.2-adapter-helper_genc++",
88 tools: ["hidl-gen"],
89 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2",
90 srcs: [
91 ":android.hardware.camera.device@3.2_hal",
92 ],
93 out: [
94 "android/hardware/camera/device/3.2/ACameraDevice.cpp",
95 "android/hardware/camera/device/3.2/ACameraDeviceCallback.cpp",
96 "android/hardware/camera/device/3.2/ACameraDeviceSession.cpp",
97 ],
98}
99
100genrule {
101 name: "android.hardware.camera.device@3.2-adapter-helper_genc++_headers",
102 tools: ["hidl-gen"],
103 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2",
104 srcs: [
105 ":android.hardware.camera.device@3.2_hal",
106 ],
107 out: [
108 "android/hardware/camera/device/3.2/ACameraDevice.h",
109 "android/hardware/camera/device/3.2/ACameraDeviceCallback.h",
110 "android/hardware/camera/device/3.2/ACameraDeviceSession.h",
111 ],
112}
113
114
115cc_library {
116 name: "android.hardware.camera.device@3.2-adapter-helper",
117 defaults: ["hidl-module-defaults"],
118 generated_sources: ["android.hardware.camera.device@3.2-adapter-helper_genc++"],
119 generated_headers: ["android.hardware.camera.device@3.2-adapter-helper_genc++_headers"],
120 export_generated_headers: ["android.hardware.camera.device@3.2-adapter-helper_genc++_headers"],
121 vendor_available: true,
122 shared_libs: [
123 "libhidlbase",
124 "libhidltransport",
125 "libhwbinder",
126 "liblog",
127 "libutils",
128 "libcutils",
129 "libhidladapter",
130 "android.hardware.camera.common@1.0",
131 "android.hardware.camera.device@3.2",
132 "android.hardware.graphics.common@1.0",
133 "android.hidl.base@1.0-adapter-helper",
134 ],
135 export_shared_lib_headers: [
136 "libhidlbase",
137 "libhidltransport",
138 "libhwbinder",
139 "libutils",
140 "libhidladapter",
141 "android.hardware.camera.common@1.0",
142 "android.hardware.camera.device@3.2",
143 "android.hardware.graphics.common@1.0",
144 "android.hidl.base@1.0-adapter-helper",
145 ],
146}
147
148genrule {
149 name: "android.hardware.camera.device@3.2-adapter_genc++",
150 tools: ["hidl-gen"],
151 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.device@3.2",
152 out: ["main.cpp"]}
153
154cc_test {
155 name: "android.hardware.camera.device@3.2-adapter",
156 shared_libs: [
157 "libhidladapter",
158 "libhidlbase",
159 "libhidltransport",
160 "libutils",
161 "android.hardware.camera.common@1.0",
162 "android.hardware.camera.device@3.2",
163 "android.hardware.graphics.common@1.0",
164 "android.hardware.camera.device@3.2-adapter-helper",
165 ],
166 generated_sources: ["android.hardware.camera.device@3.2-adapter_genc++"],
167}
diff --git a/camera/provider/2.4/Android.bp b/camera/provider/2.4/Android.bp
index 82a3a78a..93c9806f 100644
--- a/camera/provider/2.4/Android.bp
+++ b/camera/provider/2.4/Android.bp
@@ -75,3 +75,94 @@ cc_library {
75 "android.hardware.graphics.common@1.0", 75 "android.hardware.graphics.common@1.0",
76 ], 76 ],
77} 77}
78
79genrule {
80 name: "android.hardware.camera.provider@2.4-adapter-helper_genc++",
81 tools: ["hidl-gen"],
82 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.provider@2.4",
83 srcs: [
84 ":android.hardware.camera.provider@2.4_hal",
85 ],
86 out: [
87 "android/hardware/camera/provider/2.4/ACameraProvider.cpp",
88 "android/hardware/camera/provider/2.4/ACameraProviderCallback.cpp",
89 ],
90}
91
92genrule {
93 name: "android.hardware.camera.provider@2.4-adapter-helper_genc++_headers",
94 tools: ["hidl-gen"],
95 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.provider@2.4",
96 srcs: [
97 ":android.hardware.camera.provider@2.4_hal",
98 ],
99 out: [
100 "android/hardware/camera/provider/2.4/ACameraProvider.h",
101 "android/hardware/camera/provider/2.4/ACameraProviderCallback.h",
102 ],
103}
104
105
106cc_library {
107 name: "android.hardware.camera.provider@2.4-adapter-helper",
108 defaults: ["hidl-module-defaults"],
109 generated_sources: ["android.hardware.camera.provider@2.4-adapter-helper_genc++"],
110 generated_headers: ["android.hardware.camera.provider@2.4-adapter-helper_genc++_headers"],
111 export_generated_headers: ["android.hardware.camera.provider@2.4-adapter-helper_genc++_headers"],
112 vendor_available: true,
113 shared_libs: [
114 "libhidlbase",
115 "libhidltransport",
116 "libhwbinder",
117 "liblog",
118 "libutils",
119 "libcutils",
120 "libhidladapter",
121 "android.hardware.camera.common@1.0",
122 "android.hardware.camera.device@1.0",
123 "android.hardware.camera.device@3.2",
124 "android.hardware.camera.provider@2.4",
125 "android.hardware.graphics.common@1.0",
126 "android.hardware.camera.device@1.0-adapter-helper",
127 "android.hardware.camera.device@3.2-adapter-helper",
128 "android.hidl.base@1.0-adapter-helper",
129 ],
130 export_shared_lib_headers: [
131 "libhidlbase",
132 "libhidltransport",
133 "libhwbinder",
134 "libutils",
135 "libhidladapter",
136 "android.hardware.camera.common@1.0",
137 "android.hardware.camera.device@1.0",
138 "android.hardware.camera.device@3.2",
139 "android.hardware.camera.provider@2.4",
140 "android.hardware.graphics.common@1.0",
141 "android.hardware.camera.device@1.0-adapter-helper",
142 "android.hardware.camera.device@3.2-adapter-helper",
143 "android.hidl.base@1.0-adapter-helper",
144 ],
145}
146
147genrule {
148 name: "android.hardware.camera.provider@2.4-adapter_genc++",
149 tools: ["hidl-gen"],
150 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.camera.provider@2.4",
151 out: ["main.cpp"]}
152
153cc_test {
154 name: "android.hardware.camera.provider@2.4-adapter",
155 shared_libs: [
156 "libhidladapter",
157 "libhidlbase",
158 "libhidltransport",
159 "libutils",
160 "android.hardware.camera.common@1.0",
161 "android.hardware.camera.device@1.0",
162 "android.hardware.camera.device@3.2",
163 "android.hardware.camera.provider@2.4",
164 "android.hardware.graphics.common@1.0",
165 "android.hardware.camera.provider@2.4-adapter-helper",
166 ],
167 generated_sources: ["android.hardware.camera.provider@2.4-adapter_genc++"],
168}
diff --git a/configstore/1.0/Android.bp b/configstore/1.0/Android.bp
index 96ef00a1..d059aaed 100644
--- a/configstore/1.0/Android.bp
+++ b/configstore/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.configstore@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
72 srcs: [
73 ":android.hardware.configstore@1.0_hal",
74 ],
75 out: [
76 "android/hardware/configstore/1.0/ASurfaceFlingerConfigs.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.configstore@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
84 srcs: [
85 ":android.hardware.configstore@1.0_hal",
86 ],
87 out: [
88 "android/hardware/configstore/1.0/ASurfaceFlingerConfigs.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.configstore@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.configstore@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.configstore@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.configstore@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.configstore@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.configstore@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.configstore@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.configstore@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.configstore@1.0",
136 "android.hardware.configstore@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.configstore@1.0-adapter_genc++"],
139}
diff --git a/contexthub/1.0/Android.bp b/contexthub/1.0/Android.bp
index ae1bd082..9c49edaf 100644
--- a/contexthub/1.0/Android.bp
+++ b/contexthub/1.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.contexthub@1.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
79 srcs: [
80 ":android.hardware.contexthub@1.0_hal",
81 ],
82 out: [
83 "android/hardware/contexthub/1.0/AContexthub.cpp",
84 "android/hardware/contexthub/1.0/AContexthubCallback.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.contexthub@1.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
92 srcs: [
93 ":android.hardware.contexthub@1.0_hal",
94 ],
95 out: [
96 "android/hardware/contexthub/1.0/AContexthub.h",
97 "android/hardware/contexthub/1.0/AContexthubCallback.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.contexthub@1.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.contexthub@1.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.contexthub@1.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.contexthub@1.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.contexthub@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.contexthub@1.0",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.contexthub@1.0-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.contexthub@1.0",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.contexthub@1.0-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.contexthub@1.0",
145 "android.hardware.contexthub@1.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.contexthub@1.0-adapter_genc++"],
148}
diff --git a/drm/1.0/Android.bp b/drm/1.0/Android.bp
index 096aa06c..0e091db4 100644
--- a/drm/1.0/Android.bp
+++ b/drm/1.0/Android.bp
@@ -93,4 +93,83 @@ cc_library {
93 ], 93 ],
94} 94}
95 95
96subdirs = ["default"] 96genrule {
97 name: "android.hardware.drm@1.0-adapter-helper_genc++",
98 tools: ["hidl-gen"],
99 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
100 srcs: [
101 ":android.hardware.drm@1.0_hal",
102 ],
103 out: [
104 "android/hardware/drm/1.0/ACryptoFactory.cpp",
105 "android/hardware/drm/1.0/ACryptoPlugin.cpp",
106 "android/hardware/drm/1.0/ADrmFactory.cpp",
107 "android/hardware/drm/1.0/ADrmPlugin.cpp",
108 "android/hardware/drm/1.0/ADrmPluginListener.cpp",
109 ],
110}
111
112genrule {
113 name: "android.hardware.drm@1.0-adapter-helper_genc++_headers",
114 tools: ["hidl-gen"],
115 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
116 srcs: [
117 ":android.hardware.drm@1.0_hal",
118 ],
119 out: [
120 "android/hardware/drm/1.0/ACryptoFactory.h",
121 "android/hardware/drm/1.0/ACryptoPlugin.h",
122 "android/hardware/drm/1.0/ADrmFactory.h",
123 "android/hardware/drm/1.0/ADrmPlugin.h",
124 "android/hardware/drm/1.0/ADrmPluginListener.h",
125 ],
126}
127
128
129cc_library {
130 name: "android.hardware.drm@1.0-adapter-helper",
131 defaults: ["hidl-module-defaults"],
132 generated_sources: ["android.hardware.drm@1.0-adapter-helper_genc++"],
133 generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"],
134 export_generated_headers: ["android.hardware.drm@1.0-adapter-helper_genc++_headers"],
135 vendor_available: true,
136 shared_libs: [
137 "libhidlbase",
138 "libhidltransport",
139 "libhwbinder",
140 "liblog",
141 "libutils",
142 "libcutils",
143 "libhidladapter",
144 "android.hardware.drm@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ],
147 export_shared_lib_headers: [
148 "libhidlbase",
149 "libhidltransport",
150 "libhwbinder",
151 "libutils",
152 "libhidladapter",
153 "android.hardware.drm@1.0",
154 "android.hidl.base@1.0-adapter-helper",
155 ],
156}
157
158genrule {
159 name: "android.hardware.drm@1.0-adapter_genc++",
160 tools: ["hidl-gen"],
161 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.drm@1.0",
162 out: ["main.cpp"]}
163
164cc_test {
165 name: "android.hardware.drm@1.0-adapter",
166 shared_libs: [
167 "libhidladapter",
168 "libhidlbase",
169 "libhidltransport",
170 "libutils",
171 "android.hardware.drm@1.0",
172 "android.hardware.drm@1.0-adapter-helper",
173 ],
174 generated_sources: ["android.hardware.drm@1.0-adapter_genc++"],
175}
diff --git a/dumpstate/1.0/Android.bp b/dumpstate/1.0/Android.bp
index b135e002..b27e9994 100644
--- a/dumpstate/1.0/Android.bp
+++ b/dumpstate/1.0/Android.bp
@@ -60,3 +60,76 @@ cc_library {
60 "libutils", 60 "libutils",
61 ], 61 ],
62} 62}
63
64genrule {
65 name: "android.hardware.dumpstate@1.0-adapter-helper_genc++",
66 tools: ["hidl-gen"],
67 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.dumpstate@1.0",
68 srcs: [
69 ":android.hardware.dumpstate@1.0_hal",
70 ],
71 out: [
72 "android/hardware/dumpstate/1.0/ADumpstateDevice.cpp",
73 ],
74}
75
76genrule {
77 name: "android.hardware.dumpstate@1.0-adapter-helper_genc++_headers",
78 tools: ["hidl-gen"],
79 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.dumpstate@1.0",
80 srcs: [
81 ":android.hardware.dumpstate@1.0_hal",
82 ],
83 out: [
84 "android/hardware/dumpstate/1.0/ADumpstateDevice.h",
85 ],
86}
87
88
89cc_library {
90 name: "android.hardware.dumpstate@1.0-adapter-helper",
91 defaults: ["hidl-module-defaults"],
92 generated_sources: ["android.hardware.dumpstate@1.0-adapter-helper_genc++"],
93 generated_headers: ["android.hardware.dumpstate@1.0-adapter-helper_genc++_headers"],
94 export_generated_headers: ["android.hardware.dumpstate@1.0-adapter-helper_genc++_headers"],
95 vendor_available: true,
96 shared_libs: [
97 "libhidlbase",
98 "libhidltransport",
99 "libhwbinder",
100 "liblog",
101 "libutils",
102 "libcutils",
103 "libhidladapter",
104 "android.hardware.dumpstate@1.0",
105 "android.hidl.base@1.0-adapter-helper",
106 ],
107 export_shared_lib_headers: [
108 "libhidlbase",
109 "libhidltransport",
110 "libhwbinder",
111 "libutils",
112 "libhidladapter",
113 "android.hardware.dumpstate@1.0",
114 "android.hidl.base@1.0-adapter-helper",
115 ],
116}
117
118genrule {
119 name: "android.hardware.dumpstate@1.0-adapter_genc++",
120 tools: ["hidl-gen"],
121 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.dumpstate@1.0",
122 out: ["main.cpp"]}
123
124cc_test {
125 name: "android.hardware.dumpstate@1.0-adapter",
126 shared_libs: [
127 "libhidladapter",
128 "libhidlbase",
129 "libhidltransport",
130 "libutils",
131 "android.hardware.dumpstate@1.0",
132 "android.hardware.dumpstate@1.0-adapter-helper",
133 ],
134 generated_sources: ["android.hardware.dumpstate@1.0-adapter_genc++"],
135}
diff --git a/gatekeeper/1.0/Android.bp b/gatekeeper/1.0/Android.bp
index f12f38fd..13cb7950 100644
--- a/gatekeeper/1.0/Android.bp
+++ b/gatekeeper/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.gatekeeper@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gatekeeper@1.0",
72 srcs: [
73 ":android.hardware.gatekeeper@1.0_hal",
74 ],
75 out: [
76 "android/hardware/gatekeeper/1.0/AGatekeeper.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.gatekeeper@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gatekeeper@1.0",
84 srcs: [
85 ":android.hardware.gatekeeper@1.0_hal",
86 ],
87 out: [
88 "android/hardware/gatekeeper/1.0/AGatekeeper.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.gatekeeper@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.gatekeeper@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.gatekeeper@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.gatekeeper@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.gatekeeper@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gatekeeper@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.gatekeeper@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.gatekeeper@1.0",
136 "android.hardware.gatekeeper@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.gatekeeper@1.0-adapter_genc++"],
139}
diff --git a/gnss/1.0/Android.bp b/gnss/1.0/Android.bp
index 6db98f66..ef574497 100644
--- a/gnss/1.0/Android.bp
+++ b/gnss/1.0/Android.bp
@@ -197,3 +197,114 @@ cc_library {
197 "libutils", 197 "libutils",
198 ], 198 ],
199} 199}
200
201genrule {
202 name: "android.hardware.gnss@1.0-adapter-helper_genc++",
203 tools: ["hidl-gen"],
204 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
205 srcs: [
206 ":android.hardware.gnss@1.0_hal",
207 ],
208 out: [
209 "android/hardware/gnss/1.0/AAGnss.cpp",
210 "android/hardware/gnss/1.0/AAGnssCallback.cpp",
211 "android/hardware/gnss/1.0/AAGnssRil.cpp",
212 "android/hardware/gnss/1.0/AAGnssRilCallback.cpp",
213 "android/hardware/gnss/1.0/AGnss.cpp",
214 "android/hardware/gnss/1.0/AGnssBatching.cpp",
215 "android/hardware/gnss/1.0/AGnssBatchingCallback.cpp",
216 "android/hardware/gnss/1.0/AGnssCallback.cpp",
217 "android/hardware/gnss/1.0/AGnssConfiguration.cpp",
218 "android/hardware/gnss/1.0/AGnssDebug.cpp",
219 "android/hardware/gnss/1.0/AGnssGeofenceCallback.cpp",
220 "android/hardware/gnss/1.0/AGnssGeofencing.cpp",
221 "android/hardware/gnss/1.0/AGnssMeasurement.cpp",
222 "android/hardware/gnss/1.0/AGnssMeasurementCallback.cpp",
223 "android/hardware/gnss/1.0/AGnssNavigationMessage.cpp",
224 "android/hardware/gnss/1.0/AGnssNavigationMessageCallback.cpp",
225 "android/hardware/gnss/1.0/AGnssNi.cpp",
226 "android/hardware/gnss/1.0/AGnssNiCallback.cpp",
227 "android/hardware/gnss/1.0/AGnssXtra.cpp",
228 "android/hardware/gnss/1.0/AGnssXtraCallback.cpp",
229 ],
230}
231
232genrule {
233 name: "android.hardware.gnss@1.0-adapter-helper_genc++_headers",
234 tools: ["hidl-gen"],
235 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
236 srcs: [
237 ":android.hardware.gnss@1.0_hal",
238 ],
239 out: [
240 "android/hardware/gnss/1.0/AAGnss.h",
241 "android/hardware/gnss/1.0/AAGnssCallback.h",
242 "android/hardware/gnss/1.0/AAGnssRil.h",
243 "android/hardware/gnss/1.0/AAGnssRilCallback.h",
244 "android/hardware/gnss/1.0/AGnss.h",
245 "android/hardware/gnss/1.0/AGnssBatching.h",
246 "android/hardware/gnss/1.0/AGnssBatchingCallback.h",
247 "android/hardware/gnss/1.0/AGnssCallback.h",
248 "android/hardware/gnss/1.0/AGnssConfiguration.h",
249 "android/hardware/gnss/1.0/AGnssDebug.h",
250 "android/hardware/gnss/1.0/AGnssGeofenceCallback.h",
251 "android/hardware/gnss/1.0/AGnssGeofencing.h",
252 "android/hardware/gnss/1.0/AGnssMeasurement.h",
253 "android/hardware/gnss/1.0/AGnssMeasurementCallback.h",
254 "android/hardware/gnss/1.0/AGnssNavigationMessage.h",
255 "android/hardware/gnss/1.0/AGnssNavigationMessageCallback.h",
256 "android/hardware/gnss/1.0/AGnssNi.h",
257 "android/hardware/gnss/1.0/AGnssNiCallback.h",
258 "android/hardware/gnss/1.0/AGnssXtra.h",
259 "android/hardware/gnss/1.0/AGnssXtraCallback.h",
260 ],
261}
262
263
264cc_library {
265 name: "android.hardware.gnss@1.0-adapter-helper",
266 defaults: ["hidl-module-defaults"],
267 generated_sources: ["android.hardware.gnss@1.0-adapter-helper_genc++"],
268 generated_headers: ["android.hardware.gnss@1.0-adapter-helper_genc++_headers"],
269 export_generated_headers: ["android.hardware.gnss@1.0-adapter-helper_genc++_headers"],
270 vendor_available: true,
271 shared_libs: [
272 "libhidlbase",
273 "libhidltransport",
274 "libhwbinder",
275 "liblog",
276 "libutils",
277 "libcutils",
278 "libhidladapter",
279 "android.hardware.gnss@1.0",
280 "android.hidl.base@1.0-adapter-helper",
281 ],
282 export_shared_lib_headers: [
283 "libhidlbase",
284 "libhidltransport",
285 "libhwbinder",
286 "libutils",
287 "libhidladapter",
288 "android.hardware.gnss@1.0",
289 "android.hidl.base@1.0-adapter-helper",
290 ],
291}
292
293genrule {
294 name: "android.hardware.gnss@1.0-adapter_genc++",
295 tools: ["hidl-gen"],
296 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.gnss@1.0",
297 out: ["main.cpp"]}
298
299cc_test {
300 name: "android.hardware.gnss@1.0-adapter",
301 shared_libs: [
302 "libhidladapter",
303 "libhidlbase",
304 "libhidltransport",
305 "libutils",
306 "android.hardware.gnss@1.0",
307 "android.hardware.gnss@1.0-adapter-helper",
308 ],
309 generated_sources: ["android.hardware.gnss@1.0-adapter_genc++"],
310}
diff --git a/graphics/allocator/2.0/Android.bp b/graphics/allocator/2.0/Android.bp
index 46faa17b..0ef6450f 100644
--- a/graphics/allocator/2.0/Android.bp
+++ b/graphics/allocator/2.0/Android.bp
@@ -65,3 +65,84 @@ cc_library {
65 "android.hardware.graphics.mapper@2.0", 65 "android.hardware.graphics.mapper@2.0",
66 ], 66 ],
67} 67}
68
69genrule {
70 name: "android.hardware.graphics.allocator@2.0-adapter-helper_genc++",
71 tools: ["hidl-gen"],
72 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.allocator@2.0",
73 srcs: [
74 ":android.hardware.graphics.allocator@2.0_hal",
75 ],
76 out: [
77 "android/hardware/graphics/allocator/2.0/AAllocator.cpp",
78 ],
79}
80
81genrule {
82 name: "android.hardware.graphics.allocator@2.0-adapter-helper_genc++_headers",
83 tools: ["hidl-gen"],
84 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.allocator@2.0",
85 srcs: [
86 ":android.hardware.graphics.allocator@2.0_hal",
87 ],
88 out: [
89 "android/hardware/graphics/allocator/2.0/AAllocator.h",
90 ],
91}
92
93
94cc_library {
95 name: "android.hardware.graphics.allocator@2.0-adapter-helper",
96 defaults: ["hidl-module-defaults"],
97 generated_sources: ["android.hardware.graphics.allocator@2.0-adapter-helper_genc++"],
98 generated_headers: ["android.hardware.graphics.allocator@2.0-adapter-helper_genc++_headers"],
99 export_generated_headers: ["android.hardware.graphics.allocator@2.0-adapter-helper_genc++_headers"],
100 vendor_available: true,
101 shared_libs: [
102 "libhidlbase",
103 "libhidltransport",
104 "libhwbinder",
105 "liblog",
106 "libutils",
107 "libcutils",
108 "libhidladapter",
109 "android.hardware.graphics.allocator@2.0",
110 "android.hardware.graphics.common@1.0",
111 "android.hardware.graphics.mapper@2.0",
112 "android.hardware.graphics.mapper@2.0-adapter-helper",
113 "android.hidl.base@1.0-adapter-helper",
114 ],
115 export_shared_lib_headers: [
116 "libhidlbase",
117 "libhidltransport",
118 "libhwbinder",
119 "libutils",
120 "libhidladapter",
121 "android.hardware.graphics.allocator@2.0",
122 "android.hardware.graphics.common@1.0",
123 "android.hardware.graphics.mapper@2.0",
124 "android.hardware.graphics.mapper@2.0-adapter-helper",
125 "android.hidl.base@1.0-adapter-helper",
126 ],
127}
128
129genrule {
130 name: "android.hardware.graphics.allocator@2.0-adapter_genc++",
131 tools: ["hidl-gen"],
132 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.allocator@2.0",
133 out: ["main.cpp"]}
134
135cc_test {
136 name: "android.hardware.graphics.allocator@2.0-adapter",
137 shared_libs: [
138 "libhidladapter",
139 "libhidlbase",
140 "libhidltransport",
141 "libutils",
142 "android.hardware.graphics.allocator@2.0",
143 "android.hardware.graphics.common@1.0",
144 "android.hardware.graphics.mapper@2.0",
145 "android.hardware.graphics.allocator@2.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.graphics.allocator@2.0-adapter_genc++"],
148}
diff --git a/graphics/bufferqueue/1.0/Android.bp b/graphics/bufferqueue/1.0/Android.bp
index 2d36fc7e..87640a86 100644
--- a/graphics/bufferqueue/1.0/Android.bp
+++ b/graphics/bufferqueue/1.0/Android.bp
@@ -71,3 +71,84 @@ cc_library {
71 "android.hardware.media@1.0", 71 "android.hardware.media@1.0",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.graphics.bufferqueue@1.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.bufferqueue@1.0",
79 srcs: [
80 ":android.hardware.graphics.bufferqueue@1.0_hal",
81 ],
82 out: [
83 "android/hardware/graphics/bufferqueue/1.0/AGraphicBufferProducer.cpp",
84 "android/hardware/graphics/bufferqueue/1.0/AProducerListener.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.graphics.bufferqueue@1.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.bufferqueue@1.0",
92 srcs: [
93 ":android.hardware.graphics.bufferqueue@1.0_hal",
94 ],
95 out: [
96 "android/hardware/graphics/bufferqueue/1.0/AGraphicBufferProducer.h",
97 "android/hardware/graphics/bufferqueue/1.0/AProducerListener.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.graphics.bufferqueue@1.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.graphics.bufferqueue@1.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.graphics.bufferqueue@1.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.graphics.bufferqueue@1.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.graphics.bufferqueue@1.0",
118 "android.hardware.graphics.common@1.0",
119 "android.hardware.media@1.0",
120 "android.hidl.base@1.0-adapter-helper",
121 ],
122 export_shared_lib_headers: [
123 "libhidlbase",
124 "libhidltransport",
125 "libhwbinder",
126 "libutils",
127 "libhidladapter",
128 "android.hardware.graphics.bufferqueue@1.0",
129 "android.hardware.graphics.common@1.0",
130 "android.hardware.media@1.0",
131 "android.hidl.base@1.0-adapter-helper",
132 ],
133}
134
135genrule {
136 name: "android.hardware.graphics.bufferqueue@1.0-adapter_genc++",
137 tools: ["hidl-gen"],
138 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.bufferqueue@1.0",
139 out: ["main.cpp"]}
140
141cc_test {
142 name: "android.hardware.graphics.bufferqueue@1.0-adapter",
143 shared_libs: [
144 "libhidladapter",
145 "libhidlbase",
146 "libhidltransport",
147 "libutils",
148 "android.hardware.graphics.bufferqueue@1.0",
149 "android.hardware.graphics.common@1.0",
150 "android.hardware.media@1.0",
151 "android.hardware.graphics.bufferqueue@1.0-adapter-helper",
152 ],
153 generated_sources: ["android.hardware.graphics.bufferqueue@1.0-adapter_genc++"],
154}
diff --git a/graphics/composer/2.1/Android.bp b/graphics/composer/2.1/Android.bp
index e8757086..6bea650c 100644
--- a/graphics/composer/2.1/Android.bp
+++ b/graphics/composer/2.1/Android.bp
@@ -80,3 +80,83 @@ cc_library {
80 "android.hardware.graphics.common@1.0", 80 "android.hardware.graphics.common@1.0",
81 ], 81 ],
82} 82}
83
84genrule {
85 name: "android.hardware.graphics.composer@2.1-adapter-helper_genc++",
86 tools: ["hidl-gen"],
87 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.composer@2.1",
88 srcs: [
89 ":android.hardware.graphics.composer@2.1_hal",
90 ],
91 out: [
92 "android/hardware/graphics/composer/2.1/AComposer.cpp",
93 "android/hardware/graphics/composer/2.1/AComposerCallback.cpp",
94 "android/hardware/graphics/composer/2.1/AComposerClient.cpp",
95 ],
96}
97
98genrule {
99 name: "android.hardware.graphics.composer@2.1-adapter-helper_genc++_headers",
100 tools: ["hidl-gen"],
101 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.composer@2.1",
102 srcs: [
103 ":android.hardware.graphics.composer@2.1_hal",
104 ],
105 out: [
106 "android/hardware/graphics/composer/2.1/AComposer.h",
107 "android/hardware/graphics/composer/2.1/AComposerCallback.h",
108 "android/hardware/graphics/composer/2.1/AComposerClient.h",
109 ],
110}
111
112
113cc_library {
114 name: "android.hardware.graphics.composer@2.1-adapter-helper",
115 defaults: ["hidl-module-defaults"],
116 generated_sources: ["android.hardware.graphics.composer@2.1-adapter-helper_genc++"],
117 generated_headers: ["android.hardware.graphics.composer@2.1-adapter-helper_genc++_headers"],
118 export_generated_headers: ["android.hardware.graphics.composer@2.1-adapter-helper_genc++_headers"],
119 vendor_available: true,
120 shared_libs: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "liblog",
125 "libutils",
126 "libcutils",
127 "libhidladapter",
128 "android.hardware.graphics.common@1.0",
129 "android.hardware.graphics.composer@2.1",
130 "android.hidl.base@1.0-adapter-helper",
131 ],
132 export_shared_lib_headers: [
133 "libhidlbase",
134 "libhidltransport",
135 "libhwbinder",
136 "libutils",
137 "libhidladapter",
138 "android.hardware.graphics.common@1.0",
139 "android.hardware.graphics.composer@2.1",
140 "android.hidl.base@1.0-adapter-helper",
141 ],
142}
143
144genrule {
145 name: "android.hardware.graphics.composer@2.1-adapter_genc++",
146 tools: ["hidl-gen"],
147 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.composer@2.1",
148 out: ["main.cpp"]}
149
150cc_test {
151 name: "android.hardware.graphics.composer@2.1-adapter",
152 shared_libs: [
153 "libhidladapter",
154 "libhidlbase",
155 "libhidltransport",
156 "libutils",
157 "android.hardware.graphics.common@1.0",
158 "android.hardware.graphics.composer@2.1",
159 "android.hardware.graphics.composer@2.1-adapter-helper",
160 ],
161 generated_sources: ["android.hardware.graphics.composer@2.1-adapter_genc++"],
162}
diff --git a/graphics/mapper/2.0/Android.bp b/graphics/mapper/2.0/Android.bp
index f5913af2..4e33ed2d 100644
--- a/graphics/mapper/2.0/Android.bp
+++ b/graphics/mapper/2.0/Android.bp
@@ -67,3 +67,79 @@ cc_library {
67 "android.hardware.graphics.common@1.0", 67 "android.hardware.graphics.common@1.0",
68 ], 68 ],
69} 69}
70
71genrule {
72 name: "android.hardware.graphics.mapper@2.0-adapter-helper_genc++",
73 tools: ["hidl-gen"],
74 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.mapper@2.0",
75 srcs: [
76 ":android.hardware.graphics.mapper@2.0_hal",
77 ],
78 out: [
79 "android/hardware/graphics/mapper/2.0/AMapper.cpp",
80 ],
81}
82
83genrule {
84 name: "android.hardware.graphics.mapper@2.0-adapter-helper_genc++_headers",
85 tools: ["hidl-gen"],
86 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.mapper@2.0",
87 srcs: [
88 ":android.hardware.graphics.mapper@2.0_hal",
89 ],
90 out: [
91 "android/hardware/graphics/mapper/2.0/AMapper.h",
92 ],
93}
94
95
96cc_library {
97 name: "android.hardware.graphics.mapper@2.0-adapter-helper",
98 defaults: ["hidl-module-defaults"],
99 generated_sources: ["android.hardware.graphics.mapper@2.0-adapter-helper_genc++"],
100 generated_headers: ["android.hardware.graphics.mapper@2.0-adapter-helper_genc++_headers"],
101 export_generated_headers: ["android.hardware.graphics.mapper@2.0-adapter-helper_genc++_headers"],
102 vendor_available: true,
103 shared_libs: [
104 "libhidlbase",
105 "libhidltransport",
106 "libhwbinder",
107 "liblog",
108 "libutils",
109 "libcutils",
110 "libhidladapter",
111 "android.hardware.graphics.common@1.0",
112 "android.hardware.graphics.mapper@2.0",
113 "android.hidl.base@1.0-adapter-helper",
114 ],
115 export_shared_lib_headers: [
116 "libhidlbase",
117 "libhidltransport",
118 "libhwbinder",
119 "libutils",
120 "libhidladapter",
121 "android.hardware.graphics.common@1.0",
122 "android.hardware.graphics.mapper@2.0",
123 "android.hidl.base@1.0-adapter-helper",
124 ],
125}
126
127genrule {
128 name: "android.hardware.graphics.mapper@2.0-adapter_genc++",
129 tools: ["hidl-gen"],
130 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.mapper@2.0",
131 out: ["main.cpp"]}
132
133cc_test {
134 name: "android.hardware.graphics.mapper@2.0-adapter",
135 shared_libs: [
136 "libhidladapter",
137 "libhidlbase",
138 "libhidltransport",
139 "libutils",
140 "android.hardware.graphics.common@1.0",
141 "android.hardware.graphics.mapper@2.0",
142 "android.hardware.graphics.mapper@2.0-adapter-helper",
143 ],
144 generated_sources: ["android.hardware.graphics.mapper@2.0-adapter_genc++"],
145}
diff --git a/health/1.0/Android.bp b/health/1.0/Android.bp
index d8ebc20a..a998ea9f 100644
--- a/health/1.0/Android.bp
+++ b/health/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.health@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.health@1.0",
72 srcs: [
73 ":android.hardware.health@1.0_hal",
74 ],
75 out: [
76 "android/hardware/health/1.0/AHealth.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.health@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.health@1.0",
84 srcs: [
85 ":android.hardware.health@1.0_hal",
86 ],
87 out: [
88 "android/hardware/health/1.0/AHealth.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.health@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.health@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.health@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.health@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.health@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.health@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.health@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.health@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.health@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.health@1.0",
136 "android.hardware.health@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.health@1.0-adapter_genc++"],
139}
diff --git a/ir/1.0/Android.bp b/ir/1.0/Android.bp
index 489f61fa..d3230da4 100644
--- a/ir/1.0/Android.bp
+++ b/ir/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.ir@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
72 srcs: [
73 ":android.hardware.ir@1.0_hal",
74 ],
75 out: [
76 "android/hardware/ir/1.0/AConsumerIr.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.ir@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
84 srcs: [
85 ":android.hardware.ir@1.0_hal",
86 ],
87 out: [
88 "android/hardware/ir/1.0/AConsumerIr.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.ir@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.ir@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.ir@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.ir@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.ir@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.ir@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.ir@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.ir@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.ir@1.0",
136 "android.hardware.ir@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.ir@1.0-adapter_genc++"],
139}
diff --git a/keymaster/3.0/Android.bp b/keymaster/3.0/Android.bp
index 14cfab23..46c5447d 100644
--- a/keymaster/3.0/Android.bp
+++ b/keymaster/3.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.keymaster@3.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.keymaster@3.0",
72 srcs: [
73 ":android.hardware.keymaster@3.0_hal",
74 ],
75 out: [
76 "android/hardware/keymaster/3.0/AKeymasterDevice.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.keymaster@3.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.keymaster@3.0",
84 srcs: [
85 ":android.hardware.keymaster@3.0_hal",
86 ],
87 out: [
88 "android/hardware/keymaster/3.0/AKeymasterDevice.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.keymaster@3.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.keymaster@3.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.keymaster@3.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.keymaster@3.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.keymaster@3.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.keymaster@3.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.keymaster@3.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.keymaster@3.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.keymaster@3.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.keymaster@3.0",
136 "android.hardware.keymaster@3.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.keymaster@3.0-adapter_genc++"],
139}
diff --git a/light/2.0/Android.bp b/light/2.0/Android.bp
index 7cc7f849..d8d2302d 100644
--- a/light/2.0/Android.bp
+++ b/light/2.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.light@2.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
72 srcs: [
73 ":android.hardware.light@2.0_hal",
74 ],
75 out: [
76 "android/hardware/light/2.0/ALight.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.light@2.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
84 srcs: [
85 ":android.hardware.light@2.0_hal",
86 ],
87 out: [
88 "android/hardware/light/2.0/ALight.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.light@2.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.light@2.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.light@2.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.light@2.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.light@2.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.light@2.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.light@2.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.light@2.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.light@2.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.light@2.0",
136 "android.hardware.light@2.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.light@2.0-adapter_genc++"],
139}
diff --git a/media/omx/1.0/Android.bp b/media/omx/1.0/Android.bp
index f8bed6ed..671f17d9 100644
--- a/media/omx/1.0/Android.bp
+++ b/media/omx/1.0/Android.bp
@@ -105,3 +105,97 @@ cc_library {
105 "android.hardware.media@1.0", 105 "android.hardware.media@1.0",
106 ], 106 ],
107} 107}
108
109genrule {
110 name: "android.hardware.media.omx@1.0-adapter-helper_genc++",
111 tools: ["hidl-gen"],
112 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0",
113 srcs: [
114 ":android.hardware.media.omx@1.0_hal",
115 ],
116 out: [
117 "android/hardware/media/omx/1.0/AGraphicBufferSource.cpp",
118 "android/hardware/media/omx/1.0/AOmx.cpp",
119 "android/hardware/media/omx/1.0/AOmxBufferSource.cpp",
120 "android/hardware/media/omx/1.0/AOmxNode.cpp",
121 "android/hardware/media/omx/1.0/AOmxObserver.cpp",
122 "android/hardware/media/omx/1.0/AOmxStore.cpp",
123 ],
124}
125
126genrule {
127 name: "android.hardware.media.omx@1.0-adapter-helper_genc++_headers",
128 tools: ["hidl-gen"],
129 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0",
130 srcs: [
131 ":android.hardware.media.omx@1.0_hal",
132 ],
133 out: [
134 "android/hardware/media/omx/1.0/AGraphicBufferSource.h",
135 "android/hardware/media/omx/1.0/AOmx.h",
136 "android/hardware/media/omx/1.0/AOmxBufferSource.h",
137 "android/hardware/media/omx/1.0/AOmxNode.h",
138 "android/hardware/media/omx/1.0/AOmxObserver.h",
139 "android/hardware/media/omx/1.0/AOmxStore.h",
140 ],
141}
142
143
144cc_library {
145 name: "android.hardware.media.omx@1.0-adapter-helper",
146 defaults: ["hidl-module-defaults"],
147 generated_sources: ["android.hardware.media.omx@1.0-adapter-helper_genc++"],
148 generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"],
149 export_generated_headers: ["android.hardware.media.omx@1.0-adapter-helper_genc++_headers"],
150 vendor_available: true,
151 shared_libs: [
152 "libhidlbase",
153 "libhidltransport",
154 "libhwbinder",
155 "liblog",
156 "libutils",
157 "libcutils",
158 "libhidladapter",
159 "android.hardware.graphics.bufferqueue@1.0",
160 "android.hardware.graphics.common@1.0",
161 "android.hardware.media.omx@1.0",
162 "android.hardware.media@1.0",
163 "android.hardware.graphics.bufferqueue@1.0-adapter-helper",
164 "android.hidl.base@1.0-adapter-helper",
165 ],
166 export_shared_lib_headers: [
167 "libhidlbase",
168 "libhidltransport",
169 "libhwbinder",
170 "libutils",
171 "libhidladapter",
172 "android.hardware.graphics.bufferqueue@1.0",
173 "android.hardware.graphics.common@1.0",
174 "android.hardware.media.omx@1.0",
175 "android.hardware.media@1.0",
176 "android.hardware.graphics.bufferqueue@1.0-adapter-helper",
177 "android.hidl.base@1.0-adapter-helper",
178 ],
179}
180
181genrule {
182 name: "android.hardware.media.omx@1.0-adapter_genc++",
183 tools: ["hidl-gen"],
184 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.media.omx@1.0",
185 out: ["main.cpp"]}
186
187cc_test {
188 name: "android.hardware.media.omx@1.0-adapter",
189 shared_libs: [
190 "libhidladapter",
191 "libhidlbase",
192 "libhidltransport",
193 "libutils",
194 "android.hardware.graphics.bufferqueue@1.0",
195 "android.hardware.graphics.common@1.0",
196 "android.hardware.media.omx@1.0",
197 "android.hardware.media@1.0",
198 "android.hardware.media.omx@1.0-adapter-helper",
199 ],
200 generated_sources: ["android.hardware.media.omx@1.0-adapter_genc++"],
201}
diff --git a/memtrack/1.0/Android.bp b/memtrack/1.0/Android.bp
index 4df2c1d8..ef9f4e38 100644
--- a/memtrack/1.0/Android.bp
+++ b/memtrack/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.memtrack@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.memtrack@1.0",
72 srcs: [
73 ":android.hardware.memtrack@1.0_hal",
74 ],
75 out: [
76 "android/hardware/memtrack/1.0/AMemtrack.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.memtrack@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.memtrack@1.0",
84 srcs: [
85 ":android.hardware.memtrack@1.0_hal",
86 ],
87 out: [
88 "android/hardware/memtrack/1.0/AMemtrack.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.memtrack@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.memtrack@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.memtrack@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.memtrack@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.memtrack@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.memtrack@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.memtrack@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.memtrack@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.memtrack@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.memtrack@1.0",
136 "android.hardware.memtrack@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.memtrack@1.0-adapter_genc++"],
139}
diff --git a/nfc/1.0/Android.bp b/nfc/1.0/Android.bp
index 4adb32c5..aeafb773 100644
--- a/nfc/1.0/Android.bp
+++ b/nfc/1.0/Android.bp
@@ -71,3 +71,78 @@ cc_library {
71 "libutils", 71 "libutils",
72 ], 72 ],
73} 73}
74
75genrule {
76 name: "android.hardware.nfc@1.0-adapter-helper_genc++",
77 tools: ["hidl-gen"],
78 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.nfc@1.0",
79 srcs: [
80 ":android.hardware.nfc@1.0_hal",
81 ],
82 out: [
83 "android/hardware/nfc/1.0/ANfc.cpp",
84 "android/hardware/nfc/1.0/ANfcClientCallback.cpp",
85 ],
86}
87
88genrule {
89 name: "android.hardware.nfc@1.0-adapter-helper_genc++_headers",
90 tools: ["hidl-gen"],
91 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.nfc@1.0",
92 srcs: [
93 ":android.hardware.nfc@1.0_hal",
94 ],
95 out: [
96 "android/hardware/nfc/1.0/ANfc.h",
97 "android/hardware/nfc/1.0/ANfcClientCallback.h",
98 ],
99}
100
101
102cc_library {
103 name: "android.hardware.nfc@1.0-adapter-helper",
104 defaults: ["hidl-module-defaults"],
105 generated_sources: ["android.hardware.nfc@1.0-adapter-helper_genc++"],
106 generated_headers: ["android.hardware.nfc@1.0-adapter-helper_genc++_headers"],
107 export_generated_headers: ["android.hardware.nfc@1.0-adapter-helper_genc++_headers"],
108 vendor_available: true,
109 shared_libs: [
110 "libhidlbase",
111 "libhidltransport",
112 "libhwbinder",
113 "liblog",
114 "libutils",
115 "libcutils",
116 "libhidladapter",
117 "android.hardware.nfc@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120 export_shared_lib_headers: [
121 "libhidlbase",
122 "libhidltransport",
123 "libhwbinder",
124 "libutils",
125 "libhidladapter",
126 "android.hardware.nfc@1.0",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129}
130
131genrule {
132 name: "android.hardware.nfc@1.0-adapter_genc++",
133 tools: ["hidl-gen"],
134 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.nfc@1.0",
135 out: ["main.cpp"]}
136
137cc_test {
138 name: "android.hardware.nfc@1.0-adapter",
139 shared_libs: [
140 "libhidladapter",
141 "libhidlbase",
142 "libhidltransport",
143 "libutils",
144 "android.hardware.nfc@1.0",
145 "android.hardware.nfc@1.0-adapter-helper",
146 ],
147 generated_sources: ["android.hardware.nfc@1.0-adapter_genc++"],
148}
diff --git a/power/1.0/Android.bp b/power/1.0/Android.bp
index bc886cb7..5e43accb 100644
--- a/power/1.0/Android.bp
+++ b/power/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.power@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.power@1.0",
72 srcs: [
73 ":android.hardware.power@1.0_hal",
74 ],
75 out: [
76 "android/hardware/power/1.0/APower.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.power@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.power@1.0",
84 srcs: [
85 ":android.hardware.power@1.0_hal",
86 ],
87 out: [
88 "android/hardware/power/1.0/APower.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.power@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.power@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.power@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.power@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.power@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.power@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.power@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.power@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.power@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.power@1.0",
136 "android.hardware.power@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.power@1.0-adapter_genc++"],
139}
diff --git a/radio/1.0/Android.bp b/radio/1.0/Android.bp
index 093ceacc..a7a2be30 100644
--- a/radio/1.0/Android.bp
+++ b/radio/1.0/Android.bp
@@ -92,3 +92,84 @@ cc_library {
92 "libutils", 92 "libutils",
93 ], 93 ],
94} 94}
95
96genrule {
97 name: "android.hardware.radio@1.0-adapter-helper_genc++",
98 tools: ["hidl-gen"],
99 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0",
100 srcs: [
101 ":android.hardware.radio@1.0_hal",
102 ],
103 out: [
104 "android/hardware/radio/1.0/ARadio.cpp",
105 "android/hardware/radio/1.0/ARadioIndication.cpp",
106 "android/hardware/radio/1.0/ARadioResponse.cpp",
107 "android/hardware/radio/1.0/ASap.cpp",
108 "android/hardware/radio/1.0/ASapCallback.cpp",
109 ],
110}
111
112genrule {
113 name: "android.hardware.radio@1.0-adapter-helper_genc++_headers",
114 tools: ["hidl-gen"],
115 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0",
116 srcs: [
117 ":android.hardware.radio@1.0_hal",
118 ],
119 out: [
120 "android/hardware/radio/1.0/ARadio.h",
121 "android/hardware/radio/1.0/ARadioIndication.h",
122 "android/hardware/radio/1.0/ARadioResponse.h",
123 "android/hardware/radio/1.0/ASap.h",
124 "android/hardware/radio/1.0/ASapCallback.h",
125 ],
126}
127
128
129cc_library {
130 name: "android.hardware.radio@1.0-adapter-helper",
131 defaults: ["hidl-module-defaults"],
132 generated_sources: ["android.hardware.radio@1.0-adapter-helper_genc++"],
133 generated_headers: ["android.hardware.radio@1.0-adapter-helper_genc++_headers"],
134 export_generated_headers: ["android.hardware.radio@1.0-adapter-helper_genc++_headers"],
135 vendor_available: true,
136 shared_libs: [
137 "libhidlbase",
138 "libhidltransport",
139 "libhwbinder",
140 "liblog",
141 "libutils",
142 "libcutils",
143 "libhidladapter",
144 "android.hardware.radio@1.0",
145 "android.hidl.base@1.0-adapter-helper",
146 ],
147 export_shared_lib_headers: [
148 "libhidlbase",
149 "libhidltransport",
150 "libhwbinder",
151 "libutils",
152 "libhidladapter",
153 "android.hardware.radio@1.0",
154 "android.hidl.base@1.0-adapter-helper",
155 ],
156}
157
158genrule {
159 name: "android.hardware.radio@1.0-adapter_genc++",
160 tools: ["hidl-gen"],
161 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.0",
162 out: ["main.cpp"]}
163
164cc_test {
165 name: "android.hardware.radio@1.0-adapter",
166 shared_libs: [
167 "libhidladapter",
168 "libhidlbase",
169 "libhidltransport",
170 "libutils",
171 "android.hardware.radio@1.0",
172 "android.hardware.radio@1.0-adapter-helper",
173 ],
174 generated_sources: ["android.hardware.radio@1.0-adapter_genc++"],
175}
diff --git a/radio/1.1/Android.bp b/radio/1.1/Android.bp
index 156cf996..fc03b53d 100644
--- a/radio/1.1/Android.bp
+++ b/radio/1.1/Android.bp
@@ -87,3 +87,87 @@ cc_library {
87 "android.hardware.radio@1.0", 87 "android.hardware.radio@1.0",
88 ], 88 ],
89} 89}
90
91genrule {
92 name: "android.hardware.radio@1.1-adapter-helper_genc++",
93 tools: ["hidl-gen"],
94 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.1",
95 srcs: [
96 ":android.hardware.radio@1.1_hal",
97 ],
98 out: [
99 "android/hardware/radio/1.1/ARadio.cpp",
100 "android/hardware/radio/1.1/ARadioIndication.cpp",
101 "android/hardware/radio/1.1/ARadioResponse.cpp",
102 "android/hardware/radio/1.1/ASap.cpp",
103 ],
104}
105
106genrule {
107 name: "android.hardware.radio@1.1-adapter-helper_genc++_headers",
108 tools: ["hidl-gen"],
109 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.1",
110 srcs: [
111 ":android.hardware.radio@1.1_hal",
112 ],
113 out: [
114 "android/hardware/radio/1.1/ARadio.h",
115 "android/hardware/radio/1.1/ARadioIndication.h",
116 "android/hardware/radio/1.1/ARadioResponse.h",
117 "android/hardware/radio/1.1/ASap.h",
118 ],
119}
120
121
122cc_library {
123 name: "android.hardware.radio@1.1-adapter-helper",
124 defaults: ["hidl-module-defaults"],
125 generated_sources: ["android.hardware.radio@1.1-adapter-helper_genc++"],
126 generated_headers: ["android.hardware.radio@1.1-adapter-helper_genc++_headers"],
127 export_generated_headers: ["android.hardware.radio@1.1-adapter-helper_genc++_headers"],
128 vendor_available: true,
129 shared_libs: [
130 "libhidlbase",
131 "libhidltransport",
132 "libhwbinder",
133 "liblog",
134 "libutils",
135 "libcutils",
136 "libhidladapter",
137 "android.hardware.radio@1.0",
138 "android.hardware.radio@1.1",
139 "android.hardware.radio@1.0-adapter-helper",
140 "android.hidl.base@1.0-adapter-helper",
141 ],
142 export_shared_lib_headers: [
143 "libhidlbase",
144 "libhidltransport",
145 "libhwbinder",
146 "libutils",
147 "libhidladapter",
148 "android.hardware.radio@1.0",
149 "android.hardware.radio@1.1",
150 "android.hardware.radio@1.0-adapter-helper",
151 "android.hidl.base@1.0-adapter-helper",
152 ],
153}
154
155genrule {
156 name: "android.hardware.radio@1.1-adapter_genc++",
157 tools: ["hidl-gen"],
158 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio@1.1",
159 out: ["main.cpp"]}
160
161cc_test {
162 name: "android.hardware.radio@1.1-adapter",
163 shared_libs: [
164 "libhidladapter",
165 "libhidlbase",
166 "libhidltransport",
167 "libutils",
168 "android.hardware.radio@1.0",
169 "android.hardware.radio@1.1",
170 "android.hardware.radio@1.1-adapter-helper",
171 ],
172 generated_sources: ["android.hardware.radio@1.1-adapter_genc++"],
173}
diff --git a/radio/deprecated/1.0/Android.bp b/radio/deprecated/1.0/Android.bp
index e63ed28f..948be69e 100644
--- a/radio/deprecated/1.0/Android.bp
+++ b/radio/deprecated/1.0/Android.bp
@@ -76,3 +76,85 @@ cc_library {
76 "android.hardware.radio@1.0", 76 "android.hardware.radio@1.0",
77 ], 77 ],
78} 78}
79
80genrule {
81 name: "android.hardware.radio.deprecated@1.0-adapter-helper_genc++",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio.deprecated@1.0",
84 srcs: [
85 ":android.hardware.radio.deprecated@1.0_hal",
86 ],
87 out: [
88 "android/hardware/radio/deprecated/1.0/AOemHook.cpp",
89 "android/hardware/radio/deprecated/1.0/AOemHookIndication.cpp",
90 "android/hardware/radio/deprecated/1.0/AOemHookResponse.cpp",
91 ],
92}
93
94genrule {
95 name: "android.hardware.radio.deprecated@1.0-adapter-helper_genc++_headers",
96 tools: ["hidl-gen"],
97 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio.deprecated@1.0",
98 srcs: [
99 ":android.hardware.radio.deprecated@1.0_hal",
100 ],
101 out: [
102 "android/hardware/radio/deprecated/1.0/AOemHook.h",
103 "android/hardware/radio/deprecated/1.0/AOemHookIndication.h",
104 "android/hardware/radio/deprecated/1.0/AOemHookResponse.h",
105 ],
106}
107
108
109cc_library {
110 name: "android.hardware.radio.deprecated@1.0-adapter-helper",
111 defaults: ["hidl-module-defaults"],
112 generated_sources: ["android.hardware.radio.deprecated@1.0-adapter-helper_genc++"],
113 generated_headers: ["android.hardware.radio.deprecated@1.0-adapter-helper_genc++_headers"],
114 export_generated_headers: ["android.hardware.radio.deprecated@1.0-adapter-helper_genc++_headers"],
115 vendor_available: true,
116 shared_libs: [
117 "libhidlbase",
118 "libhidltransport",
119 "libhwbinder",
120 "liblog",
121 "libutils",
122 "libcutils",
123 "libhidladapter",
124 "android.hardware.radio.deprecated@1.0",
125 "android.hardware.radio@1.0",
126 "android.hardware.radio@1.0-adapter-helper",
127 "android.hidl.base@1.0-adapter-helper",
128 ],
129 export_shared_lib_headers: [
130 "libhidlbase",
131 "libhidltransport",
132 "libhwbinder",
133 "libutils",
134 "libhidladapter",
135 "android.hardware.radio.deprecated@1.0",
136 "android.hardware.radio@1.0",
137 "android.hardware.radio@1.0-adapter-helper",
138 "android.hidl.base@1.0-adapter-helper",
139 ],
140}
141
142genrule {
143 name: "android.hardware.radio.deprecated@1.0-adapter_genc++",
144 tools: ["hidl-gen"],
145 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.radio.deprecated@1.0",
146 out: ["main.cpp"]}
147
148cc_test {
149 name: "android.hardware.radio.deprecated@1.0-adapter",
150 shared_libs: [
151 "libhidladapter",
152 "libhidlbase",
153 "libhidltransport",
154 "libutils",
155 "android.hardware.radio.deprecated@1.0",
156 "android.hardware.radio@1.0",
157 "android.hardware.radio.deprecated@1.0-adapter-helper",
158 ],
159 generated_sources: ["android.hardware.radio.deprecated@1.0-adapter_genc++"],
160}
diff --git a/renderscript/1.0/Android.bp b/renderscript/1.0/Android.bp
index 0f626523..ba2d2c85 100644
--- a/renderscript/1.0/Android.bp
+++ b/renderscript/1.0/Android.bp
@@ -72,3 +72,78 @@ cc_library {
72 "libutils", 72 "libutils",
73 ], 73 ],
74} 74}
75
76genrule {
77 name: "android.hardware.renderscript@1.0-adapter-helper_genc++",
78 tools: ["hidl-gen"],
79 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.renderscript@1.0",
80 srcs: [
81 ":android.hardware.renderscript@1.0_hal",
82 ],
83 out: [
84 "android/hardware/renderscript/1.0/AContext.cpp",
85 "android/hardware/renderscript/1.0/ADevice.cpp",
86 ],
87}
88
89genrule {
90 name: "android.hardware.renderscript@1.0-adapter-helper_genc++_headers",
91 tools: ["hidl-gen"],
92 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.renderscript@1.0",
93 srcs: [
94 ":android.hardware.renderscript@1.0_hal",
95 ],
96 out: [
97 "android/hardware/renderscript/1.0/AContext.h",
98 "android/hardware/renderscript/1.0/ADevice.h",
99 ],
100}
101
102
103cc_library {
104 name: "android.hardware.renderscript@1.0-adapter-helper",
105 defaults: ["hidl-module-defaults"],
106 generated_sources: ["android.hardware.renderscript@1.0-adapter-helper_genc++"],
107 generated_headers: ["android.hardware.renderscript@1.0-adapter-helper_genc++_headers"],
108 export_generated_headers: ["android.hardware.renderscript@1.0-adapter-helper_genc++_headers"],
109 vendor_available: true,
110 shared_libs: [
111 "libhidlbase",
112 "libhidltransport",
113 "libhwbinder",
114 "liblog",
115 "libutils",
116 "libcutils",
117 "libhidladapter",
118 "android.hardware.renderscript@1.0",
119 "android.hidl.base@1.0-adapter-helper",
120 ],
121 export_shared_lib_headers: [
122 "libhidlbase",
123 "libhidltransport",
124 "libhwbinder",
125 "libutils",
126 "libhidladapter",
127 "android.hardware.renderscript@1.0",
128 "android.hidl.base@1.0-adapter-helper",
129 ],
130}
131
132genrule {
133 name: "android.hardware.renderscript@1.0-adapter_genc++",
134 tools: ["hidl-gen"],
135 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.renderscript@1.0",
136 out: ["main.cpp"]}
137
138cc_test {
139 name: "android.hardware.renderscript@1.0-adapter",
140 shared_libs: [
141 "libhidladapter",
142 "libhidlbase",
143 "libhidltransport",
144 "libutils",
145 "android.hardware.renderscript@1.0",
146 "android.hardware.renderscript@1.0-adapter-helper",
147 ],
148 generated_sources: ["android.hardware.renderscript@1.0-adapter_genc++"],
149}
diff --git a/sensors/1.0/Android.bp b/sensors/1.0/Android.bp
index b2cda05d..6b67ebf5 100644
--- a/sensors/1.0/Android.bp
+++ b/sensors/1.0/Android.bp
@@ -64,3 +64,76 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.sensors@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0",
72 srcs: [
73 ":android.hardware.sensors@1.0_hal",
74 ],
75 out: [
76 "android/hardware/sensors/1.0/ASensors.cpp",
77 ],
78}
79
80genrule {
81 name: "android.hardware.sensors@1.0-adapter-helper_genc++_headers",
82 tools: ["hidl-gen"],
83 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0",
84 srcs: [
85 ":android.hardware.sensors@1.0_hal",
86 ],
87 out: [
88 "android/hardware/sensors/1.0/ASensors.h",
89 ],
90}
91
92
93cc_library {
94 name: "android.hardware.sensors@1.0-adapter-helper",
95 defaults: ["hidl-module-defaults"],
96 generated_sources: ["android.hardware.sensors@1.0-adapter-helper_genc++"],
97 generated_headers: ["android.hardware.sensors@1.0-adapter-helper_genc++_headers"],
98 export_generated_headers: ["android.hardware.sensors@1.0-adapter-helper_genc++_headers"],
99 vendor_available: true,
100 shared_libs: [
101 "libhidlbase",
102 "libhidltransport",
103 "libhwbinder",
104 "liblog",
105 "libutils",
106 "libcutils",
107 "libhidladapter",
108 "android.hardware.sensors@1.0",
109 "android.hidl.base@1.0-adapter-helper",
110 ],
111 export_shared_lib_headers: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "libutils",
116 "libhidladapter",
117 "android.hardware.sensors@1.0",
118 "android.hidl.base@1.0-adapter-helper",
119 ],
120}
121
122genrule {
123 name: "android.hardware.sensors@1.0-adapter_genc++",
124 tools: ["hidl-gen"],
125 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.sensors@1.0",
126 out: ["main.cpp"]}
127
128cc_test {
129 name: "android.hardware.sensors@1.0-adapter",
130 shared_libs: [
131 "libhidladapter",
132 "libhidlbase",
133 "libhidltransport",
134 "libutils",
135 "android.hardware.sensors@1.0",
136 "android.hardware.sensors@1.0-adapter-helper",
137 ],
138 generated_sources: ["android.hardware.sensors@1.0-adapter_genc++"],
139}
diff --git a/soundtrigger/2.0/Android.bp b/soundtrigger/2.0/Android.bp
index f45c4e27..2fb386ad 100644
--- a/soundtrigger/2.0/Android.bp
+++ b/soundtrigger/2.0/Android.bp
@@ -73,3 +73,81 @@ cc_library {
73 "android.hardware.audio.common@2.0", 73 "android.hardware.audio.common@2.0",
74 ], 74 ],
75} 75}
76
77genrule {
78 name: "android.hardware.soundtrigger@2.0-adapter-helper_genc++",
79 tools: ["hidl-gen"],
80 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.soundtrigger@2.0",
81 srcs: [
82 ":android.hardware.soundtrigger@2.0_hal",
83 ],
84 out: [
85 "android/hardware/soundtrigger/2.0/ASoundTriggerHw.cpp",
86 "android/hardware/soundtrigger/2.0/ASoundTriggerHwCallback.cpp",
87 ],
88}
89
90genrule {
91 name: "android.hardware.soundtrigger@2.0-adapter-helper_genc++_headers",
92 tools: ["hidl-gen"],
93 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.soundtrigger@2.0",
94 srcs: [
95 ":android.hardware.soundtrigger@2.0_hal",
96 ],
97 out: [
98 "android/hardware/soundtrigger/2.0/ASoundTriggerHw.h",
99 "android/hardware/soundtrigger/2.0/ASoundTriggerHwCallback.h",
100 ],
101}
102
103
104cc_library {
105 name: "android.hardware.soundtrigger@2.0-adapter-helper",
106 defaults: ["hidl-module-defaults"],
107 generated_sources: ["android.hardware.soundtrigger@2.0-adapter-helper_genc++"],
108 generated_headers: ["android.hardware.soundtrigger@2.0-adapter-helper_genc++_headers"],
109 export_generated_headers: ["android.hardware.soundtrigger@2.0-adapter-helper_genc++_headers"],
110 vendor_available: true,
111 shared_libs: [
112 "libhidlbase",
113 "libhidltransport",
114 "libhwbinder",
115 "liblog",
116 "libutils",
117 "libcutils",
118 "libhidladapter",
119 "android.hardware.audio.common@2.0",
120 "android.hardware.soundtrigger@2.0",
121 "android.hidl.base@1.0-adapter-helper",
122 ],
123 export_shared_lib_headers: [
124 "libhidlbase",
125 "libhidltransport",
126 "libhwbinder",
127 "libutils",
128 "libhidladapter",
129 "android.hardware.audio.common@2.0",
130 "android.hardware.soundtrigger@2.0",
131 "android.hidl.base@1.0-adapter-helper",
132 ],
133}
134
135genrule {
136 name: "android.hardware.soundtrigger@2.0-adapter_genc++",
137 tools: ["hidl-gen"],
138 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.soundtrigger@2.0",
139 out: ["main.cpp"]}
140
141cc_test {
142 name: "android.hardware.soundtrigger@2.0-adapter",
143 shared_libs: [
144 "libhidladapter",
145 "libhidlbase",
146 "libhidltransport",
147 "libutils",
148 "android.hardware.audio.common@2.0",
149 "android.hardware.soundtrigger@2.0",
150 "android.hardware.soundtrigger@2.0-adapter-helper",
151 ],
152 generated_sources: ["android.hardware.soundtrigger@2.0-adapter_genc++"],
153}
diff --git a/tests/bar/1.0/Android.bp b/tests/bar/1.0/Android.bp
index b6ee0423..230267ce 100644
--- a/tests/bar/1.0/Android.bp
+++ b/tests/bar/1.0/Android.bp
@@ -91,3 +91,89 @@ cc_library {
91 "android.hardware.tests.foo@1.0", 91 "android.hardware.tests.foo@1.0",
92 ], 92 ],
93} 93}
94
95genrule {
96 name: "android.hardware.tests.bar@1.0-adapter-helper_genc++",
97 tools: ["hidl-gen"],
98 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.bar@1.0",
99 srcs: [
100 ":android.hardware.tests.bar@1.0_hal",
101 ],
102 out: [
103 "android/hardware/tests/bar/1.0/ABar.cpp",
104 "android/hardware/tests/bar/1.0/AComplicated.cpp",
105 "android/hardware/tests/bar/1.0/AFooCallback.cpp",
106 "android/hardware/tests/bar/1.0/AImportRules.cpp",
107 "android/hardware/tests/bar/1.0/AImportTypes.cpp",
108 ],
109}
110
111genrule {
112 name: "android.hardware.tests.bar@1.0-adapter-helper_genc++_headers",
113 tools: ["hidl-gen"],
114 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.bar@1.0",
115 srcs: [
116 ":android.hardware.tests.bar@1.0_hal",
117 ],
118 out: [
119 "android/hardware/tests/bar/1.0/ABar.h",
120 "android/hardware/tests/bar/1.0/AComplicated.h",
121 "android/hardware/tests/bar/1.0/AFooCallback.h",
122 "android/hardware/tests/bar/1.0/AImportRules.h",
123 "android/hardware/tests/bar/1.0/AImportTypes.h",
124 ],
125}
126
127
128cc_library {
129 name: "android.hardware.tests.bar@1.0-adapter-helper",
130 defaults: ["hidl-module-defaults"],
131 generated_sources: ["android.hardware.tests.bar@1.0-adapter-helper_genc++"],
132 generated_headers: ["android.hardware.tests.bar@1.0-adapter-helper_genc++_headers"],
133 export_generated_headers: ["android.hardware.tests.bar@1.0-adapter-helper_genc++_headers"],
134 vendor_available: true,
135 shared_libs: [
136 "libhidlbase",
137 "libhidltransport",
138 "libhwbinder",
139 "liblog",
140 "libutils",
141 "libcutils",
142 "libhidladapter",
143 "android.hardware.tests.bar@1.0",
144 "android.hardware.tests.foo@1.0",
145 "android.hardware.tests.foo@1.0-adapter-helper",
146 "android.hidl.base@1.0-adapter-helper",
147 ],
148 export_shared_lib_headers: [
149 "libhidlbase",
150 "libhidltransport",
151 "libhwbinder",
152 "libutils",
153 "libhidladapter",
154 "android.hardware.tests.bar@1.0",
155 "android.hardware.tests.foo@1.0",
156 "android.hardware.tests.foo@1.0-adapter-helper",
157 "android.hidl.base@1.0-adapter-helper",
158 ],
159}
160
161genrule {
162 name: "android.hardware.tests.bar@1.0-adapter_genc++",
163 tools: ["hidl-gen"],
164 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.bar@1.0",
165 out: ["main.cpp"]}
166
167cc_test {
168 name: "android.hardware.tests.bar@1.0-adapter",
169 shared_libs: [
170 "libhidladapter",
171 "libhidlbase",
172 "libhidltransport",
173 "libutils",
174 "android.hardware.tests.bar@1.0",
175 "android.hardware.tests.foo@1.0",
176 "android.hardware.tests.bar@1.0-adapter-helper",
177 ],
178 generated_sources: ["android.hardware.tests.bar@1.0-adapter_genc++"],
179}
diff --git a/tests/baz/1.0/Android.bp b/tests/baz/1.0/Android.bp
index ef681499..a0a4f602 100644
--- a/tests/baz/1.0/Android.bp
+++ b/tests/baz/1.0/Android.bp
@@ -82,3 +82,82 @@ cc_library {
82 "libutils", 82 "libutils",
83 ], 83 ],
84} 84}
85
86genrule {
87 name: "android.hardware.tests.baz@1.0-adapter-helper_genc++",
88 tools: ["hidl-gen"],
89 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.baz@1.0",
90 srcs: [
91 ":android.hardware.tests.baz@1.0_hal",
92 ],
93 out: [
94 "android/hardware/tests/baz/1.0/ABase.cpp",
95 "android/hardware/tests/baz/1.0/ABaz.cpp",
96 "android/hardware/tests/baz/1.0/ABazCallback.cpp",
97 "android/hardware/tests/baz/1.0/AQuux.cpp",
98 ],
99}
100
101genrule {
102 name: "android.hardware.tests.baz@1.0-adapter-helper_genc++_headers",
103 tools: ["hidl-gen"],
104 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.baz@1.0",
105 srcs: [
106 ":android.hardware.tests.baz@1.0_hal",
107 ],
108 out: [
109 "android/hardware/tests/baz/1.0/ABase.h",
110 "android/hardware/tests/baz/1.0/ABaz.h",
111 "android/hardware/tests/baz/1.0/ABazCallback.h",
112 "android/hardware/tests/baz/1.0/AQuux.h",
113 ],
114}
115
116
117cc_library {
118 name: "android.hardware.tests.baz@1.0-adapter-helper",
119 defaults: ["hidl-module-defaults"],
120 generated_sources: ["android.hardware.tests.baz@1.0-adapter-helper_genc++"],
121 generated_headers: ["android.hardware.tests.baz@1.0-adapter-helper_genc++_headers"],
122 export_generated_headers: ["android.hardware.tests.baz@1.0-adapter-helper_genc++_headers"],
123 vendor_available: true,
124 shared_libs: [
125 "libhidlbase",
126 "libhidltransport",
127 "libhwbinder",
128 "liblog",
129 "libutils",
130 "libcutils",
131 "libhidladapter",
132 "android.hardware.tests.baz@1.0",
133 "android.hidl.base@1.0-adapter-helper",
134 ],
135 export_shared_lib_headers: [
136 "libhidlbase",
137 "libhidltransport",
138 "libhwbinder",
139 "libutils",
140 "libhidladapter",
141 "android.hardware.tests.baz@1.0",
142 "android.hidl.base@1.0-adapter-helper",
143 ],
144}
145
146genrule {
147 name: "android.hardware.tests.baz@1.0-adapter_genc++",
148 tools: ["hidl-gen"],
149 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.baz@1.0",
150 out: ["main.cpp"]}
151
152cc_test {
153 name: "android.hardware.tests.baz@1.0-adapter",
154 shared_libs: [
155 "libhidladapter",
156 "libhidlbase",
157 "libhidltransport",
158 "libutils",
159 "android.hardware.tests.baz@1.0",
160 "android.hardware.tests.baz@1.0-adapter-helper",
161 ],
162 generated_sources: ["android.hardware.tests.baz@1.0-adapter_genc++"],
163}
diff --git a/tests/expression/1.0/Android.bp b/tests/expression/1.0/Android.bp
index bc389b0a..dc0e5a82 100644
--- a/tests/expression/1.0/Android.bp
+++ b/tests/expression/1.0/Android.bp
@@ -64,3 +64,78 @@ cc_library {
64 "libutils", 64 "libutils",
65 ], 65 ],
66} 66}
67
68genrule {
69 name: "android.hardware.tests.expression@1.0-adapter-helper_genc++",
70 tools: ["hidl-gen"],
71 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.expression@1.0",
72 srcs: [
73 ":android.hardware.tests.expression@1.0_hal",
74 ],
75 out: [
76 "android/hardware/tests/expression/1.0/AExpression.cpp",
77 "android/hardware/tests/expression/1.0/AExpressionExt.cpp",
78 ],
79}
80
81genrule {
82 name: "android.hardware.tests.expression@1.0-adapter-helper_genc++_headers",
83 tools: ["hidl-gen"],
84 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.expression@1.0",
85 srcs: [
86 ":android.hardware.tests.expression@1.0_hal",
87 ],
88 out: [
89 "android/hardware/tests/expression/1.0/AExpression.h",
90 "android/hardware/tests/expression/1.0/AExpressionExt.h",
91 ],
92}
93
94
95cc_library {
96 name: "android.hardware.tests.expression@1.0-adapter-helper",
97 defaults: ["hidl-module-defaults"],
98 generated_sources: ["android.hardware.tests.expression@1.0-adapter-helper_genc++"],
99 generated_headers: ["android.hardware.tests.expression@1.0-adapter-helper_genc++_headers"],
100 export_generated_headers: ["android.hardware.tests.expression@1.0-adapter-helper_genc++_headers"],
101 vendor_available: true,
102 shared_libs: [
103 "libhidlbase",
104 "libhidltransport",
105 "libhwbinder",
106 "liblog",
107 "libutils",
108 "libcutils",
109 "libhidladapter",
110 "android.hardware.tests.expression@1.0",
111 "android.hidl.base@1.0-adapter-helper",
112 ],
113 export_shared_lib_headers: [
114 "libhidlbase",
115 "libhidltransport",
116 "libhwbinder",
117 "libutils",
118 "libhidladapter",
119 "android.hardware.tests.expression@1.0",
120 "android.hidl.base@1.0-adapter-helper",
121 ],
122}
123
124genrule {
125 name: "android.hardware.tests.expression@1.0-adapter_genc++",
126 tools: ["hidl-gen"],
127 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.expression@1.0",
128 out: ["main.cpp"]}
129
130cc_test {
131 name: "android.hardware.tests.expression@1.0-adapter",
132 shared_libs: [
133 "libhidladapter",
134 "libhidlbase",
135 "libhidltransport",
136 "libutils",
137 "android.hardware.tests.expression@1.0",
138 "android.hardware.tests.expression@1.0-adapter-helper",
139 ],
140 generated_sources: ["android.hardware.tests.expression@1.0-adapter_genc++"],
141}
diff --git a/tests/extension/light/2.0/Android.bp b/tests/extension/light/2.0/Android.bp
index c5987a77..3c1b5eca 100644
--- a/tests/extension/light/2.0/Android.bp
+++ b/tests/extension/light/2.0/Android.bp
@@ -63,3 +63,81 @@ cc_library {
63 "android.hardware.light@2.0", 63 "android.hardware.light@2.0",
64 ], 64 ],
65} 65}
66
67genrule {
68 name: "android.hardware.tests.extension.light@2.0-adapter-helper_genc++",
69 tools: ["hidl-gen"],
70 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.extension.light@2.0",
71 srcs: [
72 ":android.hardware.tests.extension.light@2.0_hal",
73 ],
74 out: [
75 "android/hardware/tests/extension/light/2.0/AExtLight.cpp",
76 ],
77}
78
79genrule {
80 name: "android.hardware.tests.extension.light@2.0-adapter-helper_genc++_headers",
81 tools: ["hidl-gen"],
82 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.extension.light@2.0",
83 srcs: [
84 ":android.hardware.tests.extension.light@2.0_hal",
85 ],
86 out: [
87 "android/hardware/tests/extension/light/2.0/AExtLight.h",
88 ],
89}
90
91
92cc_library {
93 name: "android.hardware.tests.extension.light@2.0-adapter-helper",
94 defaults: ["hidl-module-defaults"],
95 generated_sources: ["android.hardware.tests.extension.light@2.0-adapter-helper_genc++"],
96 generated_headers: ["android.hardware.tests.extension.light@2.0-adapter-helper_genc++_headers"],
97 export_generated_headers: ["android.hardware.tests.extension.light@2.0-adapter-helper_genc++_headers"],
98 vendor_available: true,
99 shared_libs: [
100 "libhidlbase",
101 "libhidltransport",
102 "libhwbinder",
103 "liblog",
104 "libutils",
105 "libcutils",
106 "libhidladapter",
107 "android.hardware.light@2.0",
108 "android.hardware.tests.extension.light@2.0",
109 "android.hardware.light@2.0-adapter-helper",
110 "android.hidl.base@1.0-adapter-helper",
111 ],
112 export_shared_lib_headers: [
113 "libhidlbase",
114 "libhidltransport",
115 "libhwbinder",
116 "libutils",
117 "libhidladapter",
118 "android.hardware.light@2.0",
119 "android.hardware.tests.extension.light@2.0",
120 "android.hardware.light@2.0-adapter-helper",
121 "android.hidl.base@1.0-adapter-helper",
122 ],
123}
124
125genrule {
126 name: "android.hardware.tests.extension.light@2.0-adapter_genc++",
127 tools: ["hidl-gen"],
128 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.extension.light@2.0",
129 out: ["main.cpp"]}
130
131cc_test {
132 name: "android.hardware.tests.extension.light@2.0-adapter",
133 shared_libs: [
134 "libhidladapter",
135 "libhidlbase",
136 "libhidltransport",
137 "libutils",
138 "android.hardware.light@2.0",
139 "android.hardware.tests.extension.light@2.0",
140 "android.hardware.tests.extension.light@2.0-adapter-helper",
141 ],
142 generated_sources: ["android.hardware.tests.extension.light@2.0-adapter_genc++"],
143}
diff --git a/tests/foo/1.0/Android.bp b/tests/foo/1.0/Android.bp
index 63879504..0d2d1475 100644
--- a/tests/foo/1.0/Android.bp
+++ b/tests/foo/1.0/Android.bp
@@ -89,3 +89,84 @@ cc_library {
89 "libutils", 89 "libutils",
90 ], 90 ],
91} 91}
92
93genrule {
94 name: "android.hardware.tests.foo@1.0-adapter-helper_genc++",
95 tools: ["hidl-gen"],
96 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.foo@1.0",
97 srcs: [
98 ":android.hardware.tests.foo@1.0_hal",
99 ],
100 out: [
101 "android/hardware/tests/foo/1.0/AFoo.cpp",
102 "android/hardware/tests/foo/1.0/AFooCallback.cpp",
103 "android/hardware/tests/foo/1.0/AMyTypes.cpp",
104 "android/hardware/tests/foo/1.0/ASimple.cpp",
105 "android/hardware/tests/foo/1.0/ATheirTypes.cpp",
106 ],
107}
108
109genrule {
110 name: "android.hardware.tests.foo@1.0-adapter-helper_genc++_headers",
111 tools: ["hidl-gen"],
112 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.foo@1.0",
113 srcs: [
114 ":android.hardware.tests.foo@1.0_hal",
115 ],
116 out: [
117 "android/hardware/tests/foo/1.0/AFoo.h",
118 "android/hardware/tests/foo/1.0/AFooCallback.h",
119 "android/hardware/tests/foo/1.0/AMyTypes.h",
120 "android/hardware/tests/foo/1.0/ASimple.h",
121 "android/hardware/tests/foo/1.0/ATheirTypes.h",
122 ],
123}
124
125
126cc_library {
127 name: "android.hardware.tests.foo@1.0-adapter-helper",
128 defaults: ["hidl-module-defaults"],
129 generated_sources: ["android.hardware.tests.foo@1.0-adapter-helper_genc++"],
130 generated_headers: ["android.hardware.tests.foo@1.0-adapter-helper_genc++_headers"],
131 export_generated_headers: ["android.hardware.tests.foo@1.0-adapter-helper_genc++_headers"],
132 vendor_available: true,
133 shared_libs: [
134 "libhidlbase",
135 "libhidltransport",
136 "libhwbinder",
137 "liblog",
138 "libutils",
139 "libcutils",
140 "libhidladapter",
141 "android.hardware.tests.foo@1.0",
142 "android.hidl.base@1.0-adapter-helper",
143 ],
144 export_shared_lib_headers: [
145 "libhidlbase",
146 "libhidltransport",
147 "libhwbinder",
148 "libutils",
149 "libhidladapter",
150 "android.hardware.tests.foo@1.0",
151 "android.hidl.base@1.0-adapter-helper",
152 ],
153}
154
155genrule {
156 name: "android.hardware.tests.foo@1.0-adapter_genc++",
157 tools: ["hidl-gen"],
158 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.foo@1.0",
159 out: ["main.cpp"]}
160
161cc_test {
162 name: "android.hardware.tests.foo@1.0-adapter",
163 shared_libs: [
164 "libhidladapter",
165 "libhidlbase",
166 "libhidltransport",
167 "libutils",
168 "android.hardware.tests.foo@1.0",
169 "android.hardware.tests.foo@1.0-adapter-helper",
170 ],
171 generated_sources: ["android.hardware.tests.foo@1.0-adapter_genc++"],
172}
diff --git a/tests/hash/1.0/Android.bp b/tests/hash/1.0/Android.bp
index 505a4ad5..96af83b9 100644
--- a/tests/hash/1.0/Android.bp
+++ b/tests/hash/1.0/Android.bp
@@ -57,3 +57,76 @@ cc_library {
57 "libutils", 57 "libutils",
58 ], 58 ],
59} 59}
60
61genrule {
62 name: "android.hardware.tests.hash@1.0-adapter-helper_genc++",
63 tools: ["hidl-gen"],
64 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.hash@1.0",
65 srcs: [
66 ":android.hardware.tests.hash@1.0_hal",
67 ],
68 out: [
69 "android/hardware/tests/hash/1.0/AHash.cpp",
70 ],
71}
72
73genrule {
74 name: "android.hardware.tests.hash@1.0-adapter-helper_genc++_headers",
75 tools: ["hidl-gen"],
76 cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tests.hash@1.0",
77 srcs: [
78 ":android.hardware.tests.hash@1.0_hal",
79 ],
80 out: [
81 "android/hardware/tests/hash/1.0/AHash.h",
82 ],
83}
84
85
86cc_library {
87 name: "android.hardware.tests.hash@1.0-adapter-helper",
88 defaults: ["hidl-module-defaults"],
89 generated_sources: ["android.hardware.tests.hash@1.0-adapter-helper_genc++"],
90 generated_headers: ["android.hardware.tests.hash@1.0-adapter-helper_genc++_headers"],
91 export_generated_headers: ["android.hardware.tests.hash@1.0-adapter-helper_genc++_headers"],
92 vendor_available: true,
93 shared_libs: [
94 "libhidlbase",
95 "libhidltransport",
96 "libhwbinder",
97 "liblog",
98 "libutils",
99 "libcutils",
100 "libhidladapter",
101 "android.hardware.tests.hash@1.0",
102 "android.hidl.base@1.0-adapter-helper",
103 ],
104 export_shared_lib_headers: [
105 "libhidlbase",
106 "libhidltransport",
107 "libhwbinder",
108 "libutils",
109 "libhidladapter",
110 "android.hardware.tests.hash@1.0",
111 "android.hidl.base@1.0-adapter-helper",
112 ],