Home
last modified time | relevance | path

Searched refs:methods (Results 1 – 25 of 65) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt232 val methods = cls.filteredMethods(filterReference).asSequence() in <lambda>() constant
237 val allMethods = methods.asSequence() + constructors.asSequence() in <lambda>()
238 checkClass(cls, methods, constructors, allMethods, fields, superClass, interfaces) in <lambda>()
275 methods: Sequence<MethodItem>, in <lambda>()
282 checkEquals(methods) in <lambda>()
286 checkListeners(cls, methods) in <lambda>()
287 checkParcelable(cls, methods, constructors, fields) in <lambda>()
288 checkRegistrationMethods(cls, methods) in <lambda>()
289 checkHelperClasses(cls, methods, fields) in <lambda>()
290 checkBuilder(cls, methods, constructors, superClass) in <lambda>()
[all …]
DApiAnalyzer.kt327 for (method in interfaceClass.methods()) { in <lambda>()
341 for (method in superClass.methods()) { in <lambda>()
375 for (method in superClass.methods()) { in <lambda>()
401 for (method in superClass.methods()) { in <lambda>()
426 for (method in cls.methods()) { in <lambda>()
440 map.values.forEach { methods -> in <lambda>() method
441 if (methods.size >= 2) { in <lambda>()
442 for (candidate in ArrayList(methods)) { in <lambda>()
444 methods.remove(superMethod) in <lambda>()
451 for (method in cls.methods()) { in <lambda>()
[all …]
/tools/asuite/atest/test_finders/
Dmodule_finder.py319 def _get_test_info_filter(self, path, methods, **kwargs): argument
340 class_info, kwargs.get('class_name', '*'), methods),
351 for method in methods:
353 methods = frozenset(update_methods)
355 [test_info.TestFilter(full_class_name, methods)])
367 test_finder_utils.get_cc_filter(class_info, classname, methods),
373 [test_info.TestFilter(kwargs.get('class_name', None), methods)])
384 if methods:
387 % str(methods))
389 [test_info.TestFilter(package_name, methods)])
[all …]
Dtest_finder_utils.py345 def has_method_in_file(test_path, methods): argument
362 _methods = set(re.sub(r'\[\S+\]', '', x) for x in methods)
379 _methods = set(re.sub(r'\/.*', '', x) for x in methods)
392 def extract_test_path(output, methods=None): argument
415 if not methods or match_obj.group('method_name') in methods:
418 elif not methods or has_method_in_file(test, methods):
468 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
510 return extract_test_path(out, methods)
513 def find_class_file(search_dir, class_name, is_native_test=False, methods=None): argument
532 return run_find_cmd(ref_type, search_dir, class_name, methods)
[all …]
Dtf_integration_finder.py273 class_name, methods = test_finder_utils.split_methods(class_name)
276 test_filters.append(test_info.TestFilter(class_name, methods))
290 class_name, methods))
Dtest_info.py186 if self.methods:
187 return {'%s#%s' % (self.class_name, m) for m in self.methods}
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt178 fun methods(): List<MethodItem> in <lambda>() method
188 return fields().asSequence().plus(constructors().asSequence()).plus(methods().asSequence()) in <lambda>()
274 for (method in methods()) { in <lambda>()
358 for (method in methods()) { in <lambda>()
416 methods().asSequence() in <lambda>()
461 methods().asSequence() in <lambda>()
516 methods() in <lambda>()
597 val methods = LinkedHashSet<MethodItem>() in <lambda>() constant
598 for (method in methods()) { in <lambda>()
602 methods.remove(method) in <lambda>()
[all …]
/tools/asuite/atest/docs/
Ddevelop_test_finders.md11 A test finder class holds find methods. A find method is given a string (the
15 test finder class can hold multiple find methods. The find methods are grouped
42 create a list of find methods that ```test_finder_handler``` will use to collect
43 the find methods from your test finder class. Take a look at
46 Define the find methods in your test finder class. These find methods must
52 This is used by the class decorator to identify the find methods of the class.
56 it. The find methods will be collected and executed before the default find
57 methods.
Datest_structure.md60 determines which test finder methods to use and returns them for
75 Test finders are classes that host find methods. The find methods are called by
77 filename, class, etc). Find methods will also find the corresponding test
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiClassItem.kt156 private lateinit var methods: List<PsiMethodItem> in <lambda>() variable
170 override fun methods(): List<PsiMethodItem> = methods in <lambda>() method
228 for (method in methods) { in <lambda>()
293 methods: List<PsiMethodItem>, in <lambda>()
299 this.methods = methods in <lambda>()
382 (methods as MutableList<PsiMethodItem>).add(method as PsiMethodItem) in <lambda>()
464 val psiMethods = psiClass.methods in <lambda>()
465 val methods: MutableList<PsiMethodItem> = ArrayList(psiMethods.size) in <lambda>() constant
504 methods.add(method) in <lambda>()
539 for (method in methods) { in <lambda>()
[all …]
DPsiBasedCodebase.kt678 registerMethods(cls.methods(), map) in <lambda>()
683 val methods = methodMap[cls]!! in <lambda>() constant
684 val methodItem = methods[method] in <lambda>()
691 val result = methods[updatedMethod!!] in <lambda>()
694 methods[method] = extra in <lambda>()
695 methods[updatedMethod] = extra in <lambda>()
714 …private fun registerMethods(methods: List<MethodItem>, map: MutableMap<PsiMethod, PsiMethodItem>) { in <lambda>()
715 for (method in methods) { in <lambda>()
/tools/asuite/
Dpylintrc4 # TODO(patricktu@):Remove "too-few-public-methods" when project_info.py ok.
5 too-few-public-methods,
26 # Naming style for methods
37 # Maximum number of public methods for a class (see R0904).
38 max-public-methods=40
/tools/acloud/
Dpylintrc5 too-few-public-methods,
12 # Acloud uses PascalCase for functions/methods except for test methods which use
/tools/metalava/src/test/java/com/android/tools/metalava/model/psi/
DPsiMethodItemTest.kt32 val getter = classItem.methods().single { it.name() == "getBar" } in <lambda>()
33 val setter = classItem.methods().single { it.name() == "setBar" } in <lambda>()
48 val component1 = classItem.methods().single { it.name() == "component1" } in <lambda>()
DPsiModifierItemTest.kt45 val method = inherited.methods().first { it.name().startsWith("method") } in <lambda>()
195 val varArg = facade.methods().single { it.name() == "varArg" }.parameters().single() in <lambda>()
197 facade.methods().single { it.name() == "nonVarArg" }.parameters().single() in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/
DApiLintTest.kt618 fun `No protected methods or fields are allowed`() { in No protected methods or fields are allowed()
836 fun `Ensure registration methods are matched`() { in Ensure registration methods are matched()
892 fun `Api methods should not be synchronized in their signature`() { in Api methods should not be synchronized in their signature()
1277 fun `Check suppress works on inherited methods`() { in Check suppress works on inherited methods()
3573 fun `No nullability allowed on overrides of unannotated methods or parameters`() { in No nullability allowed on overrides of unannotated methods or parameters()
3644 fun `Overrides of non-null methods cannot be nullable`() { in Overrides of non-null methods cannot be nullable()
DApiFileTest.kt1530 fun `Skip inherited package private methods from private parents`() { in Skip inherited package private methods from private parents()
2078 fun `Check instance methods in enums`() { in Check instance methods in enums()
3453 fun `Test inherited hidden methods for descendant classes - Package private`() { in Test inherited hidden methods for descendant classes - Package private()
3512 fun `Test inherited hidden methods for descendant classes - Hidden annotation`() { in Test inherited hidden methods for descendant classes - Hidden annotation()
3573 fun `Test inherited methods that use generics`() { in Test inherited methods that use generics()
DCompatibilityCheckTest.kt1613 fun `Test inherited methods`() { in Test inherited methods()
1868 fun `Partial text file which adds methods to show-annotation API`() { in Partial text file which adds methods to show-annotation API()
2354 fun `Comparing annotations with methods with v1 signature files`() { in Comparing annotations with methods with v1 signature files()
3605 fun `adding methods to interfaces`() { in adding methods to interfaces()
DApiFromTextTest.kt435 fun `Loading a signature file with annotations on classes, fields, methods and parameters`() { in Loading a signature file with annotations on classes, fields, methods and parameters()
732 fun `Suspended methods`() { in Suspended methods()
/tools/dexter/slicer/
Ddex_ir.cc170 static void SortEncodedMethods(std::vector<EncodedMethod*>* methods) { in SortEncodedMethods() argument
171 std::sort(methods->begin(), methods->end(), in SortEncodedMethods()
236 IndexItems(methods, [](const own<MethodDecl>& a, const own<MethodDecl>& b) { in Normalize()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt190 private val methods = mutableListOf<MethodItem>() in <lambda>() constant
195 override fun methods(): List<MethodItem> = methods in <lambda>() method
208 methods += method in <lambda>()
/tools/metalava/
DREADME.md81 methods which were accidentally not included.)
91 annotation class instance methods
182 important methods that should really be part of the API.)
206 1279 out of 46900 methods were annotated (2%)
222 324 methods and fields were missing nullness annotations out of 650 total
309 level concepts like packages, classes and inner classes, methods, fields, and
320 missing in older signature files, such as annotation methods) without having
325 API and for example mark a subset of its methods as included. By having a
342 There are methods to load codebases - from source folders, from a .jar file,
361 `visitItem`, or to specifically visit methods, fields and so on overriding
DFORMAT.md12 and methods until they start appearing), and some were deliberate changes,
222 The old format was completely missing annotation type methods:
229 We need to include annotation member methods, as well as their default values
347 Doclava did not include these methods in the signature files, but they **were**
359 Doclava always inserted two special methods in the signature files for every
372 It didn't do that in stubs, because you can't: those are special methods
/tools/repohooks/tools/
Dpylintrc99 too-few-public-methods,
105 too-many-public-methods,
379 # Minimum number of public methods for a class (see R0903).
380 min-public-methods=2
382 # Maximum number of public methods for a class (see R0904).
383 max-public-methods=20
392 defining-attr-methods=__init__,__new__,setUp
/tools/asuite/atest/test_runners/
Datest_tf_test_runner.py757 methods = set()
759 if not test_filter.methods:
761 methods = set()
763 methods |= test_filter.methods
764 results.add(test_info.TestFilter(class_name, frozenset(methods)))

123