Home
last modified time | relevance | path

Searched refs:instanceName (Results 1 – 5 of 5) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/
DLocalAndroidVirtualDevice.java126 String instanceName = (mGceAvdInfo != null ? mGceAvdInfo.instanceName() : null); in postInvocationTearDown() local
135 if (!options.shouldSkipTearDown() && instanceName != null) { in postInvocationTearDown()
136 CommandResult result = acloudDelete(instanceName, options); in postInvocationTearDown()
144 if (instanceName != null) { in postInvocationTearDown()
145 reportInstanceLogs(instanceName); in postInvocationTearDown()
156 hostAndPort, instanceName, mHostPackageDir, mImageDir); in postInvocationTearDown()
384 if (Strings.isNullOrEmpty(mGceAvdInfo.instanceName())) { in loadAvdInfo()
399 private CommandResult acloudDelete(String instanceName, TestDeviceOptions options) { in acloudDelete() argument
417 instanceName)); in acloudDelete()
427 private void reportInstanceLogs(String instanceName) { in reportInstanceLogs() argument
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java70 public GceAvdInfo(String instanceName, HostAndPort hostAndPort) { in GceAvdInfo() argument
71 mInstanceName = instanceName; in GceAvdInfo()
77 String instanceName, HostAndPort hostAndPort, String errors, GceStatus status) { in GceAvdInfo() argument
78 mInstanceName = instanceName; in GceAvdInfo()
101 public String instanceName() { in instanceName() method in GceAvdInfo
192 String instanceName = d.getString("instance_name"); in parseGceInfoFromString() local
195 instanceName, in parseGceInfoFromString()
DGceManager.java187 String instanceName = extractInstanceName(cmd.getStderr()); in startGce() local
188 if (instanceName != null) { in startGce()
189 mBuildInfo.addBuildAttribute(GCE_INSTANCE_NAME_KEY, instanceName); in startGce()
198 if (instanceName != null) { in startGce()
201 mGceAvdInfo = new GceAvdInfo(instanceName, null, errors, GceStatus.BOOT_FAIL); in startGce()
354 String instanceName = null; in shutdownGce() local
357 instanceName = mGceAvdInfo.instanceName(); in shutdownGce()
359 if (instanceName == null) { in shutdownGce()
360 instanceName = mBuildInfo.getBuildAttributes().get(GCE_INSTANCE_NAME_KEY); in shutdownGce()
363 if (instanceName == null) { in shutdownGce()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceAvdInfoTest.java59 assertEquals(avd.instanceName(), "gce-x86-phone-userdebug-2299773-22cf"); in testValidGceJsonParsing()
85 assertEquals(avd.instanceName(), "gce-x86-phone-userdebug-2299773-22cf"); in testValidGceJsonParsingWithBuildVars()
131 assertEquals(avd1.instanceName(), "gce-x86-phone-userdebug-1111111-22cf"); in testDualAvdsJsonParsingWithBuildVars()
137 assertEquals(avd2.instanceName(), "gce-x86-phone-userdebug-2222222-22cf"); in testDualAvdsJsonParsingWithBuildVars()
238 assertEquals(avd.instanceName(), "gce-x86-phone-userdebug-2299773-22ecc"); in testValidGceJsonParsingFail()
291 assertEquals(avd.instanceName(), "gce-x86-phone-userdebug-2299773-22ec"); in testParseJson_Boot_Fail()
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecution.java121 String instanceName = null; in runTests() local
125 instanceName = in runTests()
133 if (instanceName != null && !cleaned) { in runTests()
137 boolean res = GceManager.AcloudShutdown(options, getRunUtil(), instanceName); in runTests()