Home
last modified time | relevance | path

Searched refs:classes (Results 1 – 25 of 59) sorted by relevance

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiPackageItem.kt42 private val classes: MutableList<ClassItem> = mutableListOf() constant
44 …override fun topLevelClasses(): Sequence<ClassItem> = classes.toList().asSequence().filter { it.is… in <lambda>()
96 classes.add(cls) in addClass()
121 val initialClasses = ArrayList(classes) in hashCode()
129 while (original < classes.size) { in hashCode()
130 val added = ArrayList(classes.subList(original, classes.size)) in hashCode()
131 original = classes.size in hashCode()
DPsiBasedCodebase.kt188 var classes = (psiFile as? PsiClassOwner)?.classes?.toList() ?: emptyList() in <lambda>() variable
189 if (classes.isEmpty()) { in <lambda>()
191 classes = uFile?.classes?.map { it }?.toList() ?: emptyList() in <lambda>()
194 classes.isEmpty() && psiFile is PsiJavaFile -> { in <lambda>()
223 for (psiClass in classes) { in <lambda>()
251 for ((pkgName, classes) in packageClasses) { in <lambda>() method
259 val sortedClasses = classes.toMutableList().sortedWith(ClassItem.fullNameComparator) in <lambda>()
DPsiTypeItem.kt246 val classes = mutableListOf<ClassItem>() in typeArgumentClasses() constant
254 if (!it.isTypeParameter && !classes.contains(it)) { in typeArgumentClasses()
255 classes.add(it) in typeArgumentClasses()
318 return classes in typeArgumentClasses()
837 …private fun addRealClass(codebase: PsiBasedCodebase, classes: MutableList<ClassItem>, type: PsiTyp… in addRealClass()
839 addRealClass(classes, it) in addRealClass()
843 private fun addRealClass(classes: MutableList<ClassItem>, cls: ClassItem) { in addRealClass()
844 …if (!cls.isTypeParameter && !classes.contains(cls)) { // typically small number of items, don't ne… in addRealClass()
845 classes.add(cls) in addRealClass()
DPsiSourceFileItem.kt170 for (cls in classes().filter { predicate.test(it) }) { in getImportStatements()
212 override fun classes(): Sequence<ClassItem> { in classes() method
213 return (file as? PsiClassOwner)?.classes?.asSequence() in classes()
DPsiClassItem.kt119 val classes = mutableSetOf<PsiClass>() in <lambda>() constant
122 if (curr.isInterface && !classes.contains(curr)) { in <lambda>()
123 classes.add(curr) in <lambda>()
125 addInterfaces(classes, curr.interfaces) in <lambda>()
129 for (cls in classes) { in <lambda>()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextPackageItem.kt32 private val classes = ArrayList<TextClassItem>(100) constant
43 classes.add(classInfo) in name()
48 val iterator = classes.listIterator() in pruneClassList()
57 internal fun classList(): List<ClassItem> = classes in classList()
59 override fun topLevelClasses(): Sequence<ClassItem> = classes.asSequence() in classList()
DTextCodebase.kt188 val classes = ArrayList(pkg.classList()) in resolveInnerClasses() constant
189 for (cls in classes) { in resolveInnerClasses()
260 val classes = mAllClasses.values.toList() in postProcess() constant
262 resolveSuperclasses(classes) in postProcess()
263 resolveInterfaces(classes) in postProcess()
264 resolveThrowsClasses(classes) in postProcess()
/tools/dexter/slicer/
Ddex_ir.cc142 SLICER_CHECK_LT(*nextIndex, classes.size()); in TopSortClassIndex()
150 for (auto& irClass : classes) { in SortClassIndexes()
155 for (auto& irClass : classes) { in SortClassIndexes()
257 IndexItems(classes, [&](const own<Class>& a, const own<Class>& b) { in Normalize()
258 SLICER_CHECK_LT(a->index, classes.size()); in Normalize()
259 SLICER_CHECK_LT(b->index, classes.size()); in Normalize()
265 for (const auto& irClass : classes) { in Normalize()
Dwriter.cc267 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
523 const auto& classes = dex_ir_->classes; in CreateClassDataSection() local
524 for (size_t i = 0; i < classes.size(); ++i) { in CreateClassDataSection()
525 auto ir_class = classes[i].get(); in CreateClassDataSection()
538 const auto& classes = dex_ir_->classes; in CreateAnnDirectoriesSection() local
539 for (size_t i = 0; i < classes.size(); ++i) { in CreateAnnDirectoriesSection()
540 auto ir_class = classes[i].get(); in CreateAnnDirectoriesSection()
552 const auto& classes = dex_ir_->classes; in CreateEncodedArrayItemSection() local
553 for (size_t i = 0; i < classes.size(); ++i) { in CreateEncodedArrayItemSection()
554 auto ir_class = classes[i].get(); in CreateEncodedArrayItemSection()
[all …]
/tools/platform-compat/javatest/com/android/annotationvisitor/
DRepeatedAnnotationHandlerTest.java81 private final List<String> classes; field in RepeatedAnnotationHandlerTest.TestAnnotationHandler
84 this.classes = new ArrayList<>(); in TestAnnotationHandler()
90 classes.add(annotation.getElementValuePairs()[0].getValue().stringifyValue()); in handleAnnotation()
94 return classes; in getClasses()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DSourceFileItem.kt26 fun classes(): Sequence<ClassItem> in classes() method
44 classes().forEach { it.accept(visitor) } in classes()
53 classes().forEach { it.acceptTypes(visitor) } in acceptTypes()
DMethodItem.kt121 classes: LinkedHashSet<ClassItem> in <lambda>()
126 classes.add(cls) in <lambda>()
132 classes.add(curr) in <lambda>()
139 return classes in <lambda>()
/tools/asuite/atest/docs/
Datest_structure.md51 Read on to learn more about the classes mentioned.
62 * ```test_finders/``` - Location of test finder classes. More details on test
68 * ```test_runners/``` - Location of test runner classes. More details on test
75 Test finders are classes that host find methods. The find methods are called by
86 Test Runners are classes that execute the tests. They consume a ```TestInfo```
/tools/dexter/dexter/
Ddexter.cc212 printf(" classes : %zu\n", dex_ir->classes.size()); in PrintDexIrStats()
250 auto classes = reader.ClassDefs(); in ListClasses() local
252 for (dex::u4 i = 0; i < classes.size(); ++i) { in ListClasses()
253 auto typeId = types[classes[i].class_idx]; in ListClasses()
/tools/metalava/src/test/java/com/android/tools/metalava/
DCompatibilityCheckTest.kt488 fun `Implicit modifiers from inherited super classes`() { in Implicit modifiers from inherited super classes()
1406 fun `Adding classes, interfaces and packages, and removing these`() { in Adding classes, interfaces and packages, and removing these()
1710 fun `Partial text file which references inner classes not listed elsewhere`() { in Partial text file which references inner classes not listed elsewhere()
3482 fun `Changing static qualifier on inner classes with no public constructors`() { in Changing static qualifier on inner classes with no public constructors()
3723 fun `Allow increased field access for classes`() { in Allow increased field access for classes()
3747 fun `Block decreased field access in classes`() { in Block decreased field access in classes()
DApiFileTest.kt1876 fun `Package with only hidden classes should be removed from signature files`() { in Package with only hidden classes should be removed from signature files()
2174 fun `Inheriting from package private classes, package private class should be included`() { in Inheriting from package private classes, package private class should be included()
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()
/tools/trebuchet/trebuchet/startup-analyzer/
DREADME.md135 … /data/dalvik-cache/arm/system@framework@org.apache.http.legacy.impl.jar@classes.dex @ 0.028 ms
137 … /data/dalvik-cache/arm/system@framework@com.google.android.maps.jar@classes.dex @ 0.026 ms
139 …vik-cache/arm/data@app@com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==@base.apk@classes.dex @ 0.026 ms
141 …ata@app@com.facebook.katana-Hu0CRasfgvX30RlV_mJxBA==@split_codegenerator.apk@classes.dex @ 0.017 ms
/tools/metalava/src/test/java/com/android/tools/metalava/stub/
DStubsTest.kt1041 fun `Handle non-constant fields in final classes`() { in <lambda>()
1173 fun `Check generating classes with generics`() { in <lambda>()
1715 fun `Check generating required stubs from hidden super classes and interfaces`() { in <lambda>()
2248 fun `Rewriting type parameters in interfaces from hidden super classes and in throws lists`() { in <lambda>()
3921 fun `Include package private classes referenced from public API`() { in <lambda>()
4032 fun `Include hidden inner classes referenced from public API`() { in <lambda>()
/tools/apksig/
DREADME.md35 _NOTE: Some public classes of the library are in packages having the word "internal" in their name.
36 These are not public API of the library. Do not use \*.internal.\* classes directly because these
37 classes may change any time without regard to existing clients outside of `apksig` and `apksigner`._
/tools/repohooks/tools/
Dpylintrc84 # --enable=similarities". If you want to run only the classes checker, but have
85 # no Warning level messages displayed, use"--disable=all --enable=classes
168 # List of classes names for which member attributes should not be checked
169 # (useful for classes with attributes dynamically set). This supports can work
171 ignored-classes=hashlib,numpy
341 # Minimum line length for functions/classes that require docstrings, shorter
/tools/metalava/
DFORMAT.md11 due to bugs getting fixed, such as type parameters missing from classes
155 referred to as classes that extend java.lang.Enum, or java.lang.Annotation etc.
418 classes. The classes are listed by fully qualified name, but in v1 it was sorted
436 referencing annotation classes that are generally **not** part of the API. When
463 In Java files, you can implicitly reference classes in java.lang without
465 classes from java.lang that are used in lots of places in the signature file
DREADME.md166 (e.g. you can change a parameter from non null to nullable for final classes,
179 anyway since it packages package private classes. Metalava strictly applies
218 ... --annotation-coverage-of ~/plaid/app/build/intermediates/classes/debug
285 typedefs (@IntDef and @StringDef classes) in the source code. Prior to this
309 level concepts like packages, classes and inner classes, methods, fields, and
339 The "Codebase" class captures a complete API snapshot (including classes that
/tools/test/connectivity/acts/
DREADME.md41 3. Sequentially execute test classes
129 Test classes are instantiated with a dictionary of “controllers”. The
133 Test classes must also contain an iterable member self.tests that lists the
/tools/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt107 val classes = in <lambda>() constant
112 validateAll(codebase, classes) in <lambda>()
DSdkFileWriter.kt66 val classes = codebase.getPackages().allClasses() in generate() constant
72 for (clazz in classes) { in generate()

123