Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java79 private MessageCapturingHandler mMessageCapturingHandler; field in KeyEventDispatcherTest
94 mMessageCapturingHandler = new MessageCapturingHandler(looper, null); in setUp()
96 mLock, powerManager, mMessageCapturingHandler); in setUp()
112 mMessageCapturingHandler.removeAllMessages(); in tearDown()
119 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testNotifyKeyEvent_withNoBoundServices_shouldReturnFalse()
128 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testNotifyKeyEvent_boundServiceDoesntProcessEvents_shouldReturnFalse()
163 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_eventNotHandled_shouldPassEventToFramework()
178 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_eventHandled_shouldNotPassEventToFramework()
193 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_twoServicesReturnsFalse_shouldPassEventToFramework()
210 assertFalse(isTimeoutPending(mMessageCapturingHandler)); in testSetOnKeyResult_twoServicesReturnsTrue_shouldNotPassEventToFramework()
[all …]
DMotionEventInjectorTest.java137 MessageCapturingHandler mMessageCapturingHandler; field in MotionEventInjectorTest
146 mMessageCapturingHandler = new MessageCapturingHandler(new Handler.Callback() { in setUp()
153 mMotionEventInjector = new MotionEventInjector(mMessageCapturingHandler, mTrace); in setUp()
193 mMessageCapturingHandler.removeAllMessages(); in tearDown()
202 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
212 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
220 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
249 mMessageCapturingHandler.sendAllMessages(); in testInjectEvents_gestureWithTooManyPoints_shouldNotCrash()
257 mMessageCapturingHandler.sendAllMessages(); // Send all motion events in testRegularEvent_afterGestureComplete_shouldPassToNext()
275 mMessageCapturingHandler.sendOneMessage(); // Send a motion event in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
[all …]
DFingerprintGestureDispatcherTest.java55 private MessageCapturingHandler mMessageCapturingHandler; field in FingerprintGestureDispatcherTest
63 mMessageCapturingHandler = new MessageCapturingHandler( in setup()
66 mMockResources, new Object(), mMessageCapturingHandler); in setup()
73 mMessageCapturingHandler.removeAllMessages(); in tearDown()
147 mMessageCapturingHandler.sendOneMessage(); in testWithCapturingService_registersForFingerprintUpdates()
156 mMessageCapturingHandler.sendOneMessage(); in testWhenCapturingServiceStops_unregistersForFingerprintUpdates()
158 mMessageCapturingHandler.sendOneMessage(); in testWhenCapturingServiceStops_unregistersForFingerprintUpdates()
177 new Object(), mMessageCapturingHandler); in ifGestureDetectionNotSupported_neverSaysAvailable()
DUiAutomationManagerTest.java67 MessageCapturingHandler mMessageCapturingHandler; field in UiAutomationManagerTest
106 mMessageCapturingHandler = new MessageCapturingHandler(null); in setup()
111 mMessageCapturingHandler.removeAllMessages(); in tearDown()
186 mMessageCapturingHandler.sendAllMessages(); in uiAutomationBinderDiesBeforeConnecting_notifiesSystem()
222 mMessageCapturingHandler.sendAllMessages(); in registerUiAutomationService_callsAddWindowTokenUsingHandler()
234 mMessageCapturingHandler, mMockSecurityPolicy, mMockSystemSupport, mMockA11yTrace, in register()
DProxyManagerTest.java122 private MessageCapturingHandler mMessageCapturingHandler = new MessageCapturingHandler(null); field in ProxyManagerTest
165 mMessageCapturingHandler, new UiAutomationManager(new Object()), in setup()
171 mMessageCapturingHandler.removeAllMessages(); in tearDown()
230 mMessageCapturingHandler.sendAllMessages(); in testOnProxyChanged_always_propagatesChange()
235 assertThat(mMessageCapturingHandler.hasMessages()).isTrue(); in testOnProxyChanged_always_propagatesChange()
259 mMessageCapturingHandler.sendAllMessages(); in testUpdateProxyOfRunningAppsChange_changedUidIsStreamedApp_propagatesChange()
269 assertThat(mMessageCapturingHandler.hasMessages()).isTrue(); in testUpdateProxyOfRunningAppsChange_changedUidIsStreamedApp_propagatesChange()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationControllerTest.java127 private final MessageCapturingHandler mMessageCapturingHandler = new MessageCapturingHandler( field in FullScreenMagnificationControllerTest
160 when(mMockControllerCtx.getHandler()).thenReturn(mMessageCapturingHandler); in setUp()
198 mMessageCapturingHandler.removeAllMessages(); in tearDown()
328 mMessageCapturingHandler.sendAllMessages();
354 mMessageCapturingHandler.sendAllMessages();
407 mMessageCapturingHandler.sendAllMessages();
437 mMessageCapturingHandler.sendAllMessages();
483 mMessageCapturingHandler.sendAllMessages();
487 mMessageCapturingHandler.sendAllMessages();
513 mMessageCapturingHandler.sendAllMessages();
[all …]
DMagnificationControllerTest.java134 private MessageCapturingHandler mMessageCapturingHandler; field in MagnificationControllerTest
203 when(mControllerCtx.getHandler()).thenReturn(mMessageCapturingHandler); in setUp()