summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Shishir Agrawal <shishir@google.com> 2015-09-18 02:23:33 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-09-18 02:23:33 +0000
commit47edf95b9d97c446ad98abf5a22d13bf81e4975c (patch)
tree45b6b170d325cff129cf6c497bc640cadea7f62a
parent9196534f02649c1bda7d7e8e8dc58440b182a8cc (diff)
parent3649c699adf7e58411012a7fe6efa26f11de32b3 (diff)
am 3649c699: am 773afa28: am 04feedd4: am 896f738c: Merge "Allow non-persistent manual network selection." into mnc-dr-dev
* commit '3649c699adf7e58411012a7fe6efa26f11de32b3': Allow non-persistent manual network selection.
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java5
-rw-r--r--telephony/java/com/android/internal/telephony/ITelephony.aidl6
2 files changed, 8 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index f6e4bed86b16..d22727d14829 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -3611,11 +3611,12 @@ public class TelephonyManager {
*
* @hide
*/
- public boolean setNetworkSelectionModeManual(int subId, OperatorInfo operator) {
+ public boolean setNetworkSelectionModeManual(int subId, OperatorInfo operator,
+ boolean persistSelection) {
try {
ITelephony telephony = getITelephony();
if (telephony != null)
- return telephony.setNetworkSelectionModeManual(subId, operator);
+ return telephony.setNetworkSelectionModeManual(subId, operator, persistSelection);
} catch (RemoteException ex) {
Rlog.e(TAG, "setNetworkSelectionModeManual RemoteException", ex);
} catch (NullPointerException ex) {
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl
index 661f12db3f9c..dcece26d6c27 100644
--- a/telephony/java/com/android/internal/telephony/ITelephony.aidl
+++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl
@@ -707,9 +707,13 @@ interface ITelephony {
*
* @param subId the id of the subscription.
* @param operatorInfo the operator to attach to.
+ * @param persistSelection should the selection persist till reboot or its
+ * turned off? Will also result in notification being not shown to
+ * the user if the signal is lost.
* @return true if the request suceeded.
*/
- boolean setNetworkSelectionModeManual(int subId, in OperatorInfo operator);
+ boolean setNetworkSelectionModeManual(int subId, in OperatorInfo operator,
+ boolean persistSelection);
/**
* Set the preferred network type.