/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/ |
D | ExecutableBaseTest.java | 161 for (String testName : testCommands.keySet()) { in run() 162 String cmd = testCommands.get(testName); in run() 164 TestDescription description = new TestDescription(testName, testName); in run() 167 listener.testRunStarted(testName, 0); in run() 176 listener.testRunStarted(testName, 1); in run() 206 String testName = description.getTestName(); in shouldSkipCurrentTest() local 207 if (mExcludeFilters.contains(testName) in shouldSkipCurrentTest() 212 return !mIncludeFilters.contains(testName) in shouldSkipCurrentTest() 277 for (String testName : testCommands.keySet()) { in split() 278 String cmd = testCommands.get(testName); in split() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | AtestRunnerTest.java | 121 String testName = String.format(TEST_NAME_FMT, "tf/uiautomator"); in testLoadTests_filter() local 122 assertTrue(configMap.containsKey(testName)); in testLoadTests_filter() 123 IConfiguration config = configMap.get(testName); in testLoadTests_filter() 140 String testName = String.format(TEST_NAME_FMT, "suite/base-suite1"); in testLoadTests_WithTFConfigSpecified() local 141 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithTFConfigSpecified() 156 String testName = String.format(TEST_NAME_FMT, "TestModule"); in testLoadTests_WithModuleAndTFConfigSpecified() local 157 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified() 158 testName = String.format(TEST_NAME_FMT, "suite/base-suite1"); in testLoadTests_WithModuleAndTFConfigSpecified() 159 assertTrue(configMap.containsKey(testName)); in testLoadTests_WithModuleAndTFConfigSpecified() 175 String testName = String.format(TEST_NAME_FMT, "TestModule"); in testLoadTests_WithModuleConfigSpecified() local [all …]
|
/tools/tradefederation/core/tests/res/testdata/ |
D | subprocess1.txt | 2 …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 …]
|
D | subprocess2.txt | 2 …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/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | TestDescription.java | 44 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/src/com/android/tradefed/util/ |
D | SubprocessEventHelper.java | 368 public BaseTestEventInfo(String className, String testName) { in BaseTestEventInfo() argument 370 mTestName = testName; in BaseTestEventInfo() 406 public TestStartedEventInfo(String className, String testName, Long startTime) { in TestStartedEventInfo() argument 407 super(className, testName); in TestStartedEventInfo() 435 public FailedTestEventInfo(String className, String testName, String trace) { in FailedTestEventInfo() argument 436 super(className, testName); in FailedTestEventInfo() 467 public TestEndedEventInfo(String className, String testName, in TestEndedEventInfo() argument 469 super(className, testName); in TestEndedEventInfo() 484 String className, String testName, Long endTime, Map<String, String> runMetrics) { in TestEndedEventInfo() argument 485 super(className, testName); in TestEndedEventInfo()
|
D | LocalRunInstructionBuilder.java | 100 StringBuilder testName = new StringBuilder(configDescriptor.getModuleName()); in getCommand() local 103 testName.append(String.format(":%s", testId.getClassName())); in getCommand() 107 testName.append(String.format("#%s", testId.getTestName())); in getCommand() 112 instruction.append(String.format("atest %s --", testName)); in getCommand()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | BugreportCollectorTest.java | 311 private TestDescription injectTestRun(String runName, String testName, String metricValue) { in injectTestRun() argument 312 return injectTestRun(runName, testName, metricValue, false); in injectTestRun() 322 String runName, String testName, String metricValue, boolean shouldFail) { in injectTestRun() argument 329 final TestDescription test = new TestDescription("FooTest", testName); in injectTestRun() 340 ITestInvocationListener listener, String runName, String testName) { in setListenerTestRunExpectations() argument 341 setListenerTestRunExpectations(listener, runName, testName, false); in setListenerTestRunExpectations() 346 ITestInvocationListener listener, String runName, String testName, boolean shouldFail) { in setListenerTestRunExpectations() argument 348 final TestDescription test = new TestDescription("FooTest", testName); in setListenerTestRunExpectations()
|
D | CollectingTestListenerTest.java | 370 String runName, String testName, String metricValue, int attempt) { in injectTestRun() argument 371 return injectTestRun(runName, testName, metricValue, attempt, false); in injectTestRun() 380 String runName, String testName, String metricValue, int attempt, boolean failtest) { in injectTestRun() argument 387 final TestDescription test = new TestDescription("FooTest", testName); in injectTestRun()
|
D | JsonHttpTestResultReporterTest.java | 116 String testName, in injectTestRun() argument 126 final TestDescription test = new TestDescription("FooTest", testName); in injectTestRun()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 148 String testName = testInfo.getName(); in testValidTestMappingForParameterizedMainlineModules() local 149 int firstIndex = testName.indexOf("["); in testValidTestMappingForParameterizedMainlineModules() 150 int lastIndex = testName.indexOf("]"); in testValidTestMappingForParameterizedMainlineModules() 155 String mainlineParam = testName.substring(firstIndex+1, lastIndex); in testValidTestMappingForParameterizedMainlineModules() 165 "Parameter must contain [].", testName, testInfo.getSources())); in testValidTestMappingForParameterizedMainlineModules()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/ |
D | MoblyYamlResultRecordHandler.java | 55 String testName, in Record() argument 61 mTestName = testName; in Record() 116 public Builder setTestName(String testName) { in setTestName() argument 117 mTestName = testName; in setTestName()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | JUnitToInvocationResultForwarder.java | 131 String testName = ""; in getTestId() local 133 testName = ((TestCase) test).getName(); in getTestId() 138 Method testMethod = test.getClass().getMethod(testName); in getTestId() 145 return new TestDescription(className, testName, annotations); in getTestId()
|
D | BugreportCollector.java | 386 final String testName = String.format("%s__%s", test.getClassName(), in check() local 391 desc = testName; in check() 396 desc = String.format("FAILED-%s", testName); in check()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | FakeTest.java | 211 final String testName = String.format("testMethod%d", i); in executeTestRun() local 212 final TestDescription test = new TestDescription(runName, testName); in executeTestRun() 221 String.format("Test %s had a predictable boo-boo.", testName)); in executeTestRun() 225 test, String.format("Test %s had an assumption failure", testName)); in executeTestRun()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GoogleBenchmarkTestTest.java | 509 String testName = testNameBuilder.toString(); in testCommandTooLong() local 513 String testPath = nativeTestPath + "/" + testName; in testCommandTooLong() 521 String[] files = new String[] {testName}; in testCommandTooLong() 545 mMockInvocationListener.testRunStarted(testName, 1); in testCommandTooLong()
|
D | GTestFuncTest.java | 80 String testName = test[1]; in testRun() local 81 TestDescription id = new TestDescription(testClass, testName); in testRun() 84 if (testName.endsWith("Fail")) { in testRun()
|
D | GTestTest.java | 364 String testName = testNameBuilder.toString(); in testCommandTooLong() local 368 String testPath = nativeTestPath + "/" + testName; in testCommandTooLong() 376 String[] files = new String[] {testName}; in testCommandTooLong()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | AppTransitionTests.java | 321 String testName, String launchApps, String preLaunchApps) in createRemoteAndroidTestRunner() argument 328 runner.setMethodName(CLASS_NAME, testName); in createRemoteAndroidTestRunner() 339 mDevice.executeShellCommand(String.format("rm -rf %s/%s", mTraceDirectory, testName)); in createRemoteAndroidTestRunner() 416 private void startEventsLogs(LogcatReceiver logReceiver, String testName) in startEventsLogs() argument
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleListener.java | 126 private void logTestStatus(TestDescription testName, TestStatus status) { in logTestStatus() argument 130 if (!testName.getClassName().startsWith(getCurrentRunResults().getName())) { in logTestStatus() 133 String runAndTestCase = String.format("%s%s", runName, testName.toString()); in logTestStatus()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraPerformanceTest.java | 245 for (String testName : TEST_NAMES_AS_PREFIX) { in getRuSchemaKeyName() 246 if (testMethod.endsWith(testName)) { in getRuSchemaKeyName() 247 schemaKey = String.format("%s_%s", testName, schemaKey); in getRuSchemaKeyName()
|
D | Camera2LatencyTest.java | 69 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()
|
D | CameraShotLatencyTest.java | 73 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()
|
D | CameraBurstStartupTest.java | 67 public Map<String, String> parseResults(String testName, Map<String, String> testMetrics) { in parseResults() argument 75 String keyName = String.format("%s_%s", testName, metric.getKey()); in parseResults()
|
D | Camera2FrameworkStressTest.java | 109 private Map<String, String> parseLog(String testName) { in parseLog() argument 151 String keyName = testName + "_" + cameraId; in parseLog()
|