Fields Summary |
---|
private final android.media.RemoteDisplayState.RemoteDisplayInfo | mMutableInfo |
private android.media.RemoteDisplayState.RemoteDisplayInfo | mImmutableInfo |
public static final int | STATUS_NOT_AVAILABLEStatus code: Indicates that the remote display is not available. |
public static final int | STATUS_IN_USEStatus code: Indicates that the remote display is in use by someone else. |
public static final int | STATUS_AVAILABLEStatus code: Indicates that the remote display is available for new connections. |
public static final int | STATUS_CONNECTINGStatus code: Indicates that the remote display is current connecting. |
public static final int | STATUS_CONNECTEDStatus code: Indicates that the remote display is connected and is mirroring
display contents. |
public static final int | PLAYBACK_VOLUME_VARIABLEVolume handling: Output volume can be changed. |
public static final int | PLAYBACK_VOLUME_FIXEDVolume handling: Output volume is fixed. |
Methods Summary |
---|
public java.lang.String | getDescription()
return mMutableInfo.description;
|
public java.lang.String | getId()
return mMutableInfo.id;
|
android.media.RemoteDisplayState.RemoteDisplayInfo | getInfo()
if (mImmutableInfo == null) {
mImmutableInfo = new RemoteDisplayInfo(mMutableInfo);
}
return mImmutableInfo;
|
public java.lang.String | getName()
return mMutableInfo.name;
|
public int | getPresentationDisplayId()
return mMutableInfo.presentationDisplayId;
|
public int | getStatus()
return mMutableInfo.status;
|
public int | getVolume()
return mMutableInfo.volume;
|
public int | getVolumeHandling()
return mMutableInfo.volumeHandling;
|
public int | getVolumeMax()
return mMutableInfo.volumeMax;
|
public void | setDescription(java.lang.String description)
if (!Objects.equals(mMutableInfo.description, description)) {
mMutableInfo.description = description;
mImmutableInfo = null;
}
|
public void | setName(java.lang.String name)
if (!Objects.equals(mMutableInfo.name, name)) {
mMutableInfo.name = name;
mImmutableInfo = null;
}
|
public void | setPresentationDisplayId(int presentationDisplayId)
if (mMutableInfo.presentationDisplayId != presentationDisplayId) {
mMutableInfo.presentationDisplayId = presentationDisplayId;
mImmutableInfo = null;
}
|
public void | setStatus(int status)
if (mMutableInfo.status != status) {
mMutableInfo.status = status;
mImmutableInfo = null;
}
|
public void | setVolume(int volume)
if (mMutableInfo.volume != volume) {
mMutableInfo.volume = volume;
mImmutableInfo = null;
}
|
public void | setVolumeHandling(int volumeHandling)
if (mMutableInfo.volumeHandling != volumeHandling) {
mMutableInfo.volumeHandling = volumeHandling;
mImmutableInfo = null;
}
|
public void | setVolumeMax(int volumeMax)
if (mMutableInfo.volumeMax != volumeMax) {
mMutableInfo.volumeMax = volumeMax;
mImmutableInfo = null;
}
|
public java.lang.String | toString()
return "RemoteDisplay{" + mMutableInfo.toString() + "}";
|