/tools/tradefederation/core/tests/src/com/android/tradefed/build/ |
D | LocalDeviceBuildProviderTest.java | 89 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 …]
|
D | OtaZipfileBuildProviderTest.java | 48 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/ |
D | LocalDeviceBuildProvider.java | 107 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 …]
|
D | BuildInfo.java | 625 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/ |
D | HostGTestTest.java | 195 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/ |
D | PythonVirtualenvPreparerTest.java | 57 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 …]
|
D | PushFilePreparerTest.java | 319 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/ |
D | GkiDeviceFlashPreparer.java | 82 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 …]
|
D | DeviceBuildInfoInjector.java | 53 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()
|
D | GsiDeviceFlashPreparer.java | 101 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 …]
|
D | BuildInfoRecorder.java | 50 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()
|
D | FastbootUpdateBootstrapPreparer.java | 80 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/ |
D | BuildTestsZipUtilsTest.java | 42 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/ |
D | LogFileSaver.java | 61 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()
|
D | FileSystemLogSaver.java | 193 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()
|
D | JsonHttpTestResultReporter.java | 182 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/ |
D | BaseDeviceMetricCollectorTest.java | 583 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/ |
D | PythonVirtualenvPreparer.java | 61 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()
|
D | CrashCollector.java | 59 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()
|
D | TestFilePushSetup.java | 86 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()
|
D | PushFilePreparer.java | 204 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/ |
D | BuildInfoUtil.java | 52 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()
|
D | BuildTestsZipUtils.java | 48 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/ |
D | AeTestManagedProfileCreator.java | 77 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/ |
D | MainlineModuleHandler.java | 49 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()
|