Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/
DApiLint.kt226 val methods = cls.filteredMethods(filterReference).asSequence() in <lambda>() constant
231 val allMethods = methods.asSequence() + constructors.asSequence() in <lambda>()
233 cls, methods, constructors, allMethods, fields, superClass, interfaces, in <lambda>()
273 methods: Sequence<MethodItem>, in <lambda>()
281 checkEquals(methods) in <lambda>()
285 checkListeners(cls, methods) in <lambda>()
286 checkParcelable(cls, methods, constructors, fields) in <lambda>()
287 checkRegistrationMethods(cls, methods) in <lambda>()
288 checkHelperClasses(cls, methods, fields) in <lambda>()
289 checkBuilder(cls, methods, constructors, superClass) in <lambda>()
[all …]
DApiAnalyzer.kt340 for (method in interfaceClass.methods()) { in <lambda>()
354 for (method in superClass.methods()) { in <lambda>()
388 for (method in superClass.methods()) { in <lambda>()
414 for (method in superClass.methods()) { in <lambda>()
439 for (method in cls.methods()) { in <lambda>()
453 map.values.forEach { methods -> in <lambda>() method
454 if (methods.size >= 2) { in <lambda>()
455 for (candidate in ArrayList(methods)) { in <lambda>()
457 methods.remove(superMethod) in <lambda>()
464 for (method in cls.methods()) { in <lambda>()
[all …]
/tools/asuite/atest/test_finders/
Dmodule_finder.py280 def _get_test_info_filter(self, path, methods, **kwargs): argument
300 kwargs.get('class_name', '*'), methods), frozenset())])
310 for method in methods:
312 methods = frozenset(update_methods)
314 [test_info.TestFilter(full_class_name, methods)])
333 test_finder_utils.get_cc_filter(file_class, methods),
339 [test_info.TestFilter(kwargs.get('class_name', None), methods)])
350 if methods:
353 % str(methods))
355 [test_info.TestFilter(package_name, methods)])
[all …]
Dtest_finder_utils.py270 def has_method_in_file(test_path, methods): argument
286 _methods = set(re.sub(r'\[\S+\]', '', x) for x in methods)
308 methods)[0], methods)
314 _methods = set(re.sub(r'\/.*', '', x) for x in methods)
321 def extract_test_path(output, methods=None): argument
344 if not methods or match_obj.group('method_name') in methods:
347 elif not methods or has_method_in_file(test, methods):
458 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
506 return extract_test_path(out, methods)
509 def find_class_file(search_dir, class_name, is_native_test=False, methods=None): argument
[all …]
Dtf_integration_finder.py292 class_name, methods = test_finder_utils.split_methods(class_name)
295 test_filters.append(test_info.TestFilter(class_name, methods))
309 class_name, methods))
/tools/asuite/atest-py2/test_finders/
Dmodule_finder.py221 def _get_test_info_filter(self, path, methods, **kwargs): argument
241 kwargs.get('class_name', '*'), methods), frozenset())])
247 [test_info.TestFilter(full_class_name, methods)])
253 if methods:
256 kwargs.get('class_name', '*'), methods), frozenset())])
267 if methods:
270 % str(methods))
272 [test_info.TestFilter(package_name, methods)])
370 class_name, methods = test_finder_utils.split_methods(class_name)
375 [test_info.TestFilter(class_name, methods)])
[all …]
Dtest_finder_utils.py226 def has_method_in_file(test_path, methods): argument
244 '|'.join([r'%s' % x for x in methods])))
247 '|'.join([r'%s' % x for x in methods])))
257 def extract_test_path(output, methods=None): argument
281 if not methods or match_obj.group('method_name') in methods:
399 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
442 return extract_test_path(out, methods)
445 def find_class_file(search_dir, class_name, is_native_test=False, methods=None): argument
464 return run_find_cmd(ref_type, search_dir, class_name, methods)
828 def get_cc_filter(class_name, methods): argument
[all …]
Dtf_integration_finder.py202 class_name, methods = test_finder_utils.split_methods(class_name)
205 test_filters.append(test_info.TestFilter(class_name, methods))
219 class_name, methods))
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt169 fun methods(): List<MethodItem> in <lambda>() method
179 return fields().asSequence().plus(constructors().asSequence()).plus(methods().asSequence()) in <lambda>()
261 for (method in methods()) { in <lambda>()
345 for (method in methods()) { in <lambda>()
403 methods().asSequence() in <lambda>()
448 methods().asSequence() in <lambda>()
503 methods() in <lambda>()
584 val methods = LinkedHashSet<MethodItem>() in <lambda>() constant
585 for (method in methods()) { in <lambda>()
589 methods.remove(method) in <lambda>()
[all …]
/tools/asuite/atest-py2/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/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.kt152 private lateinit var methods: List<PsiMethodItem> in <lambda>() variable
166 override fun methods(): List<PsiMethodItem> = methods in <lambda>() method
219 for (method in methods) { in <lambda>()
282 methods: List<PsiMethodItem>, in <lambda>()
288 this.methods = methods in <lambda>()
371 (methods as MutableList<PsiMethodItem>).add(method as PsiMethodItem) in <lambda>()
442 val psiMethods = psiClass.methods in <lambda>()
443 val methods: MutableList<PsiMethodItem> = ArrayList(psiMethods.size) in <lambda>() constant
454 methods.add(PsiConstructorItem.create(codebase, item, psiMethod)) in <lambda>()
495 methods.add(method) in <lambda>()
[all …]
DPsiBasedCodebase.kt633 registerMethods(cls.methods(), map) in <lambda>()
638 val methods = methodMap[cls]!! in <lambda>() constant
639 val methodItem = methods[method] in <lambda>()
646 val result = methods[updatedMethod!!] in <lambda>()
649 methods[method] = extra in <lambda>()
650 methods[updatedMethod] = extra in <lambda>()
669 …private fun registerMethods(methods: List<MethodItem>, map: MutableMap<PsiMethod, PsiMethodItem>) { in <lambda>()
670 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,
37 # Maximum number of public methods for a class (see R0904).
38 max-public-methods=40
/tools/asuite/atest-py2/test_runners/
Datest_tf_test_runner.py577 methods = set()
579 if not test_filter.methods:
581 methods = set()
583 methods |= test_filter.methods
584 results.add(test_info.TestFilter(class_name, frozenset(methods)))
/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/
DApiFileTest.kt1534 fun `Do not include inherited public methods from private parents in compat mode`() { in Do not include inherited public methods from private parents in compat mode()
1567 fun `Include inherited public methods from private parents`() { in Include inherited public methods from private parents()
1603 fun `Skip inherited package private methods from private parents`() { in Skip inherited package private methods from private parents()
2271 fun `Check instance methods in enums`() { in Check instance methods in enums()
3729 fun `Test inherited hidden methods for descendant classes - Package private`() { in Test inherited hidden methods for descendant classes - Package private()
3789 fun `Test inherited hidden methods for descendant classes - Hidden annotation`() { in Test inherited hidden methods for descendant classes - Hidden annotation()
3851 fun `Test inherited methods that use generics`() { in Test inherited methods that use generics()
DApiLintTest.kt622 fun `No protected methods or fields are allowed`() { in No protected methods or fields are allowed()
845 fun `Ensure registration methods are matched`() { in Ensure registration methods are matched()
902 fun `Api methods should not be synchronized in their signature`() { in Api methods should not be synchronized in their signature()
1291 fun `Check suppress works on inherited methods`() { in Check suppress works on inherited methods()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextClassItem.kt188 private val methods = mutableListOf<MethodItem>() constant
193 override fun methods(): List<MethodItem> = methods in constructors() method
206 methods += method in addMethod()
/tools/dexter/slicer/
Ddex_ir.cc171 static void SortEncodedMethods(std::vector<EncodedMethod*>* methods) { in SortEncodedMethods() argument
172 std::sort(methods->begin(), methods->end(), in SortEncodedMethods()
237 IndexItems(methods, [](const own<MethodDecl>& a, const own<MethodDecl>& b) { in Normalize()
/tools/asuite/atest/test_runners/
Datest_tf_test_runner.py807 methods = set()
809 if not test_filter.methods:
811 methods = set()
813 methods |= test_filter.methods
814 results.add(test_info.TestFilter(class_name, frozenset(methods)))
/tools/metalava/
DREADME.md80 methods which were accidentally not included.)
90 annotation class instance methods
181 important methods that should really be part of the API.)
205 1279 out of 46900 methods were annotated (2%)
221 324 methods and fields were missing nullness annotations out of 650 total
308 level concepts like packages, classes and inner classes, methods, fields, and
319 missing in older signature files, such as annotation methods) without having
324 API and for example mark a subset of its methods as included. By having a
341 There are methods to load codebases - from source folders, from a .jar file,
360 `visitItem`, or to specifically visit methods, fields and so on overriding
/tools/repohooks/tools/
Dpylintrc160 too-few-public-methods,
166 too-many-public-methods,
440 # Minimum number of public methods for a class (see R0903).
441 min-public-methods=2
443 # Maximum number of public methods for a class (see R0904).
444 max-public-methods=20
453 defining-attr-methods=__init__,__new__,setUp

123