Home
last modified time | relevance | path

Searched refs:hasMessages (Results 1 – 25 of 65) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java155 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_eventNotHandled_shouldPassEventToFramework()
169 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_eventHandled_shouldNotPassEventToFramework()
185 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_twoServicesReturnsFalse_shouldPassEventToFramework()
201 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_twoServicesReturnsTrue_shouldNotPassEventToFramework()
218 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstOfTwoServicesReturnsTrue_shouldNotPassEventToFramework()
235 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_secondOfTwoServicesReturnsTrue_shouldNotPassEventToFramework()
252 assertFalse(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstServiceReturnsTwice_secondShouldBeIgnored()
257 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testSetOnKeyResult_firstServiceReturnsTwice_secondShouldBeIgnored()
274 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testEventTimesOut_shouldPassToFramework()
289 assertTrue(mInputEventsHandler.hasMessages(SEND_FRAMEWORK_KEY_EVENT)); in testEventTimesOut_afterOneServiceReturnsFalse_shouldPassToFramework()
[all …]
DMessageCapturingHandler.java89 if (hasMessages()) { in removeAllMessages()
97 public boolean hasMessages() { in hasMessages() method in MessageCapturingHandler
105 if (!hasMessages(message.what, message.obj)) { in removeStaleMessages()
DFingerprintGestureControllerTest.java118 assertFalse(messageCapturingHandler.hasMessages()); in testDetectionActiveCallback_withHandler_shouldPostRunnableToHandler()
159 assertFalse(messageCapturingHandler.hasMessages()); in testGestureCallback_withHandler_shouldPostRunnableToHandler()
DKeyboardInterceptorTest.java95 assertFalse(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped()
105 assertTrue(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
122 assertTrue(mHandler.hasMessages()); in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
/frameworks/base/core/java/android/os/
DTestLooperManager.java154 public boolean hasMessages(Handler h, Object object, int what) { in hasMessages() method in TestLooperManager
156 return mQueue.hasMessages(h, what, object); in hasMessages()
166 public boolean hasMessages(Handler h, Object object, Runnable r) { in hasMessages() method in TestLooperManager
168 return mQueue.hasMessages(h, r, object); in hasMessages()
DHandler.java828 public final boolean hasMessages(int what) { in hasMessages() method in Handler
829 return mQueue.hasMessages(this, what, null); in hasMessages()
837 return mQueue.hasMessages(this); in hasMessagesOrCallbacks()
844 public final boolean hasMessages(int what, @Nullable Object object) { in hasMessages() method in Handler
845 return mQueue.hasMessages(this, what, object); in hasMessages()
863 return mQueue.hasMessages(this, r, null); in hasCallbacks()
DMessageQueue.java603 boolean hasMessages(Handler h, int what, Object object) { in hasMessages() method in MessageQueue
638 boolean hasMessages(Handler h, Runnable r, Object object) { in hasMessages() method in MessageQueue
655 boolean hasMessages(Handler h) { in hasMessages() method in MessageQueue
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java869 assertTrue(mClientHandler.hasMessages(WifiP2pManager.ADD_LOCAL_SERVICE_FAILED)); in testAddLocalServiceFailureWhenNoChannelUpdated()
883 assertTrue(mClientHandler.hasMessages(WifiP2pManager.ADD_LOCAL_SERVICE_FAILED)); in testAddLocalServiceFailureWhenChannelUpdateWrongPkgName()
899 assertTrue(mClientHandler.hasMessages(WifiP2pManager.ADD_LOCAL_SERVICE_FAILED)); in testAddLocalServiceFailureWhenCallerPermissionDenied()
920 assertTrue(mClientHandler.hasMessages(WifiP2pManager.ADD_LOCAL_SERVICE_SUCCEEDED)); in testAddLocalServiceSuccess()
938 assertTrue(mClientHandler.hasMessages(WifiP2pManager.ADD_LOCAL_SERVICE_FAILED)); in testAddLocalServiceFailureWhenNativeCallFailure()
949 assertTrue(mClientHandler.hasMessages(WifiP2pManager.CONNECT_FAILED)); in testConnectWithConfigValidAsGroupFailureWhenNoChannelUpdated()
965 assertTrue(mClientHandler.hasMessages(WifiP2pManager.CONNECT_FAILED)); in testConnectWithConfigValidAsGroupFailureWhenChannelUpdateWrongPkgName()
981 assertTrue(mClientHandler.hasMessages(WifiP2pManager.CONNECT_FAILED)); in testConnectWithConfigValidAsGroupFailureWhenPermissionDenied()
1001 assertTrue(mClientHandler.hasMessages(WifiP2pManager.CONNECT_SUCCEEDED)); in testConnectWithConfigValidAsGroupSuccess()
1018 assertTrue(mClientHandler.hasMessages(WifiP2pManager.CONNECT_FAILED)); in testConnectWithConfigValidAsGroupFailureWhenNativeCallFailure()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DApplicationsState.java330 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_LOAD_ENTRIES)) { in doResumeIfNeededLocked()
600 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_LOAD_ENTRIES)) { in addPackage()
603 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addPackage()
644 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removePackage()
669 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in addUser()
685 if (!mMainHandler.hasMessages(MainHandler.MSG_PACKAGE_LIST_CHANGED)) { in removeUser()
855 if (!mBackgroundHandler.hasMessages(BackgroundHandler.MSG_REBUILD_LIST)) { in rebuild()
934 if (!mMainHandler.hasMessages(MainHandler.MSG_REBUILD_COMPLETE, this)) { in handleRebuildList()
1122 if (!mMainHandler.hasMessages(MainHandler.MSG_LOAD_ENTRIES_COMPLETE)) { in handleMessage()
1197 if (!mMainHandler.hasMessages(MainHandler.MSG_LAUNCHER_INFO_CHANGED)) { in handleMessage()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestHandlerThread.java71 if (mHandler.hasMessages(i)) { in hasAnyMessages()
DGLThreadManager.java196 if (!handler.hasMessages(MSG_NEW_FRAME)) { in queueNewFrame()
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java196 if (!queueWrapper.hasMessages(handler, null, execute)) { in waitForMessage()
203 if (!queueWrapper.hasMessages(handler, null, execute)) { in waitForMessage()
DTestableInstrumentation.java166 while (!mManager.hasMessages(mMainHandler, null, this)); in startManaging()
/frameworks/base/core/java/com/android/internal/os/
DHandlerCaller.java80 public boolean hasMessages(int what) { in hasMessages() method in HandlerCaller
81 return mH.hasMessages(what); in hasMessages()
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DTestHandler.java120 if (!hasMessages(msgId)) { in dispatch()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceBroker.java594 return mBrokerHandler.hasMessages(MSG_IL_BTA2DP_DOCK_TIMEOUT); in hasScheduledA2dpDockTimeout()
599 return (mBrokerHandler.hasMessages(MSG_IL_SET_A2DP_SINK_CONNECTION_STATE_CONNECTED, in hasScheduledA2dpSinkConnectionState()
601 || mBrokerHandler.hasMessages(MSG_IL_SET_A2DP_SINK_CONNECTION_STATE_DISCONNECTED, in hasScheduledA2dpSinkConnectionState()
1020 } else if (existingMsgPolicy == SENDMSG_NOOP && mBrokerHandler.hasMessages(msg)) { in sendIILMsg()
/frameworks/base/core/java/android/app/
DQueuedWork.java161 if (handler.hasMessages(QueuedWorkHandler.MSG_RUN)) { in waitToFinish()
DProgressDialog.java517 if (mViewUpdateHandler != null && !mViewUpdateHandler.hasMessages(0)) { in onProgressChanged()
/frameworks/base/core/java/android/widget/
DToast.java472 if (mHandler.hasMessages(CANCEL) || mHandler.hasMessages(HIDE)) { in handleShow()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java133 if (!mHandler.hasMessages(MESSAGE_SEND_MOTION_EVENT)) { in clearEvents()
315 if (mHandler.hasMessages(MESSAGE_SEND_MOTION_EVENT)) { in cancelAnyPendingInjectedEvents()
/frameworks/base/core/java/android/view/
DGestureDetector.java586 boolean hadTapMessage = mHandler.hasMessages(TAP); in onTouchEvent()
639 final boolean hasPendingLongPress = mHandler.hasMessages(LONG_PRESS); in onTouchEvent()
/frameworks/base/core/java/com/android/internal/app/
DAbstractResolverComparator.java75 if (mHandler.hasMessages(RANKER_RESULT_TIMEOUT)) {
/frameworks/base/core/java/android/view/contentcapture/
DMainContentCaptureSession.java425 if (checkExisting && mHandler.hasMessages(MSG_FLUSH)) { in scheduleFlush()
477 if (!mHandler.hasMessages(MSG_FLUSH)) { in flush()
/frameworks/base/core/java/android/preference/
DPreferenceFragment.java361 if (mHandler.hasMessages(MSG_BIND_PREFERENCES)) return; in postBindPreferences()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java1416 if (!mHandler.hasMessages(MESSAGE_BIND_PROFILE_SERVICE, this)) { in addProxy()
1734 if (mHandler.hasMessages(MESSAGE_HANDLE_DISABLE_DELAYED) in handleMessage()
1735 || mHandler.hasMessages(MESSAGE_HANDLE_ENABLE_DELAYED)) { in handleMessage()
1795 if (mHandler.hasMessages(MESSAGE_HANDLE_DISABLE_DELAYED) || mBinding in handleMessage()
1796 || mHandler.hasMessages(MESSAGE_HANDLE_ENABLE_DELAYED)) { in handleMessage()

123