Home
last modified time | relevance | path

Searched refs:FreeDeviceState (Results 1 – 21 of 21) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java23 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 …]
DRemoteManagerTest.java25 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/
DCommandScheduler.java52 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 …]
DICommandScheduler.java23 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/
DCommandSchedulerTest.java43 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/
DDeviceManagerTest.java362 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()
DMockDeviceManager.java201 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/
DCommandResult.java18 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()
DGetLastCommandResultOp.java21 import com.android.tradefed.device.FreeDeviceState;
82 FreeDeviceState state = FreeDeviceState.AVAILABLE; in unpackResponseFromJson()
94 state = FreeDeviceState.valueOf(freeDeviceString); in unpackResponseFromJson()
DICommandResultHandler.java18 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/
DCompanionDeviceTracker.java22 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/
DTestInvocation.java34 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/
DDeviceManager.java659 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()
DIDeviceManager.java98 public void freeDevice(ITestDevice device, FreeDeviceState state); in freeDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java42 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/
DExecCommandTracker.java19 import com.android.tradefed.device.FreeDeviceState;
36 private FreeDeviceState mState = null;
50 Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
DRemoteManager.java24 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/
DRunConfigDeviceRecovery.java26 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/
DTradefedSandboxRunner.java24 import com.android.tradefed.device.FreeDeviceState;
166 IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java28 import com.android.tradefed.device.FreeDeviceState;
283 IInvocationContext metadata, Map<ITestDevice, FreeDeviceState> devicesStates) { in invocationComplete()
/tools/tradefederation/core/remote/src/com/android/tradefed/device/
DFreeDeviceState.java18 public enum FreeDeviceState { enum