/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | LooperExecutor.java | 38 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()
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | DtmfLocalTonePlayer.java | 165 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
|
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/ |
H A D | RadioOnStateListenerTest.java | 74 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 …]
|
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | CallAudioModeStateMachineTest.java | 78 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 …]
|
H A D | BluetoothRouteManagerTest.java | 93 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() 170 waitForHandlerAction(sm.getHandler(), TEST_TIMEOUT); in setupStateMachine() [all …]
|
H A D | ConnectionServiceFocusManagerTest.java | 112 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 …]
|
H A D | DtmfLocalTonePlayerTest.java | 67 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()
|
H A D | CallAudioRouteStateMachineTest.java | 232 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 …]
|
H A D | BasicCallTests.java | 177 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingCall() 236 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingVideoCallAsAudio() 268 .getConnectionServiceFocusManager().getHandler(), TEST_TIMEOUT); in testTelecomManagerAcceptRingingInvalidVideoState() 331 waitForHandlerAction(mConnectionServiceFixtureA.mConnectionServiceDelegate.getHandler(), in testIncomingEmergencyCallback() 637 .getCallAudioRouteStateMachine().getHandler(), TEST_TIMEOUT); in testAudioManagerOperations() 642 .getCallAudioRouteStateMachine().getHandler(), TEST_TIMEOUT); in testAudioManagerOperations() 651 .getCallAudioModeStateMachine().getHandler(), TEST_TIMEOUT); in testAudioManagerOperations() 653 .getCallAudioRouteStateMachine().getHandler(), TEST_TIMEOUT); in testAudioManagerOperations() 1175 .getCallAudioRouteStateMachine().getHandler(), TEST_TIMEOUT); in testUnmuteDuringEmergencyCall() 1184 .getCallAudioRouteStateMachine().getHandler(), TEST_TIMEOUT); in testUnmuteDuringEmergencyCall() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
H A D | HandlerThreadingDomain.java | 50 Handler getHandler() { in getHandler() method in HandlerThreadingDomain 56 return getHandler().getLooper().getThread(); in getThread() 61 getHandler().post(r); in post() 98 getHandler().postDelayed(r, delayMillis); in postDelayed() 103 getHandler().postDelayed(r, token, delayMillis); in postDelayed() 108 getHandler().removeCallbacksAndMessages(token); in removeQueuedRunnables()
|
/aosp12/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 1367 record.getHandler().post(new Runnable() { in setConnectionCapabilities() 1384 record.getHandler().post(new Runnable() { in setConnectionProperties() 1427 record.getHandler().post(new Runnable() { in setPostDialWait() 1443 record.getHandler().post(new Runnable() { in onPostDialChar() 1460 record.getHandler().post(new Runnable() { in setVideoState() 1477 record.getHandler().post(new Runnable() { in setVideoProvider() 1644 record.getHandler().post( in onRttInitiationSuccess() 1654 record.getHandler().post( in onRttInitiationFailure() 1664 record.getHandler().post( in onRttSessionRemotelyTerminated() 1674 record.getHandler().post( in onRemoteRttRequest() [all …]
|
H A D | RemoteConference.java | 178 record.getHandler().post(new Runnable() { in setDestroyed() 203 record.getHandler().post(new Runnable() { in setState() 221 record.getHandler().post(new Runnable() { in addConnection() 239 record.getHandler().post(new Runnable() { in removeConnection() 256 record.getHandler().post(new Runnable() { in setConnectionCapabilities() 274 record.getHandler().post(new Runnable() { in setConnectionProperties() 292 record.getHandler().post(new Runnable() { in setConferenceableConnections() 310 record.getHandler().post(new Runnable() { in setDisconnected() 349 record.getHandler().post(new Runnable() { in notifyExtrasChanged()
|
/aosp12/system/core/libcutils/ |
H A D | qtaguid.cpp | 89 static netdHandler& getHandler() { in getHandler() function 104 return getHandler().netdTagSocket(sockfd, tag, uid); in qtaguid_tagSocket() 115 return getHandler().netdUntagSocket(sockfd); in qtaguid_untagSocket() 120 return getHandler().netdSetCounterSet(counterSetNum, uid); in qtaguid_setCounterSet() 125 return getHandler().netdDeleteTagData(tag, uid); in qtaguid_deleteTagData()
|
/aosp12/packages/services/Car/service/src/com/android/car/telemetry/databroker/ |
H A D | DataSubscriber.java | 47 return mSubscriber.getHandler(); in getHandlerName() 99 && mSubscriber.getHandler().equals(other.getSubscriber().getHandler()); in equals() 105 mSubscriber.getHandler()); in hashCode()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
H A D | AvrcpControllerStateMachineTest.java | 169 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() 984 TestUtils.waitForLooperToBeIdle(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToSamePlayerId() 1009 TestUtils.waitForLooperToBeIdle(mAvrcpStateMachine.getHandler().getLooper()); in testAddressedPlayerChangedToSamePlayerId() [all …]
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
H A D | RecentsAnimationCallbacks.java | 117 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), in onAnimationStart() 120 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationStart() 131 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationCanceled() 141 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onTasksAppeared() 149 Utilities.postAsyncCallback(MAIN_EXECUTOR.getHandler(), () -> { in onAnimationFinished()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
H A D | PinPadView.java | 63 getHandler().postDelayed(this, LONG_CLICK_DELAY_MILLS); 154 getHandler().post(mOnBackspaceLongClick); in init() 158 getHandler().removeCallbacks(mOnBackspaceLongClick); in init() 171 getHandler().post(mOnBackspaceLongClick); in init() 175 getHandler().removeCallbacks(mOnBackspaceLongClick); in init()
|
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
H A D | DhcpServerTest.java | 190 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 …]
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | NetworkTypeController.java | 206 mPhone.registerForRadioOffOrNotAvailable(getHandler(), in registerForAllEvents() 208 mPhone.registerForPreferredNetworkTypeChanged(getHandler(), in registerForAllEvents() 210 mPhone.registerForPhysicalChannelConfig(getHandler(), in registerForAllEvents() 213 AccessNetworkConstants.TRANSPORT_TYPE_WWAN, getHandler(), in registerForAllEvents() 216 getHandler(), EVENT_BANDWIDTH_CHANGED, null); in registerForAllEvents() 222 .registerForPhysicalLinkStateChanged(getHandler(), in registerForAllEvents() 244 mPhone.unregisterForRadioOffOrNotAvailable(getHandler()); in unRegisterForAllEvents() 245 mPhone.unregisterForPreferredNetworkTypeChanged(getHandler()); in unRegisterForAllEvents() 247 AccessNetworkConstants.TRANSPORT_TYPE_WWAN, getHandler()); in unRegisterForAllEvents() 252 mPhone.mCi.unregisterForPcoData(getHandler()); in unRegisterForAllEvents() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/rollback/ |
H A D | RollbackManagerServiceImpl.java | 197 getHandler().post(() -> { in RollbackManagerServiceImpl() 238 getHandler().post(() -> { in RollbackManagerServiceImpl() 257 }, enableRollbackFilter, null, getHandler()); in RollbackManagerServiceImpl() 361 }, filter, null, getHandler()); in registerUserCallbacks() 412 getHandler().post(() -> 511 getHandler().post(() -> { 527 getHandler().post(() -> { 557 getHandler().post(() -> { 595 getHandler().post(() -> { 742 private Handler getHandler() { [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/location/provider/ |
H A D | StationaryThrottlingLocationProvider.java | 131 FgThread.getHandler().removeCallbacks(mDeliverLastLocationCallback); in onStop() 216 FgThread.getHandler().removeCallbacks(mDeliverLastLocationCallback); in onThrottlingChangedLocked() 223 FgThread.getHandler().post(mDeliverLastLocationCallback); in onThrottlingChangedLocked() 226 FgThread.getHandler().postDelayed(mDeliverLastLocationCallback, delayMs); in onThrottlingChangedLocked() 236 FgThread.getHandler().removeCallbacks(mDeliverLastLocationCallback); in onThrottlingChangedLocked() 291 FgThread.getHandler().postDelayed(this, mThrottlingIntervalMs); in run()
|
/aosp12/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/presence/publish/ |
H A D | DeviceCapabilityListenerTest.java | 135 Handler handler = deviceCapListener.getHandler(); in testTtyPreferredModeChange() 152 Handler handler = deviceCapListener.getHandler(); in testAirplaneModeChange() 169 Handler handler = deviceCapListener.getHandler(); in testMmtelRegistration() 187 Handler handler = deviceCapListener.getHandler(); in testMmTelUnregistration() 217 Handler handler = deviceCapListener.getHandler(); in testRcsRegistration() 240 Handler handler = deviceCapListener.getHandler(); in testRcsUnregistration() 258 Handler handler = deviceCapListener.getHandler(); in testMmtelCapabilityChange()
|
/aosp12/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | PackageIconLoaderTest.java | 56 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()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | QueuedWork.java | 103 private static Handler getHandler() { in getHandler() method in QueuedWork 159 Handler handler = getHandler(); in waitToFinish() 223 Handler handler = getHandler(); in queue() 260 getHandler().removeMessages(QueuedWorkHandler.MSG_RUN); in processPendingWork()
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | Registrant.java | 76 Handler h = getHandler(); in internalNotifyRegistrant() 97 Handler h = getHandler(); in messageForRegistrant() 115 getHandler() in getHandler() method in Registrant
|