Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DDeviceStateMonitorTest.java83 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in setUp()
128 when(mockDevice.getState()).thenReturn(DeviceState.ONLINE); in testIsAdbTcp_usb()
139 when(mockDevice.getState()).thenReturn(DeviceState.ONLINE); in testIsAdbTcp_tcp()
191 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForShellAvailable()
218 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForShell_becomeAvailable()
266 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForShell_timeout()
422 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForPmResponsive()
453 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForPm_becomeResponsive()
497 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testWaitForPm_timeout()
525 when(mMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testgetMountPoint()
[all …]
DDeviceManagerTest.java506 when(newMockDevice.getState()).thenReturn(DeviceState.ONLINE); in testSetIDevice()
537 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testInit_excludeDevice()
562 when(excludedDevice.getState()).thenReturn(DeviceState.ONLINE); in testInit_includeDevice()
563 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testInit_includeDevice()
616 when(newDevice.getState()).thenReturn(DeviceState.OFFLINE); in testSetState_offline()
622 verify(newDevice, times(2)).getState(); in testSetState_offline()
842 when(iDevice.getState()).thenReturn(DeviceState.ONLINE); in setCheckAvailableDeviceExpectations()
893 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testFreeDevice_unavailable()
951 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testFreeDevice_recovery()
1012 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testFreeDevice_unknown()
[all …]
DManagedTestDeviceFactoryTest.java93 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testNestedDevice()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DSl4aBluetoothUtilTest.java257 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
263 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
269 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
275 BluetoothConnectionState.CONNECTED.getState(), in testConnect_success()
302 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
308 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
314 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
320 BluetoothConnectionState.DISCONNECTED.getState(), in testDisconnect_success()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandStatus.java34 public ClusterCommand.State getState() { in getState() method in ClusterCommandStatus
DClusterDeviceInfo.java115 json.put("state", mDeviceDescriptor.getState()); in toJSON()
DClusterCommandScheduler.java468 if (ClusterCommand.State.CANCELED.equals(commandStatus.getState())) { in run()
485 commandStatus.getState())) { in run()
577 if (availableOnly && device.getState() != DeviceAllocationState.Available) { in getDevices()
DClusterClient.java217 return getCommandStatus(requestId, commandId).getState(); in getCommandState()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java1236 if (o1.getState() != o2.getState()) { in sortDeviceList()
1238 return o1.getState().toString() in sortDeviceList()
1239 .compareTo(o2.getState().toString()); in sortDeviceList()
1268 if (desc.isStubDevice() && desc.getState() != DeviceAllocationState.Allocated) { in addDevicesInfo()
1282 desc.getState().toString(), in addDevicesInfo()
1310 TestDeviceState newState = TestDeviceState.getStateByDdms(idevice.getState()); in deviceChanged()
1319 } else if (DeviceState.OFFLINE.equals(idevice.getState()) || in deviceChanged()
1320 DeviceState.UNAUTHORIZED.equals(idevice.getState())) { in deviceChanged()
1350 TestDeviceState.getStateByDdms(idevice.getState()); in deviceConnected()
1363 } else if (DeviceState.OFFLINE.equals(idevice.getState()) in deviceConnected()
[all …]
DNativeDeviceStateMonitor.java86 mDeviceState = TestDeviceState.getStateByDdms(device.getState()); in NativeDeviceStateMonitor()
DNativeDevice.java5433 idevice.getState(), in getDeviceDescriptor()
5465 idevice.getState(), in getDeviceDescriptor()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java239 d.getState(), in DeviceDescriptor()
264 d.getState(), in DeviceDescriptor()
298 public DeviceAllocationState getState() { in getState() method in DeviceDescriptor
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DBatteryUnavailableDeviceRecovery.java36 if (DeviceState.OFFLINE.equals(device.getIDevice().getState())) { in shouldSkip()
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DDeviceManagementGrpcServer.java181 if (DeviceAllocationState.Allocated.equals(descriptor.getState())) { in reserveDevice()
187 } else if (DeviceAllocationState.Unavailable.equals(descriptor.getState())) { in reserveDevice()
265 allocationStateToReservation(descriptor.getState(), descriptor.getSerial())); in descriptorToStatus()
/tools/tradefederation/core/javatests/com/android/tradefed/device/connection/
DAdbSshConnectionTest.java186 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testPowerwashGce()
262 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testPowerwashOxygenGce()
333 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testPowerwashMultiInstance()
494 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testPreInvocationLaunchedDeviceSetup()
664 when(mMockIDevice.getState()).thenReturn(DeviceState.ONLINE); in testSnapshotGce()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/host/
DPrettyTestEventLogger.java86 if (!DeviceState.ONLINE.equals(device.getIDevice().getState())) { in logOnAllDevices()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DBluetoothConnectionStateCollector.java97 int btState = bluetoothConnectionStateChanged.getState().getNumber(); in processEventMetric()
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/bt/
Dhfp_lib.py397 def getState(self): member in FuchsiaHfpLib
/tools/asuite/asuite_plugin/src/java/com/android/atest/run/
DAtestRunConfiguration.java154 public RunProfileState getState( in getState() method in AtestRunConfiguration
/tools/apksig/src/test/java/com/android/apksig/kms/gcp/
DKeyRingClient.java158 while (mClient.getImportJob(importJob.getName()).getState() in createImportJob()
/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/
DLabResourceDeviceMonitorTest.java159 DEVICE_DESCRIPTOR.getState().toString(), in testBuildMonitoredDeviceEntity()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSl4aBluetoothUtil.java158 public int getState() { in getState() method in Sl4aBluetoothUtil.BluetoothConnectionState
663 if (state == targetState.getState() && address.equals(actualAddress)) { in waitForConnectedOrDisconnectedProfiles()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DStubDevice.java153 public DeviceState getState() { in getState() method in StubDevice
/tools/tradefederation/core/src/com/android/tradefed/monitoring/
DLabResourceDeviceMonitor.java372 .setTag(descriptor.getState().name()) in buildMonitoredDevice()
/tools/tradefederation/core/src/com/android/tradefed/device/connection/
DAdbSshConnection.java176 if (!DeviceState.ONLINE.equals(getDevice().getIDevice().getState()) || unresponsive) { in initializeConnection()
190 getDevice().getIDevice().getState()), in initializeConnection()

12