Home
last modified time | relevance | path

Searched refs:DeviceDescriptor (Results 1 – 25 of 49) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterHostUtilTest.java20 import com.android.tradefed.command.remote.DeviceDescriptor;
84 DeviceDescriptor device = in testGetDefaultRunTarget()
85 new DeviceDescriptor( in testGetDefaultRunTarget()
101 DeviceDescriptor device = in testGetDefaultRunTargetWithSameProductAndProductVariant()
102 new DeviceDescriptor( in testGetDefaultRunTargetWithSameProductAndProductVariant()
118 DeviceDescriptor device = in testSimpleConstantRunTargetMatchPattern()
119 new DeviceDescriptor( in testSimpleConstantRunTargetMatchPattern()
135 DeviceDescriptor device = in testDeviceTagRunTargetMatchPattern_simple()
136 new DeviceDescriptor( in testDeviceTagRunTargetMatchPattern_simple()
154 DeviceDescriptor device = in testDeviceTagRunTargetMatchPattern_missingSerial()
[all …]
DClusterCommandSchedulerTest.java32 import com.android.tradefed.command.remote.DeviceDescriptor;
245 private DeviceDescriptor createDevice(
250 private DeviceDescriptor createDevice(
252 return new DeviceDescriptor(
258 final List<DeviceDescriptor> deviceList = new ArrayList<>();
268 final MultiMap<String, DeviceDescriptor> deviceMap =
282 final List<DeviceDescriptor> deviceList = new ArrayList<>();
292 final MultiMap<String, DeviceDescriptor> deviceMap =
306 final List<DeviceDescriptor> deviceList = new ArrayList<>();
319 final MultiMap<String, DeviceDescriptor> deviceMap =
[all …]
DClusterDeviceMonitorTest.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
67 List<DeviceDescriptor> listDevices() { in setUp()
68 return new ArrayList<DeviceDescriptor>(); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java25 import com.android.tradefed.command.remote.DeviceDescriptor;
304 public List<DeviceDescriptor> listDevices() { in startAdbBridgeAndDependentServices()
309 public DeviceDescriptor getDeviceDescriptor(String serial) { in startAdbBridgeAndDependentServices()
1065 public List<DeviceDescriptor> listAllDevices() { in listAllDevices()
1066 final List<DeviceDescriptor> serialStates = new ArrayList<DeviceDescriptor>(); in listAllDevices()
1074 DeviceDescriptor desc = d.getCachedDeviceDescriptor(); in listAllDevices()
1084 public DeviceDescriptor getDeviceDescriptor(String serial) { in getDeviceDescriptor()
1110 List<DeviceDescriptor> deviceList = listAllDevices(); in displayDevicesInfo()
1120 static List<DeviceDescriptor> sortDeviceList(List<DeviceDescriptor> deviceList) { in sortDeviceList()
1122 Comparator<DeviceDescriptor> c = new Comparator<DeviceDescriptor>() { in sortDeviceList()
[all …]
DRemoteAndroidDevice.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
311 public DeviceDescriptor getDeviceDescriptor() { in getDeviceDescriptor()
312 DeviceDescriptor descriptor = super.getDeviceDescriptor(); in getDeviceDescriptor()
316 new DeviceDescriptor( in getDeviceDescriptor()
DIDeviceMonitor.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
44 public abstract List<DeviceDescriptor> listDevices(); in listDevices()
46 public abstract DeviceDescriptor getDeviceDescriptor(String serial); in getDeviceDescriptor()
DIDeviceManager.java20 import com.android.tradefed.command.remote.DeviceDescriptor;
197 public List<DeviceDescriptor> listAllDevices(); in listAllDevices()
206 public DeviceDescriptor getDeviceDescriptor(String serial); in getDeviceDescriptor()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java27 public class DeviceDescriptor implements Serializable { class
48 public DeviceDescriptor() { in DeviceDescriptor() method in DeviceDescriptor
52 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() method in DeviceDescriptor
59 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() method in DeviceDescriptor
83 public DeviceDescriptor( in DeviceDescriptor() method in DeviceDescriptor
117 public DeviceDescriptor( in DeviceDescriptor() method in DeviceDescriptor
152 public DeviceDescriptor( in DeviceDescriptor() method in DeviceDescriptor
190 public DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state) { in DeviceDescriptor() method in DeviceDescriptor
212 public DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial) { in DeviceDescriptor() method in DeviceDescriptor
DListDevicesOp.java31 class ListDevicesOp extends RemoteOperation<List<DeviceDescriptor>> {
77 protected List<DeviceDescriptor> unpackResponseFromJson(JSONObject j) throws JSONException { in unpackResponseFromJson()
78 List<DeviceDescriptor> deviceList = new ArrayList<DeviceDescriptor>(); in unpackResponseFromJson()
91 deviceList.add(new DeviceDescriptor(serial, isStubDevice, DeviceAllocationState in unpackResponseFromJson()
107 protected void packResponseIntoJson(List<DeviceDescriptor> devices, in packResponseIntoJson()
110 for (DeviceDescriptor descriptor : devices) { in packResponseIntoJson()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceManagerTest.java29 import com.android.tradefed.command.remote.DeviceDescriptor;
861 DeviceDescriptor availDevice1 = createDeviceDesc("aaa", DeviceAllocationState.Available); in testSortDeviceList()
862 DeviceDescriptor availDevice2 = createDeviceDesc("bbb", DeviceAllocationState.Available); in testSortDeviceList()
863 DeviceDescriptor allocatedDevice = createDeviceDesc("ccc", DeviceAllocationState.Allocated); in testSortDeviceList()
864 List<DeviceDescriptor> deviceList = ArrayUtil.list(availDevice1, availDevice2, in testSortDeviceList()
866 List<DeviceDescriptor> sortedList = DeviceManager.sortDeviceList(deviceList); in testSortDeviceList()
875 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc()
876 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
1238 DeviceDescriptor descriptor = in setDeviceDescriptorExpectation()
1239 new DeviceDescriptor( in setDeviceDescriptorExpectation()
[all …]
DMockDeviceManager.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
367 public List<DeviceDescriptor> listAllDevices() { in listAllDevices()
368 return new ArrayList<DeviceDescriptor>(); in listAllDevices()
373 public DeviceDescriptor getDeviceDescriptor(String serial) { in getDeviceDescriptor()
374 return new DeviceDescriptor( in getDeviceDescriptor()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/targetprep/
DTargetSetupError.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
60 public TargetSetupError(String reason, DeviceDescriptor descriptor) { in TargetSetupError()
72 public TargetSetupError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in TargetSetupError()
110 public TargetSetupError(String reason, Throwable cause, DeviceDescriptor descriptor) { in TargetSetupError()
124 String reason, Throwable cause, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in TargetSetupError()
138 String reason, Throwable cause, DeviceDescriptor descriptor, boolean deviceSide) { in TargetSetupError()
155 DeviceDescriptor descriptor, in TargetSetupError()
DBuildError.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
38 public BuildError(String reason, DeviceDescriptor descriptor) { in BuildError()
53 public BuildError(String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in BuildError()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DRemoteAndroidVirtualDeviceTest.java30 import com.android.tradefed.command.remote.DeviceDescriptor;
110 public DeviceDescriptor getDeviceDescriptor() { in getDeviceDescriptor()
111 DeviceDescriptor desc = in getDeviceDescriptor()
112 new DeviceDescriptor( in getDeviceDescriptor()
372 public DeviceDescriptor getDeviceDescriptor() { in testLaunchGce_bootFail()
418 public DeviceDescriptor getDeviceDescriptor() { in testLaunchGce_nullPort()
511 public DeviceDescriptor getDeviceDescriptor() { in testDeviceNotStoreShutdownState()
614 public DeviceDescriptor getDeviceDescriptor() { in testDevice_skipTearDown()
701 public DeviceDescriptor getDeviceDescriptor() { in testDeviceBoot_offline()
DGceManagerTest.java27 import com.android.tradefed.command.remote.DeviceDescriptor;
62 private DeviceDescriptor mMockDeviceDesc;
71 mMockDeviceDesc = Mockito.mock(DeviceDescriptor.class); in setUp()
851 DeviceDescriptor desc = null; in testStartGce_timeoutAndClean()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java23 import com.android.tradefed.command.remote.DeviceDescriptor;
450 MultiMap<String, DeviceDescriptor> devices = getAvailableDevices(manager); in processReadyCommands()
473 MultiMap<String, DeviceDescriptor> getAvailableDevices(IDeviceManager manager) { in getAvailableDevices()
484 MultiMap<String, DeviceDescriptor> getDevices(IDeviceManager manager, boolean availableOnly) { in getDevices()
486 final MultiMap<String, DeviceDescriptor> devices = new MultiMap<>(); in getDevices()
487 for (final DeviceDescriptor device : manager.listAllDevices()) { in getDevices()
530 List<ClusterCommand> fetchHostCommands(final MultiMap<String, DeviceDescriptor> devices) { in fetchHostCommands()
550 for (DeviceDescriptor d : devices.get(runTarget)) { in fetchHostCommands()
DClusterDeviceInfo.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
27 private DeviceDescriptor mDeviceDescriptor;
30 DeviceDescriptor deviceDescriptor, String runTarget, String groupName) { in ClusterDeviceInfo()
44 public DeviceDescriptor getDeviceDescriptor() { in getDeviceDescriptor()
49 private DeviceDescriptor mDeviceDescriptor;
65 public Builder setDeviceDescriptor(final DeviceDescriptor deviceDescriptor) { in setDeviceDescriptor()
DClusterDeviceMonitor.java20 import com.android.tradefed.command.remote.DeviceDescriptor;
104 final List<DeviceDescriptor> devices = listDevices(); in dispatch()
115 for (DeviceDescriptor device : devices) { in dispatch()
191 List<DeviceDescriptor> listDevices() { in listDevices()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DTestAppInstallSetupTest.java30 import com.android.tradefed.command.remote.DeviceDescriptor;
101 File testAppFile, DeviceDescriptor deviceDescriptor) { in setUp()
164 File testAppFile, DeviceDescriptor deviceDescriptor) { in testSetupAndTeardown_install_package_only()
392 File testAppFile, DeviceDescriptor deviceDescriptor) { in testFindApk_override()
424 File testAppFile, DeviceDescriptor deviceDescriptor) { in testFindApk_override_onlyInBuild()
586 File testAppFile, DeviceDescriptor deviceDescriptor) { in createPreparer()
DTargetSetupErrorTest.java21 import com.android.tradefed.command.remote.DeviceDescriptor;
47 TargetSetupError exception = new TargetSetupError("reason", new DeviceDescriptor()); in testSerialization()
62 DeviceDescriptor descriptor = in testSerialization_withIDevice()
63 new DeviceDescriptor( in testSerialization_withIDevice()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java195 List<DeviceDescriptor> deviceList = in testListDevices()
196 new ArrayList<DeviceDescriptor>(2); in testListDevices()
198 new DeviceDescriptor( in testListDevices()
209 new DeviceDescriptor( in testListDevices()
226 List<DeviceDescriptor> returnedDevices = mRemoteClient.sendListDevices(); in testListDevices()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
71 private DeviceDescriptor mDeviceDescriptor;
87 DeviceDescriptor deviceDesc, TestDeviceOptions deviceOptions, IBuildInfo buildInfo) { in GceManager()
117 DeviceDescriptor deviceDesc, in GceManager()
134 DeviceDescriptor deviceDesc, in GceManager()
DRemoteAndroidVirtualDevice.java21 import com.android.tradefed.command.remote.DeviceDescriptor;
438 public DeviceDescriptor getDeviceDescriptor() { in getDeviceDescriptor()
439 DeviceDescriptor descriptor = super.getDeviceDescriptor(); in getDeviceDescriptor()
443 new DeviceDescriptor( in getDeviceDescriptor()
DGceAvdInfo.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
146 File f, DeviceDescriptor descriptor, int remoteAdbPort) throws TargetSetupError { in parseGceInfoFromFile()
167 String data, DeviceDescriptor descriptor, int remoteAdbPort) throws TargetSetupError { in parseGceInfoFromString()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceFailedToBootError.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
37 public DeviceFailedToBootError(String reason, DeviceDescriptor descriptor) { in DeviceFailedToBootError()
48 String reason, DeviceDescriptor descriptor, ErrorIdentifier errorId) { in DeviceFailedToBootError()

12