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

filegroup {
    name: "android.hardware.audio.effect@2.0_hal",
    srcs: [
        "types.hal",
        "IAcousticEchoCancelerEffect.hal",
        "IAutomaticGainControlEffect.hal",
        "IBassBoostEffect.hal",
        "IDownmixEffect.hal",
        "IEffect.hal",
        "IEffectBufferProviderCallback.hal",
        "IEffectsFactory.hal",
        "IEnvironmentalReverbEffect.hal",
        "IEqualizerEffect.hal",
        "ILoudnessEnhancerEffect.hal",
        "INoiseSuppressionEffect.hal",
        "IPresetReverbEffect.hal",
        "IVirtualizerEffect.hal",
        "IVisualizerEffect.hal",
    ],
}

genrule {
    name: "android.hardware.audio.effect@2.0_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
    srcs: [
        ":android.hardware.audio.effect@2.0_hal",
    ],
    out: [
        "android/hardware/audio/effect/2.0/types.cpp",
        "android/hardware/audio/effect/2.0/AcousticEchoCancelerEffectAll.cpp",
        "android/hardware/audio/effect/2.0/AutomaticGainControlEffectAll.cpp",
        "android/hardware/audio/effect/2.0/BassBoostEffectAll.cpp",
        "android/hardware/audio/effect/2.0/DownmixEffectAll.cpp",
        "android/hardware/audio/effect/2.0/EffectAll.cpp",
        "android/hardware/audio/effect/2.0/EffectBufferProviderCallbackAll.cpp",
        "android/hardware/audio/effect/2.0/EffectsFactoryAll.cpp",
        "android/hardware/audio/effect/2.0/EnvironmentalReverbEffectAll.cpp",
        "android/hardware/audio/effect/2.0/EqualizerEffectAll.cpp",
        "android/hardware/audio/effect/2.0/LoudnessEnhancerEffectAll.cpp",
        "android/hardware/audio/effect/2.0/NoiseSuppressionEffectAll.cpp",
        "android/hardware/audio/effect/2.0/PresetReverbEffectAll.cpp",
        "android/hardware/audio/effect/2.0/VirtualizerEffectAll.cpp",
        "android/hardware/audio/effect/2.0/VisualizerEffectAll.cpp",
    ],
}

genrule {
    name: "android.hardware.audio.effect@2.0_genc++_headers",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
    srcs: [
        ":android.hardware.audio.effect@2.0_hal",
    ],
    out: [
        "android/hardware/audio/effect/2.0/types.h",
        "android/hardware/audio/effect/2.0/hwtypes.h",
        "android/hardware/audio/effect/2.0/IAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/IHwAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/BnHwAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/BpHwAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/BsAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/IAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/IHwAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/BnHwAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/BpHwAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/BsAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/IBassBoostEffect.h",
        "android/hardware/audio/effect/2.0/IHwBassBoostEffect.h",
        "android/hardware/audio/effect/2.0/BnHwBassBoostEffect.h",
        "android/hardware/audio/effect/2.0/BpHwBassBoostEffect.h",
        "android/hardware/audio/effect/2.0/BsBassBoostEffect.h",
        "android/hardware/audio/effect/2.0/IDownmixEffect.h",
        "android/hardware/audio/effect/2.0/IHwDownmixEffect.h",
        "android/hardware/audio/effect/2.0/BnHwDownmixEffect.h",
        "android/hardware/audio/effect/2.0/BpHwDownmixEffect.h",
        "android/hardware/audio/effect/2.0/BsDownmixEffect.h",
        "android/hardware/audio/effect/2.0/IEffect.h",
        "android/hardware/audio/effect/2.0/IHwEffect.h",
        "android/hardware/audio/effect/2.0/BnHwEffect.h",
        "android/hardware/audio/effect/2.0/BpHwEffect.h",
        "android/hardware/audio/effect/2.0/BsEffect.h",
        "android/hardware/audio/effect/2.0/IEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/IHwEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/BnHwEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/BpHwEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/BsEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/IEffectsFactory.h",
        "android/hardware/audio/effect/2.0/IHwEffectsFactory.h",
        "android/hardware/audio/effect/2.0/BnHwEffectsFactory.h",
        "android/hardware/audio/effect/2.0/BpHwEffectsFactory.h",
        "android/hardware/audio/effect/2.0/BsEffectsFactory.h",
        "android/hardware/audio/effect/2.0/IEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/IHwEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/BnHwEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/BpHwEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/BsEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/IEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/IHwEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/BnHwEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/BpHwEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/BsEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/ILoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/IHwLoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/BnHwLoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/BpHwLoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/BsLoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/INoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/IHwNoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/BnHwNoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/BpHwNoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/BsNoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/IPresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/IHwPresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/BnHwPresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/BpHwPresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/BsPresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/IVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/IHwVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/BnHwVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/BpHwVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/BsVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/IVisualizerEffect.h",
        "android/hardware/audio/effect/2.0/IHwVisualizerEffect.h",
        "android/hardware/audio/effect/2.0/BnHwVisualizerEffect.h",
        "android/hardware/audio/effect/2.0/BpHwVisualizerEffect.h",
        "android/hardware/audio/effect/2.0/BsVisualizerEffect.h",
    ],
}

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

