Home
last modified time | relevance | path

Searched refs:deviceName (Results 1 – 24 of 24) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/invoker/
DInvocationExecution.java94 for (String deviceName : context.getDeviceConfigNames()) { in fetchBuild()
95 currentDeviceName = deviceName; in fetchBuild()
97 ITestDevice device = context.getDevice(deviceName); in fetchBuild()
98 IDeviceConfiguration deviceConfig = config.getDeviceConfigByName(deviceName); in fetchBuild()
113 context.addDeviceBuildInfo(deviceName, info); in fetchBuild()
190 for (String deviceName : context.getDeviceConfigNames()) { in doSetup()
191 ITestDevice device = context.getDevice(deviceName); in doSetup()
194 ((ITestLoggerReceiver) context.getDevice(deviceName)).setTestLogger(listener); in doSetup()
197 config.getDeviceConfigByName(deviceName).getTargetPreparers()) { in doSetup()
209 preparer.setUp(device, context.getBuildInfo(deviceName)); in doSetup()
[all …]
DTestInvocation.java425 for (String deviceName : context.getDeviceConfigNames()) { in resume()
426 resumeConfig.getDeviceConfigByName(deviceName).getBuildProvider() in resume()
427 .cleanUp(context.getBuildInfo(deviceName)); in resume()
664 for (String deviceName : context.getDeviceConfigNames()) { in invoke()
665 context.getDevice(deviceName).clearLastConnectedWifiNetwork(); in invoke()
666 context.getDevice(deviceName) in invoke()
667 .setOptions(config.getDeviceConfigByName(deviceName).getDeviceOptions()); in invoke()
668 if (config.getDeviceConfigByName(deviceName) in invoke()
671 if (!(context.getDevice(deviceName).getIDevice() instanceof StubDevice)) { in invoke()
672 context.getDevice(deviceName).startLogcat(); in invoke()
[all …]
DInvocationContext.java171 public ITestDevice getDevice(String deviceName) { in getDevice() argument
172 return mNameAndDeviceMap.get(deviceName); in getDevice()
179 public IBuildInfo getBuildInfo(String deviceName) { in getBuildInfo() argument
180 return mNameAndBuildinfoMap.get(deviceName); in getBuildInfo()
187 public void addDeviceBuildInfo(String deviceName, IBuildInfo buildinfo) { in addDeviceBuildInfo() argument
188 mNameAndBuildinfoMap.put(deviceName, buildinfo); in addDeviceBuildInfo()
189 mAllocatedDeviceAndBuildMap.put(getDevice(deviceName), buildinfo); in addDeviceBuildInfo()
DIInvocationContext.java60 public void addAllocatedDevice(String deviceName, ITestDevice testDevice); in addAllocatedDevice() argument
98 public ITestDevice getDevice(String deviceName); in getDevice() argument
122 public IBuildInfo getBuildInfo(String deviceName); in getBuildInfo() argument
135 public void addDeviceBuildInfo(String deviceName, IBuildInfo buildinfo); in addDeviceBuildInfo() argument
DShardMasterResultForwarder.java178 for (String deviceName : shard.getDeviceConfigNames()) { in copyShardBuildInfoToMain()
179 IBuildInfo shardBuild = shard.getBuildInfo(deviceName); in copyShardBuildInfoToMain()
180 IBuildInfo mainBuild = main.getBuildInfo(deviceName); in copyShardBuildInfoToMain()
189 deviceName); in copyShardBuildInfoToMain()
DRemoteInvocationExecution.java105 String deviceName = config.getDeviceConfig().get(0).getDeviceName(); in fetchBuild() local
113 context.addDeviceBuildInfo(deviceName, info); in fetchBuild()
/tools/tradefederation/core/src/com/android/tradefed/config/
DOptionSetter.java616 Map<String, OptionFieldsForName> optionMap, Integer index, String deviceName) in addOptionsForObject() argument
662 if (deviceName != null) { in addOptionsForObject()
664 String.format("{%s}%s", deviceName, option.name()), field); in addOptionsForObject()
668 deviceName); in addOptionsForObject()
677 String.valueOf(option.shortName()), field, index, deviceName); in addOptionsForObject()
683 if (deviceName != null) { in addOptionsForObject()
684 addNameToMap(optionMap, optionSource, String.format("{%s}%s", deviceName, in addOptionsForObject()
689 field, index, deviceName); in addOptionsForObject()
921 Object optionSource, String name, Field field, int index, String deviceName) in addNamespacedOptionToMap() argument
928 addNamespacedAliasOptionToMap(optionMap, optionSource, name, field, index, deviceName, in addNamespacedOptionToMap()
[all …]
DConfigurationXmlParser.java127 String deviceName = attributes.getValue("name"); in startElement() local
128 if (deviceName == null) { in startElement()
132 if (deviceName.equals(ConfigurationDef.DEFAULT_DEVICE_NAME)) { in startElement()
137 if (deviceName.contains(String.valueOf(OptionSetter.NAMESPACE_SEPARATOR))) { in startElement()
143 mCurrentDeviceObject = deviceName; in startElement()
312 String deviceName = attributes.getValue("name"); in addObject() local
313 if (!mListDevice.contains(deviceName)) { in addObject()
314 mListDevice.add(deviceName); in addObject()
318 String resp = mConfigDef.addExpectedDevice(deviceName, isFake); in addObject()
DDeviceConfigurationHolder.java54 public DeviceConfigurationHolder(String deviceName) { in DeviceConfigurationHolder() argument
55 this(deviceName, false); in DeviceConfigurationHolder()
58 public DeviceConfigurationHolder(String deviceName, boolean isFake) { in DeviceConfigurationHolder() argument
59 mDeviceName = deviceName; in DeviceConfigurationHolder()
DConfigurationDef.java428 public String addExpectedDevice(String deviceName, boolean isFake) { in addExpectedDevice() argument
429 Boolean previous = mExpectedDevices.put(deviceName, isFake); in addExpectedDevice()
434 deviceName); in addExpectedDevice()
DIConfiguration.java446 public boolean isDeviceConfiguredFake(String deviceName); in isDeviceConfiguredFake() argument
DConfiguration.java926 public boolean isDeviceConfiguredFake(String deviceName) { in isDeviceConfiguredFake() argument
927 IDeviceConfiguration deviceConfig = getDeviceConfigByName(deviceName); in isDeviceConfiguredFake()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java348 String deviceName = mModuleInvocationContext.getDeviceConfigNames().get(i); in run() local
349 ITestDevice device = mModuleInvocationContext.getDevice(deviceName); in run()
354 deviceName); in run()
357 List<ITargetPreparer> preparers = mPreparersPerDevice.get(deviceName); in run()
362 deviceName); in run()
370 mModuleInvocationContext.getBuildInfo(deviceName), in run()
811 String deviceName = mModuleInvocationContext.getDeviceConfigNames().get(i); in runTearDown() local
812 ITestDevice device = mModuleInvocationContext.getDevice(deviceName); in runTearDown()
817 deviceName); in runTearDown()
820 List<ITargetPreparer> preparers = mPreparersPerDevice.get(deviceName); in runTearDown()
[all …]
DITestSuite.java581 for (String deviceName : mContext.getDeviceConfigNames()) { in run()
583 .addAllocatedDevice(deviceName, mContext.getDevice(deviceName)); in run()
585 .addDeviceBuildInfo(deviceName, mContext.getBuildInfo(deviceName)); in run()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardBuildCloner.java40 for (String deviceName : context.getDeviceConfigNames()) { in cloneBuildInfos()
41 IBuildInfo toBuild = context.getBuildInfo(deviceName).clone(); in cloneBuildInfos()
43 toConfig.getDeviceConfigByName(deviceName) in cloneBuildInfos()
48 .getDeviceConfigByName(deviceName) in cloneBuildInfos()
DShardHelper.java155 for (String deviceName : context.getDeviceConfigNames()) { in shardConfig()
156 config.getDeviceConfigByName(deviceName) in shardConfig()
158 .cleanUp(context.getBuildInfo(deviceName)); in shardConfig()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java75 for (String deviceName : mContext.getDeviceConfigNames()) { in run()
76 moduleContext.addAllocatedDevice(deviceName, mContext.getDevice(deviceName)); in run()
77 moduleContext.addDeviceBuildInfo(deviceName, mContext.getBuildInfo(deviceName)); in run()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DDeviceMetricData.java58 String deviceName = mContext.getDeviceName(mContext.getDevices().get(0)); in addMetric() local
59 actualKey = String.format(DEVICE_NAME_FORMAT_KEY, deviceName, key); in addMetric()
79 String deviceName = mContext.getDeviceName(device); in addMetricForDevice() local
80 actualKey = String.format(DEVICE_NAME_FORMAT_KEY, deviceName, key); in addMetricForDevice()
/tools/tradefederation/contrib/src/com/android/tradefed/
DHelloWorldMultiDevices.java75 for (String deviceName : mContext.getDeviceConfigNames()) { in run()
78 mContext.getDevice(deviceName).getSerialNumber(), deviceName); in run()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DSandboxedInvocationExecution.java53 for (String deviceName : context.getDeviceConfigNames()) { in fetchBuild()
54 IDeviceConfiguration deviceConfig = config.getDeviceConfigByName(deviceName); in fetchBuild()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/metric/
DLoopSummary.java337 String deviceName = context.getDeviceName(context.getDevices().get(0)); in getActualMetricKey() local
338 return String.format("{%s}:%s", deviceName, getMetricKey(type, loopIndex, label)); in getActualMetricKey()
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java766 for (String deviceName : mInvocationContext.getDeviceConfigNames()) { in checkDeviceBatteryLevel()
767 if (mCmd.getConfiguration().getDeviceConfigByName(deviceName) in checkDeviceBatteryLevel()
773 .getDeviceConfigByName(deviceName).getDeviceOptions().getCutoffBattery(); in checkDeviceBatteryLevel()
775 if (mInvocationContext.getDevice(deviceName) != null && cutoffBattery != null) { in checkDeviceBatteryLevel()
776 final ITestDevice device = mInvocationContext.getDevice(deviceName); in checkDeviceBatteryLevel()
/tools/acloud/internal/lib/
Dgcompute_client_test.py818 "fake_instance_1", self.ZONE, deviceName="fake_disk",
842 deviceName="fake_disk")
Dgcompute_client.py663 deviceName=disk_name)