Home
last modified time | relevance | path

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

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceStateMonitorTest.java68 private DeviceStateMonitor mMonitor; field in DeviceStateMonitorTest
86 mMonitor = new DeviceStateMonitor(mMockMgr, mMockDevice, true); in setUp()
92 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline()); in testWaitForDeviceOnline_alreadyOnline()
98 mMonitor = in testWaitForDeviceOnline()
110 assertEquals(mMockDevice, mMonitor.waitForDeviceOnline(50)); in testWaitForDeviceOnline()
119 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOnline_timeout()
120 assertNull(mMonitor.waitForDeviceOnline(WAIT_TIMEOUT_REACHED_MS)); in testWaitForDeviceOnline_timeout()
151 mMonitor.setState(TestDeviceState.NOT_AVAILABLE); in testWaitForDeviceOffline_alreadyOffline()
152 boolean res = mMonitor.waitForDeviceNotAvailable(WAIT_TIMEOUT_NOT_REACHED_MS); in testWaitForDeviceOffline_alreadyOffline()
161 mMonitor = in testWaitForDeviceOffline()
[all …]
DTestDeviceFuncTest.java76 private IDeviceStateMonitor mMonitor; field in TestDeviceFuncTest
97 mMonitor = mTestDevice.getDeviceStateMonitor(); in setUp()
555 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
561 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
565 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_deviceInAdb()
587 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
598 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testExecuteFastbootCommand_badCommand()
615 assertEquals(TestDeviceState.FASTBOOT, mMonitor.getDeviceState()); in testRebootIntoBootloader()
618 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testRebootIntoBootloader()
627 assertEquals(TestDeviceState.ONLINE, mMonitor.getDeviceState()); in testReboot()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/
DLabResourceDeviceMonitorTest.java72 private LabResourceDeviceMonitor mMonitor; field in LabResourceDeviceMonitorTest
76 mMonitor = new LabResourceDeviceMonitor(3, mClusterOptions); in setUp()
77 mMonitor.setDeviceLister( in setUp()
98 .addService(mMonitor) in testServerStartAndShutdown()
103 mMonitor.setServer(server); in testServerStartAndShutdown()
109 mMonitor.stop(); in testServerStartAndShutdown()
146 mMonitor.buildMonitoredHost(List.of())); in testBuildMonitoredHost()
154 MonitoredEntity device = mMonitor.buildMonitoredDevice(DEVICE_DESCRIPTOR, List.of()); in testBuildMonitoredDeviceEntity()
183 mMonitor.startExecutors(); in testCollectorTimeout()
184 mMonitor.buildMonitoredHost(List.of(collector1, collector2)); in testCollectorTimeout()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/
DGceSshTunnelMonitorTest.java57 private GceSshTunnelMonitor mMonitor; field in GceSshTunnelMonitorTest
76 mMonitor = in setUp()
89 mMonitor.logSshTunnelLogs(mLogger); in tearDown()
101 mMonitor.initGce(); in testInitGce_noSsshKey()
118 mMonitor.initGce(); in testInitGce()
137 mMonitor.initGce(); in testInitGce_stopAdbdFail()
155 mMonitor.createSshTunnel(mockDevice, mHost.getHost(), mHost.getPortOrDefault(5555)); in testCreateSshTunnel()
166 mMonitor.checkSshKey(); in testCheckSshKey()
170 mMonitor.checkSshKey(); in testCheckSshKey()
/tools/tradefederation/core/javatests/com/android/tradefed/util/hostmetric/
DHeapHostMonitorTest.java33 private HeapHostMonitor mMonitor; field in HeapHostMonitorTest
39 mMonitor = in setUp()
52 mMonitor.dispatch(); in testDispatchOfHeap()