Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceStateMonitorTest.java53 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in setUp()
99 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_usb()
111 EasyMock.expect(mockDevice.getState()).andReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp()
162 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShellAvailable()
189 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_becomeAvailable()
230 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForShell_timeout()
335 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPmResponsive()
363 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_becomeResponsive()
405 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testWaitForPm_timeout()
437 EasyMock.expect(mMockDevice.getState()).andReturn(DeviceState.ONLINE); in testgetMountPoint()
[all …]
DDeviceManagerTest.java590 EasyMock.expect(newMockDevice.getState()).andReturn(DeviceState.ONLINE); in testSetIDevice()
621 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testInit_excludeDevice()
648 EasyMock.expect(excludedDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
649 EasyMock.expect(mMockIDevice.getState()).andStubReturn(DeviceState.ONLINE); in testInit_includeDevice()
703 EasyMock.expect(newDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testSetState_offline()
936 EasyMock.expect(iDevice.getState()).andReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
988 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
1049 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_recovery()
1113 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown()
1178 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testFreeDevice_unknown_subName()
[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()
DTestDeviceTest.java400 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java1126 if (o1.getState() != o2.getState()) { in sortDeviceList()
1128 return o1.getState().toString() in sortDeviceList()
1129 .compareTo(o2.getState().toString()); in sortDeviceList()
1158 if (desc.isStubDevice() && desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()
1172 desc.getState().toString(), in addDevicesInfo()
1200 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged()
1209 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged()
1210 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged()
1240 TestDeviceState.getStateByDdms(idevice.getState()); in deviceConnected()
1253 } else if (DeviceState.OFFLINE.equals(idevice.getState()) in deviceConnected()
[all …]
DDeviceDiagTest.java65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
DManagedTestDeviceFactory.java159 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
DNativeDeviceStateMonitor.java69 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
DNativeDevice.java4534 idevice.getState(), in getDeviceDescriptor()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java256 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
262 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
268 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
274 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
301 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
307 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
313 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
319 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java283 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testPreInvocationSetup()
312 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testPreInvocationSetup_fails()
531 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testDeviceNotStoreShutdownState()
634 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE); in testDevice_skipTearDown()
720 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.OFFLINE).times(2); in testDeviceBoot_offline()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java218 d.getState(), in DeviceDescriptor()
249 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
DListDevicesOp.java114 deviceStateJson.put(STATE, descriptor.getState().toString()); in packResponseIntoJson()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDevice.java129 if (!DeviceState.ONLINE.equals(getIDevice().getState())) { in preInvocationSetup()
136 "AVD device booted but was in %s state", getIDevice().getState()), in preInvocationSetup()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java230 assertEquals(DeviceAllocationState.Available, returnedDevices.get(0).getState()); in testListDevices()
238 assertEquals(DeviceAllocationState.Allocated, returnedDevices.get(1).getState()); in testListDevices()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSl4aBluetoothUtil.java157 public int getState() { in getState() method in Sl4aBluetoothUtil.BluetoothConnectionState
654 if (state == targetState.getState() && address.equals(actualAddress)) { in waitForConnectedOrDisconnectedProfiles()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandStatus.java34 public ClusterCommand.State getState() { in getState() method in ClusterCommandStatus
DClusterDeviceInfo.java95 json.put("state", mDeviceDescriptor.getState()); in toJSON()
DClusterClient.java217 return getCommandStatus(requestId, commandId).getState(); in getCommandState()
DClusterCommandScheduler.java488 if (availableOnly && device.getState() != DeviceAllocationState.Available) { in getDevices()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecovery.java31 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java86 if (!DeviceState.ONLINE.equals(device.getIDevice().getState())) { in logOnAllDevices()
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/
DAtestRunConfiguration.java154 public RunProfileState getState( in getState() method in AtestRunConfiguration
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DStubDevice.java203 public DeviceState getState() { in getState() method in StubDevice
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java1841 if (DeviceAllocationState.Allocated.equals(deviceDesc.getState()) in handoverDevices()

12