/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/ |
D | RemoteManagerFuncTest.java | 23 import com.android.tradefed.device.FreeDeviceState; 79 EasyMock.eq(FreeDeviceState.AVAILABLE)); in testAllocateFree() 137 EasyMock.eq(FreeDeviceState.AVAILABLE)); in testAllocateClose() 161 EasyMock.eq(FreeDeviceState.AVAILABLE)); in testAllocateFreeAll() 254 mMockDeviceManager.freeDevice(EasyMock.eq(device), EasyMock.eq(FreeDeviceState.AVAILABLE)); in testExecCommand() 280 mMockDeviceManager.freeDevice(EasyMock.eq(device), EasyMock.eq(FreeDeviceState.AVAILABLE)); in testConsecutiveExecCommand() 294 Map<ITestDevice, FreeDeviceState> state = new HashMap<>(); in testConsecutiveExecCommand() 295 state.put(device, FreeDeviceState.UNAVAILABLE); in testConsecutiveExecCommand() 411 mMockDeviceManager.freeDevice(EasyMock.eq(device), EasyMock.eq(FreeDeviceState.AVAILABLE)); in testGetLastCommandResult_noActiveCommand() 436 mMockDeviceManager.freeDevice(EasyMock.eq(device), EasyMock.eq(FreeDeviceState.AVAILABLE)); in testGetLastCommandResult_executing() [all …]
|
D | RemoteManagerTest.java | 25 import com.android.tradefed.device.FreeDeviceState; 229 .freeDevice(Mockito.eq(stub), Mockito.eq(FreeDeviceState.AVAILABLE)); in testProcessClientOperations_processFree() 252 .freeDevice(Mockito.any(), Mockito.eq(FreeDeviceState.AVAILABLE)); in testProcessClientOperations_processFree_wildcard()
|
/tools/tradefederation/core/src/com/android/tradefed/command/ |
D | CommandScheduler.java | 52 import com.android.tradefed.device.FreeDeviceState; 487 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) { in releaseDevices() 504 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete() 641 Map<ITestDevice, FreeDeviceState> deviceStates = in run() 801 public static Map<ITestDevice, FreeDeviceState> createReleaseMap( in createReleaseMap() 803 Map<ITestDevice, FreeDeviceState> deviceStates = new LinkedHashMap<>(); in createReleaseMap() 805 deviceStates.put(device, FreeDeviceState.AVAILABLE); in createReleaseMap() 812 deviceStates.put(device, FreeDeviceState.AVAILABLE); in createReleaseMap() 820 deviceStates.put(device, FreeDeviceState.UNAVAILABLE); in createReleaseMap() 823 deviceStates.put(device, FreeDeviceState.UNAVAILABLE); in createReleaseMap() [all …]
|
D | ICommandScheduler.java | 23 import com.android.tradefed.device.FreeDeviceState; 59 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) {} in releaseDevices() 69 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates); in invocationComplete()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
D | CommandSchedulerTest.java | 43 import com.android.tradefed.device.FreeDeviceState; 363 (Map<ITestDevice, FreeDeviceState>)EasyMock.anyObject()); in testExecCommand() 494 mMockManager.freeDevice(dev, FreeDeviceState.AVAILABLE); in testRun_configSerial() 523 mMockManager.freeDevice(dev, FreeDeviceState.AVAILABLE); in testRun_configExcludeSerial() 524 mMockManager.freeDevice(expectedDevice, FreeDeviceState.AVAILABLE); in testRun_configExcludeSerial() 784 Map<ITestDevice, FreeDeviceState> deviceStates = new HashMap<>(); in testDeviceReleasedEarly() 786 deviceStates.put(device, FreeDeviceState.AVAILABLE); in testDeviceReleasedEarly() 837 Map<ITestDevice, FreeDeviceState> deviceStates = new HashMap<>(); in testDeviceReleasedEarly_conflict() 839 deviceStates.put(device, FreeDeviceState.AVAILABLE); in testDeviceReleasedEarly_conflict() 1200 (Map<ITestDevice, FreeDeviceState>)EasyMock.anyObject()); in testExecCommand_multipleDevices()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | DeviceManagerTest.java | 362 manager.freeDevice(mMockTestDevice, FreeDeviceState.AVAILABLE); in testAllocateDevice_match_temporary() 443 manager.freeDevice(emulator, FreeDeviceState.UNAVAILABLE); in testFreeDevice_emulator() 551 manager.freeDevice(mMockTestDevice, FreeDeviceState.AVAILABLE); in testFreeDevice() 569 manager.freeDevice(testDevice, FreeDeviceState.AVAILABLE); in testFreeDevice_noop() 973 manager.freeDevice(tcpDevice, FreeDeviceState.UNAVAILABLE); in testFreeDevice_tcpDevice() 1036 manager.freeDevice(device, FreeDeviceState.UNAVAILABLE); in testFreeDevice_unavailable() 1097 manager.freeDevice(device, FreeDeviceState.UNAVAILABLE); in testFreeDevice_recovery() 1162 manager.freeDevice(device, FreeDeviceState.UNAVAILABLE); in testFreeDevice_unknown() 1227 manager.freeDevice(device, FreeDeviceState.UNAVAILABLE); in testFreeDevice_unknown_subName()
|
D | MockDeviceManager.java | 201 public void freeDevice(ITestDevice device, FreeDeviceState state) { in freeDevice() 202 if (!state.equals(FreeDeviceState.UNAVAILABLE)) { in freeDevice()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/ |
D | CommandResult.java | 18 import com.android.tradefed.device.FreeDeviceState; 37 private final FreeDeviceState mState; 40 CommandResult(Status status, String errorDetails, FreeDeviceState state, in CommandResult() 60 FreeDeviceState getFreeDeviceState() { in getFreeDeviceState()
|
D | GetLastCommandResultOp.java | 21 import com.android.tradefed.device.FreeDeviceState; 82 FreeDeviceState state = FreeDeviceState.AVAILABLE; in unpackResponseFromJson() 94 state = FreeDeviceState.valueOf(freeDeviceString); in unpackResponseFromJson()
|
D | ICommandResultHandler.java | 18 import com.android.tradefed.device.FreeDeviceState; 29 public void failure(String errorDetails, FreeDeviceState deviceState, in failure()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/companion/ |
D | CompanionDeviceTracker.java | 22 import com.android.tradefed.device.FreeDeviceState; 86 FreeDeviceState deviceState = FreeDeviceState.AVAILABLE; in freeCompanionDevice() 89 deviceState = FreeDeviceState.UNAVAILABLE; in freeCompanionDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 34 import com.android.tradefed.device.FreeDeviceState; 364 Map<ITestDevice, FreeDeviceState> devicesStates = in performInvocation() 1117 private Map<ITestDevice, FreeDeviceState> handleAndLogReleaseState( in handleAndLogReleaseState() 1120 Map<ITestDevice, FreeDeviceState> devicesStates = in handleAndLogReleaseState() 1129 for (Entry<ITestDevice, FreeDeviceState> fds : devicesStates.entrySet()) { in handleAndLogReleaseState() 1139 if (FreeDeviceState.UNAVAILABLE.equals(fds.getValue())) { in handleAndLogReleaseState()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | DeviceManager.java | 659 public void freeDevice(ITestDevice device, FreeDeviceState deviceState) { in freeDevice() 687 deviceState = FreeDeviceState.AVAILABLE; in freeDevice() 691 deviceState = FreeDeviceState.UNAVAILABLE; in freeDevice() 715 IManagedTestDevice managedDevice, FreeDeviceState deviceState) { in getEventFromFree() 874 freeDevice(tcpDevice, FreeDeviceState.IGNORE); in connectToTcpDevice() 915 freeDevice(tcpDevice, FreeDeviceState.IGNORE); in disconnectFromTcpDevice()
|
D | IDeviceManager.java | 98 public void freeDevice(ITestDevice device, FreeDeviceState state); in freeDevice()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandSchedulerTest.java | 42 import com.android.tradefed.device.FreeDeviceState; 664 Map<ITestDevice, FreeDeviceState> releaseMap = new HashMap<>(); 665 releaseMap.put(mockTestDevice, FreeDeviceState.AVAILABLE); 740 Map<ITestDevice, FreeDeviceState> releaseMap = new HashMap<>(); 741 releaseMap.put(mockTestDevice, FreeDeviceState.AVAILABLE); 795 Map<ITestDevice, FreeDeviceState> releaseMap = new HashMap<>(); 796 releaseMap.put(mockTestDevice, FreeDeviceState.AVAILABLE);
|
/tools/tradefederation/core/src/com/android/tradefed/command/remote/ |
D | ExecCommandTracker.java | 19 import com.android.tradefed.device.FreeDeviceState; 36 private FreeDeviceState mState = null; 50 Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
|
D | RemoteManager.java | 24 import com.android.tradefed.device.FreeDeviceState; 381 mDeviceManager.freeDevice(d, FreeDeviceState.AVAILABLE); in processFree() 471 mDeviceManager.freeDevice(d, FreeDeviceState.AVAILABLE); in freeAllDevices()
|
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/ |
D | RunConfigDeviceRecovery.java | 26 import com.android.tradefed.device.FreeDeviceState; 114 getDeviceManager().freeDevice(device, FreeDeviceState.UNAVAILABLE); in recoverDevices() 164 IInvocationContext context, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | TradefedSandboxRunner.java | 24 import com.android.tradefed.device.FreeDeviceState; 166 IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandScheduler.java | 28 import com.android.tradefed.device.FreeDeviceState; 283 IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
|
/tools/tradefederation/core/remote/src/com/android/tradefed/device/ |
D | FreeDeviceState.java | 18 public enum FreeDeviceState { enum
|