diff options
author | Andrew Flynn <flynn@google.com> | 2015-06-09 12:36:58 +0000 |
---|---|---|
committer | Andrew Flynn <flynn@google.com> | 2015-06-09 16:28:54 -0400 |
commit | ceaed68b074bd341ed9b5f13ff9cc69e3f533999 (patch) | |
tree | a2923bc630013717a854b0ff95cea6208d9b9be1 /telephony | |
parent | e50b091df9586c5c41d219ffb0c41fa3f893c329 (diff) | |
download | frameworks_base-ceaed68b074bd341ed9b5f13ff9cc69e3f533999.zip frameworks_base-ceaed68b074bd341ed9b5f13ff9cc69e3f533999.tar.gz frameworks_base-ceaed68b074bd341ed9b5f13ff9cc69e3f533999.tar.bz2 |
notifyCarrierNetworkChange:TelephonyManager->CarrierService
Re-checkin of 7f8be9d89b7f294bf5e5d377908a5c74d2f4968f.
ORIGINAL CHANGES:
Per API review, move TelephonyManager.notifyCarrierNetworkChange() to
CarrierService.notifyCarrierNetworkChange(). Underlying telephony
implementation remains unchanged.
Also minor tweaks to CarrierService:
* Remove some unnecessary @hide
* Remove final qualifier from onBind() so that subclasses can handle
new internal callers that want to bind to it.
ADDITIONAL CHANGES:
- Fixes stack so that a SecurityException is thrown when caller
does not have MODIFY_PHONE_STATE or carrier privileges.
Bug: 21572049
Bug: 21630803
Bug: 21721768
Change-Id: Ie952651d2f15c370de713ed8abb6d9f6f07dd2b4
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index f51cb65..581a59e 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -2060,35 +2060,6 @@ public class TelephonyManager { } /** - * Informs the system of an intentional upcoming carrier network change by - * a carrier app. This call is optional and is only used to allow the - * system to provide alternative UI while telephony is performing an action - * that may result in intentional, temporary network lack of connectivity. - * <p> - * Based on the active parameter passed in, this method will either show or - * hide the alternative UI. There is no timeout associated with showing - * this UX, so a carrier app must be sure to call with active set to false - * sometime after calling with it set to true. - * <p> - * Requires Permission: - * {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE} - * Or the calling app has carrier privileges. - * @see #hasCarrierPrivileges - * - * @param active Whether the carrier network change is or shortly will be - * active. Set this value to true to begin showing - * alternative UI and false to stop. - */ - public void notifyCarrierNetworkChange(boolean active) { - try { - if (sRegistry != null) - sRegistry.notifyCarrierNetworkChange(active); - } catch (RemoteException ex) { - } catch (NullPointerException ex) { - } - } - - /** * Returns the alphabetic identifier associated with the line 1 number. * Return null if it is unavailable. * <p> |