Searched refs:mMonitor (Results 1 – 4 of 4) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 43 private DeviceStateMonitor mMonitor; field in DeviceStateMonitorTest 55 mMonitor = new DeviceStateMonitor(mMockMgr, mMockDevice, true); in setUp() 62 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline_alreadyOnline() 69 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOnline() 75 mMonitor.setState(TestDeviceState.ONLINE); in testWaitForDeviceOnline() 80 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline() 88 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOnline_timeout() 89 assertNull(mMonitor.waitForDeviceOnline(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceOnline_timeout() 121 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOffline_alreadyOffline() 122 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline() [all …]
|
D | TestDeviceStressTest.java | 49 private IDeviceStateMonitor mMonitor; field in TestDeviceStressTest 55 mMonitor = mTestDevice.getDeviceStateMonitor(); in setUp() 77 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyReboots() 85 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testManyRebootBootloaders() 87 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testManyRebootBootloaders()
|
D | TestDeviceFuncTest.java | 66 private IDeviceStateMonitor mMonitor; field in TestDeviceFuncTest 82 mMonitor = mTestDevice.getDeviceStateMonitor(); in setUp() 520 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 525 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 529 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb() 548 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand() 559 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand() 573 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testRebootIntoBootloader() 576 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader() 585 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/hostmetric/ |
D | HeapHostMonitorTest.java | 33 private HeapHostMonitor mMonitor; field in HeapHostMonitorTest 39 mMonitor = in setUp() 52 mMonitor.dispatch(); in testDispatchOfHeap()
|