Home
last modified time | relevance | path

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

12345

/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/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.java122 IBuildInfo buildInfo = EasyMock.createStrictMock(IBuildInfo.class); in testResolveRelativeFilePath_noDeviceBuildInfo() local
124 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_noDeviceBuildInfo()
125 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
127 assertNull(mPreparer.resolveRelativeFilePath(buildInfo, fileName)); in testResolveRelativeFilePath_noDeviceBuildInfo()
128 EasyMock.verify(buildInfo); in testResolveRelativeFilePath_noDeviceBuildInfo()
137 IDeviceBuildInfo buildInfo = EasyMock.createStrictMock(IDeviceBuildInfo.class); in testResolveRelativeFilePath_withDeviceBuildInfo() local
148 EasyMock.expect(buildInfo.getFile(fileName)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
149 EasyMock.expect(buildInfo.getFile(BuildInfoFileKey.TARGET_LINKED_DIR)).andReturn(null); in testResolveRelativeFilePath_withDeviceBuildInfo()
150 EasyMock.expect(buildInfo.getTestsDir()).andReturn(testsDir); in testResolveRelativeFilePath_withDeviceBuildInfo()
151 EasyMock.replay(buildInfo); in testResolveRelativeFilePath_withDeviceBuildInfo()
[all …]
/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 …]
DExistingBuildProvider.java35 public ExistingBuildProvider(IBuildInfo buildInfo, IBuildProvider parentProvider) { in ExistingBuildProvider() argument
36 mBuildInfo = buildInfo; in ExistingBuildProvider()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
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()
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()
116 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
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.java99 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
101 if (buildInfo != null) { in resolveRelativeFilePath()
102 src = buildInfo.getFile(fileName); in resolveRelativeFilePath()
108 if (buildInfo instanceof IDeviceBuildInfo) { in resolveRelativeFilePath()
109 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo) buildInfo; in resolveRelativeFilePath()
129 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, BuildError, in setUp() argument
146 src = resolveRelativeFilePath(buildInfo, pair[0]); in setUp()
185 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()
DTestFilePushSetup.java93 protected File getLocalPathForFilename(IBuildInfo buildInfo, String fileName, in getLocalPathForFilename() argument
104 if (buildInfo instanceof IDeviceBuildInfo) { in getLocalPathForFilename()
105 File testsDir = ((IDeviceBuildInfo)buildInfo).getTestsDir(); in getLocalPathForFilename()
139 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
141 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
151 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp()
DInstallAllTestZipAppsSetup.java86 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
92 File testsZip = getZipFile(device, buildInfo); in setUp()
119 File getZipFile(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError { in getZipFile() argument
123 return buildInfo.getFile(mTestZipName); in getZipFile()
236 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
DAdditionalFilesInstaller.java45 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
48 for (VersionedFile buildFile : buildInfo.getFiles()) { in setUp()
64 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable t) in tearDown() argument
DRootTargetPreparer.java34 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
43 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
/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/targetprep/suite/
DSuiteApkInstaller.java54 protected File getTestsDir(IBuildInfo buildInfo) throws FileNotFoundException { in getTestsDir() argument
55 if (buildInfo.getBuildAttributes().get(ROOT_DIR) != null) { in getTestsDir()
56 return new File(buildInfo.getBuildAttributes().get(ROOT_DIR)); in getTestsDir()
75 private File getApkFromBuildTestsDir(IBuildInfo buildInfo, String apkFileName) { in getApkFromBuildTestsDir() argument
76 if (buildInfo instanceof IDeviceBuildInfo) { in getApkFromBuildTestsDir()
77 IDeviceBuildInfo deviceBuildInfo = (IDeviceBuildInfo) buildInfo; in getApkFromBuildTestsDir()
89 IBuildInfo buildInfo, String apkFileName, ITestDevice device) throws TargetSetupError { in getLocalPathForFilename() argument
99 apkFile = getApkFromBuildTestsDir(buildInfo, apkFileName); in getLocalPathForFilename()
105 apkFile = FileUtil.findFile(getTestsDir(buildInfo), apkFileName); in getLocalPathForFilename()
/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/prod-tests/src/com/android/framework/tests/
DTestDirForwarder.java46 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
48 if (!(buildInfo instanceof IDeviceBuildInfo)) { in setUp()
55 IDeviceBuildInfo deviceBuild = (IDeviceBuildInfo)buildInfo; in setUp()
/tools/tradefederation/core/tests/res/testtype/
DtestJar1.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/ui/ android/ ...
/tools/tradefederation/core/src/com/android/tradefed/result/
DJsonHttpTestResultReporter.java135 IBuildInfo buildInfo = mInvocationContext.getBuildInfos().get(0); in postResults() local
137 buildInfo.getBuildId(), postData); in postResults()
198 IBuildInfo buildInfo = buildInfos.get(0); in convertMetricsToJson() local
202 result.put(KEY_BRANCH, buildInfo.getBuildBranch()); in convertMetricsToJson()
203 result.put(KEY_BUILD_FLAVOR, buildInfo.getBuildFlavor()); in convertMetricsToJson()
204 result.put(KEY_BUILD_ID, buildInfo.getBuildId()); in convertMetricsToJson()
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()
/tools/tradefederation/core/src/com/android/tradefed/util/
DBuildTestsZipUtils.java48 public static File getApkFile(IBuildInfo buildInfo, String apkFileName, in getApkFile() argument
70 if (buildInfo != null && buildInfo instanceof IDeviceBuildInfo) { in getApkFile()
71 File testsDir = ((IDeviceBuildInfo) buildInfo).getTestsDir(); in getApkFile()

12345