summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorHung-ying Tyan <tyanh@google.com>2010-08-09 16:14:15 +0800
committerHung-ying Tyan <tyanh@google.com>2010-08-09 16:14:15 +0800
commitd122805bbfcb770f941cac259bcefafdb2d3ad56 (patch)
treef1f428f0e7a62634437537411cc46841c13b535e /telephony
parent799f2bb04102b4b692b52eed5c36aea9a8cde471 (diff)
downloadframeworks_base-d122805bbfcb770f941cac259bcefafdb2d3ad56.zip
frameworks_base-d122805bbfcb770f941cac259bcefafdb2d3ad56.tar.gz
frameworks_base-d122805bbfcb770f941cac259bcefafdb2d3ad56.tar.bz2
CallManager: add getAllPhones().
Change-Id: I50589aaec55925d93c392f15a22c70d2a6634b87
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/CallManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java
index d77f778..b57f358 100644
--- a/telephony/java/com/android/internal/telephony/CallManager.java
+++ b/telephony/java/com/android/internal/telephony/CallManager.java
@@ -24,6 +24,7 @@ import android.os.RegistrantList;
import android.telephony.PhoneStateListener;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
@@ -163,6 +164,14 @@ public final class CallManager {
}
/**
+ * Returns all the registered phone objects.
+ * @return all the registered phone objects.
+ */
+ public List<Phone> getAllPhones() {
+ return Collections.unmodifiableList(mPhones);
+ }
+
+ /**
* Get current coarse-grained voice call state.
* If the Call Manager has an active call and call waiting occurs,
* then the phone state is RINGING not OFFHOOK