Home
last modified time | relevance | path

Searched refs:mMessageCapturingHandler (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java75 private MessageCapturingHandler mMessageCapturingHandler; field in KeyEventDispatcherTest
88 mMessageCapturingHandler = new MessageCapturingHandler(looper, null); in setUp()
90 mLock, powerManager, mMessageCapturingHandler); in setUp()
106 mMessageCapturingHandler.removeAllMessages(); in tearDown()
113 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testNotifyKeyEvent_withNoBoundServices_shouldReturnFalse()
122 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()
157 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_eventNotHandled_shouldPassEventToFramework()
172 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_eventHandled_shouldNotPassEventToFramework()
187 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_twoServicesReturnsFalse_shouldPassEventToFramework()
204 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_twoServicesReturnsTrue_shouldNotPassEventToFramework()
[all …]
DMotionEventInjectorTest.java124 MessageCapturingHandler mMessageCapturingHandler; field in MotionEventInjectorTest
133 mMessageCapturingHandler = new MessageCapturingHandler(new Handler.Callback() { in setUp()
139 mMotionEventInjector = new MotionEventInjector(mMessageCapturingHandler); in setUp()
175 mMessageCapturingHandler.removeAllMessages(); in tearDown()
184 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
194 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
202 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
231 mMessageCapturingHandler.sendAllMessages(); in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
239 mMessageCapturingHandler.sendAllMessages(); // Send all motion events in testRegularEvent_afterGestureComplete_shouldPassToNext()
256 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
[all …]
DFingerprintGestureDispatcherTest.java54 private MessageCapturingHandler mMessageCapturingHandler; field in FingerprintGestureDispatcherTest
62 mMessageCapturingHandler = new MessageCapturingHandler( in setup()
65 mMockResources, new Object(), mMessageCapturingHandler); in setup()
72 mMessageCapturingHandler.removeAllMessages(); in tearDown()
146 mMessageCapturingHandler.sendOneMessage(); in testWithCapturingService_registersForFingerprintUpdates()
155 mMessageCapturingHandler.sendOneMessage(); in testWhenCapturingServiceStops_unregistersForFingerprintUpdates()
157 mMessageCapturingHandler.sendOneMessage(); in testWhenCapturingServiceStops_unregistersForFingerprintUpdates()
176 new Object(), mMessageCapturingHandler); in ifGestureDetectionNotSupported_neverSaysAvailable()
DMagnificationControllerTest.java92 final MessageCapturingHandler mMessageCapturingHandler = new MessageCapturingHandler(null); field in MagnificationControllerTest
107 when(mMockControllerCtx.getHandler()).thenReturn(mMessageCapturingHandler); in setUp()
116 mMessageCapturingHandler.removeAllMessages(); in tearDown()
222 mMessageCapturingHandler.sendAllMessages();
248 mMessageCapturingHandler.sendAllMessages();
301 mMessageCapturingHandler.sendAllMessages();
330 mMessageCapturingHandler.sendAllMessages();
379 mMessageCapturingHandler.sendAllMessages();
390 mMessageCapturingHandler.sendAllMessages();
414 mMessageCapturingHandler.sendAllMessages();
[all …]
DUiAutomationManagerTest.java54 MessageCapturingHandler mMessageCapturingHandler; field in UiAutomationManagerTest
80 mMessageCapturingHandler = new MessageCapturingHandler(null); in setup()
85 mMessageCapturingHandler.removeAllMessages(); in tearDown()
160 mMessageCapturingHandler.sendAllMessages(); in uiAutomationBinderDiesBeforeConnecting_notifiesSystem()
167 mMessageCapturingHandler, mMockSecurityPolicy, mMockSystemSupport, in register()