From 1d04c0f394268f6cd1e8e04ce42761c2f379f67f Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Sun, 17 Aug 2014 18:13:12 -0700 Subject: [PATCH] Make AudioState constructors public This is needed for unit tests. Bug: 17073934 Change-Id: I04659faa54ba03247519237450b0a26f66958e8c --- api/current.txt | 2 ++ telecomm/java/android/telecomm/AudioState.java | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/current.txt b/api/current.txt index cb6c512767bfd..2c459805bd053 100644 --- a/api/current.txt +++ b/api/current.txt @@ -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; diff --git a/telecomm/java/android/telecomm/AudioState.java b/telecomm/java/android/telecomm/AudioState.java index dc28b16789746..491af14ba782d 100644 --- a/telecomm/java/android/telecomm/AudioState.java +++ b/telecomm/java/android/telecomm/AudioState.java @@ -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;