diff options
author | Jake Hamby <jhamby@google.com> | 2014-02-06 14:43:50 -0800 |
---|---|---|
committer | Jake Hamby <jhamby@google.com> | 2014-02-24 11:42:51 -0800 |
commit | 786e71ab11f2d89afffc9db7473f16206395c813 (patch) | |
tree | 323537a19eefe927f62b2eba4ff0843433e68f4b /telephony/java/android | |
parent | 35e27213990d182c5085a16dc7bb0e8d2ce69e90 (diff) | |
download | frameworks_base-786e71ab11f2d89afffc9db7473f16206395c813.zip frameworks_base-786e71ab11f2d89afffc9db7473f16206395c813.tar.gz frameworks_base-786e71ab11f2d89afffc9db7473f16206395c813.tar.bz2 |
Remove unneeded new RIL command.
Remove the recently added RIL_REQUEST_SET_RADIO_MODE command and update
the definition of the RIL_REQUEST_NV_RESET_CONFIG parameter.
Also remove some accidentally added debug log lines.
Bug: 12864208
Change-Id: I6f035d6900c9fcb1427bad62057d7b4a1d3cd99c
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 23e4d77..d28d76d 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1823,10 +1823,11 @@ public class TelephonyManager { } /** - * Perform the specified type of NV config reset. - * Used for device configuration by some CDMA operators. + * Perform the specified type of NV config reset. The radio will be taken offline + * and the device must be rebooted after the operation. Used for device + * configuration by some CDMA operators. * - * @param resetType the type of reset to perform (1 == factory reset; 2 == NV-only reset). + * @param resetType reset type: 1: reload NV reset, 2: erase NV reset, 3: factory NV reset * @return true on success; false on any failure. * @hide */ @@ -1840,24 +1841,4 @@ public class TelephonyManager { } return false; } - - /** - * Change the radio to the specified mode. - * Used for device configuration by some operators. - * - * @param radioMode is 0 for offline mode, 1 for online mode, 2 for low-power mode, - * or 3 to reset the radio. - * @return true on success; false on any failure. - * @hide - */ - public boolean setRadioMode(int radioMode) { - try { - return getITelephony().setRadioMode(radioMode); - } catch (RemoteException ex) { - Rlog.e(TAG, "setRadioMode RemoteException", ex); - } catch (NullPointerException ex) { - Rlog.e(TAG, "setRadioMode NPE", ex); - } - return false; - } } |