/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyEventDispatcherTest.java | 161 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_eventNotHandled_shouldPassEventToFramework() 175 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_eventHandled_shouldNotPassEventToFramework() 191 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_twoServicesReturnsFalse_shouldPassEventToFramework() 207 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_twoServicesReturnsTrue_shouldNotPassEventToFramework() 224 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstOfTwoServicesReturnsTrue_shouldNotPassEventToFramework() 241 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_secondOfTwoServicesReturnsTrue_shouldNotPassEventToFramework() 258 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstServiceReturnsTwice_secondShouldBeIgnored() 263 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstServiceReturnsTwice_secondShouldBeIgnored() 280 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testEventTimesOut_shouldPassToFramework() 295 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testEventTimesOut_afterOneServiceReturnsFalse_shouldPassToFramework() [all …]
|
D | FingerprintGestureControllerTest.java | 120 assertFalse(messageCapturingHandler.hasMessages()); in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler() 161 assertFalse(messageCapturingHandler.hasMessages()); in testGestureCallback_withHandler_shouldPostRunnableToHandler()
|
D | KeyboardInterceptorTest.java | 98 assertFalse(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 108 assertTrue(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 125 assertTrue(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestLooperManagerTest.java | 65 assertFalse(tlm.hasMessages(handler, null, 42)); in doTest() 71 assertTrue(tlm.hasMessages(handler, null, 42)); in doTest() 78 assertFalse(tlm.hasMessages(handler, null, 42)); in doTest() 85 assertFalse(tlm.hasMessages(handler, null, 42)); in doTest()
|
/frameworks/base/core/java/android/os/ |
D | TestLooperManager.java | 155 public boolean hasMessages(Handler h, Object object, int what) { in hasMessages() method in TestLooperManager 157 return mQueue.hasMessages(h, what, object); in hasMessages() 167 public boolean hasMessages(Handler h, Object object, Runnable r) { in hasMessages() method in TestLooperManager 169 return mQueue.hasMessages(h, r, object); in hasMessages()
|
D | Handler.java | 853 public final boolean hasMessages(int what) { in hasMessages() method in Handler 854 return mQueue.hasMessages(this, what, null); in hasMessages() 862 return mQueue.hasMessages(this); in hasMessagesOrCallbacks() 869 public final boolean hasMessages(int what, @Nullable Object object) { in hasMessages() method in Handler 870 return mQueue.hasMessages(this, what, object); in hasMessages() 888 return mQueue.hasMessages(this, r, null); in hasCallbacks()
|
D | MessageQueue.java | 699 boolean hasMessages(Handler h, int what, Object object) { in hasMessages() method in MessageQueue 734 boolean hasMessages(Handler h, Runnable r, Object object) { in hasMessages() method in MessageQueue 751 boolean hasMessages(Handler h) { in hasMessages() method in MessageQueue
|
/frameworks/base/tests/utils/testutils/java/com/android/server/accessibility/test/ |
D | MessageCapturingHandler.java | 89 if (hasMessages()) { in removeAllMessages() 97 public boolean hasMessages() { in hasMessages() method in MessageCapturingHandler 105 if (!hasMessages(message.what, message.obj)) { in removeStaleMessages()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/ |
D | DemoSimulator.java | 171 if (isAligned && !hasMessages(EVENT_DEVICE_ALIGNED)) { in handleEventDeviceAlignedWithSatellite() 177 } else if (!isAligned && hasMessages(EVENT_DEVICE_ALIGNED)) { in handleEventDeviceAlignedWithSatellite() 231 if (!isAligned && !hasMessages(EVENT_DEVICE_NOT_ALIGNED)) { in handleEventDeviceAlignedWithSatellite() 238 } else if (isAligned && hasMessages(EVENT_DEVICE_NOT_ALIGNED)) { in handleEventDeviceAlignedWithSatellite()
|
D | DatagramDispatcher.java | 496 return hasMessages(EVENT_WAIT_FOR_DEVICE_ALIGNMENT_IN_DEMO_MODE_TIMED_OUT); in isSatelliteAlignedTimerStarted() 730 return hasMessages(EVENT_DATAGRAM_WAIT_FOR_CONNECTED_STATE_TIMED_OUT); in isDatagramWaitForConnectedStateTimerStarted() 746 if (hasMessages(EVENT_WAIT_FOR_DATAGRAM_SENDING_RESPONSE_TIMED_OUT)) { in startWaitForDatagramSendingResponseTimer()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | GbaManager.java | 123 if (!mHandler.hasMessages(EVENT_BIND_SERVICE)) { in handleMessage() 262 if (!mHandler.hasMessages(EVENT_REQUESTS_RECEIVED)) { in bootstrapAuthenticationRequest() 359 if (mHandler.hasMessages(EVENT_UNBIND_SERVICE)) { in releaseServiceAsNeeded() 443 if (mHandler.hasMessages(EVENT_BIND_SERVICE)) { in retryBind() 471 if (!mHandler.hasMessages(EVENT_CONFIG_CHANGED)) { in overrideServicePackage() 494 if (!mHandler.hasMessages(EVENT_CONFIG_CHANGED)) { in overrideReleaseTime()
|
D | SimultaneousCallingTracker.java | 209 if (!mHandler.hasMessages(EVENT_SUBSCRIPTION_CHANGED)) { 222 if (!mHandler.hasMessages(EVENT_PHONE_CAPABILITY_CHANGED)) { 228 if (!mHandler.hasMessages(EVENT_DEVICE_CONFIG_CHANGED)) {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/satellite/ |
D | DemoSimulatorTest.java | 239 return hasMessages(EVENT_DEVICE_ALIGNED); in isDeviceAlignedTimerStarted() 243 return hasMessages(EVENT_DEVICE_NOT_ALIGNED); in isDeviceNotAlignedTimerStarted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationEntryProcessorFactoryLooperImpl.kt | 47 if (!hasMessages(PROCESS_MSG, obj)) { in request()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/app/ |
D | GameManagerServiceTests.java | 1558 gameManagerService.mHandler.hasMessages(CANCEL_GAME_LOADING_MODE)); in testSetGameStateLoading_withNoDeviceConfig() 1581 gameManagerService.mHandler.hasMessages(CANCEL_GAME_LOADING_MODE)); in testSetGameStateLoading_withDeviceConfig() 1607 gameManagerService.mHandler.hasMessages(CANCEL_GAME_LOADING_MODE)); in testSetGameStateNotLoading() 1618 assertFalse(gameManagerService.mHandler.hasMessages(SET_GAME_STATE)); in testSetGameState_nonGame() 1638 assertFalse(gameManagerService.mHandler.hasMessages(SET_GAME_STATE)); in testAddGameStateListener() 1645 assertTrue(gameManagerService.mHandler.hasMessages(SET_GAME_STATE)); in testAddGameStateListener() 1659 assertTrue(gameManagerService.mHandler.hasMessages(SET_GAME_STATE)); in testAddGameStateListener() 1681 assertTrue(gameManagerService.mHandler.hasMessages(SET_GAME_STATE)); in testRemoveGameStateListener() 1987 assertFalse(gameManagerService.mHandler.hasMessages(WRITE_SETTINGS)); in testUpdateCustomGameModeConfiguration_nonGame() 2220 assertTrue(gameManagerService.mHandler.hasMessages(CANCEL_GAME_LOADING_MODE)); in testNotifyGraphicsEnvironmentSetup() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 359 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_LOAD_ENTRIES)) { in doResumeIfNeededLocked() 655 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_LOAD_ENTRIES)) { in addPackage() 658 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage() 699 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage() 724 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser() 740 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser() 952 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_REBUILD_LIST)) { in rebuild() 1042 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList() 1229 if (!mMainHandler.hasMessages(MainHandler.MSG_LOAD_ENTRIES_COMPLETE)) { in handleMessage() 1304 if (!mMainHandler.hasMessages(MainHandler.MSG_LAUNCHER_INFO_CHANGED)) { in handleMessage() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 2330 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2337 assertFalse(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2344 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2351 assertFalse(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2358 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2365 assertFalse(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2372 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2380 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersProcStateChanges() 2393 assertTrue(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersStaleChanges() 2400 assertFalse(mService.mUidEventHandler.hasMessages(UID_MSG_STATE_CHANGED)); in testUidObserverFiltersStaleChanges() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | HandlerCaller.java | 80 public boolean hasMessages(int what) { in hasMessages() method in HandlerCaller 81 return mH.hasMessages(what); in hasMessages()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableLooper.java | 320 if (!queueWrapper.hasMessages(handler, null, execute)) { 327 if (!queueWrapper.hasMessages(handler, null, execute)) {
|
D | TestableInstrumentation.java | 166 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestHandler.java | 133 if (!hasMessages(msgId)) { in dispatch()
|
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/ |
D | RemoteSystemCaptionsManagerService.java | 113 if (mHandler.hasMessages(MSG_BIND)) { in scheduleBind()
|
/frameworks/base/core/java/android/app/ |
D | QueuedWork.java | 192 hadMessages = getHandler().hasMessages(QueuedWorkHandler.MSG_RUN); in waitToFinish()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 241 if (!mHandler.hasMessages(MSG_CHECK_LOW)) { in checkLow() 245 if (!mHandler.hasMessages(MSG_CHECK_HIGH)) { in checkLow() 280 if (!mHandler.hasMessages(MSG_CHECK_HIGH)) { in checkHigh()
|
/frameworks/base/core/java/android/widget/ |
D | Toast.java | 772 if (mHandler.hasMessages(CANCEL) || mHandler.hasMessages(HIDE)) { in handleShow()
|