diff options
| author | Meng Wang <mewan@google.com> | 2019-12-05 17:20:49 -0800 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-12-05 17:20:49 -0800 |
| commit | d32f3a1db32bf6047e66058c083082e0ebbbeedb (patch) | |
| tree | 09fd9bc80f4dc487035728485b9643334ae4c5a5 /core/java | |
| parent | c0efc04ea7145a044772bf171adb21f03d250dda (diff) | |
| parent | 484b1b87e0fa984969914d3c60738f4c628fa543 (diff) | |
Merge "Move SIM_ACTIVATION_TYPE_* to TelephonyRegistryManager" am: 392f3db6b0
am: 484b1b87e0
Change-Id: I681dcc688aa1e66706c99cfa401c8b89cb6367c3
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/telephony/TelephonyRegistryManager.java | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/core/java/android/telephony/TelephonyRegistryManager.java b/core/java/android/telephony/TelephonyRegistryManager.java index 5c427309e823..308c8b3c9833 100644 --- a/core/java/android/telephony/TelephonyRegistryManager.java +++ b/core/java/android/telephony/TelephonyRegistryManager.java @@ -463,6 +463,19 @@ public class TelephonyRegistryManager { } /** + * Sim activation type: voice + * @see #notifyVoiceActivationStateChanged + * @hide + */ + public static final int SIM_ACTIVATION_TYPE_VOICE = 0; + /** + * Sim activation type: data + * @see #notifyDataActivationStateChanged + * @hide + */ + public static final int SIM_ACTIVATION_TYPE_DATA = 1; + + /** * Notify data activation state changed on certain subscription. * @see TelephonyManager#getDataActivationState() * @@ -477,7 +490,7 @@ public class TelephonyRegistryManager { @SimActivationState int activationState) { try { sRegistry.notifySimActivationStateChangedForPhoneId(slotIndex, subId, - TelephonyManager.SIM_ACTIVATION_TYPE_DATA, activationState); + SIM_ACTIVATION_TYPE_DATA, activationState); } catch (RemoteException ex) { // system process is dead } @@ -498,7 +511,7 @@ public class TelephonyRegistryManager { @SimActivationState int activationState) { try { sRegistry.notifySimActivationStateChangedForPhoneId(slotIndex, subId, - TelephonyManager.SIM_ACTIVATION_TYPE_VOICE, activationState); + SIM_ACTIVATION_TYPE_VOICE, activationState); } catch (RemoteException ex) { // system process is dead } |
