/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiLint.kt | 225 override fun visitClass(cls: ClassItem) { in <lambda>() 226 val methods = cls.filteredMethods(filterReference).asSequence() in <lambda>() 227 val fields = cls.filteredFields(filterReference, showUnannotated).asSequence() in <lambda>() 228 val constructors = cls.filteredConstructors(filterReference) in <lambda>() 229 val superClass = cls.filteredSuperclass(filterReference) in <lambda>() 230 val interfaces = cls.filteredInterfaceTypes(filterReference).asSequence() in <lambda>() 233 cls, methods, constructors, allMethods, fields, superClass, interfaces, in <lambda>() 272 cls: ClassItem, in <lambda>() 282 checkEnums(cls) in <lambda>() 283 checkClassNames(cls) in <lambda>() [all …]
|
D | ApiAnalyzer.kt | 95 allClasses.forEach { cls -> in <lambda>() method 96 cls.superClass()?.tag = true in <lambda>() 130 private fun addConstructors(cls: ClassItem, filter: Predicate<Item>) { in <lambda>() 164 … if (cls.tag || !cls.isClass()) { // Don't add constructors to interfaces, enums, annotations, etc in <lambda>() 170 val superClass = cls.filteredSuperclass(filter) in <lambda>() 172 cls.tag = true in <lambda>() 177 val constructors = cls.constructors() in <lambda>() 182 superConstructor.containingClass() != cls) in <lambda>() 191 val allConstructors = cls.constructors() in <lambda>() 195 val constructors = cls.filteredConstructors(filter).toList() 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 | 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 | ArtifactTagger.kt | 79 override fun visitClass(cls: ClassItem) { in any() 80 if (cls.artifact == null && cls.isTopLevelClass()) { in any() 82 Issues.NO_ARTIFACT_DATA, cls, in any() 101 for (cls in pkg.allClasses()) { in applyArtifactsFromSpec() constant 102 if (!cls.emit) { in applyArtifactsFromSpec() 105 if (cls.artifact == null) { in applyArtifactsFromSpec() 106 cls.artifact = mavenSpec in applyArtifactsFromSpec() 109 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 …]
|
/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/ |
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() 324 val cls = codebase.findClass(qualifiedName) in mapName() constant 325 if (cls != null && filter.test(cls)) { in mapName() 384 val cls = codebase.findClass(qualifiedName) in mapName() constant 385 if (cls != null && filter.test(cls)) { in mapName() 532 val cls = classFinder(qualifiedName) ?: return NO_ANNOTATION_TARGETS in nullableAnnotationName() constant 533 if (!ApiPredicate().test(cls)) { in nullableAnnotationName() [all …]
|
/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/asuite/atest-py2/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/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiBasedCodebase.kt | 223 for (cls in initialPackages) { in <lambda>() variable 224 cls.finishInitialization() in <lambda>() 416 private fun registerPackageClass(packageName: String, cls: PsiClassItem) { in <lambda>() 423 list.add(cls) in <lambda>() 575 val cls = psiType.resolve() ?: return null in <lambda>() constant 576 return findOrCreateClass(cls) in <lambda>() 584 val cls = componentType.resolve() ?: return null in <lambda>() constant 585 return findOrCreateClass(cls) in <lambda>() 591 … fun getClassType(cls: PsiClass): PsiClassType = getFactory().createType(cls, PsiSubstitutor.EMPTY) in <lambda>() 628 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/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/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]
|
D | android_dev_os.py | 46 def get_os_name(cls): argument 52 return cls.get_os_type().name 55 def get_os_type(cls): argument 62 'Darwin': cls.MAC, 63 'Linux': cls.LINUX, 64 'Windows': cls.WINDOWS 65 }.get(platform.system(), cls.LINUX)
|
/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/atest/test_finders/ |
D | test_finder_base.py | 25 def find_method_register(cls): argument 27 cls.find_methods = [] 28 cls.get_all_find_methods = lambda x: x.find_methods 29 for methodname in dir(cls): 30 method = getattr(cls, methodname) 32 cls.find_methods.append(Finder(None, method, None)) 33 return cls
|
/tools/asuite/atest-py2/test_finders/ |
D | test_finder_base.py | 25 def find_method_register(cls): argument 27 cls.find_methods = [] 28 cls.get_all_find_methods = lambda x: x.find_methods 29 for methodname in dir(cls): 30 method = getattr(cls, methodname) 32 cls.find_methods.append(Finder(None, method, None)) 33 return cls
|