Home
last modified time | relevance | path

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

123

/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()
56 protected File getLocalPathForFilename(IBuildInfo buildInfo, String apkFileName, in getLocalPathForFilename() argument
60 apkFile = getTestFile(buildInfo, apkFileName); in getLocalPathForFilename()
DBusinessLogicPreparer.java170 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, BuildError, in setUp() argument
172 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in setUp()
186 String requestParams = buildRequestParams(device, buildInfo); in setUp()
249 String buildRequestParams(ITestDevice device, IBuildInfo buildInfo) in buildRequestParams() argument
251 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in buildRequestParams()
260 for (String feature : getBusinessLogicFeatures(device, buildInfo)) { in buildRequestParams()
263 for (String property : getBusinessLogicProperties(device, buildInfo)) { in buildRequestParams()
266 for (String pkg : getBusinessLogicPackages(device, buildInfo)) { in buildRequestParams()
269 for (String deviceInfo : getExtendedDeviceInfo(buildInfo)) { in buildRequestParams()
306 private List<String> getBusinessLogicProperties(ITestDevice device, IBuildInfo buildInfo) in getBusinessLogicProperties() argument
[all …]
DReportLogCollector.java55 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
57 prepareReportLogContainers(device, buildInfo); in setUp()
60 private void prepareReportLogContainers(ITestDevice device, IBuildInfo buildInfo) { in prepareReportLogContainers() argument
61 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in prepareReportLogContainers()
78 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) { in tearDown() argument
80 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in tearDown()
DDeviceInfoCollector.java95 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
97 if (buildInfo.getFile(DEVICE_INFO_DIR) != null) { in setUp()
131 buildInfo.addBuildAttribute(entry.getKey(), property); in setUp()
136 run(device, buildInfo); in setUp()
145 buildInfo.setFile(DEVICE_INFO_DIR, deviceInfoDir, /** version */ "v1"); in setUp()
156 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
159 super.tearDown(device, buildInfo, e); in tearDown()
DApkInstrumentationPreparer.java66 public void run(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in run() argument
72 if (instrument(device, buildInfo)) { in run()
88 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
97 instrument(device, buildInfo); in tearDown()
104 private boolean instrument(ITestDevice device, IBuildInfo buildInfo) in instrument() argument
106 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in instrument()
DDeviceFileCollector.java66 public void run(ITestDevice device, IBuildInfo buildInfo) { in run() argument
73 createResultDir(buildInfo); in run()
90 private void createResultDir(IBuildInfo buildInfo) { in createResultDir() argument
91 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in createResultDir()
DMediaPreparer.java258 private File downloadMediaToHost(ITestDevice device, IBuildInfo buildInfo) in downloadMediaToHost() argument
275 buildInfo, mDynamicConfigModule, MEDIA_FILES_URL_KEY); in downloadMediaToHost()
384 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
398 setMaxRes(device, buildInfo); // max resolution only applies to video files in setUp()
409 File mediaFolder = downloadMediaToHost(device, buildInfo); in setUp()
418 private void setMaxRes(ITestDevice device, IBuildInfo buildInfo) in setMaxRes() argument
421 CompatibilityBuildHelper buildHelper = new CompatibilityBuildHelper(buildInfo); in setMaxRes()
DFilePusher.java37 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
39 buildInfo, in resolveRelativeFilePath()
DStayAwakePreparer.java46 public void run(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in run() argument
55 super.run(device, buildInfo); in run()
DPreconditionPreparer.java63 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in setUp() argument
75 run(device, buildInfo); in setUp()
92 public abstract void run(ITestDevice device, IBuildInfo buildInfo) in run() argument
DLocationCheck.java47 public void run(ITestDevice device, IBuildInfo buildInfo) throws TargetSetupError, in run() argument
63 super.run(device, buildInfo); in run()
/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.java94 public void setUp(ITestDevice device, IBuildInfo buildInfo) { in setUp() argument
99 buildInfo.setFile(TEST_PLAN_REPORT_FILE, statusFile, buildInfo.getBuildId()); in setUp()
107 buildInfo.addBuildAttribute( in setUp()
110 buildInfo.addBuildAttribute(VtsVendorConfigFileUtil.KEY_VENDOR_TEST_CONFIG_FILE_PATH, in setUp()
114 configReader.LoadVendorConfig(buildInfo); in setUp()
131 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) { in tearDown() argument
132 File reportFile = buildInfo.getFile(TEST_PLAN_REPORT_FILE); in tearDown()
163 addApiReportToTestPlanMessage(device, buildInfo, testPlanMessage); in tearDown()
189 private void addApiReportToTestPlanMessage(ITestDevice device, IBuildInfo buildInfo, in addApiReportToTestPlanMessage() argument
191 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.java410 protected void addPathToBuild(IBuildInfo buildInfo) throws TargetSetupError { in addPathToBuild() argument
421 if (!buildInfo.getBuildAttributes().containsKey(target)) { in addPathToBuild()
422 buildInfo.addBuildAttribute(target, mVenvDir.getAbsolutePath()); in addPathToBuild()
431 protected void initVirtualenv(IBuildInfo buildInfo) throws TargetSetupError { in initVirtualenv() argument
432 if (checkTestPlanLevelVirtualenv(buildInfo)) { in initVirtualenv()
437 if (checkHostReuseVirtualenv(buildInfo)) { in initVirtualenv()
511 protected boolean checkHostReuseVirtualenv(IBuildInfo buildInfo) throws IOException { in checkHostReuseVirtualenv() argument
523 + VtsFileUtil.normalizeFileName(buildInfo.getTestTag()) + "_"); in checkHostReuseVirtualenv()
535 protected boolean checkTestPlanLevelVirtualenv(IBuildInfo buildInfo) throws TargetSetupError { in checkTestPlanLevelVirtualenv() argument
540 venvDir = buildInfo.getBuildAttributes().get( in checkTestPlanLevelVirtualenv()
[all …]
DVtsMultiSimPreparer.java38 public void setUp(ITestDevice device, IBuildInfo buildInfo) throws DeviceNotAvailableException { in setUp() argument
48 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable throwable) in tearDown() argument
/test/vts/harnesses/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DVtsFilePusher.java78 private Collection<String> loadFilePushGroups(IBuildInfo buildInfo) throws TargetSetupError { in loadFilePushGroups() argument
143 private void pushFileGroups(ITestDevice device, IBuildInfo buildInfo) in pushFileGroups() argument
149 for (String pushspec : loadFilePushGroups(buildInfo)) { in pushFileGroups()
160 src = resolveRelativeFilePath(buildInfo, pair[0]); in pushFileGroups()
190 public void setUp(ITestDevice device, IBuildInfo buildInfo) in setUp() argument
194 pushFileGroups(device, buildInfo); in setUp()
196 super.setUp(device, buildInfo); in setUp()
203 public void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e) in tearDown() argument
216 super.tearDown(device, buildInfo, e); in tearDown()
239 public File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName) { in resolveRelativeFilePath() argument
/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()
/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/suite_harness/common/util/tests/src/com/android/compatibility/common/util/
DResultHandlerTest.java232 String buildInfo = String.format(XML_BUILD_INFO_WITH_UNALTERED_BUILD_FINGERPRINT, in testParsing_usesUnalteredBuildFingerprintWhenPresent() local
235 File resultDir = writeResultDir(resultsDir, buildInfo, false); in testParsing_usesUnalteredBuildFingerprintWhenPresent()
243 String buildInfo = String.format(XML_BUILD_INFO_WITH_UNALTERED_BUILD_FINGERPRINT, in testParsing_whenUnalteredBuildFingerprintIsEmpty_usesRegularBuildFingerprint() local
245 File resultDir = writeResultDir(resultsDir, buildInfo, false); in testParsing_whenUnalteredBuildFingerprintIsEmpty_usesRegularBuildFingerprint()
258 String buildInfo = String.format(XML_BUILD_INFO, EXAMPLE_BUILD_FINGERPRINT, in writeResultDir() local
260 return writeResultDir(resultsDir, buildInfo, newTestFormat); in writeResultDir()
267 static File writeResultDir(File resultsDir, String buildInfo, boolean newTestFormat) in writeResultDir() argument
317 buildInfo, summary, modules); in writeResultDir()
332 Map<String, String> buildInfo = lightResult.getInvocationInfo(); in checkLightResult() local
333 assertEquals("Incorrect Build ID", EXAMPLE_BUILD_ID, buildInfo.get(BUILD_ID)); in checkLightResult()
[all …]
/test/vts/harnesses/tradefed/tests/src/com/android/tradefed/targetprep/
DVtsPythonVirtualenvPreparerTest.java102 protected boolean checkHostReuseVirtualenv(IBuildInfo buildInfo) throws IOException { in checkHostReuseVirtualenv() argument
111 return super.checkHostReuseVirtualenv(buildInfo); in checkHostReuseVirtualenv()
117 protected boolean checkTestPlanLevelVirtualenv(IBuildInfo buildInfo) in checkTestPlanLevelVirtualenv() argument
127 return super.checkTestPlanLevelVirtualenv(buildInfo); in checkTestPlanLevelVirtualenv()
226 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_reqFile_failure() local
231 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_reqFile_failure()
258 IBuildInfo buildInfo = new BuildInfo(); in testInstallDeps_depModule_failure() local
261 mPreparer.addPathToBuild(buildInfo); in testInstallDeps_depModule_failure()
264 assertTrue(buildInfo.getFile("PYTHONPATH") == null); in testInstallDeps_depModule_failure()
/test/framework/harnesses/cts-tradefed/
Dtradefed-cts-prebuilt.jarMETA-INF/ META-INF/MANIFEST.MF com/android/compatibility/common/ ...
/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()

123