/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestMapping.java | 68 private Map<String, Set<TestInfo>> mTestCollection = null; 112 Set<TestInfo> testsForGroup = new HashSet<>(); in TestMapping() 126 TestInfo test = in TestMapping() 127 new TestInfo( in TestMapping() 194 public Set<TestInfo> getTests( in getTests() 196 Set<TestInfo> tests = new HashSet<TestInfo>(); in getTests() 198 for (TestInfo test : mTestCollection.getOrDefault(testGroup, new HashSet<>())) { in getTests() 236 private static Set<TestInfo> mergeTests(Set<TestInfo> tests) { in mergeTests() 237 Map<String, List<TestInfo>> testsGroupedbyNameAndHost = in mergeTests() 241 TestInfo::getNameAndHostOnly, Collectors.toList())); in mergeTests() [all …]
|
D | TestInfo.java | 30 public class TestInfo { class 43 public TestInfo(String name, String source, boolean hostOnly) { in TestInfo() method in TestInfo 47 public TestInfo(String name, String source, boolean hostOnly, Set<String> keywords) { in TestInfo() method in TestInfo 101 public void merge(TestInfo test) { in merge()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/ |
D | TestMappingTest.java | 69 Set<TestInfo> tests = in testparseTestMapping() 74 for (TestInfo test : tests) { in testparseTestMapping() 83 for (TestInfo test : tests) { in testparseTestMapping() 97 for (TestInfo test : tests) { in testparseTestMapping() 111 for (TestInfo test : tests) { in testparseTestMapping() 133 Set<TestInfo> tests = in testparseTestMapping_BadJson() 169 Set<TestInfo> tests = TestMapping.getTests(mockBuildInfo, "presubmit", false, null); in testGetTests() 175 for (TestInfo test : tests) { in testGetTests() 221 Set<TestInfo> tests = in testGetTests_matchKeywords() 324 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByName() [all …]
|
D | TestInfoTest.java | 37 TestInfo info = new TestInfo("test1", "folder1", false, keywords); in testAddOption()
|
/tools/asuite/atest/ |
D | unittest_constants.py | 65 MODULE_INFO = test_info.TestInfo(MODULE_NAME, 69 MODULE_INFO2 = test_info.TestInfo(MODULE2_NAME, 91 CLASS_INFO = test_info.TestInfo(MODULE_NAME, 100 CLASS_INFO2 = test_info.TestInfo(MODULE2_NAME, 106 PACKAGE_INFO = test_info.TestInfo(MODULE_NAME, 110 PATH_INFO = test_info.TestInfo(MODULE_NAME, 114 EMPTY_PATH_INFO = test_info.TestInfo(MODULE_NAME, 123 METHOD_INFO = test_info.TestInfo( 132 INT_INFO = test_info.TestInfo(INT_NAME, 137 GTF_INT_INFO = test_info.TestInfo( [all …]
|
D | test_runner_handler_unittest.py | 42 MODULE_INFO_A = test_info.TestInfo(MODULE_NAME_A, FAKE_TR_NAME_A, set()) 43 MODULE_INFO_A_AGAIN = test_info.TestInfo(MODULE_NAME_A_AGAIN, FAKE_TR_NAME_A, 45 MODULE_INFO_B = test_info.TestInfo(MODULE_NAME_B, FAKE_TR_NAME_B, set()) 46 MODULE_INFO_B_AGAIN = test_info.TestInfo(MODULE_NAME_B_AGAIN, FAKE_TR_NAME_B, 48 BAD_TESTINFO = test_info.TestInfo('bad_name', MISSING_TR_NAME, set())
|
D | atest_unittest.py | 173 t_info = test_info.TestInfo(test_name, 'mock_runner', build_targets) 226 no_install_test_info = test_info.TestInfo( 229 host_test_info = test_info.TestInfo( 232 device_test_info = test_info.TestInfo( 235 both_test_info = test_info.TestInfo(
|
/tools/tradefederation/core/atest/ |
D | unittest_constants.py | 62 MODULE_INFO = test_info.TestInfo(MODULE_NAME, 66 MODULE_INFO2 = test_info.TestInfo(MODULE2_NAME, 88 CLASS_INFO = test_info.TestInfo(MODULE_NAME, 97 CLASS_INFO2 = test_info.TestInfo(MODULE2_NAME, 103 PACKAGE_INFO = test_info.TestInfo(MODULE_NAME, 107 PATH_INFO = test_info.TestInfo(MODULE_NAME, 111 EMPTY_PATH_INFO = test_info.TestInfo(MODULE_NAME, 120 METHOD_INFO = test_info.TestInfo( 129 INT_INFO = test_info.TestInfo(INT_NAME, 134 GTF_INT_INFO = test_info.TestInfo( [all …]
|
D | test_runner_handler_unittest.py | 39 MODULE_INFO_A = test_info.TestInfo(MODULE_NAME_A, FAKE_TR_NAME_A, set()) 40 MODULE_INFO_A_AGAIN = test_info.TestInfo(MODULE_NAME_A_AGAIN, FAKE_TR_NAME_A, 42 MODULE_INFO_B = test_info.TestInfo(MODULE_NAME_B, FAKE_TR_NAME_B, set()) 43 MODULE_INFO_B_AGAIN = test_info.TestInfo(MODULE_NAME_B_AGAIN, FAKE_TR_NAME_B, 45 BAD_TESTINFO = test_info.TestInfo('bad_name', MISSING_TR_NAME, set())
|
D | atest_unittest.py | 173 t_info = test_info.TestInfo(test_name, 'mock_runner', build_targets) 226 no_install_test_info = test_info.TestInfo( 229 host_test_info = test_info.TestInfo( 232 device_test_info = test_info.TestInfo( 235 both_test_info = test_info.TestInfo(
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunner.java | 24 import com.android.tradefed.util.testmapping.TestInfo; 111 Set<TestInfo> testInfosToRun = new HashSet<>(); in loadTests() 156 for (TestInfo testInfo : testInfosToRun) { in loadTests() 175 Set<TestInfo> testInfos = getTestInfos(testInfosToRun, moduleName); in loadTests() 197 List<IRemoteTest> createIndividualTests(Set<TestInfo> testInfos, String configPath, IAbi abi) { in createIndividualTests() 208 for (TestInfo testInfo : testInfos) { in createIndividualTests() 238 List<String> getTestSources(Set<TestInfo> testInfos) { in getTestSources() 240 for (TestInfo testInfo : testInfos) { in getTestSources() 252 void parseOptions(TestInfo testInfo) { in parseOptions() 300 Set<TestInfo> dedupTestInfos(Set<TestInfo> testInfos) { in dedupTestInfos() [all …]
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraLatencyTest.java | 77 private List<TestInfo> mTestCases = new ArrayList<>(); 87 static class TestInfo { class in CameraLatencyTest 105 TestInfo t = new TestInfo(); in testInfoSetup() 129 t = new TestInfo(); in testInfoSetup() 149 for (TestInfo test : mTestCases) { in run() 158 private void executeTest(TestInfo test, ITestInvocationListener listener) in executeTest() 198 private void logOutputFile(TestInfo test, ITestInvocationListener listener) in logOutputFile() 229 private void parseOutputFile(TestInfo test, InputStream dataStream, in parseOutputFile() 272 void reportMetrics(ITestInvocationListener listener, TestInfo test, in reportMetrics() 296 private TestInfo mTestInfo = null; [all …]
|
D | CameraStressTest.java | 81 private List<TestInfo> mTestCases = new ArrayList<>(); 90 static class TestInfo { class in CameraStressTest 135 TestInfo t = new TestInfo(); in testInfoSetup() 156 t = new TestInfo(); in testInfoSetup() 165 t = new TestInfo(); in testInfoSetup() 178 for (TestInfo test : mTestCases) { in run() 187 private void executeTest(TestInfo test, ITestInvocationListener listener) in executeTest() 233 private void logOutputFiles(TestInfo test, ITestInvocationListener listener) in logOutputFiles() 264 private void parseOutputFile(TestInfo test, InputStream dataStream, in parseOutputFile() 352 void reportMetrics(ITestInvocationListener listener, TestInfo test, in reportMetrics() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/ |
D | TestMappingsValidation.java | 33 import com.android.tradefed.util.testmapping.TestInfo; 99 private Map<String, Set<TestInfo>> allTests = null; 145 for (TestInfo testInfo : allTests.get(testGroup)) { in testValidTestMappingForParameterizedMainlineModules() 226 for (TestInfo testInfo : allTests.get(testGroup)) { in testTestSuiteSetting() 273 for (TestInfo test : getTestInfos(moduleName, testGroup)) { in validateFilterOption() 275 Map<Filters, Set<TestInfo>> filterTestInfos = new HashMap<>(); in validateFilterOption() 310 String filterOption, Map<Filters, Set<TestInfo>> filterTestInfos) { in getDetailedErrors() 312 Set<Map.Entry<Filters, Set<TestInfo>>> entries = filterTestInfos.entrySet(); in getDetailedErrors() 313 for (Map.Entry<Filters, Set<TestInfo>> entry : entries) { in getDetailedErrors() 314 Set<TestInfo> testInfos = entry.getValue(); in getDetailedErrors() [all …]
|
/tools/asuite/atest/test_finders/ |
D | suite_plan_finder_unittest.py | 63 want_info = test_info.TestInfo(test_name=suite_plan, 72 want_info = test_info.TestInfo(test_name=suite_plan, 106 want_info = test_info.TestInfo(test_name=suite_name, 122 want_info = test_info.TestInfo(test_name=suite_name, 158 want_info = test_info.TestInfo(test_name=suite_int_name, 169 want_info = test_info.TestInfo(test_name=suite_int_name, 180 want_info = test_info.TestInfo(test_name=suite_int_name,
|
D | suite_plan_finder.py | 91 return test_info.TestInfo( 145 test_infos.append(test_info.TestInfo(
|
D | example_finder.py | 34 return test_info.TestInfo(test_name=test,
|
/tools/tradefederation/core/atest/test_finders/ |
D | suite_plan_finder_unittest.py | 59 want_info = test_info.TestInfo(test_name=suite_plan, 68 want_info = test_info.TestInfo(test_name=suite_plan, 102 want_info = test_info.TestInfo(test_name=suite_name, 118 want_info = test_info.TestInfo(test_name=suite_name, 154 want_info = test_info.TestInfo(test_name=suite_int_name, 165 want_info = test_info.TestInfo(test_name=suite_int_name, 176 want_info = test_info.TestInfo(test_name=suite_int_name,
|
D | suite_plan_finder.py | 90 return test_info.TestInfo( 144 test_infos.append(test_info.TestInfo(
|
D | example_finder.py | 35 return test_info.TestInfo(test_name=test,
|
/tools/tradefederation/contrib/src/com/android/wireless/tests/ |
D | WifiStressTest.java | 76 private List<TestInfo> mTestList = null; 78 private static class TestInfo { class in WifiStressTest 152 TestInfo t = new TestInfo(); in setupTests() 166 t = new TestInfo(); in setupTests() 253 for (TestInfo testCase : mTestList) { in run() 277 private void logOutputFile(TestInfo test, ITestInvocationListener listener) in logOutputFile() 302 private void parseOutputFile(TestInfo test, File dataFile, ITestInvocationListener listener) { in parseOutputFile()
|
/tools/tradefederation/core/atest/test_runners/ |
D | atest_tf_test_runner_unittest.py | 63 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME, 69 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME, 75 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME, 81 CLASS3_INFO = test_info.TestInfo(uc.MODULE_NAME, 88 CLASS4_INFO = test_info.TestInfo(uc.MODULE_NAME, 94 CLASS1_CLASS2_MODULE_INFO = test_info.TestInfo( 99 FLAT_CLASS_INFO = test_info.TestInfo( 105 FLAT2_CLASS_INFO = test_info.TestInfo( 113 CLASS2_METHOD_INFO = test_info.TestInfo( 121 METHOD_AND_CLASS2_METHOD = test_info.TestInfo( [all …]
|
/tools/asuite/atest/test_runners/ |
D | atest_tf_test_runner_unittest.py | 62 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME, 68 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME, 74 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME, 80 CLASS3_INFO = test_info.TestInfo(uc.MODULE_NAME, 87 CLASS4_INFO = test_info.TestInfo(uc.MODULE_NAME, 93 CLASS1_CLASS2_MODULE_INFO = test_info.TestInfo( 98 FLAT_CLASS_INFO = test_info.TestInfo( 104 FLAT2_CLASS_INFO = test_info.TestInfo( 112 CLASS2_METHOD_INFO = test_info.TestInfo( 120 METHOD_AND_CLASS2_METHOD = test_info.TestInfo( [all …]
|
D | suite_plan_test_runner_unittest.py | 51 t_info = test_info.TestInfo(suite_name, 84 t_info = test_info.TestInfo(suite_name,
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | TestMappingSuiteRunnerTest.java | 42 import com.android.tradefed.util.testmapping.TestInfo; 677 Set<TestInfo> testInfos = new HashSet<>(); in testGetTestInfos() 692 Set<TestInfo> testInfos = new HashSet<>(); in testDedupTestInfos() 697 TestInfo anotherInfo = new TestInfo("test", "folder3", false); in testDedupTestInfos() 709 Set<TestInfo> testInfos = new HashSet<>(); in testGetTestSources() 722 TestInfo info = createTestInfo("test", "path"); in testParseOptions() 739 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithDifferentTestInfos() 762 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithDifferentTestOptions() 764 TestInfo info = new TestInfo("test", "path", false); in testCreateIndividualTestsWithDifferentTestOptions() 902 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithSameTestInfos() [all …]
|