Home
last modified time | relevance | path

Searched refs:listen (Results 1 – 25 of 75) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java95 verify(mManager1).listen(captor1.capture(), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_beforeResume_startedListening()
96 verify(mManager2).listen(captor2.capture(), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_beforeResume_startedListening()
97 verify(mManager3, never()).listen(any(), anyInt()); in updateSubscriptionIds_beforeResume_startedListening()
108 verify(mManager1).listen(any(PhoneStateListener.class), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_twoCalls_oneIdAdded()
109 verify(mManager2).listen(any(PhoneStateListener.class), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_twoCalls_oneIdAdded()
112 verify(mManager1, never()).listen(any(PhoneStateListener.class), eq(LISTEN_NONE)); in updateSubscriptionIds_twoCalls_oneIdAdded()
113 verify(mManager2, never()).listen(any(PhoneStateListener.class), eq(LISTEN_NONE)); in updateSubscriptionIds_twoCalls_oneIdAdded()
114 verify(mManager3).listen(any(PhoneStateListener.class), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_twoCalls_oneIdAdded()
123 verify(mManager1).listen(captor1.capture(), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
124 verify(mManager2).listen(any(PhoneStateListener.class), eq(LISTEN_SIGNAL_STRENGTHS)); in updateSubscriptionIds_twoCalls_oneIdRemoved()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java122 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE)); in testListenForPhoneState_ServiceOnly()
136 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrength()
149 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
152 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
153 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
164 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
167 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
182 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE in testListenForPhoneState_MultiDevice_AllUpAllDown()
191 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_NONE)); in testListenForPhoneState_MultiDevice_AllUpAllDown()
205 verify(mTelephonyManager).listen(any(), eq(PhoneStateListener.LISTEN_SERVICE_STATE)); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DConnectivityUtil.java95 mTelephonyManager.listen(mPhoneStateListener, in register()
108 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in unregister()
146 mTelephonyManager.listen( in registerForSignalStrength()
151 mTelephonyManager.listen(mSignalStrengthListener, PhoneStateListener.LISTEN_NONE); in unregisterForSignalStrength()
/packages/services/Telephony/src/com/android/phone/vvm/
DVvmSimStateTracker.java81 public void listen() { in listen() method in VvmSimStateTracker.ServiceStateListener
87 telephonyManager.listen(this, PhoneStateListener.LISTEN_SERVICE_STATE); in listen()
95 .listen(this, PhoneStateListener.LISTEN_NONE); in unlisten()
240 listener.listen(); in listenToAccount()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DMobileNetworkPreferenceControllerTest.java118 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
122 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in goThroughLifecycle_isAvailable_shouldListenToServiceChange()
140 verify(mTelephonyManager).listen(mController.mPhoneStateListener, in serviceStateChange_shouldUpdatePrefSummary()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSignalStrengthListener.java86 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in startListening()
91 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_NONE); in stopListening()
DVideoCallingPreferenceController.java185 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
190 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
DWifiCallingPreferenceController.java213 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
218 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
DEnhanced4gBasePreferenceController.java228 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
237 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowTelephonyManager.java50 protected void listen(PhoneStateListener listener, int flags) { in listen() method in ShadowTelephonyManager
51 super.listen(listener, flags); in listen()
/packages/apps/Settings/src/com/android/settings/
DAirplaneModeEnabler.java101 mTelephonyManager.listen(mPhoneStateListener, in start()
109 mTelephonyManager.listen(mPhoneStateListener, in stop()
/packages/apps/Settings/src/com/android/settings/network/
DMobileNetworkPreferenceController.java110 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in onStart()
121 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
DApnSettings.java180 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
185 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
269 mTelephonyManager.listen(mPhoneStateListener, in onPause()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DCellularDataConditionController.java142 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopPhoneStateListener()
155 mTelephonyManager.listen(mPhoneStateListener, in restartPhoneStateListener()
/packages/apps/Dialer/java/com/android/dialer/speeddial/
DSpeedDialFragment.java245 speedDialLoaderListener.listen( in loadContacts()
260 speedDialLoaderListener.listen( in onActivityResult()
461 speedDialLoaderListener.listen( in removeFavoriteContact()
575 speedDialLoaderListener.listen( in onClick()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailErrorManager.java128 telephonyManager.listen(serviceStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in addServiceStateListener()
163 telephonyManager.listen(listener, PhoneStateListener.LISTEN_NONE); in onDestroy()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DMobileNetworkPreferenceController.java116 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); in onStart()
127 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onStop()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnhanced4gLtePreferenceController.java175 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
179 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
DVideoCallingPreferenceController.java166 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
170 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
DWifiCallingPreferenceController.java183 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_CALL_STATE); in register()
187 mTelephonyManager.listen(this, PhoneStateListener.LISTEN_NONE); in unregister()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmService.java118 mTelephonyManager.listen(mPhoneStateListener.init(), PhoneStateListener.LISTEN_CALL_STATE); in startAlarm()
133 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopCurrentAlarm()
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DPreCallCoordinatorImpl.java171 public <OutputT> void listen( in listen() method in PreCallCoordinatorImpl
176 uiListener.listen( in listen()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java159 mTelephonyManager.listen(mPhoneStateListener, events); in startListenForPhoneState()
169 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in stopListenForPhoneState()
/packages/services/Telephony/src/com/android/phone/
DCallFeaturesSetting.java279 private void listenPhoneState(boolean listen) { in listenPhoneState() argument
282 telephonyManager.listen(mPhoneStateListener, listen in listenPhoneState()
/packages/services/Telephony/src/com/android/phone/settings/
DAccessibilitySettingsFragment.java147 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE); in onResume()
155 tm.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); in onPause()

123