diff --git a/api/current.txt b/api/current.txt index 560a35c2e50a6..b8699fa7d938e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -26858,7 +26858,6 @@ package android.media { method @Nullable public String getClientPackageName(); method public int getConnectionState(); method @Nullable public CharSequence getDescription(); - method public int getDeviceType(); method @Nullable public android.os.Bundle getExtras(); method @NonNull public java.util.List getFeatures(); method @Nullable public android.net.Uri getIconUri(); @@ -26873,10 +26872,6 @@ package android.media { field public static final int CONNECTION_STATE_CONNECTING = 1; // 0x1 field public static final int CONNECTION_STATE_DISCONNECTED = 0; // 0x0 field @NonNull public static final android.os.Parcelable.Creator CREATOR; - field public static final int DEVICE_TYPE_BLUETOOTH = 3; // 0x3 - field public static final int DEVICE_TYPE_REMOTE_SPEAKER = 2; // 0x2 - field public static final int DEVICE_TYPE_REMOTE_TV = 1; // 0x1 - field public static final int DEVICE_TYPE_UNKNOWN = 0; // 0x0 field public static final String FEATURE_LIVE_AUDIO = "android.media.intent.category.LIVE_AUDIO"; field public static final String FEATURE_LIVE_VIDEO = "android.media.intent.category.LIVE_VIDEO"; field public static final String FEATURE_REMOTE_PLAYBACK = "android.media.intent.category.REMOTE_PLAYBACK"; @@ -26894,7 +26889,6 @@ package android.media { method @NonNull public android.media.MediaRoute2Info.Builder setClientPackageName(@Nullable String); method @NonNull public android.media.MediaRoute2Info.Builder setConnectionState(int); method @NonNull public android.media.MediaRoute2Info.Builder setDescription(@Nullable CharSequence); - method @NonNull public android.media.MediaRoute2Info.Builder setDeviceType(int); method @NonNull public android.media.MediaRoute2Info.Builder setExtras(@Nullable android.os.Bundle); method @NonNull public android.media.MediaRoute2Info.Builder setIconUri(@Nullable android.net.Uri); method @NonNull public android.media.MediaRoute2Info.Builder setVolume(int); diff --git a/media/java/android/media/MediaRoute2Info.java b/media/java/android/media/MediaRoute2Info.java index 8d63cf04da6da..36ccf001bad2a 100644 --- a/media/java/android/media/MediaRoute2Info.java +++ b/media/java/android/media/MediaRoute2Info.java @@ -111,38 +111,6 @@ public final class MediaRoute2Info implements Parcelable { @Retention(RetentionPolicy.SOURCE) public @interface Type {} - /** - * The default receiver device type of the route indicating the type is unknown. - * - * @see #getDeviceType - */ - public static final int DEVICE_TYPE_UNKNOWN = 0; - - /** - * A receiver device type of the route indicating the presentation of the media is happening - * on a TV. - * - * @see #getDeviceType - */ - public static final int DEVICE_TYPE_REMOTE_TV = 1; - - /** - * A receiver device type of the route indicating the presentation of the media is happening - * on a speaker. - * - * @see #getDeviceType - */ - public static final int DEVICE_TYPE_REMOTE_SPEAKER = 2; - - /** - * A receiver device type of the route indicating the presentation of the media is happening - * on a bluetooth device such as a bluetooth speaker. - * - * @see #getDeviceType - */ - public static final int DEVICE_TYPE_BLUETOOTH = 3; - - /** * The default route type indicating the type is unknown. * @@ -395,18 +363,6 @@ public final class MediaRoute2Info implements Parcelable { return mFeatures; } - /** - * Gets the type of the receiver device associated with this route. - * - * @return The type of the receiver device associated with this route: - * {@link #DEVICE_TYPE_REMOTE_TV}, {@link #DEVICE_TYPE_REMOTE_SPEAKER}, - * {@link #DEVICE_TYPE_BLUETOOTH}. - */ - @Type - public int getDeviceType() { - return getType(); - } - /** * Gets the type of this route. * @@ -599,7 +555,6 @@ public final class MediaRoute2Info implements Parcelable { .append("id=").append(getId()) .append(", name=").append(getName()) .append(", features=").append(getFeatures()) - .append(", deviceType=").append(getDeviceType()) .append(", iconUri=").append(getIconUri()) .append(", description=").append(getDescription()) .append(", connectionState=").append(getConnectionState()) @@ -751,14 +706,6 @@ public final class MediaRoute2Info implements Parcelable { return this; } - /** - * Sets the route's device type. - */ - @NonNull - public Builder setDeviceType(@Type int type) { - return setType(type); - } - /** * Sets the route's type. * @hide