OSDN Git Service

Make AudioState constructors public
authorSailesh Nepal <sail@google.com>
Mon, 18 Aug 2014 01:13:12 +0000 (18:13 -0700)
committerSailesh Nepal <sail@google.com>
Mon, 18 Aug 2014 01:39:13 +0000 (18:39 -0700)
This is needed for unit tests.

Bug: 17073934
Change-Id: I04659faa54ba03247519237450b0a26f66958e8c

api/current.txt
telecomm/java/android/telecomm/AudioState.java

index cb6c512..2c45980 100644 (file)
@@ -28813,6 +28813,8 @@ package android.system {
 package android.telecomm {
 
   public final class AudioState implements android.os.Parcelable {
+    ctor public AudioState(boolean, int, int);
+    ctor public AudioState(android.telecomm.AudioState);
     method public int describeContents();
     method public void writeToParcel(android.os.Parcel, int);
     field public static final android.os.Parcelable.Creator CREATOR;
index dc28b16..491af14 100644 (file)
@@ -56,14 +56,12 @@ public final class AudioState implements Parcelable {
     /** Bit vector of all routes supported by this call. */
     public final int supportedRouteMask;
 
-    /** @hide */
     public AudioState(boolean isMuted, int route, int supportedRouteMask) {
         this.isMuted = isMuted;
         this.route = route;
         this.supportedRouteMask = supportedRouteMask;
     }
 
-    /** @hide */
     public AudioState(AudioState state) {
         isMuted = state.isMuted;
         route = state.route;