Loading src/java/com/android/internal/telephony/GsmCdmaPhone.java +4 −4 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.content.BroadcastReceiver; import android.content.ContentValues; import android.content.Context; Loading Loading @@ -634,7 +634,7 @@ public class GsmCdmaPhone extends Phone { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_ECM_STATE, mIsPhoneInEcmState); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) logd("sendEmergencyCallbackModeChange"); } Loading @@ -644,7 +644,7 @@ public class GsmCdmaPhone extends Phone { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_EMERGENCY_CALL, callActive); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) Rlog.d(LOG_TAG, "sendEmergencyCallStateChange: callActive " + callActive); } } Loading Loading @@ -3152,7 +3152,7 @@ public class GsmCdmaPhone extends Phone { intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); intent.putExtra(PhoneConstants.PHONE_NAME_KEY, getPhoneName()); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhoneId); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); } private void switchVoiceRadioTech(int newVoiceRadioTech) { Loading src/java/com/android/internal/telephony/InboundSmsHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ import static android.service.carrier.CarrierMessagingService.RECEIVE_OPTIONS_SK import static android.telephony.TelephonyManager.PHONE_TYPE_CDMA; import android.app.Activity; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.AppOpsManager; import android.app.BroadcastOptions; import android.app.Notification; Loading Loading @@ -1025,7 +1025,7 @@ public abstract class InboundSmsHandler extends StateMachine { // Get a list of currently started users. int[] users = null; try { users = ActivityManagerNative.getDefault().getRunningUserIds(); users = ActivityManager.getService().getRunningUserIds(); } catch (RemoteException re) { } if (users == null) { Loading src/java/com/android/internal/telephony/MccTable.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.AlarmManager; import android.content.Context; import android.content.res.Configuration; Loading Loading @@ -211,7 +211,7 @@ public final class MccTable { if (updateConfig) { Slog.d(LOG_TAG, "updateMccMncConfiguration updateConfig config=" + config); ActivityManagerNative.getDefault().updateConfiguration(config); ActivityManager.getService().updateConfiguration(config); } else { Slog.d(LOG_TAG, "updateMccMncConfiguration nothing to update"); } Loading src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +5 −6 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.UserSwitchObserver; import android.content.BroadcastReceiver; import android.content.ContentResolver; Loading Loading @@ -140,7 +140,7 @@ public class SubscriptionInfoUpdater extends Handler { // -Whenever we switch to a new user mCurrentlyActiveUserId = 0; try { ActivityManagerNative.getDefault().registerUserSwitchObserver(new UserSwitchObserver() { ActivityManager.getService().registerUserSwitchObserver(new UserSwitchObserver() { @Override public void onUserSwitching(int newUserId, IRemoteCallback reply) throws RemoteException { Loading @@ -157,7 +157,7 @@ public class SubscriptionInfoUpdater extends Handler { } } }, LOG_TAG); mCurrentlyActiveUserId = ActivityManagerNative.getDefault().getCurrentUser().id; mCurrentlyActiveUserId = ActivityManager.getService().getCurrentUser().id; } catch (RemoteException e) { logd("Couldn't get current user ID; guessing it's 0: " + e.getMessage()); } Loading @@ -182,8 +182,7 @@ public class SubscriptionInfoUpdater extends Handler { iterator.remove(); logd("Broadcasting intent ACTION_SIM_STATE_CHANGED for mCardIndex: " + pair.getKey()); ActivityManagerNative.broadcastStickyIntent(i, READ_PHONE_STATE, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(i, UserHandle.USER_ALL); } logd("[Receiver]-"); return; Loading Loading @@ -671,7 +670,7 @@ public class SubscriptionInfoUpdater extends Handler { SubscriptionManager.putPhoneIdAndSubIdExtra(i, slotId); logd("Broadcasting intent ACTION_SIM_STATE_CHANGED " + state + " reason " + reason + " for mCardIndex: " + slotId); ActivityManagerNative.broadcastStickyIntent(i, READ_PHONE_STATE, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(i, UserHandle.USER_ALL); rebroadcastIntentsOnUnlock.put(slotId, i); } Loading src/java/com/android/internal/telephony/imsphone/ImsPhone.java +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ package com.android.internal.telephony.imsphone; import android.app.Activity; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; Loading Loading @@ -1381,7 +1381,7 @@ public class ImsPhone extends ImsPhoneBase { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_ECM_STATE, mIsPhoneInEcmState); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) Rlog.d(LOG_TAG, "sendEmergencyCallbackModeChange"); } Loading Loading
src/java/com/android/internal/telephony/GsmCdmaPhone.java +4 −4 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.content.BroadcastReceiver; import android.content.ContentValues; import android.content.Context; Loading Loading @@ -634,7 +634,7 @@ public class GsmCdmaPhone extends Phone { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_ECM_STATE, mIsPhoneInEcmState); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) logd("sendEmergencyCallbackModeChange"); } Loading @@ -644,7 +644,7 @@ public class GsmCdmaPhone extends Phone { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALL_STATE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_EMERGENCY_CALL, callActive); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) Rlog.d(LOG_TAG, "sendEmergencyCallStateChange: callActive " + callActive); } } Loading Loading @@ -3152,7 +3152,7 @@ public class GsmCdmaPhone extends Phone { intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); intent.putExtra(PhoneConstants.PHONE_NAME_KEY, getPhoneName()); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, mPhoneId); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); } private void switchVoiceRadioTech(int newVoiceRadioTech) { Loading
src/java/com/android/internal/telephony/InboundSmsHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ import static android.service.carrier.CarrierMessagingService.RECEIVE_OPTIONS_SK import static android.telephony.TelephonyManager.PHONE_TYPE_CDMA; import android.app.Activity; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.AppOpsManager; import android.app.BroadcastOptions; import android.app.Notification; Loading Loading @@ -1025,7 +1025,7 @@ public abstract class InboundSmsHandler extends StateMachine { // Get a list of currently started users. int[] users = null; try { users = ActivityManagerNative.getDefault().getRunningUserIds(); users = ActivityManager.getService().getRunningUserIds(); } catch (RemoteException re) { } if (users == null) { Loading
src/java/com/android/internal/telephony/MccTable.java +2 −2 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.AlarmManager; import android.content.Context; import android.content.res.Configuration; Loading Loading @@ -211,7 +211,7 @@ public final class MccTable { if (updateConfig) { Slog.d(LOG_TAG, "updateMccMncConfiguration updateConfig config=" + config); ActivityManagerNative.getDefault().updateConfiguration(config); ActivityManager.getService().updateConfiguration(config); } else { Slog.d(LOG_TAG, "updateMccMncConfiguration nothing to update"); } Loading
src/java/com/android/internal/telephony/SubscriptionInfoUpdater.java +5 −6 Original line number Diff line number Diff line Loading @@ -16,7 +16,7 @@ package com.android.internal.telephony; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.UserSwitchObserver; import android.content.BroadcastReceiver; import android.content.ContentResolver; Loading Loading @@ -140,7 +140,7 @@ public class SubscriptionInfoUpdater extends Handler { // -Whenever we switch to a new user mCurrentlyActiveUserId = 0; try { ActivityManagerNative.getDefault().registerUserSwitchObserver(new UserSwitchObserver() { ActivityManager.getService().registerUserSwitchObserver(new UserSwitchObserver() { @Override public void onUserSwitching(int newUserId, IRemoteCallback reply) throws RemoteException { Loading @@ -157,7 +157,7 @@ public class SubscriptionInfoUpdater extends Handler { } } }, LOG_TAG); mCurrentlyActiveUserId = ActivityManagerNative.getDefault().getCurrentUser().id; mCurrentlyActiveUserId = ActivityManager.getService().getCurrentUser().id; } catch (RemoteException e) { logd("Couldn't get current user ID; guessing it's 0: " + e.getMessage()); } Loading @@ -182,8 +182,7 @@ public class SubscriptionInfoUpdater extends Handler { iterator.remove(); logd("Broadcasting intent ACTION_SIM_STATE_CHANGED for mCardIndex: " + pair.getKey()); ActivityManagerNative.broadcastStickyIntent(i, READ_PHONE_STATE, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(i, UserHandle.USER_ALL); } logd("[Receiver]-"); return; Loading Loading @@ -671,7 +670,7 @@ public class SubscriptionInfoUpdater extends Handler { SubscriptionManager.putPhoneIdAndSubIdExtra(i, slotId); logd("Broadcasting intent ACTION_SIM_STATE_CHANGED " + state + " reason " + reason + " for mCardIndex: " + slotId); ActivityManagerNative.broadcastStickyIntent(i, READ_PHONE_STATE, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(i, UserHandle.USER_ALL); rebroadcastIntentsOnUnlock.put(slotId, i); } Loading
src/java/com/android/internal/telephony/imsphone/ImsPhone.java +2 −2 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ package com.android.internal.telephony.imsphone; import android.app.Activity; import android.app.ActivityManagerNative; import android.app.ActivityManager; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; Loading Loading @@ -1381,7 +1381,7 @@ public class ImsPhone extends ImsPhoneBase { Intent intent = new Intent(TelephonyIntents.ACTION_EMERGENCY_CALLBACK_MODE_CHANGED); intent.putExtra(PhoneConstants.PHONE_IN_ECM_STATE, mIsPhoneInEcmState); SubscriptionManager.putPhoneIdAndSubIdExtra(intent, getPhoneId()); ActivityManagerNative.broadcastStickyIntent(intent, null, UserHandle.USER_ALL); ActivityManager.broadcastStickyIntent(intent, UserHandle.USER_ALL); if (DBG) Rlog.d(LOG_TAG, "sendEmergencyCallbackModeChange"); } Loading