diff options
author | Hung-ying Tyan <tyanh@google.com> | 2010-08-09 19:52:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-08-09 19:52:19 -0700 |
commit | 51128faa8cf1f3d25ee7db745b9e18e69e04cd31 (patch) | |
tree | 1ebfc15279435e33661fe7c3b0577fcf92986e9d /telephony | |
parent | 6f50a956803c6ccedaec71f11ecd72f8fa7efe52 (diff) | |
parent | d122805bbfcb770f941cac259bcefafdb2d3ad56 (diff) | |
download | frameworks_base-51128faa8cf1f3d25ee7db745b9e18e69e04cd31.zip frameworks_base-51128faa8cf1f3d25ee7db745b9e18e69e04cd31.tar.gz frameworks_base-51128faa8cf1f3d25ee7db745b9e18e69e04cd31.tar.bz2 |
am d122805b: CallManager: add getAllPhones().
Merge commit 'd122805bbfcb770f941cac259bcefafdb2d3ad56' into gingerbread-plus-aosp
* commit 'd122805bbfcb770f941cac259bcefafdb2d3ad56':
CallManager: add getAllPhones().
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CallManager.java | 9 |
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 |