Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 17 of 17) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceStateMonitorTest.java52 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 …]
DManagedTestDeviceFactoryTest.java93 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()
DDeviceManagerTest.java588 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()
DTestDeviceTest.java394 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java1037 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 …]
DDeviceDiagTest.java65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
DManagedTestDeviceFactory.java148 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
DDeviceUtilStatsMonitor.java162 record.addSample(deviceDesc.getState()); in run()
DStubDevice.java202 public DeviceState getState() { in getState() method in StubDevice
DNativeDeviceStateMonitor.java68 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
DNativeDevice.java4186 idevice.getState(), in getDeviceDescriptor()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java273 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/
DRemoteAndroidVirtualDevice.java135 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/
DRemoteManagerFuncTest.java231 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/
DListDevicesOp.java114 deviceStateJson.put(STATE, descriptor.getState().toString()); in packResponseIntoJson()
DDeviceDescriptor.java207 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java1718 if (DeviceAllocationState.Allocated.equals(deviceDesc.getState()) in handoverDevices()