Home
last modified time | relevance | path

Searched refs:filters (Results 1 – 25 of 55) sorted by relevance

123

/tools/test/connectivity/acts_tests/tests/google/ble/filtering/
DFilteringTest.py101 filters = {
112 return self._magic((filters, settings_in_effect))
139 filters = {
150 return self._magic((filters, settings_in_effect))
177 filters = {
188 return self._magic((filters, settings_in_effect))
215 filters = {
226 return self._magic((filters, settings_in_effect))
253 filters = {
264 return self._magic((filters, settings_in_effect))
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestBaseTest.java77 String filters = gTestBase.getGTestFilters(moduleName); in testGetGTestFilters_default() local
78 assertEquals("--gtest_filter=filter1", filters); in testGetGTestFilters_default()
90 String filters = gTestBase.getGTestFilters(moduleName); in testGTestFilters_positive() local
91 assertEquals(String.format("--gtest_filter=%s", "filter1:filter2"), filters); in testGTestFilters_positive()
103 String filters = gTestBase.getGTestFilters(moduleName); in testGTestFilters_negative() local
104 assertEquals(String.format("--gtest_filter=-%s", "filter1:filter2"), filters); in testGTestFilters_negative()
117 String filters = gTestBase.getGTestFilters(moduleName); in testGTestFilters_postive_and_negative() local
120 filters); in testGTestFilters_postive_and_negative()
138 String filters = gTestBase.getGTestFilters("/path/test1"); in testFilterResultWhenPrepending() local
141 filters); in testFilterResultWhenPrepending()
[all …]
DGoogleBenchmarkTestTest.java347 Set<String> filters = new LinkedHashSet<>(Arrays.asList("filter1", "filter2")); in testGetFilterFlagForFilters() local
348 String filterFlag = mGoogleBenchmarkTest.getFilterFlagForFilters(filters); in testGetFilterFlagForFilters()
358 Set<String> filters = new LinkedHashSet<>(); in testGetFilterFlagForFilters_noFilters() local
359 String filterFlag = mGoogleBenchmarkTest.getFilterFlagForFilters(filters); in testGetFilterFlagForFilters_noFilters()
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py460 filters = self.tr._flatten_test_filters({uc.CLASS_FILTER})
462 filters)
463 filters = self.tr._flatten_test_filters({CLASS2_FILTER})
465 self, frozenset([CLASS2_FILTER]), filters)
466 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER})
468 self, frozenset([uc.METHOD_FILTER]), filters)
469 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER,
472 self, frozenset([uc.METHOD_FILTER, CLASS2_METHOD_FILTER]), filters)
474 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER,
477 self, filters, frozenset([uc.FLAT_METHOD_FILTER]))
[all …]
Datest_tf_test_runner.py558 filters = set()
577 filters = set()
579 filters |= test_filters
582 data[constants.TI_FILTER] = self._flatten_test_filters(filters)
592 def _flatten_test_filters(filters): argument
614 for class_name, group in atest_utils.sort_and_group(filters, key):
647 filters = set()
649 filters.update(test_filter.to_set_of_tf_strings())
650 for test_filter in filters:
Drobolectric_test_runner.py214 filters = test_info.data.get(constants.TI_FILTER)
215 if filters:
216 robo_filter = next(iter(filters))
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner_unittest.py453 filters = self.tr._flatten_test_filters({uc.CLASS_FILTER})
455 filters)
456 filters = self.tr._flatten_test_filters({CLASS2_FILTER})
458 self, frozenset([CLASS2_FILTER]), filters)
459 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER})
461 self, frozenset([uc.METHOD_FILTER]), filters)
462 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER,
465 self, frozenset([uc.METHOD_FILTER, CLASS2_METHOD_FILTER]), filters)
467 filters = self.tr._flatten_test_filters({uc.METHOD_FILTER,
470 self, filters, frozenset([uc.FLAT_METHOD_FILTER]))
[all …]
Datest_tf_test_runner.py520 filters = set()
537 filters = set()
539 filters |= test_filters
542 data[constants.TI_FILTER] = self._flatten_test_filters(filters)
552 def _flatten_test_filters(filters): argument
574 for class_name, group in atest_utils.sort_and_group(filters, key):
611 filters = set()
613 filters.update(test_filter.to_set_of_tf_strings())
614 for test_filter in filters:
Drobolectric_test_runner.py207 filters = test_info.data.get(constants.TI_FILTER)
208 if filters:
209 robo_filter = next(iter(filters))
/tools/repohooks/tools/
Dcpplint.py870 self.filters = _DEFAULT_FILTERS[:]
872 self._filters_backup = self.filters[:]
902 def SetFilters(self, filters): argument
917 self.filters = _DEFAULT_FILTERS[:]
918 self.AddFilters(filters)
920 def AddFilters(self, filters): argument
922 for filt in filters.split(','):
925 self.filters.append(clean_filt)
926 for filt in self.filters:
933 self._filters_backup = self.filters[:]
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteModuleLoader.java442 Set<String> stringFilters, Map<String, List<SuiteTestFilter>> filters, Set<IAbi> abis) { in addFilters() argument
448 addFilter(a.getName(), filter, filters); in addFilters() local
451 addFilter(abi, filter, filters); in addFilters()
457 String abi, SuiteTestFilter filter, Map<String, List<SuiteTestFilter>> filters) { in addFilter() argument
458 getFilterList(filters, AbiUtils.createId(abi, filter.getName())).add(filter); in addFilter()
462 Map<String, List<SuiteTestFilter>> filters, String id) { in getFilterList() argument
463 List<SuiteTestFilter> fs = filters.get(id); in getFilterList()
466 filters.put(id, fs); in getFilterList()
548 private File createFilterFile(String prefix, String suffix, List<SuiteTestFilter> filters) { in createFilterFile() argument
554 for (SuiteTestFilter filter : filters) { in createFilterFile()
DITestSuite.java1155 public void addModuleMetadataIncludeFilters(MultiMap<String, String> filters) { in addModuleMetadataIncludeFilters() argument
1156 mModuleMetadataIncludeFilter.putAll(filters); in addModuleMetadataIncludeFilters()
1159 public void addModuleMetadataExcludeFilters(MultiMap<String, String> filters) { in addModuleMetadataExcludeFilters() argument
1160 mModuleMetadataExcludeFilter.putAll(filters); in addModuleMetadataExcludeFilters()
1319 Set<String> filters = new HashSet<>(include.get(key)); in filterByConfigMetadata() local
1321 filters.retainAll(metadata.get(key)); in filterByConfigMetadata()
1322 if (!filters.isEmpty()) { in filterByConfigMetadata()
1339 Set<String> filters = new HashSet<>(exclude.get(key)); in filterByConfigMetadata() local
1341 filters.retainAll(metadata.get(key)); in filterByConfigMetadata()
1342 if (!filters.isEmpty()) { in filterByConfigMetadata()
DBaseTestSuite.java546 private static void checkFilters(Set<String> filters, String moduleName) { in checkFilters() argument
548 for (String filter : filters) { in checkFilters()
556 filters.clear(); in checkFilters()
557 filters.addAll(cleanedFilters); in checkFilters()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGoogleBenchmarkTest.java249 ITestDevice testDevice, String fullBinaryPath, Set<String> filters) in getTestsForFilters() argument
255 getFilterFlagForFilters(filters), in getTestsForFilters()
357 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
358 for (String filter : filters) { in addAllIncludeFilters()
371 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
372 for (String filter : filters) { in addAllExcludeFilters()
402 protected String getFilterFlagForFilters(Set<String> filters) { in getFilterFlagForFilters() argument
405 Iterator<String> iterator = filters.iterator(); in getFilterFlagForFilters()
DGTestBase.java292 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
293 for (String filter : filters) { in addAllIncludeFilters()
306 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
307 for (String filter : filters) { in addAllExcludeFilters()
622 protected void erasePrependedFileName(Set<String> filters, String filename) { in erasePrependedFileName() argument
627 for (String filter : filters) { in erasePrependedFileName()
634 filters.clear(); in erasePrependedFileName()
635 filters.addAll(copy); in erasePrependedFileName()
DDeviceTestCase.java202 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
203 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
204 mFilterHelper.addAllIncludeFilters(filters); in addAllIncludeFilters()
220 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
221 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
222 mFilterHelper.addAllExcludeFilters(filters); in addAllExcludeFilters()
DAndroidJUnitTest.java197 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
198 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
213 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
214 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
DIsolatedHostTest.java437 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
438 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
449 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
450 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/
DRustTestBase.java79 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
80 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
85 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
86 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/src/com/android/tradefed/util/
DTestFilterHelper.java72 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
73 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
86 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
87 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/binary/
DExecutableBaseTest.java122 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
123 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
128 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
129 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/
DBaseRetryDecisionTest.java68 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
69 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
78 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
79 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/testtype/
DGameQualificationHostsideController.java133 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
134 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
143 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
144 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/python/
DPythonBinaryHostTest.java146 public void addAllIncludeFilters(Set<String> filters) { in addAllIncludeFilters() argument
147 mIncludeFilters.addAll(filters); in addAllIncludeFilters()
152 public void addAllExcludeFilters(Set<String> filters) { in addAllExcludeFilters() argument
153 mExcludeFilters.addAll(filters); in addAllExcludeFilters()
/tools/tradefederation/core/atest/test_finders/
Dtf_integration_finder.py200 filters = frozenset()
220 filters = frozenset(test_filters)
226 constants.TI_FILTER: filters})

123