/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/telephony/ |
D | TelephonyCallbackTest.java | 37 private TelephonyCallback mTelephonyCallback = new TelephonyCallback(); field in TelephonyCallbackTest 41 assertThat(mTelephonyCallback.hasAnyListeners()).isFalse(); in testAddListener_ActiveDataSubscriptionIdListener() 42 mTelephonyCallback.addActiveDataSubscriptionIdListener(subId -> {}); in testAddListener_ActiveDataSubscriptionIdListener() 43 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener() 44 mTelephonyCallback.addActiveDataSubscriptionIdListener(subId -> {}); in testAddListener_ActiveDataSubscriptionIdListener() 45 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_ActiveDataSubscriptionIdListener() 50 assertThat(mTelephonyCallback.hasAnyListeners()).isFalse(); in testAddListener_CallStateListener() 51 mTelephonyCallback.addCallStateListener(state -> {}); in testAddListener_CallStateListener() 52 assertThat(mTelephonyCallback.hasAnyListeners()).isTrue(); in testAddListener_CallStateListener() 53 mTelephonyCallback.addCallStateListener(state -> {}); in testAddListener_CallStateListener() [all …]
|
D | TelephonyListenerManagerTest.java | 51 private TelephonyCallback mTelephonyCallback; field in TelephonyListenerManagerTest 59 mTelephonyManager, mExecutor, mTelephonyCallback); in setUp() 64 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_ActiveDataSubscriptionIdListener() 71 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_ActiveDataSubscriptionIdListener() 76 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_CallStateListener() 83 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_CallStateListener() 88 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_ServiceStateListener() 95 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_ServiceStateListener() 100 when(mTelephonyCallback.hasAnyListeners()).thenReturn(true); in testAddListenerRegisters_mixed() 109 .registerTelephonyCallback(mExecutor, mTelephonyCallback); in testAddListenerRegisters_mixed() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/telephony/ |
D | TelephonyListenerManager.java | 45 private final TelephonyCallback mTelephonyCallback; field in TelephonyListenerManager 56 mTelephonyCallback = telephonyCallback; in TelephonyListenerManager() 61 mTelephonyCallback.addActiveDataSubscriptionIdListener(listener); in addActiveDataSubscriptionIdListener() 67 mTelephonyCallback.removeActiveDataSubscriptionIdListener(listener); in removeActiveDataSubscriptionIdListener() 73 mTelephonyCallback.addCallStateListener(listener); in addCallStateListener() 79 mTelephonyCallback.removeCallStateListener(listener); in removeCallStateListener() 85 mTelephonyCallback.addServiceStateListener(listener); in addServiceStateListener() 91 mTelephonyCallback.removeServiceStateListener(listener); in removeServiceStateListener() 97 if (!mListening && mTelephonyCallback.hasAnyListeners()) { in updateListening() 99 mTelephonyManager.registerTelephonyCallback(mExecutor, mTelephonyCallback); in updateListening() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyRegistryTest.java | 101 private TelephonyCallbackWrapper mTelephonyCallback; field in TelephonyRegistryTest 327 mTelephonyCallback = new TelephonyCallbackWrapper(); in setUp() 328 mTelephonyCallback.init(mSimpleExecutor); in setUp() 340 mTelephonyCallback = null; in tearDown() 366 mContext.getAttributionTag(), mTelephonyCallback.callback, events, true); in testPhoneCapabilityChanged() 387 mTelephonyCallback.callback, events, true); in testActiveDataSubChanged() 415 mTelephonyCallback.callback, events, true); in testSrvccStateChanged() 443 mTelephonyCallback.callback, events, true); in testSrvccStateChangedWithRenouncedLocationAccess() 472 mTelephonyCallback.callback, events, true); in testSrvccStateChangedWithRenouncedFineLocationAccess() 517 mTelephonyCallback.callback, events, true); in testSrvccStateChangedNoPermission() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/ |
D | MobileStatusTracker.java | 45 private final MobileTelephonyCallback mTelephonyCallback; field in MobileStatusTracker 63 mTelephonyCallback = new MobileTelephonyCallback(); in MobileStatusTracker() 74 return mTelephonyCallback; in getTelephonyCallback() 86 mPhone.registerTelephonyCallback(mReceiverHandler::post, mTelephonyCallback); in setListening() 88 mPhone.unregisterTelephonyCallback(mTelephonyCallback); in setListening()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/connectivity/ |
D | ConnectivitySubsystemsRecoveryManager.java | 77 private final MobileTelephonyCallback mTelephonyCallback = new MobileTelephonyCallback(); field in ConnectivitySubsystemsRecoveryManager 216 mTelephonyCallback); in startTrackingTelephonyRestart() 222 mTelephonyManager.unregisterTelephonyCallback(mTelephonyCallback); in stopTrackingTelephonyRestart()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/ |
D | LinkBandwidthEstimator.java | 181 private final TelephonyCallback mTelephonyCallback = new TelephonyCallbackImpl(); field in LinkBandwidthEstimator 319 mTelephonyManager.registerTelephonyCallback(new HandlerExecutor(this), mTelephonyCallback); in LinkBandwidthEstimator()
|