OSDN Git Service

Revert "Audio V4: Split system and vendor Audio.h"
authorKevin Rocard <krocard@google.com>
Wed, 24 Jan 2018 06:09:44 +0000 (06:09 +0000)
committerKevin Rocard <krocard@google.com>
Wed, 24 Jan 2018 06:09:44 +0000 (06:09 +0000)
This reverts commit 6f04dc59644eaaf8e38fbc5c57578d3216db3adb.

Reason for revert: Breaks multiple devices

Change-Id: I7d447b196b71f72918d94716ba5f16e0ad21db06

18 files changed:
alsa_utils/Android.bp
alsa_utils/alsa_device_profile.c
alsa_utils/include/alsa_format.h
audio/Android.bp
audio_effects/Android.bp [new file with mode: 0644]
audio_effects/include/audio_effects/effect_aec.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_agc.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_bassboost.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_downmix.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_environmentalreverb.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_equalizer.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_loudnessenhancer.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_ns.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_presetreverb.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_virtualizer.h [new file with mode: 0644]
audio_effects/include/audio_effects/effect_visualizer.h [new file with mode: 0644]
audio_utils/Android.bp
audio_utils/tests/Android.bp

index 0d1eb3e..db6beb1 100644 (file)
@@ -23,10 +23,10 @@ cc_library_shared {
     ],
     export_include_dirs: ["include"],
     header_libs: [
-        "android.hardware.audio.common.legacy@2.0",
+        "libaudio_system_headers",
     ],
     export_header_lib_headers: [
-        "android.hardware.audio.common.legacy@2.0",
+        "libaudio_system_headers",
     ],
     shared_libs: [
         "liblog",
index 9f37c9c..10ab3e4 100644 (file)
@@ -22,7 +22,6 @@
 #include <inttypes.h>
 #include <stdint.h>
 #include <stdlib.h>
-#include <string.h>
 #include <cutils/properties.h>
 
 #include <log/log.h>
index f330f4e..e07f836 100644 (file)
@@ -17,6 +17,7 @@
 #ifndef ANDROID_SYSTEM_MEDIA_ALSA_UTILS_ALSA_FORMAT_H
 #define ANDROID_SYSTEM_MEDIA_ALSA_UTILS_ALSA_FORMAT_H
 
+#include <system/audio.h>
 
 #include <tinyalsa/asoundlib.h>
 
index ae8d344..1e9e569 100644 (file)
@@ -1,6 +1,7 @@
 cc_library_headers {
     name: "libaudio_system_headers",
     host_supported: true,
+    vendor_available: true,
 
     header_libs: ["libcutils_headers"],
     export_header_lib_headers: ["libcutils_headers"],
diff --git a/audio_effects/Android.bp b/audio_effects/Android.bp
new file mode 100644 (file)
index 0000000..78d2abe
--- /dev/null
@@ -0,0 +1,7 @@
+cc_library_headers {
+    name: "libaudioeffects",
+    vendor_available: true,
+    header_libs: ["libhardware_headers"],
+    export_header_lib_headers: ["libhardware_headers"],
+    export_include_dirs: ["include"],
+}
diff --git a/audio_effects/include/audio_effects/effect_aec.h b/audio_effects/include/audio_effects/effect_aec.h
new file mode 100644 (file)
index 0000000..f48749a
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_AEC_H_
+#define ANDROID_EFFECT_AEC_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_aec.h>
+
+#endif /*ANDROID_EFFECT_AEC_H_*/
diff --git a/audio_effects/include/audio_effects/effect_agc.h b/audio_effects/include/audio_effects/effect_agc.h
new file mode 100644 (file)
index 0000000..466ea96
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_AGC_H_
+#define ANDROID_EFFECT_AGC_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_agc.h>
+
+#endif /*ANDROID_EFFECT_AGC_H_*/
diff --git a/audio_effects/include/audio_effects/effect_bassboost.h b/audio_effects/include/audio_effects/effect_bassboost.h
new file mode 100644 (file)
index 0000000..157452e
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_BASSBOOST_H_
+#define ANDROID_EFFECT_BASSBOOST_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_bassboost.h>
+
+#endif /*ANDROID_EFFECT_BASSBOOST_H_*/
diff --git a/audio_effects/include/audio_effects/effect_downmix.h b/audio_effects/include/audio_effects/effect_downmix.h
new file mode 100644 (file)
index 0000000..26b849b
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2012 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_DOWNMIX_H_
+#define ANDROID_EFFECT_DOWNMIX_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_downmix.h>
+
+#endif /*ANDROID_EFFECT_DOWNMIX_H_*/
diff --git a/audio_effects/include/audio_effects/effect_environmentalreverb.h b/audio_effects/include/audio_effects/effect_environmentalreverb.h
new file mode 100644 (file)
index 0000000..dd474c2
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_ENVIRONMENTALREVERB_H_
+#define ANDROID_EFFECT_ENVIRONMENTALREVERB_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_environmentalreverb.h>
+
+#endif /*ANDROID_EFFECT_ENVIRONMENTALREVERB_H_*/
diff --git a/audio_effects/include/audio_effects/effect_equalizer.h b/audio_effects/include/audio_effects/effect_equalizer.h
new file mode 100644 (file)
index 0000000..3059ec2
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_EQUALIZER_H_
+#define ANDROID_EFFECT_EQUALIZER_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_equalizer.h>
+
+#endif /*ANDROID_EFFECT_EQUALIZER_H_*/
diff --git a/audio_effects/include/audio_effects/effect_loudnessenhancer.h b/audio_effects/include/audio_effects/effect_loudnessenhancer.h
new file mode 100644 (file)
index 0000000..f37ba45
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2013 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_LOUDNESS_ENHANCER_H_
+#define ANDROID_EFFECT_LOUDNESS_ENHANCER_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_loudnessenhancer.h>
+
+#endif /*ANDROID_EFFECT_LOUDNESS_ENHANCER_H_*/
diff --git a/audio_effects/include/audio_effects/effect_ns.h b/audio_effects/include/audio_effects/effect_ns.h
new file mode 100644 (file)
index 0000000..3bd8a41
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_NS_H_
+#define ANDROID_EFFECT_NS_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_ns.h>
+
+#endif /*ANDROID_EFFECT_NS_H_*/
diff --git a/audio_effects/include/audio_effects/effect_presetreverb.h b/audio_effects/include/audio_effects/effect_presetreverb.h
new file mode 100644 (file)
index 0000000..eac1f5f
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_PRESETREVERB_H_
+#define ANDROID_EFFECT_PRESETREVERB_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_presetreverb.h>
+
+#endif /*ANDROID_EFFECT_PRESETREVERB_H_*/
diff --git a/audio_effects/include/audio_effects/effect_virtualizer.h b/audio_effects/include/audio_effects/effect_virtualizer.h
new file mode 100644 (file)
index 0000000..aeecfa5
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_VIRTUALIZER_H_
+#define ANDROID_EFFECT_VIRTUALIZER_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_virtualizer.h>
+
+#endif /*ANDROID_EFFECT_VIRTUALIZER_H_*/
diff --git a/audio_effects/include/audio_effects/effect_visualizer.h b/audio_effects/include/audio_effects/effect_visualizer.h
new file mode 100644 (file)
index 0000000..47217e7
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2011 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * USAGE NOTE: Only include this header when _implementing_ a particular
+ * effect. When access to UUID and properties is enough, include the
+ * corresponding header from system/audio_effects/, which doesn't include
+ * hardware/audio_effect.h.
+ *
+ * Only code that immediately calls into HAL or implements an effect
+ * can import hardware/audio_effect.h.
+ */
+
+#ifndef ANDROID_EFFECT_VISUALIZER_H_
+#define ANDROID_EFFECT_VISUALIZER_H_
+
+#include <hardware/audio_effect.h>
+#include <system/audio_effects/effect_visualizer.h>
+
+#endif /*ANDROID_EFFECT_VISUALIZER_H_*/
index 105078c..bab4b48 100644 (file)
@@ -12,8 +12,13 @@ cc_defaults {
     ],
 }
 
-cc_defaults {
-    name: "libaudioutils_default",
+cc_library {
+    name: "libaudioutils",
+    vendor_available: true,
+    vndk: {
+        enabled: true,
+    },
+    host_supported: true,
     defaults: ["audio_utils_defaults"],
 
     srcs: [
@@ -32,10 +37,12 @@ cc_defaults {
     ],
 
     header_libs: [
+        "libaudio_system_headers",
         "libutils_headers",
     ],
 
     export_header_lib_headers: [
+        "libaudio_system_headers",
         "libutils_headers",
     ],
 
@@ -61,28 +68,6 @@ cc_defaults {
         },
     },
 }
-cc_library {
-    name: "libaudioutils_system",
-    host_supported: true,
-    defaults: ["libaudioutils_default"],
-    header_libs: [
-        "libaudio_system_headers",
-    ],
-    export_header_lib_headers: [
-        "libaudio_system_headers",
-    ],
-}
-cc_library {
-    name: "libaudioutils",
-    vendor: true,
-    defaults: ["libaudioutils_default"],
-    header_libs: [
-        "android.hardware.audio.common.legacy@2.0",
-    ],
-    export_header_lib_headers: [
-        "android.hardware.audio.common.legacy@2.0",
-    ],
-}
 
 cc_library_static {
     name: "libaudioutils_fixedfft",
index 40877b8..8eec07c 100644 (file)
@@ -15,10 +15,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }
@@ -39,7 +39,7 @@ cc_binary {
     ],
     static_libs: [
         "libgoogle-benchmark",
-        "libaudioutils_system",
+        "libaudioutils",
     ],
 }
 
@@ -47,7 +47,7 @@ cc_binary {
     name: "fifo_tests",
     host_supported: true,
     srcs: ["fifo_tests.cpp"],
-    shared_libs: ["libaudioutils_system"],
+    shared_libs: ["libaudioutils"],
     static_libs: ["libsndfile"],
     cflags: [
         "-Werror",
@@ -59,7 +59,7 @@ cc_binary {
     name: "fifo_multiprocess",
     host_supported: false,
     srcs: ["fifo_multiprocess.cpp"],
-    shared_libs: ["libaudioutils_system", "libcutils"],
+    shared_libs: ["libaudioutils", "libcutils"],
     static_libs: ["libsndfile"],
     cflags: [
         "-Werror",
@@ -75,7 +75,7 @@ cc_binary_host {
         "getch.c",
     ],
     static_libs: [
-        "libaudioutils_system",
+        "libaudioutils",
         "liblog",
     ],
     cflags: [
@@ -87,7 +87,7 @@ cc_binary_host {
 cc_binary_host {
     name: "limiter_tests",
     srcs: ["limiter_tests.c"],
-    static_libs: ["libaudioutils_system"],
+    static_libs: ["libaudioutils"],
     cflags: [
         "-Werror",
         "-Wall",
@@ -111,10 +111,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }
@@ -135,10 +135,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }
@@ -159,10 +159,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }
@@ -183,10 +183,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }
@@ -206,10 +206,10 @@ cc_test {
     ],
     target: {
         android: {
-            shared_libs: ["libaudioutils_system"],
+            shared_libs: ["libaudioutils"],
         },
         host: {
-            static_libs: ["libaudioutils_system"],
+            static_libs: ["libaudioutils"],
         },
     }
 }