/tools/tradefederation/core/javatests/com/android/tradefed/build/ |
D | BuildInfoTest.java | 49 private BuildInfo mBuildInfo; field in BuildInfoTest 54 mBuildInfo = new BuildInfo("1", "target"); in setUp() 55 mBuildInfo.addBuildAttribute(ATTRIBUTE_KEY, "value"); in setUp() 58 mBuildInfo.setFile(FILE_KEY, mFile, VERSION); in setUp() 69 mBuildInfo.setDeviceSerial("tobecloned"); in testClone() 70 mBuildInfo.setFile( in testClone() 74 BuildInfo copy = (BuildInfo) mBuildInfo.clone(); in testClone() 75 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone() 93 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp() 94 mBuildInfo.cleanUp(); in testCleanUp() [all …]
|
D | DeviceBuildInfoTest.java | 42 private DeviceBuildInfo mBuildInfo; field in DeviceBuildInfoTest 49 mBuildInfo = new DeviceBuildInfo("2", "target"); in setUp() 52 mBuildInfo.setBasebandImage(mImageFile, VERSION); in setUp() 54 mBuildInfo.setTestsDir(mTestsDir, VERSION); in setUp() 62 mBuildInfo.cleanUp(); in tearDown() 69 DeviceBuildInfo copy = (DeviceBuildInfo) mBuildInfo.clone(); in testClone() 89 assertTrue(mBuildInfo.getBasebandImageFile().exists()); in testCleanUp() 90 mBuildInfo.cleanUp(); in testCleanUp() 91 assertNull(mBuildInfo.getBasebandImageFile()); in testCleanUp() 101 mBuildInfo.setFile(BuildInfoFileKey.HOST_LINKED_DIR, mHostLinkedDir, "v1"); in testCloneWithProperties() [all …]
|
/tools/tradefederation/core/javatests/com/android/tradefed/targetprep/ |
D | GkiDeviceFlashPreparerTest.java | 72 private IDeviceBuildInfo mBuildInfo; field in GkiDeviceFlashPreparerTest 172 mBuildInfo = new DeviceBuildInfo("0", ""); in setUp() 173 mBuildInfo.setBuildFlavor("flavor"); in setUp() 176 context.addDeviceBuildInfo("device", mBuildInfo); in setUp() 196 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoBuildInfoFiles() 207 mBuildInfo.setFile("Image.gz", kernelImage, "0"); in testValidateGkiBootImg_NoRamdiskRecoveryImg() 210 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoRamdiskRecoveryImg() 221 mBuildInfo.setFile("Image.gz", kernelImage, "0"); in testValidateGkiBootImg_NoOtatoolsZip() 223 mBuildInfo.setFile("ramdisk.img", ramdiskRecoveryImage, "0"); in testValidateGkiBootImg_NoOtatoolsZip() 226 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoOtatoolsZip() [all …]
|
D | MixKernelTargetPreparerTest.java | 43 private IDeviceBuildInfo mBuildInfo; field in MixKernelTargetPreparerTest 48 mBuildInfo = new DeviceBuildInfo(); in setUp() 49 mBuildInfo.setBuildFlavor("flavor"); in setUp() 50 mContext.addDeviceBuildInfo("device", mBuildInfo); in setUp() 115 mBuildInfo.setFile("device", deviceImage, "0"); in testFailsOnMissingKernelImage() 131 mBuildInfo.setFile("device", deviceImage, "0"); in testFailsOnMissingKernelMixingTool() 133 mBuildInfo.setFile("{kernel}Image.gz", kernelImage, "0"); in testFailsOnMissingKernelMixingTool() 167 mBuildInfo.setFile("device", deviceImage, "0"); in testFailsOnRunningKernelMixingTool() 168 mBuildInfo.setFile("{kernel}Image.gz", kernelImage, "0"); in testFailsOnRunningKernelMixingTool() 169 mBuildInfo.setTestsDir(testsDir, "0"); in testFailsOnRunningKernelMixingTool() [all …]
|
D | GsiDeviceFlashPreparerTest.java | 62 private IDeviceBuildInfo mBuildInfo; field in GsiDeviceFlashPreparerTest 103 mBuildInfo = new DeviceBuildInfo("0", ""); in setUp() 104 mBuildInfo.setBuildFlavor("flavor"); in setUp() 107 context.addDeviceBuildInfo("device", mBuildInfo); in setUp() 175 mBuildInfo.setFile("gsi_system.img", gsiZip, "0"); in testSetUp_NoSystemImageInGsiZip() 191 mBuildInfo.setFile("gsi_system.img", systemImg, "0"); in testSetUp_Success_NoVbmetaImage() 202 "flash", "system", mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetUp_Success_NoVbmetaImage() 225 mBuildInfo.setFile("gsi_system.img", systemImg, "0"); in testSetup_Success() 226 mBuildInfo.setFile("gsi_vbmeta.img", vbmetaImg, "0"); in testSetup_Success() 234 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success() [all …]
|
D | DynamicSystemPreparerTest.java | 62 private IBuildInfo mBuildInfo; field in DynamicSystemPreparerTest 97 mBuildInfo = new BuildInfo(); in setUp() 110 context.addDeviceBuildInfo("device", mBuildInfo); in setUp() 116 if (mBuildInfo != null) { in tearDown() 117 mBuildInfo.cleanUp(); in tearDown() 118 mBuildInfo = null; in tearDown() 145 mBuildInfo.setFile(SYSTEM_IMAGE_ZIP_NAME, mSystemImageDir, "0"); in testSetUp_imageDir() 165 mBuildInfo.setFile(SYSTEM_IMAGE_ZIP_NAME, mSystemImageZip, "0"); in testSetUp_imageZip() 183 mBuildInfo.setFile(SYSTEM_IMAGE_ZIP_NAME, mSystemImageZip, "0"); in testSetUp_imageConversionTimeout() 195 mBuildInfo.setFile(SYSTEM_IMAGE_ZIP_NAME, mSystemImageZip, "0"); in testSetUp_installationFail() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | BuildRetrievalError.java | 27 private IBuildInfo mBuildInfo = new BuildInfo(); field in BuildRetrievalError 95 mBuildInfo = build; in BuildRetrievalError() 111 return mBuildInfo; in getBuildInfo() 120 mBuildInfo = build; in setBuildInfo()
|
D | ExistingBuildProvider.java | 24 private final IBuildInfo mBuildInfo; field in ExistingBuildProvider 36 mBuildInfo = buildInfo; in ExistingBuildProvider() 45 return mBuildInfo; in getBuild()
|
/tools/tradefederation/core/javatests/com/android/tradefed/build/content/ |
D | TestContentAnalyzerTest.java | 47 private IBuildInfo mBuildInfo; field in TestContentAnalyzerTest 53 mBuildInfo = new BuildInfo(); in setUp() 54 mInvocationContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp() 66 mBuildInfo.setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, "P8888"); in testAnalyzeTestsDir_withChange() 96 mBuildInfo.setFile(BuildInfoFileKey.TESTDIR_IMAGE, testsDir, "P8888"); in testAnalyzeTestsDir_noChange() 132 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_withChange() 168 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_withDiscovery() 203 mBuildInfo.setFile(BuildInfoFileKey.ROOT_DIRECTORY, rootDir, "P8888"); in testAnalyzeXtsSuite_noChange()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | TfTestLauncher.java | 146 mCmdArgs.add(mBuildInfo.getTestTag()); in preRun() 151 mCmdArgs.add(mBuildInfo.getBuildId()); in preRun() 156 } else if (mBuildInfo.getBuildBranch() != null) { in preRun() 157 mCmdArgs.add(mBuildInfo.getBuildBranch()); in preRun() 164 } else if (mBuildInfo.getBuildFlavor() != null) { in preRun() 165 mCmdArgs.add(mBuildInfo.getBuildFlavor()); in preRun() 175 ((IFolderBuildInfo) mBuildInfo).getRootDir().getAbsolutePath(), in preRun() 243 patterns.add(mBuildInfo.getBuildBranch()); in testTmpDirClean()
|
D | SubprocessTfLauncher.java | 184 protected IBuildInfo mBuildInfo = null; field in SubprocessTfLauncher 235 Assert.assertNotNull(mBuildInfo); in preRun() 237 IFolderBuildInfo tfBuild = (IFolderBuildInfo) mBuildInfo; in preRun() 358 mBuildInfo.addBuildAttribute(PARENT_PROC_TAG_NAME, "true"); in addInvocationData() 432 CLog.d("Successfully ran TF tests for build %s", mBuildInfo.getBuildId()); in run() 436 mBuildInfo.getBuildId(), result.getStatus()); in run() 507 mBuildInfo = buildInfo; in setBuild()
|
/tools/tradefederation/core/javatests/com/android/tradefed/device/cloud/ |
D | OxygenClientTest.java | 59 private BuildInfo mBuildInfo; field in OxygenClientTest 123 mBuildInfo = new BuildInfo("P1234567", "target"); in setUp() 124 mBuildInfo.setBuildBranch("testBranch"); in setUp() 125 mBuildInfo.addBuildAttribute("build_target", "target"); in setUp() 193 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLease() 249 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, testDeviceOptions, attributes); in testLeaseWithoutBuildId() 295 Arrays.asList(mBuildInfo, mBuildInfo), mTestDeviceOptions, attributes); in testLeaseMultipleDevice() 422 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLeaseWithBootImageAndBootArtifact() 484 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLeaseWithBootloader() 544 CommandResult res = mOxygenClient.leaseDevice(mBuildInfo, mTestDeviceOptions, attributes); in testLeaseWithHostPackage() [all …]
|
/tools/tradefederation/core/test_observatory/com/android/tradefed/observatory/ |
D | TestDiscoveryInvoker.java | 77 private IBuildInfo mBuildInfo; field in TestDiscoveryInvoker 128 mBuildInfo = buildInfo; in setBuildInfo() 319 if (mBuildInfo != null) { in discoverTestMappingDependencies() 320 if (mBuildInfo.getFile(TestMapping.TEST_MAPPINGS_ZIP) != null) { in discoverTestMappingDependencies() 324 mBuildInfo in discoverTestMappingDependencies() 330 mBuildInfo in discoverTestMappingDependencies() 335 if (mBuildInfo.getFile(allowedList) != null) { in discoverTestMappingDependencies() 339 mBuildInfo.getFile(allowedList).getAbsolutePath()); in discoverTestMappingDependencies()
|
/tools/tradefederation/core/src/com/android/tradefed/device/connection/ |
D | DefaultConnection.java | 42 private final IBuildInfo mBuildInfo; field in DefaultConnection 127 mBuildInfo = builder.buildInfo; in DefaultConnection() 158 return mBuildInfo; in getBuildInfo()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustBinaryHostTest.java | 62 private IBuildInfo mBuildInfo; field in RustBinaryHostTest 66 mBuildInfo = buildInfo; in setBuild() 91 File testsDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in findFiles() 92 if (testsDir == null && mBuildInfo instanceof IDeviceBuildInfo) { in findFiles() 93 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findFiles()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ITestSuite.java | 395 private IBuildInfo mBuildInfo; field in ITestSuite 527 if (mBuildInfo != null) { in stageAtInvocationLevel() 529 || mBuildInfo.getBuildAttributes().get(SKIP_STAGING_ARTIFACTS) != null) { in stageAtInvocationLevel() 539 if (mBuildInfo != null) { in stageModuleLevel() 540 return mBuildInfo.getBuildAttributes().get(STAGE_MODULE_ARTIFACTS) != null; in stageModuleLevel() 547 if (mBuildInfo.getRemoteFiles() == null || mBuildInfo.getRemoteFiles().isEmpty()) { in stageTestArtifacts() 569 if (mBuildInfo.getBuildAttributes().containsKey("ROOT_DIR")) { in stageTestArtifacts() 570 destination = mBuildInfo.getBuildAttributes().get("ROOT_DIR"); in stageTestArtifacts() 584 mBuildInfo.getRemoteFiles().stream() in stageTestArtifacts() 605 for (File remoteFile : mBuildInfo.getRemoteFiles()) { in stageTestArtifacts() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestRunner.java | 74 private IBuildInfo mBuildInfo; field in PythonUnitTestRunner 104 mBuildInfo = buildInfo; in setBuild() 109 return mBuildInfo; in getBuild()
|
D | HostGTest.java | 69 private IBuildInfo mBuildInfo = null; field in HostGTest 84 this.mBuildInfo = buildInfo; in setBuild() 321 File hostLinkedDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in run() 325 File testsDir = ((DeviceBuildInfo) mBuildInfo).getTestsDir(); in run()
|
/tools/tradefederation/contrib/src/com/android/fastboot/tests/ |
D | FastbootTest.java | 91 private IBuildInfo mBuildInfo; field in FastbootTest 97 mBuildInfo = buildInfo; in setBuild() 171 File fastboot = getFastbootFile(mBuildInfo); in testFastboot()
|
/tools/tradefederation/core/javatests/com/android/tradefed/result/suite/ |
D | FormattedGeneratorReporterTest.java | 50 private IBuildInfo mBuildInfo; field in FormattedGeneratorReporterTest 56 mBuildInfo = new BuildInfo(); in setUp() 57 mContext.addDeviceBuildInfo("default", mBuildInfo); in setUp()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | CollectingTestListener.java | 64 private IBuildInfo mBuildInfo; field in CollectingTestListener 129 return mBuildInfo; in getBuildInfo() 140 mBuildInfo = buildInfo; in setBuildInfo() 147 mBuildInfo = getPrimaryBuildInfo(); in invocationStarted()
|
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/ |
D | AtestRunnerTest.java | 75 private IDeviceBuildInfo mBuildInfo; field in AtestRunnerTest 97 mBuildInfo = mock(IDeviceBuildInfo.class); in setUp() 99 mRunner.setBuild(mBuildInfo); in setUp() 102 when(mBuildInfo.getTestsDir()).thenReturn(mTempFolder.newFolder()); in setUp()
|
/tools/tradefederation/contrib/src/com/android/build/tests/ |
D | ImageStats.java | 103 private IBuildInfo mBuildInfo; field in ImageStats 107 mBuildInfo = buildInfo; in setBuild() 119 statsFile = mBuildInfo.getFile(statsFileName); in run()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceManager.java | 98 private IBuildInfo mBuildInfo; field in GceManager 117 mBuildInfo = buildInfo; in GceManager() 298 oxygenClient.leaseDevice(mBuildInfo, getTestDeviceOptions(), attributes); in startGceWithOxygenClient() 308 res = oxygenClient.leaseDevice(mBuildInfo, getTestDeviceOptions(), attributes); in startGceWithOxygenClient() 425 mBuildInfo.addBuildAttribute(GCE_IP_PRECONFIGURED_KEY, Boolean.toString(ipDevice != null)); in startGceWithAcloud() 436 buildGceCmd(reportFile, mBuildInfo, ipDevice, user, offset, attributes); in startGceWithAcloud() 457 mBuildInfo.addBuildAttribute(GCE_INSTANCE_NAME_KEY, instanceName); in startGceWithAcloud() 732 instanceName = mBuildInfo.getBuildAttributes().get(GCE_INSTANCE_NAME_KEY); in shutdownGceWithAcloud() 759 mBuildInfo.addBuildAttribute(GCE_INSTANCE_CLEANED_KEY, "true"); in shutdownGceWithAcloud()
|
D | GceSshTunnelMonitor.java | 77 private IBuildInfo mBuildInfo; field in GceSshTunnelMonitor 106 mBuildInfo = buildInfo; in GceSshTunnelMonitor() 362 mBuildInfo.addBuildAttribute(VIRTUAL_DEVICE_SERIAL, serial); in createSshTunnel()
|