Home
last modified time | relevance | path

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

12

/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DApkInstaller.java36 private void setBuildHelper(IBuildInfo buildInfo) { in setBuildHelper() argument
38 mBuildHelper = new CompatibilityBuildHelper(buildInfo); in setBuildHelper()
42 protected File getTestsDir(IBuildInfo buildInfo) throws FileNotFoundException { in getTestsDir() argument
43 setBuildHelper(buildInfo); in getTestsDir()
47 protected File getTestFile(IBuildInfo buildInfo, String filename) throws FileNotFoundException { in getTestFile() argument
48 setBuildHelper(buildInfo); in getTestFile()
DBusinessLogicPreparer.java169 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
171 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in setUp()
185 String requestParams = buildRequestParams(device, buildInfo); in setUp()
248 String buildRequestParams(ITestDevice device, IBuildInfo buildInfo) in buildRequestParams() argument
250 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in buildRequestParams()
259 for (String feature : getBusinessLogicFeatures(device, buildInfo)) { in buildRequestParams()
262 for (String property : getBusinessLogicProperties(device, buildInfo)) { in buildRequestParams()
265 for (String pkg : getBusinessLogicPackages(device, buildInfo)) { in buildRequestParams()
268 for (String deviceInfo : getExtendedDeviceInfo(buildInfo)) { in buildRequestParams()
305 private List<String> getBusinessLogicProperties(ITestDevice device, IBuildInfo buildInfo) in getBusinessLogicProperties() argument
[all …]
DReportLogCollector.java62 private void prepareReportLogContainers(IBuildInfo buildInfo) { in prepareReportLogContainers() argument
63 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in prepareReportLogContainers()
86 IBuildInfo buildInfo = testInfo.getBuildInfo(); in tearDown() local
92 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in tearDown()
DVtsDeviceInfoCollector.java93 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
100 buildInfo.addBuildAttribute(entry.getKey(), ArrayUtil.join(",", propertyValue)); in setUp()
144 buildInfo.addBuildAttribute("cts:build_fingerprint", nullToEmpty(buildFingerprint)); in setUp()
145 buildInfo.addBuildAttribute( in setUp()
DFilePusher.java37 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
39 buildInfo, in resolveRelativeFilePath()
DMediaPreparer.java260 private File downloadMediaToHost(ITestDevice device, IBuildInfo buildInfo) in downloadMediaToHost() argument
277 buildInfo, mDynamicConfigModule, MEDIA_FILES_URL_KEY); in downloadMediaToHost()
392 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
416 File mediaFolder = downloadMediaToHost(device, buildInfo); in setUp()
428 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setMaxRes() local
429 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in setMaxRes()
DDeviceInfoCollector.java103 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
134 buildInfo.addBuildAttribute(entry.getKey(), property); in setUp()
155 buildInfo.setFile( in setUp()
DDeviceFileCollector.java90 private void createResultDir(IBuildInfo buildInfo) { in createResultDir() argument
91 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in createResultDir()
/test/vts/harnesses/tradefed/src/com/android/tradefed/targetprep/
DVtsCoveragePreparer.java101 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
131 CompatibilityBuildHelper buildHelper = createBuildHelper(buildInfo); in setUp()
134 String artifactFetcher = getArtifactFetcher(buildInfo); in setUp()
224 buildInfo.addBuildAttribute(COVERAGE_REPORT_PATH, coverageDir.getAbsolutePath()); in setUp()
239 buildInfo.setFile( in setUp()
240 getSancovResourceDirKey(device), mDeviceInfoPath, buildInfo.getBuildId()); in setUp()
244 buildInfo.setFile( in setUp()
245 getGcovResourceDirKey(device), mDeviceInfoPath, buildInfo.getBuildId()); in setUp()
251 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
298 String getArtifactFetcher(IBuildInfo buildInfo) { in getArtifactFetcher() argument
[all …]
DVtsTestPlanResultReporter.java92 public void setUp(ITestDevice device, IBuildInfo buildInfo) { in setUp() argument
97 buildInfo.setFile(TEST_PLAN_REPORT_FILE, statusFile, buildInfo.getBuildId()); in setUp()
105 buildInfo.addBuildAttribute( in setUp()
108 buildInfo.addBuildAttribute(VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_FILE_PATH, in setUp()
112 configReader.LoadVendorConfig(buildInfo); in setUp()
120 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) { in tearDown() argument
121 File reportFile = buildInfo.getFile(TEST_PLAN_REPORT_FILE); in tearDown()
152 addApiReportToTestPlanMessage(device, buildInfo, testPlanMessage); in tearDown()
169 private void addApiReportToTestPlanMessage(ITestDevice device, IBuildInfo buildInfo, in addApiReportToTestPlanMessage() argument
171 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in addApiReportToTestPlanMessage()
DVtsTraceCollectPreparer.java75 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
77 CompatibilityBuildHelper buildHelper = createBuildHelper(buildInfo); in setUp()
100 buildInfo.addBuildAttribute(TRACE_PATH, traceDir.getAbsolutePath()); in setUp()
118 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
132 CompatibilityBuildHelper createBuildHelper(IBuildInfo buildInfo) { in createBuildHelper() argument
133 return new CompatibilityBuildHelper(buildInfo); in createBuildHelper()
DVtsPythonVirtualenvPreparer.java414 private void addPathToBuild(IBuildInfo buildInfo, File virtualEnvDir) throws TargetSetupError { in addPathToBuild() argument
425 if (!buildInfo.getBuildAttributes().containsKey(target)) { in addPathToBuild()
426 buildInfo.addBuildAttribute(target, virtualEnvDir.getAbsolutePath()); in addPathToBuild()
470 private File createVirtualEnvCache(IBuildInfo buildInfo) throws TargetSetupError { in createVirtualEnvCache() argument
475 workingDir = new CompatibilityBuildHelper(buildInfo).getDir(); in createVirtualEnvCache()
489 + normalizeName(buildInfo.getTestTag()) + "_"); in createVirtualEnvCache()
504 protected File checkTestPlanLevelVirtualenv(IBuildInfo buildInfo) throws TargetSetupError { in checkTestPlanLevelVirtualenv() argument
509 buildInfo.getBuildAttributes().get(VtsPythonVirtualenvPreparer.VIRTUAL_ENV); in checkTestPlanLevelVirtualenv()
512 venvDir = buildInfo.getBuildAttributes().get( in checkTestPlanLevelVirtualenv()
/test/vts/harnesses/tradefed/src/com/android/tradefed/device/metric/
DVtsCoverageCollector.java61 IBuildInfo buildInfo = getBuildInfos().get(0); in onTestRunEnd() local
62 if (buildInfo == null) { in onTestRunEnd()
75 mPythonRunnerHelper = new VtsPythonRunnerHelper(buildInfo, workingDir); in onTestRunEnd()
79 String gcovDirPath = getGcoveResrouceDir(buildInfo, device); in onTestRunEnd()
84 String coverage_report_dir = buildInfo.getBuildAttributes().get("coverage_report_path"); in onTestRunEnd()
110 String getGcoveResrouceDir(IBuildInfo buildInfo, ITestDevice device) { in getGcoveResrouceDir() argument
111 File gcovDir = buildInfo.getFile(VtsCoveragePreparer.getGcovResourceDirKey(device)); in getGcoveResrouceDir()
DVtsHalTraceCollector.java94 IBuildInfo buildInfo = getBuildInfos().get(0); in pullTraceFiles() local
95 String tracePath = buildInfo.getBuildAttributes().get(TRACE_PATH); in pullTraceFiles()
/test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/
DMetricsStore.java46 public static void storeResult(IBuildInfo buildInfo, String abi, String classMethodName, in storeResult() argument
48 String startTime = buildInfo.getBuildAttributes().get(START_TIME_TAG); in storeResult()
56 public static ReportLog removeResult(IBuildInfo buildInfo, String abi, String classMethodName) { in removeResult() argument
57 String startTime = buildInfo.getBuildAttributes().get(START_TIME_TAG); in removeResult()
DMetricsReportLog.java46 public MetricsReportLog(IBuildInfo buildInfo, String abi, String classMethodName, in MetricsReportLog() argument
48 this(buildInfo, abi, classMethodName, reportLogName, streamName, false); in MetricsReportLog()
60 public MetricsReportLog(IBuildInfo buildInfo, String abi, String classMethodName, in MetricsReportLog() argument
63 mBuildInfo = buildInfo; in MetricsReportLog()
69 tmpDirName += "-" + buildInfo.getDeviceSerial(); in MetricsReportLog()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/testtype/
DVtsMultiDeviceTestTest.java132 IFolderBuildInfo buildInfo = EasyMock.createNiceMock(IFolderBuildInfo.class); in createMockBuildInfo() local
133 EasyMock.expect(buildInfo.getBuildId()).andReturn("BUILD_ID").anyTimes(); in createMockBuildInfo()
134 EasyMock.expect(buildInfo.getBuildTargetName()).andReturn("BUILD_TARGET_NAME").anyTimes(); in createMockBuildInfo()
135 EasyMock.expect(buildInfo.getTestTag()).andReturn("TEST_TAG").anyTimes(); in createMockBuildInfo()
136 EasyMock.expect(buildInfo.getDeviceSerial()).andReturn("1234567890ABCXYZ").anyTimes(); in createMockBuildInfo()
137 EasyMock.expect(buildInfo.getRootDir()).andReturn(new File("DIR_NOT_EXIST")).anyTimes(); in createMockBuildInfo()
138 EasyMock.expect(buildInfo.getBuildAttributes()).andReturn(buildAttributes).anyTimes(); in createMockBuildInfo()
139 EasyMock.expect(buildInfo.getFile(EasyMock.eq("PYTHONPATH"))) in createMockBuildInfo()
142 EasyMock.expect(buildInfo.getFile(EasyMock.eq("VIRTUALENVPATH"))) in createMockBuildInfo()
145 EasyMock.replay(buildInfo); in createMockBuildInfo()
[all …]
/test/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DVtsFilePusher.java74 private Collection<String> loadFilePushGroups(IBuildInfo buildInfo) throws TargetSetupError { in loadFilePushGroups() argument
139 private void pushFileGroups(ITestDevice device, IBuildInfo buildInfo) in pushFileGroups() argument
145 for (String pushspec : loadFilePushGroups(buildInfo)) { in pushFileGroups()
156 src = resolveRelativeFilePath(buildInfo, pair[0]); in pushFileGroups()
189 IBuildInfo buildInfo = testInfo.getBuildInfo(); in setUp() local
192 pushFileGroups(device, buildInfo); in setUp()
220 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
/test/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DResultHandlerTest.java385 String buildInfo = String.format(XML_BUILD_INFO_WITH_UNALTERED_BUILD_FINGERPRINT, in testParsing_usesUnalteredBuildFingerprintWhenPresent() local
388 File resultDir = writeResultDir(resultsDir, buildInfo, false); in testParsing_usesUnalteredBuildFingerprintWhenPresent()
397 String buildInfo = String.format(XML_BUILD_INFO_WITH_UNALTERED_BUILD_FINGERPRINT, in testParsing_whenUnalteredBuildFingerprintIsEmpty_usesRegularBuildFingerprint() local
399 File resultDir = writeResultDir(resultsDir, buildInfo, false); in testParsing_whenUnalteredBuildFingerprintIsEmpty_usesRegularBuildFingerprint()
413 String buildInfo = String.format(XML_BUILD_INFO, EXAMPLE_BUILD_FINGERPRINT, in writeResultDir() local
415 return writeResultDir(resultsDir, buildInfo, newTestFormat); in writeResultDir()
422 static File writeResultDir(File resultsDir, String buildInfo, boolean newTestFormat) in writeResultDir() argument
472 buildInfo, summary, modules); in writeResultDir()
487 Map<String, String> buildInfo = lightResult.getInvocationInfo(); in checkLightResult() local
488 assertEquals("Incorrect Build ID", EXAMPLE_BUILD_ID, buildInfo.get(BUILD_ID)); in checkLightResult()
[all …]
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/suite/
DCompatibilityTestSuite.java82 public void setBuild(IBuildInfo buildInfo) { in setBuild() argument
83 super.setBuild(buildInfo); in setBuild()
84 mBuildHelper = new CompatibilityBuildHelper(buildInfo); in setBuild()
/test/vts/tools/vts-core-tradefed/src/com/android/tradefed/targetprep/
DMultiSimPreparer.java38 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws DeviceNotAvailableException { in setUp() argument
50 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable throwable) in tearDown() argument
/test/suite_harness/common/host-side/tradefed/tests/src/com/android/compatibility/common/tradefed/testtype/
DShardableTestStub.java53 public void setBuild(IBuildInfo buildInfo) { in setBuild() argument
54 mBuildInfo = buildInfo; in setBuild()
/test/vts/harnesses/tradefed/src/com/android/tradefed/util/
DVtsVendorConfigFileUtil.java119 public boolean LoadVendorConfig(IBuildInfo buildInfo) throws RuntimeException { in LoadVendorConfig() argument
120 Map<String, String> attrs = buildInfo.getBuildAttributes(); in LoadVendorConfig()
DVtsPythonRunnerHelper.java42 public VtsPythonRunnerHelper(IBuildInfo buildInfo, File workingDir) { in VtsPythonRunnerHelper() argument
43 this(buildInfo.getBuildAttributes().get(VtsPythonVirtualenvPreparer.VIRTUAL_ENV), in VtsPythonRunnerHelper()
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsPythonVirtualenvPreparerTest.java139 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_reqFile_failure() local
144 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure()
175 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_depModule_failure() local
180 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_depModule_failure()

12