Home
last modified time | relevance | path

Searched refs:testName (Results 1 – 21 of 21) sorted by relevance

/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DTestResultHistory.java55 public TestResultHistory(String testName, Set<ExecutionRecord> executionRecords) { in TestResultHistory() argument
56 this.mTestName = testName; in TestResultHistory()
99 XmlSerializer serializer, TestResultHistory resultHistory, String testName) in serialize() argument
107 String name = getSubTestName(testName, resultHistory.getTestName()); in serialize()
108 if (!name.isEmpty() && !name.equalsIgnoreCase(testName)) { in serialize()
130 protected static String getSubTestName(String testName, String fullTestName) { in getSubTestName() argument
132 testName = testName.replace("[", "\\[").replace("]", "\\]"); in getSubTestName()
133 String subTestName = fullTestName.replaceFirst(testName + ":", ""); in getSubTestName()
DCaseResult.java52 public ITestResult getOrCreateResult(String testName) { in getOrCreateResult() argument
53 ITestResult result = mResults.get(testName); in getOrCreateResult()
55 result = new TestResult(this, testName); in getOrCreateResult()
56 mResults.put(testName, result); in getOrCreateResult()
65 public ITestResult getResult(String testName) { in getResult() argument
66 return mResults.get(testName); in getResult()
DBusinessLogic.java58 public boolean hasLogicFor(String testName) { in hasLogicFor() argument
59 List<BusinessLogicRulesList> rulesLists = mRules.get(testName); in hasLogicFor()
66 private boolean hasLogicsFor(String testName) { in hasLogicsFor() argument
67 List<BusinessLogicRulesList> rulesLists = mRules.get(testName); in hasLogicsFor()
77 public void applyLogicFor(String testName, BusinessLogicExecutor executor) { in applyLogicFor() argument
78 if (!hasLogicFor(testName)) { in applyLogicFor()
81 if (hasLogicsFor(testName)) { in applyLogicFor()
82 applyLogicsFor(testName, executor); // handle this special case separately in applyLogicFor()
86 BusinessLogicRulesList rulesList = mRules.get(testName).get(0); in applyLogicFor()
99 private void applyLogicsFor(String testName, BusinessLogicExecutor executor) { in applyLogicsFor() argument
[all …]
DICaseResult.java33 ITestResult getOrCreateResult(String testName); in getOrCreateResult() argument
41 ITestResult getResult(String testName); in getResult() argument
DTestScreenshotsMetadata.java48 public TestScreenshotsMetadata(String testName, in TestScreenshotsMetadata() argument
50 mTestName = testName; in TestScreenshotsMetadata()
DChecksumReporter.java291 String packageName, String suiteName, String caseName, String testName, String abi, in generateTestResultSignature() argument
296 String testId = buildTestId(suiteName, caseName, testName, abi); in generateTestResultSignature()
317 String suiteName, String caseName, String testName, String abi) { in buildTestId() argument
321 Strings.emptyToNull(testName)); in buildTestId()
DBusinessLogicFactory.java132 String testName = jsonRulesList.getString(TEST_NAME); in createBL() local
133 List<BusinessLogicRulesList> testRulesLists = rulesMap.get(testName); in createBL()
138 rulesMap.put(testName, testRulesLists); in createBL()
DResultHandler.java269 String testName = parser.getAttributeValue(NS, NAME_ATTR); in getResultFromDir() local
270 ITestResult test = testCase.getOrCreateResult(testName); in getResultFromDir()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DGoldenPathManagerTest.kt35 val localGoldenFullImagePath = subject.goldenImageIdentifierResolver(testName = "test1") in goldenImageIdentifierResolver_appendsPng()
48 subject.goldenIdentifierResolver(testName = "test1", extension = "png").split("/") in goldenIdentifierResolver_includesPathConfig()
56 val result = subject.goldenIdentifierResolver(testName = "test1", extension = "proto") in goldenIdentifierResolver_allowsOverrideFileExtension()
DScreenshotTestRuleTest.kt45 override fun goldenIdentifierResolver(testName: String, extension: String): String = in goldenIdentifierResolver()
46 "$testName.$extension" in goldenIdentifierResolver()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DGoldenPathManager.kt70 fun goldenImageIdentifierResolver(testName: String) = in goldenImageIdentifierResolver()
71 goldenIdentifierResolver(testName, IMAGE_EXTENSION) in goldenImageIdentifierResolver()
76 open fun goldenIdentifierResolver(testName: String, extension: String): String { in goldenImageIdentifierResolver()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java81 String testName, int byteToWrite, int expectedByte) throws Exception { in write_writesAsExpected_singleByte() argument
93 testName, writtenBytes, ImmutableList.of(expectedByteArray)); in write_writesAsExpected_singleByte()
117 String testName, List<byte[]> byteArraysToWrite) throws Exception { in write_writesAsExpected_multipleBytes() argument
128 assertListsContainSameByteArrays(testName, byteArraysToWrite, writtenBytes); in write_writesAsExpected_multipleBytes()
156 String testName, in write_writesAsExpected_multipleBytesOffsetAndLength() argument
172 assertListsContainSameByteArrays(testName, expectedByteArrays, writtenBytes); in write_writesAsExpected_multipleBytesOffsetAndLength()
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenshotOnFailureCollector.java103 String testName = description.getDisplayName(); in onTestStart() local
104 mTestIterations.computeIfPresent(testName, (name, iterations) -> iterations + 1); in onTestStart()
105 mTestIterations.computeIfAbsent(testName, name -> 1); in onTestStart()
DScreenRecordCollector.java171 String testName = description.getDisplayName(); in amendIterations() local
172 mTestIterations.computeIfPresent(testName, (name, iterations) -> iterations + 1); in amendIterations()
173 mTestIterations.computeIfAbsent(testName, name -> 1); in amendIterations()
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/
DAndroidParameterizedRunner.java43 protected String testName(final FrameworkMethod method) { in testName() method in AndroidParameterizedRunner
DRobolectricParameterizedRunner.java52 protected String testName(final FrameworkMethod method) { in testName() method in RobolectricParameterizedRunner
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/tradefed/testtype/
DSecurityTestCase.java73 @Rule public TestName testName = new TestName(); field in SecurityTestCase
110 sTestName.put(getDevice(), testName.getMethodName()); in setUp()
339 String testName = getTestName(device); in buildMetricsReportLog() local
358 reportLog.addValue("test_name", testName, ResultType.NEUTRAL, ResultUnit.NONE); in buildMetricsReportLog()
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/
DFilmstripTest.kt41 @get:Rule val testName = TestName() constant in platform.test.motion.filmstrip.FilmstripTest
48 .assertGoldenImage(testName.methodName) in assertFilmstripRendering()
/platform_testing/tests/automotive/health/boottime/src/android/boottime/
DBootTimeTest.java353 IRemoteAndroidTestRunner createRemoteAndroidTestRunner(String testName) in createRemoteAndroidTestRunner() argument
357 runner.setMethodName(CLASS_NAME, testName); in createRemoteAndroidTestRunner()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DAuptTestRunner.java666 String testName =
673 + "/" + testName.replace('.', '_')
/platform_testing/host_runners/boot/src/com/android/boot/
DBootTimeTest.java1259 IRemoteAndroidTestRunner createRemoteAndroidTestRunner(String testName) in createRemoteAndroidTestRunner() argument
1263 runner.setMethodName(CLASS_NAME, testName); in createRemoteAndroidTestRunner()