am 51128faa: am d122805b: CallManager: add getAllPhones().
Merge commit '51128faa8cf1f3d25ee7db745b9e18e69e04cd31'
* commit '51128faa8cf1f3d25ee7db745b9e18e69e04cd31':
CallManager: add getAllPhones().
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java
index 1381a2d..63bdb99 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.telephony.PhoneStateListener;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
@@ -163,6 +164,14 @@
}
/**
+ * 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