From: Hall Liu Date: Sat, 12 May 2018 00:14:08 +0000 (-0700) Subject: Add CallAudioState ctor as TestApi X-Git-Tag: android-x86-9.0-r1~111^2~17^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c1d95aad1a030fb72feaf70d03a3535c403e69dd;p=android-x86%2Fframeworks-base.git Add CallAudioState ctor as TestApi Needed for CTS testing Bug: 79528185 Test: CTS Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220 --- 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,