/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 52 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in setUp() 98 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_usb() 110 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp() 161 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShellAvailable() 188 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_becomeAvailable() 229 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_timeout() 334 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPmResponsive() 362 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_becomeResponsive() 404 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_timeout() 436 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testgetMountPoint() [all …]
|
D | ManagedTestDeviceFactoryTest.java | 93 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testNestedDevice() 115 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkAvailable() 144 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkNotAvailable() 180 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testCheckFramework_emptyReturns()
|
D | DeviceManagerTest.java | 588 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice() 619 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice() 646 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice() 647 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice() 701 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline() 934 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations() 986 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable() 1050 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown() 1115 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown_subName() 1425 Thread.State waiterState = waiter.getState(); in testUnlimitedFlashLimit()
|
D | TestDeviceTest.java | 394 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceManager.java | 1037 if (o1.getState() != o2.getState()) { in sortDeviceList() 1039 return o1.getState().toString() in sortDeviceList() 1040 .compareTo(o2.getState().toString()); in sortDeviceList() 1069 if (desc.isStubDevice() && desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo() 1077 desc.getState().toString(), in addDevicesInfo() 1101 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged() 1110 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged() 1111 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged() 1141 TestDeviceState.getStateByDdms(idevice.getState()); in deviceConnected() 1154 } else if (DeviceState.OFFLINE.equals(idevice.getState()) in deviceConnected() [all …]
|
D | DeviceDiagTest.java | 65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
|
D | ManagedTestDeviceFactory.java | 148 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
|
D | DeviceUtilStatsMonitor.java | 162 record.addSample(deviceDesc.getState()); in run()
|
D | StubDevice.java | 202 public DeviceState getState() { in getState() method in StubDevice
|
D | NativeDeviceStateMonitor.java | 68 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
|
D | NativeDevice.java | 4186 idevice.getState(), in getDeviceDescriptor()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDeviceTest.java | 273 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testPreInvocationSetup() 302 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testPreInvocationSetup_fails() 464 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testDeviceNotStoreShutdownState() 567 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testDevice_skipTearDown() 653 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testDeviceBoot_offline()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDevice.java | 135 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in preInvocationSetup() 142 "AVD device booted but was in %s state", getIDevice().getState()), in preInvocationSetup()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 231 assertEquals(DeviceAllocationState.Available, returnedDevices.get(0).getState()); in testListDevices() 239 assertEquals(DeviceAllocationState.Allocated, returnedDevices.get(1).getState()); in testListDevices()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | ListDevicesOp.java | 114 deviceStateJson.put(STATE, descriptor.getState().toString()); in packResponseIntoJson()
|
D | DeviceDescriptor.java | 207 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandScheduler.java | 1718 if (DeviceAllocationState.Allocated.equals(deviceDesc.getState()) in handoverDevices()
|