Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 42) sorted by relevance

12

/tools/metalava/src/test/java/com/android/tools/metalava/
DPackageFilterTest.kt25 val filter = PackageFilter(mutableListOf("foo.bar", "bar.baz")) in test() constant
26 assertThat(filter.matches("foo.bar")).isTrue() in test()
27 assertThat(filter.matches("bar.baz")).isTrue() in test()
28 assertThat(filter.matches("foo.bar.baz")).isTrue() in test()
29 assertThat(filter.matches("foo.barf")).isFalse() in test()
30 assertThat(filter.matches("foo")).isFalse() in test()
/tools/tradefederation/core/src/com/android/tradefed/util/
DClassPathScanner.java113 public Set<String> getEntriesFromJar(File plainFile, IClassPathFilter filter) in getEntriesFromJar() argument
119 if (filter.accept(entryName)) { in getEntriesFromJar()
120 entryNames.add(filter.transform(entryName)); in getEntriesFromJar()
133 public Set<String> getEntriesFromDir(File classPathDir, IClassPathFilter filter) in getEntriesFromDir() argument
136 getEntriesFromDir(classPathDir, entryNames, new LinkedList<String>(), filter); in getEntriesFromDir()
151 IClassPathFilter filter) throws IOException { in getEntriesFromDir() argument
161 getEntriesFromDir(childFile, entries, rootPath, filter); in getEntriesFromDir()
167 if (filter.accept(classPathEntryName)) { in getEntriesFromDir()
168 entries.add(filter.transform(classPathEntryName)); in getEntriesFromDir()
196 public Set<String> getClassPathEntries(IClassPathFilter filter) { in getClassPathEntries() argument
[all …]
DTestFilterHelper.java61 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
62 mIncludeFilters.add(filter); in addIncludeFilter()
75 public void addExcludeFilter(String filter) { in addExcludeFilter() argument
76 mExcludeFilters.add(filter); in addExcludeFilter()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DAtestRunner.java97 for (String filter : moduleFilters) { in loadTests()
98 addFilter(testConfig, filter); in loadTests()
110 for (String filter : mIncludeFilters) { in getIncludeFilters()
111 int moduleSep = filter.indexOf(":"); in getIncludeFilters()
115 String moduleName = canonicalizeConfigName(filter.substring(0, moduleSep)); in getIncludeFilters()
116 String moduleFilter = filter.substring(moduleSep + 1); in getIncludeFilters()
145 private void addFilter(IConfiguration testConfig, String filter) { in addFilter() argument
151 testConfig.getName(), test.getClass().getSimpleName(), filter); in addFilter()
152 ((ITestFilterReceiver) test).addIncludeFilter(filter); in addFilter()
158 test.getClass().getSimpleName(), filter); in addFilter()
DSuiteModuleLoader.java266 SuiteTestFilter filter = SuiteTestFilter.createFrom(filterString); in addFilters() local
267 String abi = filter.getAbi(); in addFilters()
270 addFilter(a.getName(), filter, filters); in addFilters() local
273 addFilter(abi, filter, filters); in addFilters()
279 String abi, SuiteTestFilter filter, Map<String, List<SuiteTestFilter>> filters) { in addFilter() argument
280 getFilterList(filters, AbiUtils.createId(abi, filter.getName())).add(filter); in addFilter()
336 for (SuiteTestFilter filter : filters) { in createFilterFile()
337 String filterTest = filter.getTest(); in createFilterFile()
DBaseTestSuite.java299 for (String filter : filters) { in checkFilters()
300 if (moduleName.equals(SuiteTestFilter.createFrom(filter).getName())) { in checkFilters()
301 cleanedFilters.add(filter); // Module name matches, filter passes in checkFilters()
DGranularRetriableTestWrapper.java262 String filter = testCase.toString(); in addRetriedTestsToIncludeFilters() local
263 ((ITestFilterReceiver) mTest).addIncludeFilter(filter); in addRetriedTestsToIncludeFilters()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTest.java288 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
289 mIncludeFilters.add(cleanFilter(filter)); in addIncludeFilter()
297 for (String filter : filters) { in addAllIncludeFilters()
298 mIncludeFilters.add(cleanFilter(filter)); in addAllIncludeFilters()
306 public void addExcludeFilter(String filter) { in addExcludeFilter() argument
307 mExcludeFilters.add(cleanFilter(filter)); in addExcludeFilter()
315 for (String filter : filters) { in addAllExcludeFilters()
316 mExcludeFilters.add(cleanFilter(filter)); in addAllExcludeFilters()
324 private String cleanFilter(String filter) { in cleanFilter() argument
325 return filter.replace('#', '.'); in cleanFilter()
[all …]
DITestFilterReceiver.java36 void addIncludeFilter(String filter); in addIncludeFilter() argument
46 void addExcludeFilter(String filter); in addExcludeFilter() argument
DDeviceTestCase.java195 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
196 mIncludeFilters.add(filter); in addIncludeFilter()
197 mFilterHelper.addIncludeFilter(filter); in addIncludeFilter()
213 public void addExcludeFilter(String filter) { in addExcludeFilter() argument
214 mExcludeFilters.add(filter); in addExcludeFilter()
215 mFilterHelper.addExcludeFilter(filter); in addExcludeFilter()
DAndroidJUnitTest.java163 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
164 mIncludeFilters.add(filter); in addIncludeFilter()
179 public void addExcludeFilter(String filter) { in addExcludeFilter() argument
180 mExcludeFilters.add(filter); in addExcludeFilter()
392 public boolean isClassOrMethod(String filter) { in isClassOrMethod() argument
393 if (filter.contains("#")) { in isClassOrMethod()
396 String[] parts = filter.split("\\."); in isClassOrMethod()
DUiAutomatorTest.java500 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
501 mClasses.add(filter); in addIncludeFilter()
511 public void addExcludeFilter(String filter) { in addExcludeFilter() argument
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DCodebase.kt90 fun compareWith(visitor: ComparisonVisitor, other: Codebase, filter: Predicate<Item>? = null) { in <lambda>()
91 CodebaseComparator().compare(visitor, other, this, filter) in <lambda>()
137 fun filter(filterEmit: Predicate<Item>, filterReference: Predicate<Item>): Codebase in <lambda>() method
DTypeItem.kt119 fun referencesExcludedType(filter: Predicate<Item>): Boolean { in <lambda>()
125 if (!filter.test(item)) { in <lambda>()
/tools/tradefederation/core/tests/res/testtype/
Dgtest_output3.txt3 Note: Google Test filter = None
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestSuiteStub.java211 public void addIncludeFilter(String filter) {} in addIncludeFilter() argument
217 public void addExcludeFilter(String filter) {} in addExcludeFilter() argument
DGranularRetriableTestWrapperTest.java103 public void addIncludeFilter(String filter) { in addIncludeFilter() argument
104 String[] descriptionStr = filter.split("#"); in addIncludeFilter()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeParameterItem.kt52 … refs.mapNotNull { PsiTypeItem.create(codebase, it).asClass() }.filter { !it.isJavaLangObject() } in bounds()
DPsiPackageItem.kt40 …override fun topLevelClasses(): Sequence<ClassItem> = classes.asSequence().filter { it.isTopLevelC… in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DTextBackedAnnotationItemTest.kt36 …override fun filter(filterEmit: Predicate<Item>, filterReference: Predicate<Item>): Codebase = uns… in supportsDocumentation() method in com.android.tools.metalava.model.TextBackedAnnotationItemTest
/tools/metalava/src/main/java/com/android/tools/metalava/
DAnnotationsDiffer.kt123 val cleanedUp = stringWriter.toString().filter { in <lambda>()
/tools/tradefederation/core/tests/res/config/suite/
Dsuite.md78 --test-zip-file-filter .*device-tests.zip
81 "test-zip-file-filter" option tells TradeFed to download and extract all device
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java282 protected Map<String, String> filter(List<CtsMetric> metrics, String testMethod) { in filter() method in CameraPerformanceTest.CtsResultParserBase
345 return filter(getDetails(), testMethod); in parse()
446 return filter(getDetails(), testMethod); in parse()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationXmlParser.java386 .filter(value -> (value == false)) in checkValidMultiConfiguration()
391 .filter(value -> (value == true)) in checkValidMultiConfiguration()
/tools/acloud/internal/lib/
Dgcompute_client_test.py302 project=self.PROJECT, filter=None, pageToken=None), mock.call(
303 project=self.PROJECT, filter=None, pageToken=fake_token)
341 filter=None,
346 filter=None,

12