Home
last modified time | relevance | path

Searched refs:getHandler (Results 1 – 25 of 94) sorted by relevance

1234

/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java71 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown()
72 mListener.getHandler().removeCallbacksAndMessages(null); in tearDown()
85 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback()
105 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue()
107 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_OkToCallTrue()
110 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue()
128 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout()
130 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_NoOkToCall_Timeout()
133 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout()
156 waitForHandlerActionDelayed(mListener.getHandler(), TIMEOUT_MS, TIMEOUT_MS /*delay*/); in testTimeout_RetryFailure()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java86 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
87 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
88 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
89 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
92 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
144 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
145 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
146 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
147 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
152 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
[all …]
DCallAudioRouteStateMachineTest.java169 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
170 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
176 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
211 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff()
219 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff()
258 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
277 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
279 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
289 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
291 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
[all …]
DConnectionServiceFocusManagerTest.java105 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testRequestFocusWithActiveFocusExisted()
112 mFocusManagerUT.getHandler(), in testRequestFocusWithActiveFocusExisted()
153 mFocusManagerUT.getHandler(), in testFocusConnectionServiceDoesNotRespondToFocusLost()
189 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testFocusConnectionServiceReleased()
209 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedAffectCallFocus()
219 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedAffectCallFocus()
242 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent()
257 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testFocusCallIsNullWhenRemoveTheFocusCall()
273 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testConnectionServiceFocusDeath()
289 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testNonExternalCallChangedToExternalCall()
[all …]
DDtmfLocalTonePlayerTest.java59 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testSupportedStart()
69 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testUnsupportedStart()
80 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenUninitialized()
91 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenInitialized()
102 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenUninitialized()
113 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenInitialized()
124 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testProperTeardown()
DCallAudioModeStateMachineTest.java63 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced()
77 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced()
105 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar()
119 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar()
134 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
148 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
162 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
DIncomingCallFilterTest.java129 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testAsyncBlockCallResultFilter()
143 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testDirectToVoiceMailCallResultFilter()
157 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testCallScreeningServiceBlockCallResultFilter()
171 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testPassCallResultFilter()
197 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForAsyncBlockCheckFilter()
229 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForDirectToVoicemailCallFilter()
258 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testMultipleFiltersForCallScreeningServiceFilter()
282 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testFilterTimeout()
296 waitForHandlerAction(testFilter.getHandler(), SHORT_TIMEOUT * 2); in testFilterTimeoutDoesntTrip()
DCallRedirectionProcessorTest.java182 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testCarrierServiceTimeoutNoUserDefinedService()
191 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testCarrierServiceTimeoutNoUserDefinedService()
202 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testUserDefinedServiceTimeoutNoCarrierService()
219 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testUserDefinedServiceTimeoutNoCarrierService()
230 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
250 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
277 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testProcessGatewayCall()
DCallAudioRouteTransitionTests.java262 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition()
269 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition()
270 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testActiveTransition()
272 Handler h = stateMachine.getHandler(); in testActiveTransition()
353 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testQuiescentTransition()
354 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testQuiescentTransition()
DBluetoothRouteTransitionTests.java293 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions()
294 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions()
295 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testTransitions()
332 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testTransitions()
363 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in setupStateMachine()
DAnalyticsTests.java359 .getCallAudioRouteStateMachine().getHandler(),
363 .getCallAudioModeStateMachine().getHandler(),
369 .getCallAudioRouteStateMachine().getHandler(),
373 .getCallAudioModeStateMachine().getHandler(),
DVideoCallTests.java265 waitForHandlerAction(camsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute()
280 waitForHandlerAction(carsm.getHandler(), TEST_TIMEOUT); in verifyAudioRoute()
/packages/services/Telecomm/src/com/android/server/telecom/
DDtmfLocalTonePlayer.java165 getHandler().sendMessage( in playTone()
166 getHandler().obtainMessage(EVENT_PLAY_TONE, (int) c, 0, Log.createSubsession())); in playTone()
180 getHandler().sendMessage( in stopTone()
181 getHandler().obtainMessage(EVENT_STOP_TONE, Log.createSubsession())); in stopTone()
206 getHandler().sendMessage( in startDtmfSession()
207 getHandler().obtainMessage(EVENT_START_SESSION, Log.createSubsession())); in startDtmfSession()
223 getHandler().sendMessage( in endDtmfSession()
224 getHandler().obtainMessage(EVENT_END_SESSION, Log.createSubsession())); in endDtmfSession()
233 public ToneHandler getHandler() { in getHandler() method in DtmfLocalTonePlayer
/packages/apps/Launcher3/src/com/android/launcher3/util/
DUiThreadHelper.java49 private static Handler getHandler(Context context) { in getHandler() method in UiThreadHelper
58 Message.obtain(getHandler(context), MSG_HIDE_KEYBOARD, token).sendToTarget(); in hideKeyboardAsync()
62 Message.obtain(getHandler(activity), MSG_SET_ORIENTATION, orientation, 0, activity) in setOrientationAsync()
67 Message.obtain(getHandler(context), MSG_RUN_COMMAND, arg1, arg2, command).sendToTarget(); in runAsyncCommand()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DPackageIconLoaderTest.java56 return new PackageIconLoader(mContext, mContext.getPackageName(), mThread.getHandler(), in create()
79 public Handler getHandler() { in getHandler() method in PackageIconLoaderTest.ConsumerThread
91 getHandler().post(new Runnable(){ in exit()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DRecentsAnimationListenerSet.java84 Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { in onAnimationStart()
94 Utilities.postAsyncCallback(MAIN_THREAD_EXECUTOR.getHandler(), () -> { in onAnimationCanceled()
101 MAIN_THREAD_EXECUTOR.getHandler().postDelayed(() -> mController.cleanupScreenshot(), in onAnimationCanceled()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java127 protected Handler getHandler() { in getHandler() method in AggregationSuggestionEngine
168 Handler handler = getHandler(); in reset()
177 mContentObserver = new SuggestionContentObserver(getHandler()); in onNameChange()
189 Handler handler = getHandler(); in scheduleSuggestionLookup()
310 if (getHandler().hasMessages(MESSAGE_NAME_CHANGE)) { in loadAggregationSuggestions()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarHeadsUpNotificationManager.java176 && currentActiveHeadsUpNotification.getHandler().hasMessagesOrCallbacks()) { in maybeShowHeadsUp()
211 currentActiveHeadsUpNotification.getHandler().postDelayed(() -> in maybeRemoveHeadsUp()
558 currentNotification.getHandler().removeCallbacksAndMessages(null); in setAutoDismissViews()
559 currentNotification.getHandler().postDelayed(() -> animateOutHUN(statusBarNotification), in setAutoDismissViews()
583 currentHeadsUpNotification.getHandler().removeCallbacksAndMessages(null); in animateOutHUN()
640 currentHeadsUpNotification.getHandler().removeCallbacksAndMessages(null); in resetView()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DPinPadView.java62 getHandler().postDelayed(this, LONG_CLICK_DELAY_MILLS);
153 getHandler().post(mOnBackspaceLongClick); in init()
157 getHandler().removeCallbacks(mOnBackspaceLongClick); in init()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java172 private static Handler getHandler() { in getHandler() method in PeriodicCallbackModel
211 getHandler().postDelayed(this, delay); in schedule()
215 getHandler().removeCallbacks(this); in unSchedule()
/packages/apps/TV/src/com/android/tv/guide/
DProgramItemView.java155 Handler handler = view.getHandler();
185 if (getHandler() != null) {
186 getHandler()
496 if (getHandler() != null) { in clearValues()
497 getHandler().removeCallbacks(mUpdateFocus); in clearValues()
/packages/apps/Launcher3/src/com/android/launcher3/logging/
DFileLog.java88 Message.obtain(getHandler(), LogWriterCallback.MSG_WRITE, out).sendToTarget(); in print()
91 private static Handler getHandler() { in getHandler() method in FileLog
111 Message.obtain(getHandler(), LogWriterCallback.MSG_FLUSH, in flushAll()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DMdnsDiscovery.java192 getHandler().post(MdnsDiscovery.this::allPrintersLost); in onDiscoveryStopped()
198 getHandler().post(() -> mResolvers.add(new Resolver(info))); in onServiceFound()
206 getHandler().post(() -> { in onServiceLost()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbDevicePreference.java46 if (usbDeviceSettings.getHandler() != null) { in UsbDevicePreference()
47 setSummary(usbDeviceSettings.getHandler().flattenToShortString()); in UsbDevicePreference()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DConversationViewFragment.java210 getHandler().post(new FragmentRunnable("delayedConversationLoad",
343 getHandler().post(new FragmentRunnable("showConversation", this) { in onActivityCreated()
397 mProgressController = new ConversationViewProgressController(this, getHandler()); in onCreateView()
1359 getHandler().post(new FragmentRunnable("onWebContentGeometryChange", in onWebContentGeometryChange()
1458 getHandler().post(new FragmentRunnable("onContentReady", in onContentReady()
1506 getHandler().post(new FragmentRunnable("onInlineAttachmentsParsed", in onInlineAttachmentsParsed()

1234