/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceStateMonitorTest.java | 53 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 …]
|
D | DeviceManagerTest.java | 590 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 …]
|
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 | TestDeviceTest.java | 400 EasyMock.expect(mMockIDevice.getState()).andReturn(DeviceState.ONLINE).times(2); in testGetProductType_adbFail()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceManager.java | 1126 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 …]
|
D | DeviceDiagTest.java | 65 if (deviceDesc.getState() == DeviceAllocationState.Unavailable) { in getUnavailableDevices()
|
D | ManagedTestDeviceFactory.java | 159 if (!DeviceState.ONLINE.equals(idevice.getState())) { in checkFrameworkSupport()
|
D | NativeDeviceStateMonitor.java | 69 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
|
D | NativeDevice.java | 4534 idevice.getState(), in getDeviceDescriptor()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | Sl4aBluetoothUtilTest.java | 256 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/ |
D | RemoteAndroidVirtualDeviceTest.java | 283 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/ |
D | DeviceDescriptor.java | 218 d.getState(), in DeviceDescriptor() 249 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
|
D | ListDevicesOp.java | 114 deviceStateJson.put(STATE, descriptor.getState().toString()); in packResponseIntoJson()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | RemoteAndroidVirtualDevice.java | 129 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/ |
D | RemoteManagerFuncTest.java | 230 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/ |
D | Sl4aBluetoothUtil.java | 157 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/ |
D | ClusterCommandStatus.java | 34 public ClusterCommand.State getState() { in getState() method in ClusterCommandStatus
|
D | ClusterDeviceInfo.java | 95 json.put("state", mDeviceDescriptor.getState()); in toJSON()
|
D | ClusterClient.java | 217 return getCommandStatus(requestId, commandId).getState(); in getCommandState()
|
D | ClusterCommandScheduler.java | 488 if (availableOnly && device.getState() != DeviceAllocationState.Available) { in getDevices()
|
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | BatteryUnavailableDeviceRecovery.java | 31 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/ |
D | PrettyTestEventLogger.java | 86 if (!DeviceState.ONLINE.equals(device.getIDevice().getState())) { in logOnAllDevices()
|
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/ |
D | AtestRunConfiguration.java | 154 public RunProfileState getState( in getState() method in AtestRunConfiguration
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | StubDevice.java | 203 public DeviceState getState() { in getState() method in StubDevice
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandScheduler.java | 1841 if (DeviceAllocationState.Allocated.equals(deviceDesc.getState()) in handoverDevices()
|