/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiLint.kt | 252 override fun visitClass(cls: ClassItem) { in <lambda>() 253 val methods = cls.filteredMethods(filterReference).asSequence() in <lambda>() 254 val fields = cls.filteredFields(filterReference, showUnannotated).asSequence() in <lambda>() 255 val constructors = cls.filteredConstructors(filterReference) in <lambda>() 256 val superClass = cls.filteredSuperclass(filterReference) in <lambda>() 257 val interfaces = cls.filteredInterfaceTypes(filterReference).asSequence() in <lambda>() 260 cls, methods, constructors, allMethods, fields, superClass, interfaces, in <lambda>() 298 cls: ClassItem, in <lambda>() 308 checkEnums(cls) in <lambda>() 309 checkClassNames(cls) in <lambda>() [all …]
|
D | ApiAnalyzer.kt | 97 allClasses.forEach { cls -> in <lambda>() method 98 cls.superClass()?.tag = true in <lambda>() 132 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>() 166 … if (cls.tag || !cls.isClass()) { // Don't add constructors to interfaces, enums, annotations, etc in <lambda>() 172 val superClass = cls.filteredSuperclass(filter) in <lambda>() 174 cls.tag = true in <lambda>() 179 val constructors = cls.constructors() in <lambda>() 184 superConstructor.containingClass() != cls) in <lambda>() 193 val allConstructors = cls.constructors() in <lambda>() 197 val constructors = cls.filteredConstructors(filter).toList() in <lambda>() [all …]
|
D | SignatureWriter.kt | 137 override fun visitClass(cls: ClassItem) { in <lambda>() 140 writeModifiers(cls) in <lambda>() 142 if (cls.isAnnotationType()) { in <lambda>() 153 } else if (cls.isInterface()) { in <lambda>() 155 …} else if (!compatibility.classForEnums && cls.isEnum()) { // compat mode calls enums "class" inst… in <lambda>() 161 writer.print(cls.fullName()) in <lambda>() 162 writeTypeParameterList(cls.typeParameterList(), addSpace = false) in <lambda>() 163 writeSuperClassStatement(cls) in <lambda>() 164 writeInterfaceList(cls) in <lambda>() 169 override fun afterVisitClass(cls: ClassItem) { in <lambda>() [all …]
|
D | JDiffXmlWriter.kt | 88 override fun visitClass(cls: ClassItem) { in <lambda>() 91 if (cls.isInterface()) { in <lambda>() 97 writer.print(cls.fullName()) in <lambda>() 102 writeSuperClassAttribute(cls) in <lambda>() 104 val modifiers = cls.modifiers in <lambda>() 112 writer.print(deprecation(cls)) in <lambda>() 117 writeInterfaceList(cls) in <lambda>() 119 if (cls.isEnum() && compatibility.defaultEnumMethods) { in <lambda>() 158 override fun afterVisitClass(cls: ClassItem) { in <lambda>() 160 if (cls.isInterface()) { in <lambda>() [all …]
|
D | DocAnalyzer.kt | 84 override fun visitClass(cls: ClassItem) { in <lambda>() 85 cls.artifact?.let { in <lambda>() 86 cls.appendDocumentation(it, "@artifactId") in <lambda>() 563 val cls = annotation.resolve() ?: return in <lambda>() constant 565 val documentation = cls.findTagDocumentation(tag) in <lambda>() 579 val qualified = cls.fullyQualifiedDocumentation(original) in <lambda>() 734 override fun visitClass(cls: ClassItem) { in <lambda>() 735 val psiClass = cls.psi() as PsiClass in <lambda>() 738 addApiLevelDocumentation(since, cls) in <lambda>() 741 val pkg = cls.containingPackage() in <lambda>() [all …]
|
D | ArtifactTagger.kt | 80 override fun visitClass(cls: ClassItem) { in any() 81 if (cls.artifact == null && cls.isTopLevelClass()) { in any() 83 Issues.NO_ARTIFACT_DATA, cls, in any() 102 for (cls in pkg.allClasses()) { in applyArtifactsFromSpec() constant 103 if (!cls.emit) { in applyArtifactsFromSpec() 106 if (cls.artifact == null) { in applyArtifactsFromSpec() 107 cls.artifact = mavenSpec in applyArtifactsFromSpec() 110 Issues.BROKEN_ARTIFACT_FILE, cls, in applyArtifactsFromSpec()
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | JavaStubWriter.kt | 46 override fun visitClass(cls: ClassItem) { in <lambda>() 47 if (cls.isTopLevelClass()) { in <lambda>() 48 val qualifiedName = cls.containingPackage().qualifiedName() in <lambda>() 57 val compilationUnit = cls.getCompilationUnit() in <lambda>() 77 appendDocumentation(cls, writer, docStubs) in <lambda>() 84 val removeAbstract = cls.modifiers.isAbstract() && (cls.isEnum() || cls.isAnnotationType()) in <lambda>() 86 appendModifiers(cls, removeAbstract) in <lambda>() 89 cls.isAnnotationType() -> writer.print("@interface") in <lambda>() 90 cls.isInterface() -> writer.print("interface") in <lambda>() 91 cls.isEnum() -> writer.print("enum") in <lambda>() [all …]
|
D | KotlinStubWriter.kt | 44 override fun visitClass(cls: ClassItem) { in <lambda>() 45 if (cls.isTopLevelClass()) { in <lambda>() 46 val qualifiedName = cls.containingPackage().qualifiedName() in <lambda>() 51 val compilationUnit = cls.getCompilationUnit() in <lambda>() 66 appendDocumentation(cls, writer, docStubs) in <lambda>() 72 val removeAbstract = cls.modifiers.isAbstract() && (cls.isEnum() || cls.isAnnotationType()) in <lambda>() 74 appendModifiers(cls, cls.modifiers, removeAbstract) in <lambda>() 77 cls.isAnnotationType() -> writer.print("annotation class") in <lambda>() 78 cls.isInterface() -> writer.print("interface") in <lambda>() 79 cls.isEnum() -> writer.print("enum class") in <lambda>() [all …]
|
D | StubWriter.kt | 180 override fun visitClass(cls: ClassItem) { in <lambda>() 181 if (cls.isTopLevelClass()) { in <lambda>() 182 val sourceFile = getClassFile(cls) in <lambda>() 192 stubWriter = if (options.kotlinStubs && cls.isKotlin()) { in <lambda>() 199 val compilationUnit = cls.getCompilationUnit() in <lambda>() 202 stubWriter?.visitClass(cls) in <lambda>() 205 override fun afterVisitClass(cls: ClassItem) { in <lambda>() 206 stubWriter?.afterVisitClass(cls) in <lambda>() 208 if (cls.isTopLevelClass()) { in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | ClassItem.kt | 136 val cls = it.asClass() in <lambda>() constant 137 if (cls != null && cls.implements(qualifiedName)) { in <lambda>() 288 for (cls in innerClasses()) { in <lambda>() method 289 cls.accept(visitor) in <lambda>() 297 for (cls in innerClasses()) { in <lambda>() method 298 cls.accept(visitor) in <lambda>() 348 for (cls in innerClasses()) { in <lambda>() method 349 cls.acceptTypes(visitor) in <lambda>() 357 fun findRetention(cls: ClassItem): AnnotationRetention { in <lambda>() 358 val modifiers = cls.modifiers in <lambda>() [all …]
|
D | Codebase.kt | 146 … getPackages().packages.forEach { pkg -> pkg.allClasses().forEach { cls -> cls.tag = false } } in <lambda>() method 177 val cls = findClass(className) in <lambda>() constant 178 return if (cls != null && apiFilter.test(cls)) { in <lambda>() 179 cls in <lambda>() 190 val cls = findClassByOwner(node.owner, apiFilter) ?: return null in <lambda>() constant 204 val methodName = if (node.name == "<init>") cls.simpleName() else node.name in <lambda>() 205 val method = cls.findMethod(methodName, parameters) in <lambda>() 214 val cls = findClass(classNode, apiFilter) ?: return null in <lambda>() constant 228 val methodName = if (node.name == "<init>") cls.simpleName() else node.name in <lambda>() 229 val method = cls.findMethod(methodName, parameters) in <lambda>() [all …]
|
D | AnnotationItem.kt | 147 … val cls = codebase.findClass(name) ?: (codebase as? PsiBasedCodebase)?.findOrCreateClass(name) constant 148 if (cls != null) { 149 if (cls.isAnnotationType()) { 150 return cls.getRetention() 316 val cls = codebase.findClass(qualifiedName) in mapName() constant 317 if (cls != null && filter.test(cls)) { in mapName() 376 val cls = codebase.findClass(qualifiedName) in mapName() constant 377 if (cls != null && filter.test(cls)) { in mapName() 515 val cls = classFinder(qualifiedName) ?: return NO_ANNOTATION_TARGETS in nullableAnnotationName() constant 516 if (!ApiPredicate().test(cls)) { in nullableAnnotationName() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | base_test_actions.py | 72 def _fill_default_action_map(cls): argument 75 cls._action_map = dict() 76 for name, _ in inspect.getmembers(cls, inspect.ismethod): 77 act_name = cls._convert_default_action_name(name) 79 cls._action_map[act_name] = name 82 def _convert_default_action_name(cls, func_name): argument 94 def _add_action_alias(cls, default_act_name, alias): argument 96 if default_act_name in cls._action_map: 97 cls._action_map[alias] = cls._action_map[default_act_name] 103 def _get_action_names(cls): argument [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiBasedCodebase.kt | 224 for (cls in initialPackages) { in <lambda>() variable 225 cls.finishInitialization() in <lambda>() 417 private fun registerPackageClass(packageName: String, cls: PsiClassItem) { in <lambda>() 424 list.add(cls) in <lambda>() 576 val cls = psiType.resolve() ?: return null in <lambda>() constant 577 return findOrCreateClass(cls) in <lambda>() 585 val cls = componentType.resolve() ?: return null in <lambda>() constant 586 return findOrCreateClass(cls) in <lambda>() 592 … fun getClassType(cls: PsiClass): PsiClassType = getFactory().createType(cls, PsiSubstitutor.EMPTY) in <lambda>() 629 val cls = findOrCreateClass(containingClass!!) in <lambda>() constant [all …]
|
D | PsiPackageItem.kt | 75 fun addClass(cls: PsiClassItem) { in addClass() 76 if (!cls.isTopLevelClass()) { in addClass() 92 classes.add(cls) in addClass() 93 cls.containingPackage = this in addClass() 97 for (cls in classList) { in addClasses() method 98 addClass(cls) in addClasses() 119 for (cls in initialClasses) { in hashCode() variable 120 cls.finishInitialization() in hashCode() 128 for (cls in added) { in hashCode() constant 129 cls.finishInitialization() in hashCode()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | Resources.java | 45 public static byte[] toByteArray(Class<?> cls, String resourceName) throws IOException { in toByteArray() argument 46 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toByteArray() 54 public static InputStream toInputStream(Class<?> cls, String resourceName) throws IOException { in toInputStream() argument 55 InputStream in = cls.getResourceAsStream(resourceName); in toInputStream() 63 Class <?> cls, String resourceName) throws IOException, CertificateException { in toCertificate() argument 64 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toCertificate() 73 Class <?> cls, String resourceName) throws IOException, CertificateException { in toCertificateChain() argument 75 try (InputStream in = cls.getResourceAsStream(resourceName)) { in toCertificateChain() 88 public static PrivateKey toPrivateKey(Class <?> cls, String resourceName) in toPrivateKey() argument 96 return toPrivateKey(cls, resourceName, keyAlgorithm); in toPrivateKey() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextCodebase.kt | 188 for (cls in classes) { in resolveInnerClasses() constant 189 val cl = cls as TextClassItem in resolveInnerClasses() 210 fun registerClass(cls: TextClassItem) { in registerClass() 211 mAllClasses[cls.qualifiedName] = cls in registerClass() 216 val cls = mAllClasses[erased] in getOrCreateClass() constant 217 if (cls != null) { in getOrCreateClass() 218 return cls in getOrCreateClass() 354 val cls = getOrAddClass(new.containingClass()) in computeDelta() constant 355 cls.addConstructor(new as TextConstructorItem) in computeDelta() 359 val cls = getOrAddClass(new.containingClass()) in computeDelta() constant [all …]
|
/tools/tradefederation/core/atest/metrics/ |
D | metrics_base.py | 101 def __new__(cls, **kwargs): argument 112 if not cls.tool_name: 115 allowed = ({constants.EXTERNAL} if cls._user_type == EXTERNAL_USER 117 fields = [k for k, v in vars(cls).items() 123 params = {'user_key': cls._user_key, 124 'run_id': cls._run_id, 125 'user_type': cls._user_type, 126 'tool_name': cls.tool_name, 127 cls._EVENT_NAME: fields_and_values} 128 log_event = cls._build_full_event(ATEST_EVENTS[cls._user_type](**params)) [all …]
|
/tools/asuite/atest/metrics/ |
D | metrics_base.py | 101 def __new__(cls, **kwargs): argument 112 if not cls.tool_name: 115 allowed = ({constants.EXTERNAL} if cls._user_type == EXTERNAL_USER 117 fields = [k for k, v in vars(cls).items() 123 params = {'user_key': cls._user_key, 124 'run_id': cls._run_id, 125 'user_type': cls._user_type, 126 'tool_name': cls.tool_name, 127 cls._EVENT_NAME: fields_and_values} 128 log_event = cls._build_full_event( [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | AddApisFromCodebase.kt | 34 override fun afterVisitClass(cls: ClassItem) { in addApisFromCodebase() 38 override fun visitClass(cls: ClassItem) { in addApisFromCodebase() 39 val newClass = api.addClass(cls.internalName(), apiLevel, cls.deprecated) in addApisFromCodebase() 42 if (cls.isClass()) { in addApisFromCodebase() 46 val filteredSuperClass = cls.filteredSuperclass(filterReference) in addApisFromCodebase() 47 val superClass = cls.superClass() in addApisFromCodebase() 83 } else if (cls.isInterface()) { in addApisFromCodebase() 84 val superClass = cls.superClass() in addApisFromCodebase() 88 } else if (cls.isEnum()) { in addApisFromCodebase() 97 } else if (cls.isAnnotationType()) { in addApisFromCodebase() [all …]
|
D | ApiClass.java | 170 ApiClass cls = allClasses.get(superClass.getName()); in removeImplicitInterfaces() local 171 if (cls != null && cls.implementsInterface(interfaceElement, allClasses)) { in removeImplicitInterfaces() 187 ApiClass cls = allClasses.get(localInterface.getName()); in implementsInterface() local 188 if (cls != null && cls.implementsInterface(interfaceElement, allClasses)) { in implementsInterface() 196 ApiClass cls = allClasses.get(superClass.getName()); in implementsInterface() local 197 if (cls != null && cls.implementsInterface(interfaceElement, allClasses)) { in implementsInterface() 247 ApiClass cls = allClasses.get(parent.getName()); in isOverrideOfInherited() local 248 if (cls != null && cls.isOverride(method, allClasses)) { in isOverrideOfInherited()
|
/tools/test/connectivity/acts/framework/acts/controllers/monsoon_lib/api/ |
D | monsoon.py | 52 def get_closest_valid_voltage(cls, voltage): argument 54 if voltage < cls.MIN_VOLTAGE / 2: 57 return max(cls.MIN_VOLTAGE, min(voltage, cls.MAX_VOLTAGE)) 60 def is_voltage_valid(cls, voltage): argument 65 return cls.get_closest_valid_voltage(voltage) == voltage 68 def validate_voltage(cls, voltage): argument 70 if not cls.is_voltage_valid(voltage): 73 (voltage, cls.MIN_VOLTAGE, cls.MAX_VOLTAGE))
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/visitors/ |
D | ApiVisitor.kt | 120 open fun include(cls: ClassItem): Boolean { in include() 121 if (skip(cls)) { in include() 125 if (filter != null && !filter.matches(cls.containingPackage())) { in include() 129 return cls.emit || cls.codebase.preFiltered in include() 137 if (!include(vc.cls)) { in include() 148 return vc.cls.emit && (includeEmptyOuterClasses || shouldEmitClassBody(vc)) in shouldEmitClass() 156 filterEmit.test(vc.cls) -> true in shouldEmitClassBody() 157 vc.nonEmpty() -> filterReference.test(vc.cls) in shouldEmitClassBody()
|
/tools/asuite/aidegen/lib/ |
D | singleton.py | 35 def __call__(cls, *args, **kwds): argument 37 if cls not in cls._instances: 38 cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwds) 39 return cls._instances[cls]
|
/tools/acloud/internal/lib/ |
D | android_compute_client.py | 125 def _FormalizeName(cls, name): argument 141 name = name[:cls.NAME_LENGTH_LIMIT] 143 name = name[:-1] + cls.REPLACER 163 def GenerateImageName(cls, build_target=None, build_id=None): argument 175 name = cls.IMAGE_NAME_FMT.format( 179 return cls._FormalizeName(name) 182 def GetDataDiskName(cls, instance): argument 191 name = cls.DATA_DISK_NAME_FMT.format(instance=instance) 192 return cls._FormalizeName(name)
|