Home
last modified time | relevance | path

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

123456

/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.java99 DeviceBuildInfo buildInfo = new DeviceBuildInfo(stubBuild.getBuildId(), in getBuild() local
101 buildInfo.addAllBuildAttributes(stubBuild); in getBuild()
103 setDeviceImageFile(buildInfo); in getBuild()
104 parseBootloaderAndRadioVersions(buildInfo); in getBuild()
105 setTestsDir(buildInfo); in getBuild()
106 setBootloaderImage(buildInfo); in getBuild()
107 setRadioImage(buildInfo); in getBuild()
109 return buildInfo; in getBuild()
118 void parseBootloaderAndRadioVersions(DeviceBuildInfo buildInfo) throws BuildRetrievalError { in parseBootloaderAndRadioVersions() argument
122 buildInfo.getDeviceImageFile()); in parseBootloaderAndRadioVersions()
[all …]
DBuildInfo.java615 IBuildInfo buildInfo; in fromProto() local
618 buildInfo = new BuildInfo(); in fromProto()
622 buildInfo = (IBuildInfo) Class.forName(buildClass).newInstance(); in fromProto()
629 buildInfo.setBuildId(protoBuild.getBuildId()); in fromProto()
633 buildInfo.setBuildFlavor(protoBuild.getBuildFlavor()); in fromProto()
637 buildInfo.setBuildBranch(protoBuild.getBranch()); in fromProto()
641 buildInfo.addBuildAttribute(key, protoBuild.getAttributes().get(key)); in fromProto()
646 buildInfo.setFile( in fromProto()
653 buildInfo.setTestResourceBuild(protoBuild.getIsTestResource()); in fromProto()
654 return buildInfo; in fromProto()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DHostGTestTest.java193 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRunTest() local
194 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRunTest()
195 mHostGTest.setBuild(buildInfo); in testRunTest()
222 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRun_priority_get_testcase_from_hostlinked_folder() local
223 buildInfo.setFile(BuildInfoKey.BuildInfoFileKey.HOST_LINKED_DIR, hostLinkedFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
224 buildInfo.setTestsDir(testcasesFolder, "0.0"); in testRun_priority_get_testcase_from_hostlinked_folder()
225 mHostGTest.setBuild(buildInfo); in testRun_priority_get_testcase_from_hostlinked_folder()
249 DeviceBuildInfo buildInfo = new DeviceBuildInfo(); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set() local
250 buildInfo.setTestsDir(testcasesFolder, "0.0"); in testRun_get_testcase_from_testcases_folder_if_no_hostlinked_dir_set()
251 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.java254 IBuildInfo buildInfo = EasyMock.createStrictMock(IBuildInfo.class); in testResolveRelativeFilePath_noDeviceBuildInfo() local
256 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo()
257 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
259 assertNull(mPreparer.resolveRelativeFilePath(buildInfo, fileName)); in testResolveRelativeFilePath_noDeviceBuildInfo()
260 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
269 IDeviceBuildInfo buildInfo = EasyMock.createStrictMock(IDeviceBuildInfo.class); in testResolveRelativeFilePath_withDeviceBuildInfo() local
280 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
281 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
282 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
283 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java67 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
85 installUsingBundleTool(buildInfo, device); in setUp()
99 super.installer(device, buildInfo, testAppFileNames); in setUp()
103 installer(device, buildInfo, testAppFileNames); in setUp()
140 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
147 super.tearDown(device, buildInfo, e); in tearDown()
161 protected void installer(ITestDevice device, IBuildInfo buildInfo, List<String> appNames) in installer() argument
164 File appFile = getLocalPathForFilename(buildInfo, appFilename, device); in installer()
171 installMultiPackageContainingApex(device, buildInfo, appNames); in installer()
174 super.installer(device, buildInfo, appNames); in installer()
[all …]
DDeviceBuildInfoInjector.java51 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
54 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ID, in setUp()
57 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ID, device.getBuildId()); in setUp()
60 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ALIAS, in setUp()
63 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_ALIAS, in setUp()
67 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_FLAVOR, in setUp()
72 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_BUILD_FLAVOR, buildFlavor); in setUp()
74 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_DESC, in setUp()
76 buildInfo.addBuildAttribute(DeviceBuildDescriptor.DEVICE_PRODUCT, in setUp()
DPushFilePreparer.java153 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
155 if (buildInfo != null) { in resolveRelativeFilePath()
156 src = buildInfo.getFile(fileName); in resolveRelativeFilePath()
161 if (buildInfo instanceof IDeviceBuildInfo) { in resolveRelativeFilePath()
162 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo) buildInfo; in resolveRelativeFilePath()
241 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, BuildError, in setUp() argument
257 evaluatePushingPair(device, buildInfo, src, remotePath); in setUp()
266 evaluatePushingPair(device, buildInfo, src, remotePath); in setUp()
283 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
308 ITestDevice device, IBuildInfo buildInfo, File src, String remotePath) in evaluatePushingPair() argument
[all …]
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
74 if (!(buildInfo instanceof IDeviceBuildInfo)) { in shouldDisable()
76 buildInfo.getClass().getSimpleName()); in shouldDisable()
86 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
88 boolean shouldDisable = shouldDisable(device, buildInfo); in setUp()
101 super.setUp(device, buildInfo); in setUp()
120 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
DTestAppInstallSetup.java187 IBuildInfo buildInfo, String apkFileName, ITestDevice device) throws TargetSetupError { in getLocalPathForFilename() argument
189 return BuildTestsZipUtils.getApkFile(buildInfo, apkFileName, mAltDirs, mAltDirBehavior, in getLocalPathForFilename()
196 apkFileName, buildInfo.toString()), in getLocalPathForFilename()
204 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
243 installer(device, buildInfo, Arrays.asList(new String[] {testAppName})); in setUp()
248 installer(device, buildInfo, apkNames); in setUp()
279 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
311 protected void installer(ITestDevice device, IBuildInfo buildInfo, List<String> apkNames) in installer() argument
319 File testAppFile = getLocalPathForFilename(buildInfo, name, device); in installer()
DTestFilePushSetup.java97 protected File getLocalPathForFilename(IBuildInfo buildInfo, String fileName, in getLocalPathForFilename() argument
108 if (buildInfo instanceof IDeviceBuildInfo) { in getLocalPathForFilename()
109 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename()
143 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
145 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
155 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp()
DDeviceFlashPreparer.java169 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
176 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
186 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo)buildInfo; in setUp()
217 reportFlashMetrics(buildInfo.getBuildBranch(), buildInfo.getBuildFlavor(), in setUp()
218 buildInfo.getBuildId(), device.getSerialNumber(), queueTime, in setUp()
418 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
DBuildInfoRecorder.java49 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
53 String alias = buildInfo.getBuildAttributes().get("build_alias"); in setUp()
55 alias = buildInfo.getBuildId(); in setUp()
58 "build_id", buildInfo.getBuildId(), in setUp()
DTearDownPassThroughPreparer.java55 public void setUp(ITestDevice device, IBuildInfo buildInfo) { in setUp() argument
63 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
69 cleaner.tearDown(device, buildInfo, e); in tearDown()
73 cleaner.cleanUp(buildInfo, e); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/suite/
DSuiteApkInstaller.java55 protected File getRootDir(IBuildInfo buildInfo) throws FileNotFoundException { in getRootDir() argument
56 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getRootDir()
57 return new File(buildInfo.getBuildAttributes().get(ROOT_DIR)); in getRootDir()
76 private File getApkFromBuildTestsDir(IBuildInfo buildInfo, String apkFileName) { in getApkFromBuildTestsDir() argument
77 if (buildInfo instanceof IDeviceBuildInfo) { in getApkFromBuildTestsDir()
78 IDeviceBuildInfo deviceBuildInfo = (IDeviceBuildInfo) buildInfo; in getApkFromBuildTestsDir()
88 private File getApkFromBuildSharedDir(IBuildInfo buildInfo, String apkFileName) { in getApkFromBuildSharedDir() argument
89 File sharedDir = buildInfo.getFile(BuildInfoFileKey.SHARED_RESOURCE_DIR); in getApkFromBuildSharedDir()
99 IBuildInfo buildInfo, String apkFileName, ITestDevice device) throws TargetSetupError { in getLocalPathForFilename() argument
109 apkFile = getApkFromBuildTestsDir(buildInfo, apkFileName); in getLocalPathForFilename()
[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()
/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 File buildDir = createBuildDir(buildInfo, reportDir); in createLogReportDir()
233 private File createBuildDir(IBuildInfo buildInfo, File reportDir) throws IOException { in createBuildDir() argument
235 if (buildInfo.getBuildBranch() != null) { in createBuildDir()
236 pathSegments.add(buildInfo.getBuildBranch()); in createBuildDir()
238 pathSegments.add(buildInfo.getBuildId()); in createBuildDir()
239 pathSegments.add(buildInfo.getTestTag()); in createBuildDir()
DJsonHttpTestResultReporter.java140 IBuildInfo buildInfo = mInvocationContext.getBuildInfos().get(0); in postResults() local
142 buildInfo.getBuildId(), postData); in postResults()
206 IBuildInfo buildInfo = buildInfos.get(0); in convertMetricsToJson() local
210 result.put(KEY_BRANCH, buildInfo.getBuildBranch()); in convertMetricsToJson()
211 result.put(KEY_BUILD_FLAVOR, buildInfo.getBuildFlavor()); in convertMetricsToJson()
212 result.put(KEY_BUILD_ID, buildInfo.getBuildId()); in convertMetricsToJson()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/companion/
DCompanionTestAppInstallSetup.java44 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
52 super.setUp(mCompanion, buildInfo); in setUp()
59 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
61 super.tearDown(mCompanion, buildInfo, e); in tearDown()
DCompanionRunCommandTargetPreparer.java35 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
43 super.setUp(companion, buildInfo); in setUp()
50 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
55 super.tearDown(companion, buildInfo, e); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/adb/
DAdbStopServerPreparer.java67 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
93 if (adb == null && buildInfo.getFile("adb") != null) { in setUp()
94 adb = buildInfo.getFile("adb"); in setUp()
97 buildInfo.setFile(ADB_BINARY_KEY, adb, "adb"); in setUp()
122 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument

123456