OSDN Git Service

Add CallAudioState ctor as TestApi
authorHall Liu <hallliu@google.com>
Sat, 12 May 2018 00:14:08 +0000 (17:14 -0700)
committerHall Liu <hallliu@google.com>
Sat, 12 May 2018 00:14:58 +0000 (17:14 -0700)
Needed for CTS testing

Bug: 79528185
Test: CTS
Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220

api/test-current.txt
telecomm/java/android/telecom/CallAudioState.java

index 5cffd0e..0fae011 100644 (file)
@@ -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<android.bluetooth.BluetoothDevice>);
+  }
+
+}
+
 package android.telephony {
 
   public class MbmsDownloadSession implements java.lang.AutoCloseable {
index 4b827d2..e33ba7e 100644 (file)
@@ -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,