genrule {
    name: "android.hardware.audio.effect@2.0-adapter-helper_genc++",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
    srcs: [
        ":android.hardware.audio.effect@2.0_hal",
    ],
    out: [
        "android/hardware/audio/effect/2.0/AAcousticEchoCancelerEffect.cpp",
        "android/hardware/audio/effect/2.0/AAutomaticGainControlEffect.cpp",
        "android/hardware/audio/effect/2.0/ABassBoostEffect.cpp",
        "android/hardware/audio/effect/2.0/ADownmixEffect.cpp",
        "android/hardware/audio/effect/2.0/AEffect.cpp",
        "android/hardware/audio/effect/2.0/AEffectBufferProviderCallback.cpp",
        "android/hardware/audio/effect/2.0/AEffectsFactory.cpp",
        "android/hardware/audio/effect/2.0/AEnvironmentalReverbEffect.cpp",
        "android/hardware/audio/effect/2.0/AEqualizerEffect.cpp",
        "android/hardware/audio/effect/2.0/ALoudnessEnhancerEffect.cpp",
        "android/hardware/audio/effect/2.0/ANoiseSuppressionEffect.cpp",
        "android/hardware/audio/effect/2.0/APresetReverbEffect.cpp",
        "android/hardware/audio/effect/2.0/AVirtualizerEffect.cpp",
        "android/hardware/audio/effect/2.0/AVisualizerEffect.cpp",
    ],
}

genrule {
    name: "android.hardware.audio.effect@2.0-adapter-helper_genc++_headers",
    tools: ["hidl-gen"],
    cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.audio.effect@2.0",
    srcs: [
        ":android.hardware.audio.effect@2.0_hal",
    ],
    out: [
        "android/hardware/audio/effect/2.0/AAcousticEchoCancelerEffect.h",
        "android/hardware/audio/effect/2.0/AAutomaticGainControlEffect.h",
        "android/hardware/audio/effect/2.0/ABassBoostEffect.h",
        "android/hardware/audio/effect/2.0/ADownmixEffect.h",
        "android/hardware/audio/effect/2.0/AEffect.h",
        "android/hardware/audio/effect/2.0/AEffectBufferProviderCallback.h",
        "android/hardware/audio/effect/2.0/AEffectsFactory.h",
        "android/hardware/audio/effect/2.0/AEnvironmentalReverbEffect.h",
        "android/hardware/audio/effect/2.0/AEqualizerEffect.h",
        "android/hardware/audio/effect/2.0/ALoudnessEnhancerEffect.h",
        "android/hardware/audio/effect/2.0/ANoiseSuppressionEffect.h",
        "android/hardware/audio/effect/2.0/APresetReverbEffect.h",
        "android/hardware/audio/effect/2.0/AVirtualizerEffect.h",
        "android/hardware/audio/effect/2.0/AVisualizerEffect.h",
    ],
}


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

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

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