summaryrefslogtreecommitdiffstats
path: root/telecomm/java/com
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2014-07-15 14:40:39 -0700
committerSailesh Nepal <sail@google.com>2014-07-16 21:14:58 +0000
commit001bbbb239d4ef1005a87039c7c53e26d8f13ad6 (patch)
tree346c70c37e1dab2161b70b2015f2453e60357519 /telecomm/java/com
parentc295a443366908c6e87fffe737f4333075e2ed12 (diff)
downloadframeworks_base-001bbbb239d4ef1005a87039c7c53e26d8f13ad6.zip
frameworks_base-001bbbb239d4ef1005a87039c7c53e26d8f13ad6.tar.gz
frameworks_base-001bbbb239d4ef1005a87039c7c53e26d8f13ad6.tar.bz2
TTY: frameworks/base changes
This CL makes the following changes: 1. New public APIs: - TelecommManager.getCurrentTtyMode: This is used to get current TTY mode. It's used by Telephony to set the phone state before calls are created (which is why it can't be a Conneciton API). - TelecommConstants.TTY_MODE_*: These are constants copied from Phone.java - TelecommConstants.ACTION_CURRENT_TTY_MODE_CHANGED: This action is fired when the current TTY mode changes. Apps can listen to this before and during a call. The old version of this was in TtyIntent.java which I deleted. 2. New private API - TelecommManager.isTtySupported: This is used by Telephony to hide the TTY settings on devices that don't support TTY 3. Various updates to use the constants renamed in this CL Change-Id: I652b095af30cc2732a06829dc23492e5355660da
Diffstat (limited to 'telecomm/java/com')
-rw-r--r--telecomm/java/com/android/internal/telecomm/ITelecommService.aidl10
1 files changed, 10 insertions, 0 deletions
diff --git a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
index 3334385..43caa1e 100644
--- a/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
+++ b/telecomm/java/com/android/internal/telecomm/ITelecommService.aidl
@@ -101,4 +101,14 @@ interface ITelecommService {
* @see PhoneManager#handlePinMmi
*/
boolean handlePinMmi(String dialString);
+
+ /**
+ * @see TelecomManager#isTtySupported
+ */
+ boolean isTtySupported();
+
+ /**
+ * @see TelecomManager#getCurrentTtyMode
+ */
+ int getCurrentTtyMode();
}