Home
last modified time | relevance | path

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

123

/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiPackageItem.kt37 private val classes: MutableList<PsiClassItem> = mutableListOf() constant
39 …override fun topLevelClasses(): Sequence<ClassItem> = classes.asSequence().filter { it.isTopLevelC… in <lambda>()
91 classes.add(cls) in addClass()
116 val initialClasses = ArrayList(classes) in hashCode()
124 while (original < classes.size) { in hashCode()
125 val added = ArrayList(classes.subList(original, classes.size)) in hashCode()
126 original = classes.size in hashCode()
DPsiBasedCodebase.kt134 var classes = (unit as? PsiClassOwner)?.classes?.toList() ?: emptyList() in <lambda>() variable
135 if (classes.isEmpty()) { in <lambda>()
138 classes = uFile?.classes?.map { it }?.toList() ?: emptyList() in <lambda>()
141 if (classes.isEmpty() && unit is PsiJavaFile) { in <lambda>()
166 for (psiClass in classes) { in <lambda>()
178 for ((pkgName, classes) in packageClasses) { in <lambda>() constant
186 val sortedClasses = classes.toMutableList().sortedWith(ClassItem.fullNameComparator) in <lambda>()
DPsiTypeItem.kt247 val classes = mutableListOf<ClassItem>() in typeArgumentClasses() constant
255 if (!it.isTypeParameter && !classes.contains(it)) { in typeArgumentClasses()
256 classes.add(it) in typeArgumentClasses()
319 return classes in typeArgumentClasses()
805 …private fun addRealClass(codebase: PsiBasedCodebase, classes: MutableList<ClassItem>, type: PsiTyp… in addRealClass()
807 addRealClass(classes, it) in addRealClass()
811 private fun addRealClass(classes: MutableList<ClassItem>, cls: ClassItem) { in addRealClass()
812 …if (!cls.isTypeParameter && !classes.contains(cls)) { // typically small number of items, don't ne… in addRealClass()
813 classes.add(cls) in addRealClass()
DPsiCompilationUnit.kt148 for (cls in classes(predicate)) { in getImportStatements()
186 private fun classes(predicate: Predicate<Item>): List<ClassItem> { in classes() method
189 for (psiClass in file.classes) { in classes()
DPsiClassItem.kt109 val classes = mutableSetOf<PsiClass>() in <lambda>() constant
112 if (curr.isInterface && !classes.contains(curr)) { in <lambda>()
113 classes.add(curr) in <lambda>()
115 addInterfaces(classes, curr.interfaces) in <lambda>()
119 for (cls in classes) { in <lambda>()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DHostTest.java500 List<Class<?>> classes = getClasses(); in run() local
502 if (classes.isEmpty()) { in run()
506 if (mMethodName != null && classes.size() > 1) { in run()
703 Set<Class<?>> classes = new HashSet<>(); in collectClasses() local
706 classes.addAll(getClassesFromSuite(testObj)); in collectClasses()
708 classes.add(classObj); in collectClasses()
710 return classes; in collectClasses()
714 Set<Class<?>> classes = new HashSet<>(); in getClassesFromSuite() local
719 classes.addAll(getClassesFromSuite((TestSuite) test)); in getClassesFromSuite()
721 classes.addAll(collectClasses(test.getClass())); in getClassesFromSuite()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextPackageItem.kt34 private val classes = ArrayList<TextClassItem>(100) constant
39 classes.add(classInfo) in name()
43 val iterator = classes.listIterator() in pruneClassList()
52 internal fun classList(): List<ClassItem> = classes in classList()
54 override fun topLevelClasses(): Sequence<ClassItem> = classes.asSequence() in classList()
/tools/dexter/slicer/
Ddex_ir.cc143 SLICER_CHECK(*nextIndex < classes.size()); in TopSortClassIndex()
151 for (auto& irClass : classes) { in SortClassIndexes()
156 for (auto& irClass : classes) { in SortClassIndexes()
258 IndexItems(classes, [&](const own<Class>& a, const own<Class>& b) { in Normalize()
259 SLICER_CHECK(a->index < classes.size()); in Normalize()
260 SLICER_CHECK(b->index < classes.size()); in Normalize()
266 for (const auto& irClass : classes) { in Normalize()
Dwriter.cc260 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
516 const auto& classes = dex_ir_->classes; in CreateClassDataSection() local
517 for (size_t i = 0; i < classes.size(); ++i) { in CreateClassDataSection()
518 auto ir_class = classes[i].get(); in CreateClassDataSection()
531 const auto& classes = dex_ir_->classes; in CreateAnnDirectoriesSection() local
532 for (size_t i = 0; i < classes.size(); ++i) { in CreateAnnDirectoriesSection()
533 auto ir_class = classes[i].get(); in CreateAnnDirectoriesSection()
545 const auto& classes = dex_ir_->classes; in CreateEncodedArrayItemSection() local
546 for (size_t i = 0; i < classes.size(); ++i) { in CreateEncodedArrayItemSection()
547 auto ir_class = classes[i].get(); in CreateEncodedArrayItemSection()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/doclava1/
DTextCodebase.kt195 val classes = ArrayList(pkg.classList()) in resolveInnerClasses() constant
196 for (cls in classes) { in resolveInnerClasses()
267 val classes = mAllClasses.values.toList() in postProcess() constant
269 resolveSuperclasses(classes) in postProcess()
270 resolveInterfaces(classes) in postProcess()
271 resolveThrowsClasses(classes) in postProcess()
/tools/tradefederation/contrib/src/com/android/framework/tests/
DPreloadedClassesTest.java141 File classes = writePreloadedClasses(threshold); in run() local
142 if (classes != null) { in run()
143 try (FileInputStreamSource stream = new FileInputStreamSource(classes)) { in run()
148 FileUtil.deleteFile(classes); in run()
/tools/metalava/src/test/java/com/android/tools/metalava/
DStubsTest.kt953 fun `Handle non-constant fields in final classes`() { in <lambda>()
1150 fun `Check generating classes with generics`() { in <lambda>()
1758 fun `Check generating required stubs from hidden super classes and interfaces`() { in <lambda>()
2087 fun `Rewriting type parameters in interfaces from hidden super classes and in throws lists`() { in <lambda>()
3762 fun `Include package private classes referenced from public API`() { in <lambda>()
3882 fun `Include hidden inner classes referenced from public API`() { in <lambda>()
DApiFileTest.kt1699 fun `Package with only hidden classes should be removed from signature files`() { in Package with only hidden classes should be removed from signature files()
2033 fun `Superclass filtering, should skip intermediate hidden classes`() { in Superclass filtering, should skip intermediate hidden classes()
2096 fun `Inheriting from package private classes, package private class should be included`() { in Inheriting from package private classes, package private class should be included()
DCompatibilityCheckTest.kt535 fun `Implicit modifiers from inherited super classes`() { in Implicit modifiers from inherited super classes()
1425 fun `Adding classes, interfaces and packages, and removing these`() { in Adding classes, interfaces and packages, and removing these()
1737 fun `Partial text file which references inner classes not listed elsewhere`() { in Partial text file which references inner classes not listed elsewhere()
/tools/tradefederation/core/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.cc210 printf(" classes : %zu\n", dex_ir->classes.size()); in PrintDexIrStats()
248 auto classes = reader.ClassDefs(); in ListClasses() local
250 for (dex::u4 i = 0; i < classes.size(); ++i) { in ListClasses()
251 auto typeId = types[classes[i].class_idx]; in ListClasses()
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DMethodItem.kt113 classes: LinkedHashSet<ClassItem> in <lambda>()
118 classes.add(cls) in <lambda>()
124 classes.add(curr) in <lambda>()
131 return classes in <lambda>()
/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/main/java/com/android/tools/metalava/
DAnnotationStatistics.kt217 val classes = classCount.keys.sortedWith(Comparator { o1, o2 -> in <lambda>() constant
226 printClassTable(classes, classCount) in <lambda>()
272 private fun printClassTable(classes: List<Item>, classCount: MutableMap<Item, Int>) { in <lambda>()
288 classes, in <lambda>()
DNullabilityAnnotationsValidator.kt108 val classes = in <lambda>() constant
113 validateAll(codebase, classes) 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/
Dpylintrc76 # --enable=similarities". If you want to run only the classes checker, but have
77 # no Warning level messages displayed, use"--disable=all --enable=classes
154 # List of classes names for which member attributes should not be checked
155 # (useful for classes with attributes dynamically set). This supports can work
157 ignored-classes=hashlib,numpy
327 # 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
464 In Java files, you can implicitly reference classes in java.lang without
466 classes from java.lang that are used in lots of places in the signature file
DREADME.md162 (e.g. you can change a parameter from non null to nullable for final classes,
175 anyway since it packages package private classes. Metalava strictly applies
214 ... --annotation-coverage-of ~/plaid/app/build/intermediates/classes/debug
281 typedefs (@IntDef and @StringDef classes) in the source code. Prior to this
305 level concepts like packages, classes and inner classes, methods, fields, and
335 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

123