summaryrefslogtreecommitdiff
path: root/telephony/java/com
diff options
context:
space:
mode:
authorHall Liu <hallliu@google.com>2020-09-25 10:46:54 -0700
committerHall Liu <hallliu@google.com>2020-10-21 16:23:34 -0700
commit83bb093cc5fb86ed63a94bfb98f94cbb301663a7 (patch)
tree91d527f2f0ea6cff91e173fc6aa00f41e51837d4 /telephony/java/com
parent9caec7855727db80524ca759dcd24fe75acc64f9 (diff)
Add new methods for setting mobile data policy
Add isMobileDataPolicyEnabled and setMobileDataPolicyEnabledStatus in TelephonyManager. These are intended to replace the mms-always-allowed and data-during-voice-call setters/getters. Old methods will be removed in a follow up commit. Fixes: 169367013 Test: atest TelephonyManagerTest Change-Id: I6033a84f0a0163e460343ebf603d66078455fe38 Merged-In: I6033a84f0a0163e460343ebf603d66078455fe38
Diffstat (limited to 'telephony/java/com')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl4
1 files changed, 4 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 934103ebe2b6..7d873b6eecb7 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -2233,6 +2233,10 @@ interface ITelephony {
*/
String getMmsUAProfUrl(int subId);
+ void setMobileDataPolicyEnabledStatus(int subscriptionId, int policy, boolean enabled);
+
+ boolean isMobileDataPolicyEnabled(int subscriptionId, int policy);
+
/**
* Set allowing mobile data during voice call.
*/