From c1d95aad1a030fb72feaf70d03a3535c403e69dd Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Fri, 11 May 2018 17:14:08 -0700 Subject: [PATCH] Add CallAudioState ctor as TestApi Needed for CTS testing Bug: 79528185 Test: CTS Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220 --- api/test-current.txt | 8 ++++++++ telecomm/java/android/telecom/CallAudioState.java | 2 ++ 2 files changed, 10 insertions(+) diff --git a/api/test-current.txt b/api/test-current.txt index 5cffd0e1b3b7..0fae01194417 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -897,6 +897,14 @@ package android.service.quicksettings { } +package android.telecom { + + public final class CallAudioState implements android.os.Parcelable { + ctor public CallAudioState(boolean, int, int, android.bluetooth.BluetoothDevice, java.util.Collection); + } + +} + package android.telephony { public class MbmsDownloadSession implements java.lang.AutoCloseable { diff --git a/telecomm/java/android/telecom/CallAudioState.java b/telecomm/java/android/telecom/CallAudioState.java index 4b827d2e29a2..e33ba7e3b971 100644 --- a/telecomm/java/android/telecom/CallAudioState.java +++ b/telecomm/java/android/telecom/CallAudioState.java @@ -19,6 +19,7 @@ package android.telecom; import android.annotation.IntDef; import android.annotation.NonNull; import android.annotation.Nullable; +import android.annotation.TestApi; import android.bluetooth.BluetoothDevice; import android.os.Parcel; import android.os.Parcelable; @@ -100,6 +101,7 @@ public final class CallAudioState implements Parcelable { } /** @hide */ + @TestApi public CallAudioState(boolean isMuted, @CallAudioRoute int route, @CallAudioRoute int supportedRouteMask, @Nullable BluetoothDevice activeBluetoothDevice, -- 2.11.0