Loading packages/SettingsLib/src/com/android/settingslib/media/MediaDevice.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -389,6 +389,16 @@ public abstract class MediaDevice implements Comparable<MediaDevice> { return mType; return mType; } } /** * Get the {@link MediaRoute2Info.Type} of the device. */ public int getRouteType() { if (mRouteInfo == null) { return TYPE_UNKNOWN; } return mRouteInfo.getType(); } /** /** * Checks if route's volume is fixed, if true, we should disable volume control for the device. * Checks if route's volume is fixed, if true, we should disable volume control for the device. * * Loading Loading
packages/SettingsLib/src/com/android/settingslib/media/MediaDevice.java +10 −0 Original line number Original line Diff line number Diff line Loading @@ -389,6 +389,16 @@ public abstract class MediaDevice implements Comparable<MediaDevice> { return mType; return mType; } } /** * Get the {@link MediaRoute2Info.Type} of the device. */ public int getRouteType() { if (mRouteInfo == null) { return TYPE_UNKNOWN; } return mRouteInfo.getType(); } /** /** * Checks if route's volume is fixed, if true, we should disable volume control for the device. * Checks if route's volume is fixed, if true, we should disable volume control for the device. * * Loading