summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-10-17 15:37:54 -0700
committerAndrew Lee <anwlee@google.com>2014-10-21 13:49:42 -0700
commit4a3084a46d80383c528198a48da5c327d7d08a00 (patch)
tree2f299b21612379ae7923c63cca1a8389de477e7b /telephony/java/android
parent017c6f2daaed2c5f0301587ba88663f73b76ecb1 (diff)
downloadframeworks_base-4a3084a46d80383c528198a48da5c327d7d08a00.zip
frameworks_base-4a3084a46d80383c528198a48da5c327d7d08a00.tar.gz
frameworks_base-4a3084a46d80383c528198a48da5c327d7d08a00.tar.bz2
Add video calling setting to TelephonyManager.
We want to add a user setting to enable/disable video calling. This is a telephony-level setting which the user sets using Telephony's Call Settings, and applies universally to video calls. But this setting needs to be accessible in places such as Dialer, so these changes are to support storing the setting in TelephonyManager (to be implemented in PhoneInterfaceManager) and providing access to the setting for applications like Dialer through TelephonyManager. + Add function definitions to ITelephony. + Add function wrapper implementations in TelephonyManager. Bug: 16014284 Change-Id: I1dce8bf5ae4f0ee115698ce9627ba8fc424dd855
Diffstat (limited to 'telephony/java/android')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index d3cef4a..7b5234a 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3528,4 +3528,25 @@ public class TelephonyManager {
}
return -1;
}
+
+ /** @hide */
+ @SystemApi
+ public void enableVideoCalling(boolean enable) {
+ try {
+ getITelephony().enableVideoCalling(enable);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error calling ITelephony#enableVideoCalling", e);
+ }
+ }
+
+ /** @hide */
+ @SystemApi
+ public boolean isVideoCallingEnabled() {
+ try {
+ return getITelephony().isVideoCallingEnabled();
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error calling ITelephony#isVideoCallingEnabled", e);
+ }
+ return false;
+ }
}