summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2012-06-22 11:27:46 -0700
committerJean-Baptiste Queru <jbq@google.com>2012-07-02 10:57:25 -0700
commit992a57bf396254adbf07b1ba906a525486d40909 (patch)
tree24948dc53af4dfe3e7c310a1ccd0eda5184b3cac /telephony
parent2686b058cd2f01299cf5fd43f24ebbdc7339d70e (diff)
downloadframeworks_base-992a57bf396254adbf07b1ba906a525486d40909.zip
frameworks_base-992a57bf396254adbf07b1ba906a525486d40909.tar.gz
frameworks_base-992a57bf396254adbf07b1ba906a525486d40909.tar.bz2
Telephony Capability-Distinguish dialing & connect - DO NOT MERGE
New capability returns true if the device can distinguish between dialing/active and connected reliably. Currently returns true only for GSM phones. Change-Id: I50751abaf74b31fdc747f4d04ca9a2ac4d73a1ff
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/com/android/internal/telephony/TelephonyCapabilities.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/TelephonyCapabilities.java b/telephony/java/com/android/internal/telephony/TelephonyCapabilities.java
index bd94de2..68db60b 100644
--- a/telephony/java/com/android/internal/telephony/TelephonyCapabilities.java
+++ b/telephony/java/com/android/internal/telephony/TelephonyCapabilities.java
@@ -177,4 +177,15 @@ public class TelephonyCapabilities {
public static boolean supportsAdn(int phoneType) {
return phoneType == Phone.PHONE_TYPE_GSM;
}
+
+ /**
+ * Returns true if the device can distinguish the phone's dialing state
+ * (Call.State.DIALING/ACTIVE) and connected state (Call.State.CONNECTED).
+ *
+ * Currently this returns true for GSM phones as we cannot know when a CDMA
+ * phone has transitioned from dialing/active to connected.
+ */
+ public static boolean canDistinguishDialingAndConnected(int phoneType) {
+ return phoneType == Phone.PHONE_TYPE_GSM;
+ }
}