Home
last modified time | relevance | path

Searched refs:getState (Results 1 – 14 of 14) 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.java87 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkAvailable()
113 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testFrameworkNotAvailable()
146 EasyMock.expect(mMockDevice.getState()).andStubReturn(DeviceState.ONLINE); in testCheckFramework_emptyReturns()
DDeviceManagerTest.java513 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()
545 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()
573 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
574 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
631 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
868 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
920 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
983 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown()
1047 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown_subName()
1109 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in setDeviceDescriptorExpectation()
[all …]
DNativeDeviceTest.java2140 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.UNAUTHORIZED); in testGetSimState_unavailableDevice()
2150 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.UNAUTHORIZED); in testGetSimOperator_unavailableDevice()
2163 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testGetLogcatSince()
DTestDeviceTest.java388 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
702 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testExecuteShellCommand_recoveryAttempts()
1701 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in injectSystemProperty()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java924 idevice.getState(), in listAllDevices()
961 if (o1.getState() != o2.getState()) { in sortDeviceList()
963 return o1.getState().toString() in sortDeviceList()
964 .compareTo(o2.getState().toString()); in sortDeviceList()
988 desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()
995 desc.getState().toString(), in addDevicesInfo()
1026 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged()
1035 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged()
1036 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged()
1066 TestDeviceState.getStateByDdms(idevice.getState()); in deviceConnected()
[all …]
DDeviceDiagTest.java65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
DManagedTestDeviceFactory.java107 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
DDeviceUtilStatsMonitor.java162 record.addSample(deviceDesc.getState()); in run()
DStubDevice.java203 public DeviceState getState() { in getState() method in StubDevice
DNativeDeviceStateMonitor.java68 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
DNativeDevice.java410 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in getProperty()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java114 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
/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()