Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DBuildError.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
26 private DeviceDescriptor mDescriptor = null;
34 public BuildError(String reason, DeviceDescriptor descriptor) { in BuildError()
53 public DeviceDescriptor getDeviceDescriptor() { in getDeviceDescriptor()
DDeviceFailedToBootError.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
32 public DeviceFailedToBootError(String reason, DeviceDescriptor descriptor) { in DeviceFailedToBootError()
DFlashingResourcesParser.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
265 DeviceDescriptor nullDescriptor = null; in getBuildRequirements()
DTestAppInstallSetup.java20 import com.android.tradefed.command.remote.DeviceDescriptor;
321 protected String parsePackageName(File testAppFile, DeviceDescriptor deviceDescriptor) in parsePackageName()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DDeviceUtilStatsMonitorLoadTest.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
51 public List<DeviceDescriptor> listDevices() { in setUp()
66 List<DeviceDescriptor> deviceList = new ArrayList<>(NUM_DEVICES); in testManyRecords()
68DeviceDescriptor device = createDeviceDesc("serial" + i, DeviceAllocationState.Allocated); in testManyRecords()
86 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc()
87 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
DDeviceUtilStatsMonitorTest.java18 import com.android.tradefed.command.remote.DeviceDescriptor;
48 public List<DeviceDescriptor> listDevices() { in setUp()
145 private List<DeviceDescriptor> buildDeviceList(DeviceAllocationState... states) { in buildDeviceList()
146 List<DeviceDescriptor> deviceList = new ArrayList<>(states.length); in buildDeviceList()
148 DeviceDescriptor device = createDeviceDesc("serial" + i, states[i]); in buildDeviceList()
157 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc()
158 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
DMockDeviceManager.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
363 public List<DeviceDescriptor> listAllDevices() { in listAllDevices()
364 return new ArrayList<DeviceDescriptor>(); in listAllDevices()
DDeviceManagerTest.java23 import com.android.tradefed.command.remote.DeviceDescriptor;
793 DeviceDescriptor availDevice1 = createDeviceDesc("aaa", DeviceAllocationState.Available); in testSortDeviceList()
794 DeviceDescriptor availDevice2 = createDeviceDesc("bbb", DeviceAllocationState.Available); in testSortDeviceList()
795 DeviceDescriptor allocatedDevice = createDeviceDesc("ccc", DeviceAllocationState.Allocated); in testSortDeviceList()
796 List<DeviceDescriptor> deviceList = ArrayUtil.list(availDevice1, availDevice2, in testSortDeviceList()
798 List<DeviceDescriptor> sortedList = DeviceManager.sortDeviceList(deviceList); in testSortDeviceList()
807 private DeviceDescriptor createDeviceDesc(String serial, DeviceAllocationState state) { in createDeviceDesc()
808 return new DeviceDescriptor(serial, false, state, null, null, null, null, null); in createDeviceDesc()
1130 List<DeviceDescriptor> res = manager.listAllDevices(); in testListAllDevices()
/tools/tradefederation/core/src/com/android/tradefed/device/
DIDeviceMonitor.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
44 public abstract List<DeviceDescriptor> listDevices(); in listDevices()
DDeviceDiagTest.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
64 for (DeviceDescriptor deviceDesc : getDeviceManager().listAllDevices()) { in getUnavailableDevices()
DIDeviceManager.java20 import com.android.tradefed.command.remote.DeviceDescriptor;
189 public List<DeviceDescriptor> listAllDevices(); in listAllDevices()
DDeviceManager.java25 import com.android.tradefed.command.remote.DeviceDescriptor;
253 public List<DeviceDescriptor> listDevices() { in startAdbBridgeAndDependentServices()
915 public List<DeviceDescriptor> listAllDevices() { in listAllDevices()
916 final List<DeviceDescriptor> serialStates = new ArrayList<DeviceDescriptor>(); in listAllDevices()
921 new DeviceDescriptor( in listAllDevices()
945 List<DeviceDescriptor> deviceList = listAllDevices(); in displayDevicesInfo()
955 static List<DeviceDescriptor> sortDeviceList(List<DeviceDescriptor> deviceList) { in sortDeviceList()
957 Comparator<DeviceDescriptor> c = new Comparator<DeviceDescriptor>() { in sortDeviceList()
960 public int compare(DeviceDescriptor o1, DeviceDescriptor o2) { in sortDeviceList()
985 List<DeviceDescriptor> sortedDeviceList) { in addDevicesInfo()
[all …]
DDeviceUtilStatsMonitor.java19 import com.android.tradefed.command.remote.DeviceDescriptor;
160 for (DeviceDescriptor deviceDesc : mDeviceLister.listDevices()) { in run()
DINativeDevice.java23 import com.android.tradefed.command.remote.DeviceDescriptor;
1161 public DeviceDescriptor getDeviceDescriptor(); in getDeviceDescriptor()
/tools/tradefederation/core/remote/src/com/android/tradefed/command/remote/
DDeviceDescriptor.java26 public class DeviceDescriptor { class
43 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() method in DeviceDescriptor
50 public DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, in DeviceDescriptor() method in DeviceDescriptor
71 public DeviceDescriptor( in DeviceDescriptor() method in DeviceDescriptor
DIRemoteClient.java32 public List<DeviceDescriptor> sendListDevices() throws RemoteException; in sendListDevices()
DRemoteClient.java206 public List<DeviceDescriptor> sendListDevices() throws RemoteException { in sendListDevices()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstrumentationPreparerTest.java21 import com.android.tradefed.command.remote.DeviceDescriptor;
77 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(new DeviceDescriptor("SERIAL", in testRun()
105 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andStubReturn(new DeviceDescriptor( in testRun_testFailed()
DTestAppInstallSetupTest.java25 import com.android.tradefed.command.remote.DeviceDescriptor;
73 File testAppFile, DeviceDescriptor deviceDescriptor) { in setUp()
248 File testAppFile, DeviceDescriptor deviceDescriptor) { in testFindApk_override()
280 File testAppFile, DeviceDescriptor deviceDescriptor) { in testFindApk_override_onlyInBuild()
DSdkAvdPreparerTest.java21 import com.android.tradefed.command.remote.DeviceDescriptor;
154 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(new DeviceDescriptor("SERIAL", in testSetUp_noAvdName()
183 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(new DeviceDescriptor("SERIAL", in testSetUp_failedBoot()
209 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(new DeviceDescriptor("SERIAL", in testSetUp_failedCreateAvd()
DDeviceFlashPreparerTest.java26 import com.android.tradefed.command.remote.DeviceDescriptor;
185 new DeviceDescriptor("SERIAL", false, DeviceAllocationState.Available, "unknown", in testSetup_buildError()
DKernelFlashPreparerTest.java24 import com.android.tradefed.command.remote.DeviceDescriptor;
206 EasyMock.expect(mMockDevice.getDeviceDescriptor()).andReturn(new DeviceDescriptor("SERIAL", in testSetup_builderror()
DFastbootDeviceFlasherTest.java21 import com.android.tradefed.command.remote.DeviceDescriptor;
79 IDeviceBuildInfo localBuild, DeviceDescriptor descriptor) { in setUp()
677 IDeviceBuildInfo localBuild, DeviceDescriptor desc) throws TargetSetupError { in getFlasherWithParserData()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/remote/
DRemoteManagerFuncTest.java196 List<DeviceDescriptor> deviceList = in testListDevices()
197 new ArrayList<DeviceDescriptor>(2); in testListDevices()
199 new DeviceDescriptor( in testListDevices()
210 new DeviceDescriptor( in testListDevices()
227 List<DeviceDescriptor> returnedDevices = mRemoteClient.sendListDevices(); in testListDevices()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java25 import com.android.tradefed.command.remote.DeviceDescriptor;
301 File testAppFile, DeviceDescriptor deviceDescriptor) in createSuiteApkInstaller()

12