Home
last modified time | relevance | path

Searched refs:mDeviceManager (Results 1 – 10 of 10) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/monitoring/collector/
DDeviceInternetAccessibilityResourceMetricCollectorTest.java65 @Mock private IDeviceManager mDeviceManager; field in DeviceInternetAccessibilityResourceMetricCollectorTest
96 when(mDeviceManager.executeCmdOnAvailableDevice(
102 when(mDeviceManager.executeCmdOnAvailableDevice(
112 mDeviceManager,
119 mDeviceManager,
127 when(mDeviceManager.executeCmdOnAvailableDevice(
133 when(mDeviceManager.executeCmdOnAvailableDevice(
143 mDeviceManager,
150 mDeviceManager,
158 when(mDeviceManager.executeCmdOnAvailableDevice(
[all …]
DResourceMetricUtilTest.java40 @Mock private IDeviceManager mDeviceManager; field in ResourceMetricUtilTest
58 when(mDeviceManager.executeCmdOnAvailableDevice("foo", "bar", 500, TimeUnit.MILLISECONDS)) in testGetCommandResponse()
61 ResourceMetricUtil.GetCommandResponse(mDeviceManager, "foo", "bar", 500); in testGetCommandResponse()
75 when(mDeviceManager.executeCmdOnAvailableDevice("foo", "bar", 500, TimeUnit.MILLISECONDS)) in testGetCommandResponse_failed()
78 ResourceMetricUtil.GetCommandResponse(mDeviceManager, "foo", "bar", 500); in testGetCommandResponse_failed()
DDeviceWifiResourceMetricCollectorTest.java72 @Mock private IDeviceManager mDeviceManager; field in DeviceWifiResourceMetricCollectorTest
86 when(mDeviceManager.executeCmdOnAvailableDevice( in setup()
108 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResourceMetrics_noWifi()
126 mCollector.getDeviceResourceMetrics(mDescriptor, mDeviceManager); in testGetDeviceResourceMetrics_noWifi()
139 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResourceMetrics_success()
157 mCollector.getDeviceResourceMetrics(mDescriptor, mDeviceManager); in testGetDeviceResourceMetrics_success()
DDeviceBatteryResourceMetricCollectorTest.java60 @Mock private IDeviceManager mDeviceManager; field in DeviceBatteryResourceMetricCollectorTest
68 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResource()
90 mDeviceManager); in testGetDeviceResource()
110 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResource_failed()
127 mDeviceManager); in testGetDeviceResource_failed()
DDeviceStorageAgeResourceMetricCollectorTest.java46 @Mock private IDeviceManager mDeviceManager; field in DeviceStorageAgeResourceMetricCollectorTest
71 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResource()
96 mDeviceManager); in testGetDeviceResource()
108 when(mDeviceManager.executeCmdOnAvailableDevice( in testGetDeviceResource_failed()
128 mDeviceManager); in testGetDeviceResource_failed()
/tools/tradefederation/core/src/com/android/tradefed/device/
DManagedTestDeviceFactory.java50 protected IDeviceManager mDeviceManager; field in ManagedTestDeviceFactory
61 mDeviceManager = deviceManager; in ManagedTestDeviceFactory()
72 new NativeDeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createRequestedDevice()
80 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createRequestedDevice()
97 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
104 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
112 new DeviceStateMonitor(mDeviceManager, idevice, mFastbootEnabled), in createDevice()
121 mDeviceManager, idevice, mFastbootEnabled), in createDevice()
133 mDeviceManager, idevice, mFastbootEnabled), in createDevice()
141 mDeviceManager, idevice, mFastbootEnabled), in createDevice()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/service/management/
DDeviceManagementGrpcServer.java44 private final IDeviceManager mDeviceManager; field in DeviceManagementGrpcServer
67 mDeviceManager = deviceManager; in DeviceManagementGrpcServer()
75 mDeviceManager = deviceManager; in DeviceManagementGrpcServer()
104 for (DeviceDescriptor descriptor : mDeviceManager.listAllDevices(true)) { in getDevicesStatus()
109 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in getDevicesStatus()
172 DeviceDescriptor descriptor = mDeviceManager.getDeviceDescriptor(serial); in reserveDevice()
203 ITestDevice device = mDeviceManager.allocateDevice(selection); in reserveDevice()
255 mDeviceManager.freeDevice(entry.getValue().device, FreeDeviceState.AVAILABLE); in releaseReservationInternal()
/tools/tradefederation/core/src/com/android/tradefed/device/recovery/
DRunConfigDeviceRecovery.java157 private final IDeviceManager mDeviceManager; field in RunConfigDeviceRecovery.FreeDeviceHandler
160 mDeviceManager = deviceManager; in FreeDeviceHandler()
167 mDeviceManager.freeDevice(device, devicesStates.get(device)); in invocationComplete()
170 ((IManagedTestDevice) device).setFastbootPath(mDeviceManager.getFastbootPath()); in invocationComplete()
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/
DRunHostScriptTargetPreparerTest.java71 @Mock private IDeviceManager mDeviceManager; field in RunHostScriptTargetPreparerTest
94 return mDeviceManager; in setUp()
106 when(mDeviceManager.getAdbPath()).thenReturn("adb"); in setUp()
107 when(mDeviceManager.getFastbootPath()).thenReturn("fastboot"); in setUp()
180 when(mDeviceManager.getFastbootPath()).thenReturn(fastbootBinary.getAbsolutePath()); in testSetUp_pathVariable()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java492 private final IDeviceManager mDeviceManager; field in CommandScheduler.FreeDeviceHandler
498 mDeviceManager = deviceManager; in FreeDeviceHandler()
509 mDeviceManager.freeDevice(device, devicesStates.get(device)); in releaseDevices()
536 private final IDeviceManager mDeviceManager; field in CommandScheduler.FreeNullDeviceHandler
542 mDeviceManager = deviceManager; in FreeNullDeviceHandler()
555 mDeviceManager.freeDevice(device, devicesStates.get(device)); in releaseDevices()