Home
last modified time | relevance | path

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

1234567

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeStateMachineTest.java78 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced()
91 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoFocusWhenRingerSilenced()
118 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar()
131 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testNoRingWhenDeviceIsAtEar()
146 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
159 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
173 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testRegainFocusWhenHfpIsConnectedSilenced()
190 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testDoNotRingTwiceWhenHfpConnected()
203 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testDoNotRingTwiceWhenHfpConnected()
215 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testDoNotRingTwiceWhenHfpConnected()
[all …]
DBluetoothRouteManagerTest.java93 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
94 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
95 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
96 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
99 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testConnectHfpRetryWhileNotConnected()
151 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
152 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
153 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
154 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
159 sm.getHandler().removeMessages(BluetoothRouteManager.CONNECTION_TIMEOUT); in testConnectHfpRetryWhileConnectedToAnotherDevice()
[all …]
DConnectionServiceFocusManagerTest.java112 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testRequestFocusWithActiveFocusExisted()
119 mFocusManagerUT.getHandler(), in testRequestFocusWithActiveFocusExisted()
160 mFocusManagerUT.getHandler(), in testFocusConnectionServiceDoesNotRespondToFocusLost()
196 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testFocusConnectionServiceReleased()
216 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedAffectCallFocus()
226 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedAffectCallFocus()
249 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testCallStateChangedDoesNotAffectCallFocusIfConnectionServiceIsDifferent()
264 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testFocusCallIsNullWhenRemoveTheFocusCall()
280 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testConnectionServiceFocusDeath()
296 waitForHandlerAction(mFocusManagerUT.getHandler(), CHECK_HANDLER_INTERVAL_MS); in testNonExternalCallChangedToExternalCall()
[all …]
DCallAudioRouteStateMachineTest.java232 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
233 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
239 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testSpeakerPersistence()
275 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff()
283 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOff()
323 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
327 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
328 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
346 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
348 waitForHandlerAction(stateMachine.getHandler(), TEST_TIMEOUT); in testUserBluetoothSwitchOffAndOnAgain()
[all …]
DDtmfLocalTonePlayerTest.java67 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testSupportedStart()
77 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testUnsupportedStart()
88 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenUninitialized()
99 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testPlayToneWhenInitialized()
110 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenUninitialized()
121 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testStopToneWhenInitialized()
132 waitForHandlerAction(mPlayer.getHandler(), TIMEOUT); in testProperTeardown()
DBasicCallTests.java168 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingCall()
227 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingVideoCallAsAudio()
259 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingInvalidVideoState()
322 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testIncomingEmergencyCallback()
350 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testOutgoingCallAndSelectPhoneAccount()
358 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testOutgoingCallAndSelectPhoneAccount()
360 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testOutgoingCallAndSelectPhoneAccount()
387 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testIncomingCallFromContactWithSendToVoicemailIsRejected()
393 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testIncomingCallFromContactWithSendToVoicemailIsRejected()
437 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testIncomingCallCallerInfoLookupTimesOutIsAllowed()
[all …]
DCallRedirectionProcessorTest.java146 mProcessor.getHandler().removeCallbacksAndMessages(null); in tearDown()
208 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testCarrierServiceTimeoutNoUserDefinedService()
217 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testCarrierServiceTimeoutNoUserDefinedService()
228 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testUserDefinedServiceTimeoutNoCarrierService()
245 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testUserDefinedServiceTimeoutNoCarrierService()
256 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
276 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
303 waitForHandlerActionDelayed(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY, in testProcessGatewayCall()
344 waitForHandlerAction(mProcessor.getHandler(), HANDLER_TIMEOUT_DELAY); in testStripPostDialDigits()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DRadioOnStateListenerTest.java74 mListener.getHandler().removeCallbacksAndMessages(null); in tearDown()
76 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS /*ms timeout*/); in tearDown()
90 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testRegisterForCallback()
115 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue()
117 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_OkToCallTrue()
120 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_OkToCallTrue()
139 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout()
141 mListener.getHandler().obtainMessage(RadioOnStateListener.MSG_SERVICE_STATE_CHANGED, in testPhoneChangeState_NoOkToCall_Timeout()
144 waitForHandlerAction(mListener.getHandler(), TIMEOUT_MS); in testPhoneChangeState_NoOkToCall_Timeout()
168 waitForHandlerActionDelayed(mListener.getHandler(), TIMEOUT_MS, TIMEOUT_MS /*delay*/); in testTimeout_RetryFailure()
[all …]
/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()
207 getHandler().sendMessage( in startDtmfSession()
208 getHandler().obtainMessage(EVENT_START_SESSION, Log.createSubsession())); in startDtmfSession()
224 getHandler().sendMessage( in endDtmfSession()
225 getHandler().obtainMessage(EVENT_END_SESSION, Log.createSubsession())); in endDtmfSession()
234 public ToneHandler getHandler() { in getHandler() method in DtmfLocalTonePlayer
/packages/apps/Launcher3/src/com/android/launcher3/util/
DLooperExecutor.java38 public Handler getHandler() { in getHandler() method in LooperExecutor
44 if (getHandler().getLooper() == Looper.myLooper()) { in execute()
47 getHandler().post(runnable); in execute()
55 getHandler().post(runnable); in post()
99 return getHandler().getLooper().getThread(); in getThread()
106 return getHandler().getLooper(); in getLooper()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java169 TestUtils.waitForLooperToFinishScheduledTask(sm.getHandler().getLooper()); in destroyStateMachine()
203 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setUpConnectedState()
257 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setCurrentTrack()
267 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setPlaybackState()
276 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setPlaybackPosition()
318 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in setNowPlayingList()
750 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerExists()
775 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerExists()
831 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAvailablePlayersReceived_AddressedPlayerDoesNotExist()
896 TestUtils.waitForLooperToFinishScheduledTask(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToNewKnownPlayer()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServerTest.java190 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in startServer()
228 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testStartWithCallbacks()
245 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover()
264 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_RapidCommit()
283 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testDiscover_OutOfAddresses()
312 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Ack()
330 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRequest_Selecting_Nak()
345 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in testRelease()
371 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in runOnReceivedDeclinePacket()
396 HandlerUtils.waitForIdle(mServer.getHandler(), TEST_TIMEOUT_MS); in updateServingParams()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentsAnimationCallbacks.java98 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), in onAnimationStart()
101 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationStart()
112 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationCanceled()
122 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onTaskAppeared()
130 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationFinished()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvisioner.java123 mOsuNetworkConnection.init(mProvisioningStateMachine.getHandler()); in init()
125 mProvisioningStateMachine.getHandler().post(() -> { in init()
159 mProvisioningStateMachine.getHandler().post(() -> { in startSubscriptionProvisioning()
211 public Handler getHandler() { in getHandler() method in PasspointProvisioner.ProvisioningStateMachine
327 mProvisioningStateMachine.getHandler().post(() -> initSoapExchange()); in handleServerConnectionStatus()
767 mProvisioningStateMachine.getHandler().post(() -> handleRedirectResponse()); in launchOsuWebView()
1139 mProvisioningStateMachine.getHandler().post(() -> in onServerConnectionStatus()
1154 mProvisioningStateMachine.getHandler().post(() -> { in onServerValidationStatus()
1158 mProvisioningStateMachine.getHandler().post(() -> { in onServerValidationStatus()
1176 mProvisioningStateMachine.getHandler().post(() -> in onReceivedSoapMessage()
[all …]
/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/Car/Notification/src/com/android/car/notification/
DCarHeadsUpNotificationManager.java155 && currentActiveHeadsUpNotification.getHandler().hasMessagesOrCallbacks()) { in maybeShowHeadsUp()
190 currentActiveHeadsUpNotification.getHandler().postDelayed(() -> in maybeRemoveHeadsUp()
453 currentNotification.getHandler().removeCallbacksAndMessages(null); in setAutoDismissViews()
454 currentNotification.getHandler().postDelayed(() -> dismissHun(alertEntry), mDuration); in setAutoDismissViews()
477 currentHeadsUpNotification.getHandler().removeCallbacksAndMessages(null); in animateOutHun()
518 currentHeadsUpNotification.getHandler().removeCallbacksAndMessages(null); in resetView()
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/
DWifiP2pServiceImpl.java713 return new Messenger(mP2pStateMachine.getHandler()); in getP2pStateMachineMessenger()
903 this.getHandler(), in P2pStateMachine()
957 getHandler()); in P2pStateMachine()
983 mP2pStateMachine.getHandler().removeMessages(CMD_P2P_IDLE_SHUTDOWN); in scheduleIdleShutdown()
993 mP2pStateMachine.getHandler().removeMessages(CMD_P2P_IDLE_SHUTDOWN); in cancelIdleShutdown()
1024 WifiP2pMonitor.AP_STA_CONNECTED_EVENT, getHandler()); in registerForWifiMonitorEvents()
1026 WifiP2pMonitor.AP_STA_DISCONNECTED_EVENT, getHandler()); in registerForWifiMonitorEvents()
1028 WifiP2pMonitor.P2P_DEVICE_FOUND_EVENT, getHandler()); in registerForWifiMonitorEvents()
1030 WifiP2pMonitor.P2P_DEVICE_LOST_EVENT, getHandler()); in registerForWifiMonitorEvents()
1032 WifiP2pMonitor.P2P_FIND_STOPPED_EVENT, getHandler()); in registerForWifiMonitorEvents()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/popup/
DRemoteActionShortcut.java58 MAIN_EXECUTOR.getHandler()); in setIconAndLabelFor()
66 MAIN_EXECUTOR.getHandler()); in setIconAndContentDescriptionFor()
100 MAIN_EXECUTOR.getHandler()); in onClick()
/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/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/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DBondStateMachineTest.java113 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
117 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
124 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
127 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
136 TestUtils.waitForLooperToFinishScheduledTask(mBondStateMachine.getHandler().getLooper()); in testCreateBondAfterRemoveBond()
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DIkeSessionTest.java96 assertNotNull(ikeSession.mIkeSessionStateMachine.getHandler().getLooper()); in testConstructIkeSession()
138 sessions[0].mIkeSessionStateMachine.getHandler().getLooper(), in testConstructFromDifferentThreads()
139 sessions[1].mIkeSessionStateMachine.getHandler().getLooper()); in testConstructFromDifferentThreads()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java604 HandlerUtils.waitForIdle(ipc.getHandler(), TEST_TIMEOUT_MS);
662 return expectAlarmSet(inOrder, tagMatch, (long) afterSeconds, mIpc.getHandler());
1065 HandlerUtils.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
1098 HandlerUtils.waitForIdle(mDependencies.mDhcpClient.getHandler(), TEST_TIMEOUT_MS);
1458 HandlerUtils.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
1763 mIpc.getHandler().post(() -> lastAlarm.onAlarm());
1784 HandlerUtils.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
1790 mIpc.getHandler().post(() -> clearAlarm.onAlarm());
1791 HandlerUtils.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
1826 HandlerUtils.waitForIdle(mIpc.getHandler(), TEST_TIMEOUT_MS);
[all …]
/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/apps/Launcher3/src/com/android/launcher3/logging/
DFileLog.java92 Message.obtain(getHandler(), LogWriterCallback.MSG_WRITE, out).sendToTarget(); in print()
96 static Handler getHandler() { in getHandler() method in FileLog
115 Message.obtain(getHandler(), LogWriterCallback.MSG_FLUSH, in flushAll()

1234567