Improve implementation of call recording tone
Instead of using a 15-second audio file to play the call recording tone,
clip out the silence in the audio and play it once every 15 seconds.
Also start using mockito-target-extended in Telecom's unit tests so we
can mock out MediaPlayer.
Test: atest CallRecordingTonePlayerTest
Bug: 157948346
Change-Id: I7c3429733bbc7d48e29be12a72c7f15b38699ae6
diff --git a/Android.bp b/Android.bp
index 94a6f9d..0d89b00 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,7 +41,7 @@
static_libs: [
"android-ex-camera2",
"guava",
- "mockito-target-inline",
+ "mockito-target-extended",
"androidx.test.rules",
"platform-test-annotations",
"androidx.legacy_legacy-support-core-ui",
@@ -70,7 +70,10 @@
"android.test.runner",
],
- jni_libs: ["libdexmakerjvmtiagent"],
+ jni_libs: [
+ "libdexmakerjvmtiagent",
+ "libstaticjvmtiagent",
+ ],
aaptflags: [
"--auto-add-overlay",