Home
last modified time | relevance | path

Searched refs:mEventDispatcher (Results 1 – 4 of 4) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/util/sl4a/
DSl4aEventDispatcherTest.java40 private Sl4aEventDispatcher mEventDispatcher; field in Sl4aEventDispatcherTest
46 mEventDispatcher = new Sl4aEventDispatcher(mClient, FAKE_TIMEOUT_MS); in setUp()
51 if (mEventDispatcher != null) { in tearDown()
52 mEventDispatcher.clearAllEvents(); in tearDown()
64 Assert.assertTrue(mEventDispatcher.internalPolling()); in testPollEvents()
75 Assert.assertFalse(mEventDispatcher.internalPolling()); in testPollEvents_shutdown()
87 Assert.assertTrue(mEventDispatcher.internalPolling()); in testPopEvent()
89 mEventDispatcher.popEvent("BluetoothStateChangedOff", FAKE_TIMEOUT_MS); in testPopEvent()
101 mEventDispatcher.popEvent("BluetoothStateChangedOff", SHORT_TIMEOUT_MS); in testPopEvent_notExisting()
114 Assert.assertTrue(mEventDispatcher.internalPolling()); in testPopAllEvents()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
DSl4aClient.java63 private Sl4aEventDispatcher mEventDispatcher; field in Sl4aClient
208 mEventDispatcher = new Sl4aEventDispatcher(this, 5000); in startEventDispatcher()
209 mEventDispatcher.start(); in startEventDispatcher()
273 if (mEventDispatcher != null) { in close()
274 mEventDispatcher.cancel(); in close()
318 return mEventDispatcher; in getEventDispatcher()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java84 @Mock private Sl4aEventDispatcher mEventDispatcher; field in Sl4aBluetoothUtilTest
93 when(mPrimaryClient.getEventDispatcher()).thenReturn(mEventDispatcher); in setup()
110 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_ON), anyLong())) in testEnable_notEnabled()
127 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_OFF), anyLong())) in testDisable_notDisabled()
250 when(mEventDispatcher.popEvent( in testConnect_success()
295 when(mEventDispatcher.popEvent( in testDisconnect_success()
348 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_OFF), anyLong())) in testEnableBluetoothSnoopLog_AndroidQAndAbove()
354 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_ON), anyLong())) in testEnableBluetoothSnoopLog_AndroidQAndAbove()
369 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_OFF), anyLong())) in testEnableBluetoothSnoopLog_AndroidPAndBelow()
375 when(mEventDispatcher.popEvent(eq(Events.BLUETOOTH_STATE_CHANGED_ON), anyLong())) in testEnableBluetoothSnoopLog_AndroidPAndBelow()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterDeviceMonitorTest.java64 private ClusterDeviceMonitor.EventDispatcher mEventDispatcher = null; field in ClusterDeviceMonitorTest
121 mEventDispatcher = in setUp()
144 mEventDispatcher.dispatch(); in testDispatch()
168 mEventDispatcher.dispatch(); in testLabel()
258 mEventDispatcher.dispatch(); in testDeviceExtraInfo()