summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2013-05-10 23:10:32 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-10 23:10:33 +0000
commit9766caedf0657615f739d4e441ab9f2fa71aa709 (patch)
tree597b3ce983e8cc00f54c914470b1e00d9915cab2 /media
parent11184922d30f468bf97a2e20a3aeff7e1ae7ca54 (diff)
parenta27b8fb4296c1271ddf5916843ddffda6764e65f (diff)
downloadframeworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.zip
frameworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.tar.gz
frameworks_base-9766caedf0657615f739d4e441ab9f2fa71aa709.tar.bz2
Merge "Add an API to determine if a route is connecting." into jb-mr2-dev
Diffstat (limited to 'media')
-rw-r--r--media/java/android/media/MediaRouter.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/media/java/android/media/MediaRouter.java b/media/java/android/media/MediaRouter.java
index 9168d46..990ce80 100644
--- a/media/java/android/media/MediaRouter.java
+++ b/media/java/android/media/MediaRouter.java
@@ -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;