Home
last modified time | relevance | path

Searched refs:buildInfo (Results 1 – 25 of 83) sorted by relevance

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostGTestTest.java195 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRunTest() local
196 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest()
197 mHostGTest.setBuild(buildInfo); in testRunTest()
224 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRun_priority_get_testcase_from_hostlinked_folder() local
225 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
226 buildInfo.setTestsDir(testcasesFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
227 mHostGTest.setBuild(buildInfo); in testRun_priority_get_testcase_from_hostlinked_folder()
251 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() local
252 buildInfo.setTestsDir(testcasesFolder, "0.0"); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set()
253 mHostGTest.setBuild(buildInfo); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DLocalDeviceBuildProviderTest.java89 void setDeviceImageFile(DeviceBuildInfo buildInfo) { in testGetBuild()
90 buildInfo.setDeviceImageFile(imgFile, buildInfo.getBuildId()); in testGetBuild()
93 void parseBootloaderAndRadioVersions(DeviceBuildInfo buildInfo) { in testGetBuild()
111 void parseBootloaderAndRadioVersions(DeviceBuildInfo buildInfo) { in testGetBuild_noImage()
142 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testSetRadioImage() local
144 mLocalDeviceBuildProvider.setRadioImage(buildInfo); in testSetRadioImage()
145 assertEquals(mRadioImg, buildInfo.getBasebandImageFile()); in testSetRadioImage()
146 assertEquals("radio_version", buildInfo.getBasebandVersion()); in testSetRadioImage()
151 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testSetBootloaderImage() local
153 mLocalDeviceBuildProvider.setBootloaderImage(buildInfo); in testSetBootloaderImage()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/build/
DLocalDeviceBuildProvider.java107 DeviceBuildInfo buildInfo = new DeviceBuildInfo(stubBuild.getBuildId(), in getBuild() local
109 buildInfo.addAllBuildAttributes(stubBuild); in getBuild()
111 setDeviceImageFile(buildInfo); in getBuild()
112 parseBootloaderAndRadioVersions(buildInfo); in getBuild()
113 setTestsDir(buildInfo); in getBuild()
114 setBootloaderImage(buildInfo); in getBuild()
115 setRadioImage(buildInfo); in getBuild()
117 return buildInfo; in getBuild()
126 void parseBootloaderAndRadioVersions(DeviceBuildInfo buildInfo) throws BuildRetrievalError { in parseBootloaderAndRadioVersions() argument
130 buildInfo.getDeviceImageFile()); in parseBootloaderAndRadioVersions()
[all …]
DBuildInfo.java625 IBuildInfo buildInfo; in fromProto() local
628 buildInfo = new BuildInfo(); in fromProto()
632 buildInfo = in fromProto()
645 buildInfo.setBuildId(protoBuild.getBuildId()); in fromProto()
649 buildInfo.setBuildFlavor(protoBuild.getBuildFlavor()); in fromProto()
653 buildInfo.setBuildBranch(protoBuild.getBranch()); in fromProto()
657 buildInfo.addBuildAttribute(key, protoBuild.getAttributes().get(key)); in fromProto()
662 buildInfo.setFile( in fromProto()
668 return buildInfo; in fromProto()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparer.java83 IDeviceBuildInfo buildInfo = (IDeviceBuildInfo) testInfo.getBuildInfo(); in setUp() local
88 validateGkiBootImg(device, buildInfo, tmpDir); in setUp()
89 flashGki(device, buildInfo); in setUp()
144 private void flashGki(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGki() argument
157 if (buildInfo.getFile(VENDOR_BOOT_IMG) != null) { in flashGki()
162 buildInfo.getFile(VENDOR_BOOT_IMG).getAbsolutePath()); in flashGki()
164 if (buildInfo.getFile(DTBO_IMG) != null) { in flashGki()
166 device, "flash", "dtbo", buildInfo.getFile(DTBO_IMG).getAbsolutePath()); in flashGki()
186 public void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo) in validateGkiBootImg() argument
202 protected void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGkiBootImg() argument
[all …]
DGsiDeviceFlashPreparer.java102 IDeviceBuildInfo buildInfo = (IDeviceBuildInfo) testInfo.getBuildInfo(); in setUp() local
107 validateGsiImg(device, buildInfo, tmpDir); in setUp()
108 flashGsi(device, buildInfo); in setUp()
163 private void flashGsi(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGsi() argument
231 private void validateGsiImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGsiImg() argument
233 if (buildInfo.getFile(GSI_SYSTEM_IMG) == null) { in validateGsiImg()
238 if (buildInfo.getFile(GSI_VBMETA_IMG) == null) { in validateGsiImg()
245 device, mSystemImageFileName, buildInfo.getFile(GSI_SYSTEM_IMG), tmpDir); in validateGsiImg()
248 device, mVbmetaImageFileName, buildInfo.getFile(GSI_VBMETA_IMG), tmpDir); in validateGsiImg()
250 if (buildInfo.getFile(GKI_BOOT_IMG) != null && mBootImageFileName != null) { in validateGsiImg()
[all …]
DDeviceBuildInfoInjector.java53 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
56 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ID, in setUp()
59 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ID, device.getBuildId()); in setUp()
62 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ALIAS, in setUp()
65 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ALIAS, in setUp()
69 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_FLAVOR, in setUp()
77 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_FLAVOR, buildFlavor); in setUp()
79 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_DESC, in setUp()
81 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_PRODUCT, in setUp()
DDeviceFlashPreparer.java189 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
191 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
194 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo) buildInfo; in setUp()
238 reportFlashMetrics(buildInfo.getBuildBranch(), buildInfo.getBuildFlavor(), in setUp()
239 buildInfo.getBuildId(), device.getSerialNumber(), queueTime, in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollectorTest.java583 IDeviceBuildInfo buildInfo = EasyMock.createStrictMock(IDeviceBuildInfo.class); in testResolveRelativeFilePath_withDeviceBuildInfo() local
593 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
594 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
595 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
596 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
598 mContext.addDeviceBuildInfo("abc", buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
605 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
616 IDeviceBuildInfo buildInfo = EasyMock.createStrictMock(IDeviceBuildInfo.class); in testUnableResolveRelativeFilePath_withDeviceBuildInfo() local
627 EasyMock.expect(buildInfo.getFile(differentFileName)).andReturn(null); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
628 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testUnableResolveRelativeFilePath_withDeviceBuildInfo()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DPythonVirtualenvPreparerTest.java57 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_reqFile_success() local
58 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_reqFile_success()
59 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_reqFile_success()
68 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_depModule_success() local
69 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_depModule_success()
70 assertTrue(buildInfo.getFile("PYTHONPATH") != null); in testInstallDeps_depModule_success()
79 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_reqFile_failure() local
81 mPreparer.installDeps(buildInfo, mMockDevice); in testInstallDeps_reqFile_failure()
84 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure()
94 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_depModule_failure() local
[all …]
DPushFilePreparerTest.java319 IBuildInfo buildInfo = EasyMock.createStrictMock(IBuildInfo.class); in testResolveRelativeFilePath_noDeviceBuildInfo() local
321 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo()
322 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
324 assertNull(mPreparer.resolveRelativeFilePath(buildInfo, fileName)); in testResolveRelativeFilePath_noDeviceBuildInfo()
325 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
334 IDeviceBuildInfo buildInfo = EasyMock.createStrictMock(IDeviceBuildInfo.class); in testResolveRelativeFilePath_withDeviceBuildInfo() local
345 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
346 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
347 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
348 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DBuildTestsZipUtilsTest.java42 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testGetApkFile_notFound() local
45 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_notFound()
48 buildInfo, in testGetApkFile_notFound()
63 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testGetApkFile_fromTestDir() local
66 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir()
73 buildInfo, in testGetApkFile_fromTestDir()
92 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testGetApkFile_fromTestDir_testCase() local
95 buildInfo.setTestsDir(testDir, "1"); in testGetApkFile_fromTestDir_testCase()
104 buildInfo, in testGetApkFile_fromTestDir_testCase()
123 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testGetApkFile_fromTestDir_differentModule_testCase() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogFileSaver.java61 public LogFileSaver(IBuildInfo buildInfo, File rootDir, Integer logRetentionDays) { in LogFileSaver() argument
62 List<String> testArtifactPathSegments = generateTestArtifactPath(buildInfo); in LogFileSaver()
87 public LogFileSaver(IBuildInfo buildInfo, File rootDir) { in LogFileSaver() argument
88 this(buildInfo, rootDir, null); in LogFileSaver()
171 List<String> generateTestArtifactPath(IBuildInfo buildInfo) { in generateTestArtifactPath() argument
173 if (buildInfo == null) { in generateTestArtifactPath()
176 if (buildInfo.getBuildBranch() != null) { in generateTestArtifactPath()
177 pathSegments.add(buildInfo.getBuildBranch()); in generateTestArtifactPath()
179 pathSegments.add(buildInfo.getBuildId()); in generateTestArtifactPath()
180 pathSegments.add(buildInfo.getTestTag()); in generateTestArtifactPath()
DFileSystemLogSaver.java193 private File createLogReportDir(IBuildInfo buildInfo, File reportDir, in createLogReportDir() argument
198 logReportDir = generateLogReportDir(buildInfo, reportDir); in createLogReportDir()
226 protected File generateLogReportDir(IBuildInfo buildInfo, File reportDir) throws IOException { in generateLogReportDir() argument
227 File buildDir = createBuildDir(buildInfo, reportDir); in generateLogReportDir()
244 private File createBuildDir(IBuildInfo buildInfo, File reportDir) throws IOException { in createBuildDir() argument
246 if (buildInfo.getBuildBranch() != null) { in createBuildDir()
247 pathSegments.add(buildInfo.getBuildBranch()); in createBuildDir()
249 pathSegments.add(buildInfo.getBuildId()); in createBuildDir()
250 pathSegments.add(buildInfo.getTestTag()); in createBuildDir()
DJsonHttpTestResultReporter.java182 IBuildInfo buildInfo = mInvocationContext.getBuildInfos().get(0); in postResults() local
184 buildInfo.getBuildId(), postData); in postResults()
251 IBuildInfo buildInfo = buildInfos.get(0); in convertMetricsToJson() local
255 result.put(KEY_BRANCH, buildInfo.getBuildBranch()); in convertMetricsToJson()
256 result.put(KEY_BUILD_FLAVOR, buildInfo.getBuildFlavor()); in convertMetricsToJson()
257 result.put(KEY_BUILD_ID, buildInfo.getBuildId()); in convertMetricsToJson()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPythonVirtualenvPreparer.java61 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
67 startVirtualenv(buildInfo, device); in setUp()
68 installDeps(buildInfo, device); in setUp()
71 protected void installDeps(IBuildInfo buildInfo, ITestDevice device) throws TargetSetupError { in installDeps() argument
102 buildInfo.setFile(PYTHONPATH, new File(mVenvDir, in installDeps()
104 buildInfo.getBuildId()); in installDeps()
108 protected void startVirtualenv(IBuildInfo buildInfo, ITestDevice device) in startVirtualenv() argument
116 mVenvDir = FileUtil.createNamedTempDir(buildInfo.getTestTag() + "-virtualenv"); in startVirtualenv()
DPushFilePreparer.java204 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
206 if (buildInfo != null) { in resolveRelativeFilePath()
207 src = buildInfo.getFile(fileName); in resolveRelativeFilePath()
212 if (buildInfo instanceof IDeviceBuildInfo) { in resolveRelativeFilePath()
213 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo) buildInfo; in resolveRelativeFilePath()
313 src = buildInfo.stageRemoteFile(fileName, testDir); in resolveRelativeFilePath()
382 ITestDevice device, IBuildInfo buildInfo, File src, String remotePath) in evaluatePushingPair() argument
386 src = resolveRelativeFilePath(buildInfo, localPath); in evaluatePushingPair()
DCrashCollector.java59 boolean shouldDisable(ITestDevice device, IBuildInfo buildInfo) in shouldDisable() argument
68 if (!(buildInfo instanceof IDeviceBuildInfo)) { in shouldDisable()
70 buildInfo.getClass().getSimpleName()); in shouldDisable()
81 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
82 boolean shouldDisable = shouldDisable(device, buildInfo); in setUp()
95 super.setUp(device, buildInfo); in setUp()
DTestFilePushSetup.java86 protected File getLocalPathForFilename(IBuildInfo buildInfo, String fileName, in getLocalPathForFilename() argument
89 if (buildInfo instanceof IDeviceBuildInfo) { in getLocalPathForFilename()
90 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename()
114 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
116 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
126 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp()
DInstallAllTestZipAppsSetup.java90 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
96 File testsZip = getZipFile(device, buildInfo); in setUp()
127 File getZipFile(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError { in getZipFile() argument
131 return buildInfo.getFile(mTestZipName); in getZipFile()
244 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/multi/
DMixImageZipPreparerTest.java274 IDeviceBuildInfo buildInfo = new DeviceBuildInfo(); in createDeviceBuildInfo() local
275 buildInfo.setBuildFlavor(buildFlavor); in createDeviceBuildInfo()
276 buildInfo.setBuildId(buildId); in createDeviceBuildInfo()
277 buildInfo.setDeviceImageFile(imageZip, buildId); in createDeviceBuildInfo()
278 return buildInfo; in createDeviceBuildInfo()
282 BuildInfo buildInfo = new BuildInfo(); in createBuildInfo() local
284 buildInfo.setFile(file.getName(), file, "0"); in createBuildInfo()
286 return buildInfo; in createBuildInfo()
/tools/tradefederation/contrib/src/com/android/aetest/tradefed/targetprep/
DAeTestManagedProfileCreator.java77 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
99 getApk(device, buildInfo, mProfileOwnerApk), true, mManagedProfileUserId); in setUp()
125 public void tearDown(ITestDevice testDevice, IBuildInfo buildInfo, Throwable throwable) in tearDown() argument
136 private File getApk(ITestDevice device, IBuildInfo buildInfo, String fileName) in getApk() argument
141 buildInfo, in getApk()
157 mProfileOwnerApk, buildInfo.toString()), in getApk()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBuildInfoUtil.java52 IBuildInfo buildInfo, in bootstrapDeviceBuildAttributes() argument
66 buildInfo.setBuildId(buildId); in bootstrapDeviceBuildAttributes()
74 buildInfo.addBuildAttribute("build_alias", buildAlias); in bootstrapDeviceBuildAttributes()
82 buildInfo.setBuildFlavor(buildFlavor); in bootstrapDeviceBuildAttributes()
96 buildInfo.setBuildBranch(branch); in bootstrapDeviceBuildAttributes()
DBuildTestsZipUtils.java48 public static File getApkFile(IBuildInfo buildInfo, String apkFileName, in getApkFile() argument
71 if (buildInfo != null && buildInfo instanceof IDeviceBuildInfo) { in getApkFile()
72 testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in getApkFile()
147 File apkFile = buildInfo.stageRemoteFile(apkFileName, testsDir); in getApkFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/params/
DMainlineModuleHandler.java49 private void buildDynamicBaseLink(IBuildInfo buildInfo) { in buildDynamicBaseLink() argument
50 if (buildInfo == null) { in buildDynamicBaseLink()
55 String buildBranch = buildInfo.getBuildBranch(); in buildDynamicBaseLink()
56 String buildFlavor = buildInfo.getBuildFlavor(); in buildDynamicBaseLink()
57 String buildId = buildInfo.getBuildId(); in buildDynamicBaseLink()

1234