Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java47 private BuildInfo mBuildInfo; field in BuildInfoTest
52 mBuildInfo = new BuildInfo("1", "target"); in setUp()
53 mBuildInfo.addBuildAttribute(ATTRIBUTE_KEY, "value"); in setUp()
56 mBuildInfo.setFile(FILE_KEY, mFile, VERSION); in setUp()
67 mBuildInfo.setDeviceSerial("tobecloned"); in testClone()
68 BuildInfo copy = (BuildInfo) mBuildInfo.clone(); in testClone()
69 assertEquals(mBuildInfo.getBuildAttributes().get(ATTRIBUTE_KEY), in testClone()
85 assertTrue(mBuildInfo.getFile(FILE_KEY).exists()); in testCleanUp()
86 mBuildInfo.cleanUp(); in testCleanUp()
87 assertNull(mBuildInfo.getFile(FILE_KEY)); in testCleanUp()
[all …]
DDeviceBuildInfoTest.java42 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/tests/src/com/android/tradefed/targetprep/
DGsiDeviceFlashPreparerTest.java58 private IDeviceBuildInfo mBuildInfo; field in GsiDeviceFlashPreparerTest
100 mBuildInfo = new DeviceBuildInfo("0", ""); in setUp()
101 mBuildInfo.setBuildFlavor("flavor"); in setUp()
104 context.addDeviceBuildInfo("device", mBuildInfo); in setUp()
170 mBuildInfo.setFile("gsi_system.img", gsiZip, "0"); in testSetUp_NoSystemImageInGsiZip()
188 mBuildInfo.setFile("gsi_system.img", gsiZip, "0"); in testSetUp_NoVbmetaImageInGsiZip()
207 mBuildInfo.setFile("gsi_system.img", systemImg, "0"); in testSetup_Success()
208 mBuildInfo.setFile("gsi_vbmeta.img", vbmetaImg, "0"); in testSetup_Success()
218 mBuildInfo.getFile("gsi_vbmeta.img").getAbsolutePath())) in testSetup_Success()
232 mBuildInfo.getFile("gsi_system.img").getAbsolutePath())) in testSetup_Success()
[all …]
DGkiDeviceFlashPreparerTest.java58 private IDeviceBuildInfo mBuildInfo; field in GkiDeviceFlashPreparerTest
100 mBuildInfo = new DeviceBuildInfo("0", ""); in setUp()
101 mBuildInfo.setBuildFlavor("flavor"); in setUp()
104 context.addDeviceBuildInfo("device", mBuildInfo); in setUp()
135 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoBuildInfoFiles()
147 mBuildInfo.setFile("Image.gz", kernelImage, "0"); in testValidateGkiBootImg_NoRamdiskRecoveryImg()
150 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoRamdiskRecoveryImg()
162 mBuildInfo.setFile("Image.gz", kernelImage, "0"); in testValidateGkiBootImg_NoOtatoolsZip()
164 mBuildInfo.setFile("ramdisk-recovery.img", ramdiskRecoveryImage, "0"); in testValidateGkiBootImg_NoOtatoolsZip()
167 mPreparer.validateGkiBootImg(mMockDevice, mBuildInfo, mTmpDir); in testValidateGkiBootImg_NoOtatoolsZip()
[all …]
DDynamicSystemPreparerTest.java49 private IBuildInfo mBuildInfo; field in DynamicSystemPreparerTest
59 mBuildInfo = new BuildInfo(); in setUp()
60 mBuildInfo.setFile("system-img.zip", mSystemImageZip, "0"); in setUp()
67 if (mBuildInfo != null) { in tearDown()
68 mBuildInfo.cleanUp(); in tearDown()
69 mBuildInfo = null; in tearDown()
119 mPreparer.setUp(mMockDevice, mBuildInfo); in testSetUp()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java158 mCmdArgs.add(mBuildInfo.getTestTag()); in preRun()
163 mCmdArgs.add(mBuildInfo.getBuildId()); in preRun()
168 } else if (mBuildInfo.getBuildBranch() != null) { in preRun()
169 mCmdArgs.add(mBuildInfo.getBuildBranch()); in preRun()
176 } else if (mBuildInfo.getBuildFlavor() != null) { in preRun()
177 mCmdArgs.add(mBuildInfo.getBuildFlavor()); in preRun()
187 ((IFolderBuildInfo) mBuildInfo).getRootDir().getAbsolutePath(), in preRun()
358 patterns.add(mBuildInfo.getBuildBranch()); in testTmpDirClean()
DSubprocessTfLauncher.java173 protected IBuildInfo mBuildInfo = null; field in SubprocessTfLauncher
220 Assert.assertNotNull(mBuildInfo); in preRun()
222 IFolderBuildInfo tfBuild = (IFolderBuildInfo) mBuildInfo; in preRun()
328 mBuildInfo.addBuildAttribute(PARENT_PROC_TAG_NAME, "true"); in addInvocationData()
399 CLog.d("Successfully ran TF tests for build %s", mBuildInfo.getBuildId()); in run()
403 mBuildInfo.getBuildId(), result.getStatus()); in run()
468 mBuildInfo = buildInfo; in setBuild()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java326 private IBuildInfo mBuildInfo; field in ITestSuite
448 if (mBuildInfo != null in loadAndFilter()
449 && mBuildInfo.getRemoteFiles() != null in loadAndFilter()
450 && mBuildInfo.getRemoteFiles().size() > 0) { in loadAndFilter()
473 for (File remoteFile : mBuildInfo.getRemoteFiles()) { in stageTestArtifacts()
502 mDirectModule.setBuild(mBuildInfo); in createExecutionList()
528 module.setBuild(mBuildInfo); in createExecutionList()
558 mBuildInfo.addBuildAttribute(RANDOM_SEED, String.valueOf(randomSeed)); in randomizeTestModules()
1028 mBuildInfo = buildInfo; in setBuild()
1035 return mBuildInfo; in getBuildInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java87 private IDeviceBuildInfo mBuildInfo; field in TestMappingSuiteRunnerTest
103 mBuildInfo = EasyMock.createMock(IDeviceBuildInfo.class); in setUp()
105 mRunner.setBuild(mBuildInfo); in setUp()
112 mRunner2.setBuild(mBuildInfo); in setUp()
116 mMainlineRunner.setBuild(mBuildInfo); in setUp()
122 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
125 EasyMock.expect(mBuildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null) in setUp()
127 EasyMock.expect(mBuildInfo.getTestsDir()).andReturn(new File(NON_EXISTING_DIR)).anyTimes(); in setUp()
130 EasyMock.replay(mBuildInfo, mMockDevice); in setUp()
DAtestRunnerTest.java68 private IDeviceBuildInfo mBuildInfo; field in AtestRunnerTest
77 mBuildInfo = spy(new DeviceBuildInfo()); in setUp()
79 mSpyRunner.setBuild(mBuildInfo); in setUp()
87 doReturn(new File("some-dir")).when(mBuildInfo).getTestsDir(); in setUp()
DBaseTestSuiteTest.java65 private IDeviceBuildInfo mBuildInfo; field in BaseTestSuiteTest
74 mBuildInfo = new DeviceBuildInfo(); in setUp()
76 mRunner.setBuild(mBuildInfo); in setUp()
81 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java73 private IBuildInfo mBuildInfo; field in GceManager
90 mBuildInfo = buildInfo; in GceManager()
169 List<String> gceArgs = buildGceCmd(reportFile, mBuildInfo, ipDevice); in startGce()
190 mBuildInfo.addBuildAttribute(GCE_INSTANCE_NAME_KEY, instanceName); in startGce()
363 instanceName = mBuildInfo.getBuildAttributes().get(GCE_INSTANCE_NAME_KEY); in shutdownGce()
375 mBuildInfo.addBuildAttribute(GCE_INSTANCE_CLEANED_KEY, "true"); in shutdownGce()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java111 private IBuildInfo mBuildInfo; field in MoblyBinaryHostTest
129 mBuildInfo = buildInfo; in setBuild()
160 if (mBuildInfo instanceof IDeviceBuildInfo) { in findParFiles()
161 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findParFiles()
200 File updatedAdb = mBuildInfo.getFile(AdbStopServerPreparer.ADB_BINARY_KEY); in updateAdb()
/tools/tradefederation/core/src/com/android/tradefed/build/
DBuildRetrievalError.java27 private IBuildInfo mBuildInfo = new BuildInfo(); field in BuildRetrievalError
95 mBuildInfo = build; in BuildRetrievalError()
111 return mBuildInfo; in getBuildInfo()
120 mBuildInfo = build; in setBuildInfo()
DExistingBuildProvider.java24 private final IBuildInfo mBuildInfo; field in ExistingBuildProvider
36 mBuildInfo = buildInfo; in ExistingBuildProvider()
45 return mBuildInfo; in getBuild()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DHostGTest.java47 private IBuildInfo mBuildInfo = null; field in HostGTest
62 this.mBuildInfo = buildInfo; in setBuild()
207 File hostLinkedDir = mBuildInfo.getFile(BuildInfoFileKey.HOST_LINKED_DIR); in run()
211 File testsDir = ((DeviceBuildInfo) mBuildInfo).getTestsDir(); in run()
DIsolatedHostTest.java124 private IBuildInfo mBuildInfo; field in IsolatedHostTest
209 File testDir = mBuildInfo.getFile(BuildInfoFileKey.TESTDIR_IMAGE); in compileClassPath()
347 File jarFile = getJarFile(jar, mBuildInfo); in getJarPaths()
426 mBuildInfo = build; in setBuild()
DHostTest.java177 private IBuildInfo mBuildInfo; field in HostTest
252 mBuildInfo = buildInfo; in setBuild()
261 return mBuildInfo; in getBuild()
469 if (mBuildInfo == null) { in setTestObjectInformation()
472 ((IBuildReceiver)testObj).setBuild(mBuildInfo); in setTestObjectInformation()
DPythonUnitTestRunner.java73 private IBuildInfo mBuildInfo; field in PythonUnitTestRunner
102 mBuildInfo = buildInfo; in setBuild()
107 return mBuildInfo; in getBuild()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustBinaryHostTest.java56 private IBuildInfo mBuildInfo; field in RustBinaryHostTest
61 mBuildInfo = buildInfo; in setBuild()
80 if (mBuildInfo instanceof IDeviceBuildInfo) { in findFiles()
81 testsDir = ((IDeviceBuildInfo) mBuildInfo).getTestsDir(); in findFiles()
/tools/tradefederation/core/src/com/android/tradefed/result/
DCollectingTestListener.java58 private IBuildInfo mBuildInfo; field in CollectingTestListener
122 return mBuildInfo; in getBuildInfo()
133 mBuildInfo = buildInfo; in setBuildInfo()
140 mBuildInfo = getPrimaryBuildInfo(); in invocationStarted()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java80 private IBuildInfo mBuildInfo; field in ShardHelperTest
105 mBuildInfo = new BuildInfo(); in setUp()
106 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
117 mBuildInfo.cleanUp(); in tearDown()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DLongevityHostRunnerTest.java97 private IBuildInfo mBuildInfo; field in LongevityHostRunnerTest.DeviceFeaturesTest
104 Assert.assertNotNull(mBuildInfo); in testHasFeatures()
131 mBuildInfo = buildInfo; in setBuild()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/suite/
DFormattedGeneratorReporterTest.java50 private IBuildInfo mBuildInfo; field in FormattedGeneratorReporterTest
56 mBuildInfo = new BuildInfo(); in setUp()
57 mContext.addDeviceBuildInfo("default", mBuildInfo); in setUp()
/tools/tradefederation/contrib/src/com/android/fastboot/tests/
DFastbootTest.java91 private IBuildInfo mBuildInfo; field in FastbootTest
97 mBuildInfo = buildInfo; in setBuild()
171 File fastboot = getFastbootFile(mBuildInfo); in testFastboot()

12