/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | PackageFilterTest.kt | 25 val filter = PackageFilter.parse("foo.bar:bar.baz") in testExact() constant 26 assertThat(filter.matches("foo.bar")).isTrue() in testExact() 27 assertThat(filter.matches("bar.baz")).isTrue() in testExact() 28 assertThat(filter.matches("foo.bar.baz")).isFalse() in testExact() 29 assertThat(filter.matches("foo")).isFalse() in testExact() 30 assertThat(filter.matches("foo.barf")).isFalse() in testExact() 35 val filter = PackageFilter.parse("foo.bar*:bar.baz.*") in testWildcard() constant 36 assertThat(filter.matches("foo.bar")).isTrue() in testWildcard() 37 assertThat(filter.matches("foo.bars")).isTrue() in testWildcard() 38 assertThat(filter.matches("foo.bar.baz")).isTrue() in testWildcard() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiAnalyzer.kt | 66 fun addConstructors(filter: Predicate<Item>) { in <lambda>() 94 val allClasses = packages.allClasses().filter { filter.test(it) } in <lambda>() 101 val leafClasses = allClasses.filter { !it.tag }.toList() in <lambda>() 111 .filter { filter.test(it) } in <lambda>() 112 .forEach { addConstructors(it, filter) } in <lambda>() 132 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>() 172 val superClass = cls.filteredSuperclass(filter) in <lambda>() 173 superClass?.let { addConstructors(it, filter) } in <lambda>() 197 val constructors = cls.filteredConstructors(filter).toList() in <lambda>() 271 superClasses.filter { !filterReference.test(it) && !it.isJavaLangObject() } in <lambda>() [all …]
|
D | PackageFilter.kt | 36 if (component.filter.test(qualifiedName)) { in matches() 75 val filter = PackageFilter() in parse() constant 76 filter.addPackages(path) in parse() 77 return filter in parse() 98 class PackageFilterComponent(val filter: Predicate<String>, val treatAsPositiveMatch: Boolean) constant in com.android.tools.metalava.PackageFilterComponent
|
D | ComparisonVisitor.kt | 89 …fun compare(visitor: ComparisonVisitor, old: Codebase, new: Codebase, filter: Predicate<Item>? = n… in compare() 92 val oldTree = createTree(old, filter) in compare() 93 val newTree = createTree(new, filter) in compare() 406 private fun createTree(codebase: Codebase, filter: Predicate<Item>? = null): List<ItemTree> { in createTree() 411 val acceptAll = codebase.preFiltered || filter == null in createTree() 412 val predicate = if (acceptAll) Predicate { true } else filter!! in createTree()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | GTestBase.java | 280 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 287 mIncludeFilters.add(cleanFilter(filter)); in addIncludeFilter() 293 for (String filter : filters) { in addAllIncludeFilters() 294 mIncludeFilters.add(cleanFilter(filter)); in addAllIncludeFilters() 300 public void addExcludeFilter(String filter) { in addExcludeFilter() argument 301 mExcludeFilters.add(cleanFilter(filter)); in addExcludeFilter() 307 for (String filter : filters) { in addAllExcludeFilters() 308 mExcludeFilters.add(cleanFilter(filter)); in addAllExcludeFilters() 409 StringBuilder filter = new StringBuilder(); in getGTestFilters() local 437 filter.append(GTEST_FLAG_FILTER); in getGTestFilters() [all …]
|
D | GoogleBenchmarkTest.java | 335 public String cleanFilter(String filter) { in cleanFilter() argument 336 Integer index = filter.indexOf('#'); in cleanFilter() 339 String benchmark = filter.substring(index + 1); in cleanFilter() 341 CLog.e("Invalid filter %s. Result could be unexpected.", filter); in cleanFilter() 346 return filter; in cleanFilter() 351 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 352 mIncludeFilters.add(cleanFilter(filter)); in addIncludeFilter() 358 for (String filter : filters) { in addAllIncludeFilters() 359 mIncludeFilters.add(cleanFilter(filter)); in addAllIncludeFilters() 365 public void addExcludeFilter(String filter) { in addExcludeFilter() argument [all …]
|
D | AndroidJUnitTest.java | 189 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 190 mIncludeFilters.add(filter); in addIncludeFilter() 205 public void addExcludeFilter(String filter) { in addExcludeFilter() argument 206 mExcludeFilters.add(filter); in addExcludeFilter() 483 public boolean isClassOrMethod(String filter) { in isClassOrMethod() argument 484 if (filter.contains("#")) { in isClassOrMethod() 487 String[] parts = filter.split("\\."); in isClassOrMethod() 500 public boolean isRegex(String filter) { in isRegex() argument 503 if (Pattern.matches(".*[\\?\\*\\^\\$\\(\\)\\[\\]\\{\\}\\|\\\\].*", filter)) { in isRegex() 505 Pattern.compile(filter); in isRegex() [all …]
|
D | DeviceTestCase.java | 193 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 194 mIncludeFilters.add(filter); in addIncludeFilter() 195 mFilterHelper.addIncludeFilter(filter); in addIncludeFilter() 211 public void addExcludeFilter(String filter) { in addExcludeFilter() argument 212 mExcludeFilters.add(filter); in addExcludeFilter() 213 mFilterHelper.addExcludeFilter(filter); in addExcludeFilter()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiTypeItem.kt | 78 filter: Predicate<Item>? in toTypeString() 82 if (filter != null) { in toTypeString() 94 filter = filter in toTypeString() 109 filter = filter in toTypeString() 121 filter = filter in toTypeString() 138 filter = filter in toTypeString() 153 filter = filter in toTypeString() 168 filter = filter in toTypeString() 403 filter: Predicate<Item>? in toTypeString() 415 filter in toTypeString() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | ClassPathScanner.java | 116 public Map<String, String> getEntriesFromJar(File plainFile, IClassPathFilter filter) in getEntriesFromJar() argument 122 if (filter.accept(entryName)) { in getEntriesFromJar() 123 entryNames.put(filter.transform(entryName), plainFile.getName()); in getEntriesFromJar() 136 public Set<String> getEntriesFromDir(File classPathDir, IClassPathFilter filter) in getEntriesFromDir() argument 139 getEntriesFromDir(classPathDir, entryNames, new LinkedList<String>(), filter); in getEntriesFromDir() 154 IClassPathFilter filter) throws IOException { in getEntriesFromDir() argument 164 getEntriesFromDir(childFile, entries, rootPath, filter); in getEntriesFromDir() 170 if (filter.accept(classPathEntryName)) { in getEntriesFromDir() 171 entries.add(filter.transform(classPathEntryName)); in getEntriesFromDir() 199 public Set<String> getClassPathEntries(IClassPathFilter filter) { in getClassPathEntries() argument [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | ClassItem.kt | 404 .filter { it.matches(template) } in <lambda>() 429 .filter { it.internalDesc() == desc } in <lambda>() 434 .filter { it.name() == name && it.internalDesc() == desc } in <lambda>() 453 .filter { it.matches(template) } in <lambda>() 485 .filter { parametersMatch(it, parameters) } in <lambda>() 489 .filter { it.name() == methodName && parametersMatch(it, parameters) } in <lambda>() 580 return constructors().asSequence().filter { predicate.test(it) } in <lambda>() 772 .filter { filterEmit.test(it) } in <lambda>() 776 .filter { filterEmit.test(it) } in <lambda>() 784 .filter { filterEmit.test(it) } in <lambda>() [all …]
|
D | AnnotationItem.kt | 172 filter: Predicate<Item>? = null, in mapName() 315 } else if (filter != null) { in mapName() 317 if (cls != null && filter.test(cls)) { in mapName() 366 filter, in mapName() 375 } else if (filter != null) { in mapName() 377 if (cls != null && filter.test(cls)) { in mapName()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/rust/ |
D | RustTestBase.java | 67 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 68 mIncludeFilters.add(filter); in addIncludeFilter() 73 public void addExcludeFilter(String filter) { in addExcludeFilter() argument 74 mExcludeFilters.add(filter); in addExcludeFilter() 127 protected String cleanFilter(String filter) { in cleanFilter() argument 128 return filter.replaceFirst(".*#", ""); in cleanFilter() 139 protected void addFiltersToArgs(List<String> args, String filter) { in addFiltersToArgs() argument 140 if (!"".equals(filter)) { in addFiltersToArgs() 141 args.add(cleanFilter(filter)); in addFiltersToArgs() 149 protected String addFiltersToCommand(String cmd, String filter) { in addFiltersToCommand() argument [all …]
|
D | RustBinaryHostTest.java | 138 for (String filter : includeFilters) { in runSingleRustFile() 139 countTests(file, filter, foundTests); in runSingleRustFile() 145 for (String filter : includeFilters) { in runSingleRustFile() 147 runTestWithFilter(listener, file, filter); in runSingleRustFile() 159 private void countTests(File file, String filter, Set<String> foundTests) { in countTests() argument 160 CLog.d("Count with filter '%s' for Rust File: %s", filter, file.getAbsolutePath()); in countTests() 164 addFiltersToArgs(commandLine, filter); in countTests() 184 private void runTestWithFilter(ITestInvocationListener listener, File file, String filter) in runTestWithFilter() argument 190 addFiltersToArgs(commandLine, filter); in runTestWithFilter() 191 CLog.d("Running test with filter '%s'", filter); in runTestWithFilter()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | ZipUtilTest.java | 231 .filter(e -> e.getFileName().equals("empty_file")) in testPartipUnzip() 251 .filter(e -> e.getFileName().equals("large_text/file.txt")) in testPartipUnzip() 282 .filter(e -> e.getFileName().equals("executable/executable_file")) in testPartipUnzip() 301 .filter(e -> e.getFileName().equals("read_only/readonly_file")) in testPartipUnzip() 320 .filter(e -> e.getFileName().equals("read_only/")) in testPartipUnzip() 339 .filter(e -> e.getFileName().equals("large_text/")) in testPartipUnzip() 392 .filter(e -> e.getFileName().equals("empty_file")) in testPartialUnzipWithUseZip64() 412 .filter(e -> e.getFileName().equals("large_text/file.txt")) in testPartialUnzipWithUseZip64() 443 .filter(e -> e.getFileName().equals("executable/executable_file")) in testPartialUnzipWithUseZip64() 462 .filter(e -> e.getFileName().equals("read_only/readonly_file")) in testPartialUnzipWithUseZip64() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/suite/ |
D | AtestRunner.java | 133 for (String filter : moduleFilters) { in loadTests() 134 addFilter(testConfig, filter); in loadTests() 146 for (String filter : mIncludeFilters) { in getIncludeFilters() 147 int moduleSep = filter.indexOf(":"); in getIncludeFilters() 151 String moduleName = canonicalizeConfigName(filter.substring(0, moduleSep)); in getIncludeFilters() 152 String moduleFilter = filter.substring(moduleSep + 1); in getIncludeFilters() 181 private void addFilter(IConfiguration testConfig, String filter) { in addFilter() argument 187 testConfig.getName(), test.getClass().getSimpleName(), filter); in addFilter() 188 ((ITestFilterReceiver) test).addIncludeFilter(filter); in addFilter() 194 test.getClass().getSimpleName(), filter); in addFilter()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoaderTest.java | 183 public void addIncludeFilter(String filter) { in addIncludeFilter() argument 193 public void addExcludeFilter(String filter) { in addExcludeFilter() argument 240 SuiteTestFilter filter = SuiteTestFilter.createFrom("armeabi-v7a module1[test] test#test"); in testInjectConfigOptions_moduleArgs() local 241 includeFilter.put("armeabi-v7a module1[test]", Arrays.asList(filter)); in testInjectConfigOptions_moduleArgs() 601 SuiteTestFilter filter = in testLoadConfigsFromSpecifiedPaths_WithExcludeFilter() local 604 excludeFilters.put("armeabi-v7a module2", Arrays.asList(filter)); in testLoadConfigsFromSpecifiedPaths_WithExcludeFilter() 792 SuiteTestFilter filter = in testLoadParameterizedMainlineModule_WithFilters() local 795 excludeFilters.put("armeabi-v7a basemodule[mod1.apk]", Arrays.asList(filter)); in testLoadParameterizedMainlineModule_WithFilters() 864 SuiteTestFilter filter = SuiteTestFilter.createFrom("armeabi-v7a basemodule[mod1.apk]"); in testLoadParameterizedMainlineModules_WithMultipleFilters() local 865 includeFilters.put("armeabi-v7a basemodule[mod1.apk]", Arrays.asList(filter)); in testLoadParameterizedMainlineModules_WithMultipleFilters() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/ |
D | TestInfo.java | 169 .filter( in merge() 177 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 181 .filter( in merge() 189 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge() 195 .filter( in merge() 204 .filter(option -> OPTION_INCLUDE_ANNOTATION.equals(option.getName())) in merge() 209 .filter( in merge() 218 .filter(option -> OPTION_EXCLUDE_ANNOTATION.equals(option.getName())) in merge()
|
/tools/tradefederation/core/tests/res/testdata/ |
D | test_mapping_2 | 8 "include-filter": "some-filter" 16 "include-filter": "some-filter2" 26 "exclude-filter": "filter.com" 37 "include-filter": "filter.com"
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | SuiteModuleLoader.java | 444 SuiteTestFilter filter = SuiteTestFilter.createFrom(filterString); in addFilters() local 445 String abi = filter.getAbi(); in addFilters() 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() 554 for (SuiteTestFilter filter : filters) { in createFilterFile() 555 String filterTest = filter.getTest(); in createFilterFile()
|
D | SuiteTestFilter.java | 44 public static SuiteTestFilter createFrom(String filter) { in createFrom() argument 45 if (filter.isEmpty()) { in createFrom() 48 String[] parts = filter.split(" "); in createFrom() 65 parts = filter.split(" ", index + 1); in createFrom()
|
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/ |
D | IsolationFilter.java | 48 public IsolationFilter(FilterSpec filter) { in IsolationFilter() argument 50 filter.getIncludeFiltersList(), in IsolationFilter() 51 filter.getExcludeFiltersList(), in IsolationFilter() 52 filter.getIncludeAnnotationsList(), in IsolationFilter() 53 filter.getExcludeAnnotationsList()); in IsolationFilter()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | BaseRetryDecision.java | 271 String filter = in addRetriedTestsToFilters() local 275 test.addIncludeFilter(filter); in addRetriedTestsToFilters() 279 String filter = in addRetriedTestsToFilters() local 281 test.addExcludeFilter(filter); in addRetriedTestsToFilters() 293 .filter(d -> !(d.getIDevice() instanceof StubDevice)) in getDevices()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | RuntimeRestartCollector.java | 186 .filter(d -> d.hasElapsedTimestampNanos()) in onTestRunEnd() 187 .filter(d -> d.hasAtom()) in onTestRunEnd() 188 .filter(d -> d.getAtom().hasAppCrashOccurred()) in onTestRunEnd() 189 .filter(d -> d.getAtom().getAppCrashOccurred().hasProcessName()) in onTestRunEnd() 190 .filter( in onTestRunEnd()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | FileUtil.java | 1118 public static Set<String> findFiles(File dir, String filter) throws IOException { in findFiles() argument 1121 .filter(path -> path.getFileName().toString().matches(filter)) in findFiles() 1198 public static Set<File> findFilesObject(File dir, String filter) throws IOException { in findFilesObject() argument 1201 .filter(path -> path.getFileName().toString().matches(filter)) in findFilesObject()
|