Loading telephony/java/android/telephony/TelephonyManager.java +12 −11 Original line number Diff line number Diff line Loading @@ -107,8 +107,6 @@ public class TelephonyManager { public static final String MODEM_ACTIVITY_RESULT_KEY = BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY; private static ITelephonyRegistry sRegistry; /** * The allowed states of Wi-Fi calling. * Loading Loading @@ -179,11 +177,6 @@ public class TelephonyManager { mContext = context; } mSubscriptionManager = SubscriptionManager.from(mContext); if (sRegistry == null) { sRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService( "telephony.registry")); } } /** @hide */ Loading Loading @@ -3513,6 +3506,10 @@ public class TelephonyManager { return ITelecomService.Stub.asInterface(ServiceManager.getService(Context.TELECOM_SERVICE)); } private ITelephonyRegistry getTelephonyRegistry() { return ITelephonyRegistry.Stub.asInterface(ServiceManager.getService("telephony.registry")); } // // // PhoneStateListener Loading Loading @@ -3552,12 +3549,16 @@ public class TelephonyManager { if (listener.mSubId == null) { listener.mSubId = mSubId; } sRegistry.listenForSubscriber(listener.mSubId, getOpPackageName(), ITelephonyRegistry registry = getTelephonyRegistry(); if (registry != null) { registry.listenForSubscriber(listener.mSubId, getOpPackageName(), listener.callback, events, notifyNow); } else { Rlog.w(TAG, "telephony registry not ready."); } } catch (RemoteException ex) { // system process dead } catch (NullPointerException ex) { // system process dead } } Loading Loading
telephony/java/android/telephony/TelephonyManager.java +12 −11 Original line number Diff line number Diff line Loading @@ -107,8 +107,6 @@ public class TelephonyManager { public static final String MODEM_ACTIVITY_RESULT_KEY = BatteryStats.RESULT_RECEIVER_CONTROLLER_KEY; private static ITelephonyRegistry sRegistry; /** * The allowed states of Wi-Fi calling. * Loading Loading @@ -179,11 +177,6 @@ public class TelephonyManager { mContext = context; } mSubscriptionManager = SubscriptionManager.from(mContext); if (sRegistry == null) { sRegistry = ITelephonyRegistry.Stub.asInterface(ServiceManager.getService( "telephony.registry")); } } /** @hide */ Loading Loading @@ -3513,6 +3506,10 @@ public class TelephonyManager { return ITelecomService.Stub.asInterface(ServiceManager.getService(Context.TELECOM_SERVICE)); } private ITelephonyRegistry getTelephonyRegistry() { return ITelephonyRegistry.Stub.asInterface(ServiceManager.getService("telephony.registry")); } // // // PhoneStateListener Loading Loading @@ -3552,12 +3549,16 @@ public class TelephonyManager { if (listener.mSubId == null) { listener.mSubId = mSubId; } sRegistry.listenForSubscriber(listener.mSubId, getOpPackageName(), ITelephonyRegistry registry = getTelephonyRegistry(); if (registry != null) { registry.listenForSubscriber(listener.mSubId, getOpPackageName(), listener.callback, events, notifyNow); } else { Rlog.w(TAG, "telephony registry not ready."); } } catch (RemoteException ex) { // system process dead } catch (NullPointerException ex) { // system process dead } } Loading