Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/javatests/res/testdata/
Dsubprocess1.txt2 …me":1489160957284,"className":"android.gesture.cts.GestureLibraryTest","testName":"testIsReadOnly"}
3 …me":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testIsReadOnly"}
4 …me":1489160957284,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestureE…
5 …ter: TEST_FAILED {"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestureE…
6 …me":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestureE…
7 …me":1489160957284,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
8 …er: TEST_IGNORED {"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
9 …me":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
10 …ime":1489160957285,"className":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize"}
11 …SUMPTION_FAILURE {"className":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize",…
[all …]
Dsubprocess2.txt2 …me":1489160957285,"className":"android.gesture.cts.GestureLibraryTest","testName":"testIsReadOnly"}
3 …me":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testIsReadOnly"}
4 …me":1489160957285,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestureE…
5 …me":1489160957285,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
6 …er: TEST_IGNORED {"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
7 …me":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testGetGestures…
8 …ime":1489160957285,"className":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize"}
9 …SUMPTION_FAILURE {"className":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize",…
10 …ime":1489160958359,"className":"android.gesture.cts.GestureLibraryTest","testName":"testRecognize"}
/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/
DBaselineFile.kt28 fun isExpectedFailure(className: String, testName: String): Boolean in <lambda>()
96 val testName = line.substring(2).trimEnd() in read() constant
101 addExpectedFailure(currentClassName, testName) in read()
130 testNames.forEach { testName -> writer.println(" $testName") } in write() method
136 override fun isExpectedFailure(className: String, testName: String): Boolean { in isExpectedFailure()
137 return expectedFailures[className]?.contains(testName) ?: false in isExpectedFailure()
141 fun addExpectedFailure(className: String, testName: String) { in addExpectedFailure()
143 classFailures.add(testName) in addExpectedFailure()
147 fun removeExpectedFailure(className: String, testName: String) { in removeExpectedFailure()
149 classFailures.remove(testName) in removeExpectedFailure()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/pandora/
DPtsBotTest.java377 .filter(testName -> !shouldSkipProfileOrTest(testName)) in getAllFilteredTests()
467 .filter(testName -> testName.startsWith(profile)) in runPtsBotTests()
475 for (String testName : profileTests) { in runPtsBotTests()
476 toggleA2dpSinkIfNeeded(testInfo.getDevice(), testName); in runPtsBotTests() local
477 toggleHfpHfIfNeeded(testInfo.getDevice(), testName); in runPtsBotTests() local
478 runPtsBotTest(profile, testName, testInfo, listener); in runPtsBotTests()
488 private void toggleA2dpSinkIfNeeded(ITestDevice testDevice, String testName) { in toggleA2dpSinkIfNeeded() argument
489 CLog.i("toggleA2dpSinkIfNeeded: " + testName); in toggleA2dpSinkIfNeeded()
490 if (testName.startsWith("A2DP/SNK") in toggleA2dpSinkIfNeeded()
491 || testName.startsWith("AVCTP/CT") in toggleA2dpSinkIfNeeded()
[all …]
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DTestDescription.java44 public TestDescription(String className, String testName) { in TestDescription() argument
45 if (className == null || testName == null) { in TestDescription()
49 mTestName = testName; in TestDescription()
53 Matcher m = PARAMETERIZED_TEST_REGEX.matcher(testName); in TestDescription()
57 mTestNameNoParams = testName; in TestDescription()
68 public TestDescription(String className, String testName, Annotation... annotations) { in TestDescription() argument
69 this(className, testName); in TestDescription()
80 public TestDescription(String className, String testName, Collection<Annotation> annotations) { in TestDescription() argument
81 this(className, testName, annotations.toArray(new Annotation[annotations.size()])); in TestDescription()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DAtestRunnerTest.java143 String testName = String.format(TEST_NAME_FMT, "tf/uiautomator"); in testLoadTests_filter() local
144 assertTrue(configMap.containsKey(testName)); in testLoadTests_filter()
145 IConfiguration config = configMap.get(testName); in testLoadTests_filter()
162 String testName = String.format(TEST_NAME_FMT, "suite/base-suite1"); in testLoadTests_WithTFConfigSpecified() local
163 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithTFConfigSpecified()
178 String testName = String.format(TEST_NAME_FMT, "TestModule"); in testLoadTests_WithModuleAndTFConfigSpecified() local
179 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified()
180 testName = String.format(TEST_NAME_FMT, "suite/base-suite1"); in testLoadTests_WithModuleAndTFConfigSpecified()
181 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified()
197 String testName = String.format(TEST_NAME_FMT, "TestModule"); in testLoadTests_WithModuleConfigSpecified() local
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableBaseTest.java132 .map(testName -> new TestDescription(testName, testName)) in getFilterDescriptions()
209 String testName = description.getTestName(); in run() local
210 String cmd = testCommands.get(testName); in run()
265 String testName = description.getTestName(); in shouldSkipCurrentTest() local
266 if (mExcludeFilters.contains(testName) in shouldSkipCurrentTest()
271 return !mIncludeFilters.contains(testName) in shouldSkipCurrentTest()
358 for (String testName : testCommands.keySet()) { in splitByTestCommand()
359 String cmd = testCommands.get(testName); in splitByTestCommand()
360 tests.add(getTestShard(null, ImmutableMap.of(testName, cmd))); in splitByTestCommand()
DKTapResultParser.java291 String testName = prefix == null || prefix.isEmpty() ? test.name : prefix + "." + test.name; in applySubtestLeavesToListener() local
294 applySubtestLeavesToListener(listener, testRunName, subtest, testName); in applySubtestLeavesToListener()
297 applyTestResultToListener(listener, testRunName, testName, test); in applySubtestLeavesToListener()
315 String testName = root.subtests.get(0).name; in applyAggregatedTopLevelToListener() local
318 testName += "." + root.subtests.get(i).name; in applyAggregatedTopLevelToListener()
322 TestDescription testDescription = new TestDescription(testRunName, testName); in applyAggregatedTopLevelToListener()
333 String testName, in applyTestResultToListener() argument
335 TestDescription testDescription = new TestDescription(testRunName, testName); in applyTestResultToListener()
350 testName, test.directive); in applyTestResultToListener()
DKernelTargetTest.java132 String testName = description.getTestName(); in runBinary() local
133 if (mTestMinKernelVersion.containsKey(testName) in runBinary()
134 && !compareKernelVersion(mTestMinKernelVersion.get(testName))) { in runBinary()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DLogcatOnFailureCollector.java132 protected void collectAndLog(String testName, int size) throws DeviceNotAvailableException { in collectAndLog() argument
139 legacyCollection(device, testName); in collectAndLog()
147 testName, in collectAndLog()
178 private void legacyCollection(ITestDevice device, String testName) in legacyCollection() argument
183 testName, in legacyCollection()
189 private void saveLogcatSource(String testName, InputStreamSource source, String serial) { in saveLogcatSource() argument
202 String name = String.format(NAME_FORMAT, testName, serial); in saveLogcatSource()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java335 public BaseTestEventInfo(String className, String testName) { in BaseTestEventInfo() argument
337 mTestName = testName; in BaseTestEventInfo()
373 public TestStartedEventInfo(String className, String testName, Long startTime) { in TestStartedEventInfo() argument
374 super(className, testName); in TestStartedEventInfo()
401 public SkippedTestEventInfo(String className, String testName, SkipReason reason) { in SkippedTestEventInfo() argument
402 super(className, testName); in SkippedTestEventInfo()
433 public FailedTestEventInfo(String className, String testName, String trace) { in FailedTestEventInfo() argument
434 super(className, testName); in FailedTestEventInfo()
438 public FailedTestEventInfo(String className, String testName, FailureDescription failure) { in FailedTestEventInfo() argument
439 super(className, testName); in FailedTestEventInfo()
[all …]
DLocalRunInstructionBuilder.java102 StringBuilder testName = new StringBuilder(configDescriptor.getModuleName()); in getCommand() local
105 testName.append(String.format(":%s", testId.getClassName())); in getCommand()
109 testName.append(String.format("#%s", testId.getTestName())); in getCommand()
114 instruction.append(String.format("atest %s --", testName)); in getCommand()
/tools/metalava/metalava-model-testsuite-cli/src/main/java/com/android/tools/metalava/model/testsuite/cli/
DUpdateBaselineCommand.kt148 testDescriptor.let { (className, testName) -> in endElement() method
149 baseline.addExpectedFailure(className, testName) in endElement()
153 testDescriptor.let { (className, testName) -> in endElement() method
154 baseline.removeExpectedFailure(className, testName) in endElement()
164 data class TestDescriptor(val className: String, val testName: String) constant in com.android.tools.metalava.model.testsuite.cli.UpdateBaselineCommand.TestDescriptor
/tools/asuite/atest/bazel/runner/tests/src/com/android/tradefed/testtype/bazel/
DBazelTestTest.java197 public void writeSingleTestOutputs(Path outputsDir, String testName) in traceFileWritten_traceFileReported()
200 defaultWriteSingleTestOutputs(outputsDir, testName, true); in traceFileWritten_traceFileReported()
223 public void writeSingleTestOutputs(Path outputsDir, String testName) in malformedProtoResults_runFails()
226 defaultWriteSingleTestOutputs(outputsDir, testName, false); in malformedProtoResults_runFails()
564 public Path createLogFile(String testName, Path logDir) throws IOException { in multipleTestsRun_reportsAllResults()
565 Path logFile = logDir.resolve(testName); in multipleTestsRun_reportsAllResults()
669 public void writeSingleTestOutputs(Path outputsDir, String testName) in badLogFilePaths_failureReported()
673 outputsDir.resolve(Paths.get("bad-dir")), testName, false); in badLogFilePaths_failureReported()
986 void runSingleTest(String testName) throws IOException, ConfigurationException {
987 Path outputDir = Files.createTempDirectory(mBazelTempDirectory, testName);
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultRecordHandler.java53 String testName, in Record() argument
59 mTestName = testName; in Record()
114 public Builder setTestName(String testName) { in setTestName() argument
115 mTestName = testName; in setTestName()
DMoblyBinaryHostTest.java305 public boolean match(String testClassName, String testName, boolean exact) { in match() argument
309 if (testName.startsWith(testClassName)) in match()
310 testName = testName.substring(testClassName.length() + 1); in match()
311 if (exact && !testName.equals(mTestName)) return false; in match()
312 if (!exact && !testName.startsWith(mTestName)) return false; in match()
352 final String testName = line; in filterTests() local
357 .filter(filter -> filter.match(testClassName, testName, false)) in filterTests()
362 .filter(filter -> filter.match(testClassName, testName, true)) in filterTests()
370 tests.add(testName); in filterTests()
371 if (!excluded && (included || includeFilters.isEmpty())) includedTests.add(testName); in filterTests()
/tools/tradefederation/core/src/com/android/tradefed/result/
DJUnitToInvocationResultForwarder.java138 String testName = ""; in getTestId() local
140 testName = ((TestCase) test).getName(); in getTestId()
145 Method testMethod = test.getClass().getMethod(testName); in getTestId()
152 return new TestDescription(className, testName, annotations); in getTestId()
/tools/tradefederation/core/javatests/com/android/tradefed/result/
DBugreportCollectorTest.java389 private TestDescription injectTestRun(String runName, String testName, String metricValue) { in injectTestRun() argument
390 return injectTestRun(runName, testName, metricValue, false); in injectTestRun()
400 String runName, String testName, String metricValue, boolean shouldFail) { in injectTestRun() argument
407 final TestDescription test = new TestDescription("FooTest", testName); in injectTestRun()
418 ITestInvocationListener listener, String runName, String testName, InOrder io) { in verifyListenerTestRunExpectations() argument
419 verifyListenerTestRunExpectations(listener, runName, testName, false, io); in verifyListenerTestRunExpectations()
425 String testName, in verifyListenerTestRunExpectations() argument
429 final TestDescription test = new TestDescription("FooTest", testName); in verifyListenerTestRunExpectations()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DBluetoothHciSnoopLogCollector.java99 String testName = test.toString(); in onTestEnd() local
100 String normalisedTestName = normaliseTestName(testName); in onTestEnd()
225 private String normaliseTestName(String testName) { in normaliseTestName() argument
226 return testName.replace("/", "_"); in normaliseTestName()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java213 final String testName = String.format("testMethod%d", i); in executeTestRun() local
214 final TestDescription test = new TestDescription(runName, testName); in executeTestRun()
223 String.format("Test %s had a predictable boo-boo.", testName)); in executeTestRun()
227 test, String.format("Test %s had an assumption failure", testName)); in executeTestRun()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestFuncTest.java103 String testName = test[1]; in testRun() local
104 TestDescription id = new TestDescription(testClass, testName); in testRun()
107 if (testName.endsWith("Fail")) { in testRun()
/tools/metalava/metalava-model/src/test/java/com/android/tools/metalava/model/junit4/
DCustomizableParameterizedParametersProviderTest.kt34 @get:Rule val testName = TestName() constant in com.android.tools.metalava.model.junit4.CustomizableParameterizedParametersProviderTest
43 assertThat(testName.methodName) in Test that parameters are provided by the runner()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraShotLatencyTest.java73 public Map<String, String> parseResults(String testName, Map<String, String> testMetrics) { in parseResults() argument
83 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
DCameraBurstStartupTest.java69 public Map<String, String> parseResults(String testName, Map<String, String> testMetrics) { in parseResults() argument
77 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
DCamera2LatencyTest.java69 private Map<String, String> parseResults(String testName, Map<String, String> testMetrics) { in parseResults() argument
85 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()

12