am 9766caed: Merge "Add an API to determine if a route is connecting." into jb-mr2-dev

* commit '9766caedf0657615f739d4e441ab9f2fa71aa709':
  Add an API to determine if a route is connecting.
This commit is contained in:
Jeff Brown
2013-05-10 16:13:44 -07:00
committed by Android Git Automerger
2 changed files with 14 additions and 1 deletions

View File

@@ -12271,6 +12271,7 @@ package android.media {
method public int getVolume();
method public int getVolumeHandling();
method public int getVolumeMax();
method public boolean isConnecting();
method public boolean isEnabled();
method public void requestSetVolume(int);
method public void requestUpdateVolume(int);

View File

@@ -1354,12 +1354,24 @@ public class MediaRouter {
}
/**
* @return true if this route is enabled and may be selected
* Returns true if this route is enabled and may be selected.
*
* @return True if this route is enabled.
*/
public boolean isEnabled() {
return mEnabled;
}
/**
* Returns true if the route is in the process of connecting and is not
* yet ready for use.
*
* @return True if this route is in the process of connecting.
*/
public boolean isConnecting() {
return mStatusCode == STATUS_CONNECTING;
}
void setStatusInt(CharSequence status) {
if (!status.equals(mStatus)) {
mStatus = status;