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/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 …]
DOtaZipfileBuildProviderTest.java48 IBuildInfo buildInfo = providerAllGood.getBuild(); in testGetBuild_Success() local
49 assertEquals(BUILD_ID, buildInfo.getBuildId()); in testGetBuild_Success()
50 assertTrue(buildInfo instanceof IDeviceBuildInfo); in testGetBuild_Success()
51 assertEquals(new File(SOME_BAD_PATH), ((IDeviceBuildInfo) buildInfo).getOtaPackageFile()); in testGetBuild_Success()
/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/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/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/src/com/android/tradefed/targetprep/
DGkiDeviceFlashPreparer.java82 IDeviceBuildInfo buildInfo = (IDeviceBuildInfo) testInfo.getBuildInfo(); in setUp() local
87 validateGkiBootImg(device, buildInfo, tmpDir); in setUp()
88 flashGki(device, buildInfo); in setUp()
142 private void flashGki(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGki() argument
155 if (buildInfo.getFile(VENDOR_BOOT_IMG) != null) { in flashGki()
160 buildInfo.getFile(VENDOR_BOOT_IMG).getAbsolutePath()); in flashGki()
162 if (buildInfo.getFile(DTBO_IMG) != null) { in flashGki()
164 device, "flash", "dtbo", buildInfo.getFile(DTBO_IMG).getAbsolutePath()); in flashGki()
184 public void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo) in validateGkiBootImg() argument
200 protected void validateGkiBootImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGkiBootImg() argument
[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()
DGsiDeviceFlashPreparer.java101 IDeviceBuildInfo buildInfo = (IDeviceBuildInfo) testInfo.getBuildInfo(); in setUp() local
106 validateGsiImg(device, buildInfo, tmpDir); in setUp()
107 flashGsi(device, buildInfo); in setUp()
161 private void flashGsi(ITestDevice device, IDeviceBuildInfo buildInfo) in flashGsi() argument
230 private void validateGsiImg(ITestDevice device, IDeviceBuildInfo buildInfo, File tmpDir) in validateGsiImg() argument
232 if (buildInfo.getFile(GSI_SYSTEM_IMG) == null) { in validateGsiImg()
237 if (buildInfo.getFile(GSI_VBMETA_IMG) == null) { in validateGsiImg()
244 device, mSystemImageFileName, buildInfo.getFile(GSI_SYSTEM_IMG), tmpDir); in validateGsiImg()
247 device, mVbmetaImageFileName, buildInfo.getFile(GSI_VBMETA_IMG), tmpDir); in validateGsiImg()
249 if (buildInfo.getFile(GKI_BOOT_IMG) != null && mBootImageFileName != null) { in validateGsiImg()
[all …]
DBuildInfoRecorder.java50 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
52 String alias = buildInfo.getBuildAttributes().get("build_alias"); in setUp()
54 alias = buildInfo.getBuildId(); in setUp()
57 "build_id", buildInfo.getBuildId(), in setUp()
DFastbootUpdateBootstrapPreparer.java80 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
81 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
86 IDeviceBuildInfo deviceBuildInfo = (IDeviceBuildInfo) buildInfo; in setUp()
97 buildInfo, in setUp()
/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()
247 IBuildInfo buildInfo = buildInfos.get(0); in convertMetricsToJson() local
251 result.put(KEY_BRANCH, buildInfo.getBuildBranch()); in convertMetricsToJson()
252 result.put(KEY_BUILD_FLAVOR, buildInfo.getBuildFlavor()); in convertMetricsToJson()
253 result.put(KEY_BUILD_ID, buildInfo.getBuildId()); in convertMetricsToJson()
/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/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()
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()
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()
/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/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/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