summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android/internal
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2014-05-21 20:04:36 -0700
committerDave Langemak <dlangemak@google.com>2014-05-27 20:28:50 +0000
commitafa05c0b43cbc065181d5c2d6ee368a08bb00c3b (patch)
treeab4c243bf6731f87c3de08e827bad1e5f1b9a929 /telephony/java/com/android/internal
parent6ecbe3f2d6a9d0a2f69473cc0496fa6c63c4f7f8 (diff)
downloadframeworks_base-afa05c0b43cbc065181d5c2d6ee368a08bb00c3b.zip
frameworks_base-afa05c0b43cbc065181d5c2d6ee368a08bb00c3b.tar.gz
frameworks_base-afa05c0b43cbc065181d5c2d6ee368a08bb00c3b.tar.bz2
Move dis/enable of mobile data to Telephony
ConnectivityService doesn't do this anymore. bug:15077247 Change-Id: I3208c91b2c0369b594987f39ca29da7478435513 (cherry picked from commit 53013c87496980b534e447e717a32698fbd4bca0)
Diffstat (limited to 'telephony/java/com/android/internal')
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl14
1 files changed, 14 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index baacb74..6d7f158 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -436,4 +436,18 @@ interface ITelephony {
* @return true on success; false on any failure.
*/
boolean setPreferredNetworkType(int networkType);
+
+ /**
+ * User enable/disable Mobile Data.
+ *
+ * @param enable true to turn on, else false
+ */
+ void setDataEnabled(boolean enable);
+
+ /**
+ * Get the user enabled state of Mobile Data.
+ *
+ * @return true on enabled
+ */
+ boolean getDataEnabled();
}