/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | DocAnalyzer.kt | 108 override fun visitItem(item: Item) { in <lambda>() 109 val annotations = item.modifiers.annotations() in <lambda>() 115 handleAnnotation(annotation, item, depth = 0) in <lambda>() 141 item, in <lambda>() 142 "Found more than one threading annotation on $item; " + in <lambda>() 182 item: Item, in <lambda>() 192 if (item is ClassItem && name == item.qualifiedName()) { in <lambda>() 201 handleInliningDocs(annotation, item) in <lambda>() 204 … "androidx.annotation.RequiresPermission" -> handleRequiresPermission(annotation, item) in <lambda>() 206 "androidx.annotation.FloatRange" -> handleRange(annotation, item) in <lambda>() [all …]
|
D | ComparisonVisitor.kt | 138 val old = oldTree.item() in compare() 139 val new = newTree.item() in compare() 169 … compare(visitor, oldTree.children, newTree.children, newTree.item(), oldTree.item(), filter) in compare() 179 val old = oldTree.item() in compare() 187 val new = newTree.item() in compare() 224 compare(visitor, parameters, newTree.children, newTree.item(), inherited, filter) in visitAdded() 234 override fun visitItem(item: Item) { in visitAdded() 235 doVisitAdded(visitor, item) in visitAdded() 244 private fun doVisitAdded(visitor: ComparisonVisitor, item: Item) { in doVisitAdded() 245 visitor.added(item) in doVisitAdded() [all …]
|
D | AndroidApiChecks.kt | 39 override fun skip(item: Item): Boolean { in check() 41 if (item is ClassItem) { in check() 42 val name = item.qualifiedName() in check() 45 return super.skip(item) in check() 48 override fun visitItem(item: Item) { in check() 49 checkTodos(item) in check() 82 private fun getDocumentation(item: Item, tag: String?): String { in getDocumentation() 83 return if (item === cachedDocumentationItem && cachedDocumentationTag == tag) { in getDocumentation() 86 cachedDocumentationItem = item in getDocumentation() 88 cachedDocumentation = findDocumentation(item, tag) in getDocumentation() [all …]
|
D | ApiLint.kt | 182 private fun report(id: Issue, item: Item, message: String, element: PsiElement? = null) { in <lambda>() 185 if (item.deprecated) { in <lambda>() 189 if (item is ParameterItem && item.containingMethod().deprecated) { in <lambda>() 194 val testItem = if (item is ParameterItem) item.containingMethod() else item in <lambda>() 199 reporter.report(id, item, message, element) in <lambda>() 216 override fun skip(item: Item): Boolean { in <lambda>() 217 return super.skip(item) || in <lambda>() 218 item is ClassItem && !isInteresting(item) || in <lambda>() 219 item is MethodItem && !isInteresting(item.containingClass()) || in <lambda>() 220 item is FieldItem && !isInteresting(item.containingClass()) in <lambda>() [all …]
|
D | ConvertJarsToSignatureFiles.kt | 76 override fun visitItem(item: Item) { in <lambda>() 77 unmarkRecent(item) in <lambda>() 78 super.visitItem(item) in <lambda>() 201 val item = codebase.findClass(classNode, MATCH_ALL) in <lambda>() constant 202 if (item != null && !item.deprecated) { in <lambda>() 203 item.deprecated = true in <lambda>() 204 progress("Turned deprecation on for $item") in <lambda>() 214 val item = codebase.findMethod(classNode, methodNode, MATCH_ALL) in <lambda>() constant 215 if (item != null && !item.deprecated) { in <lambda>() 216 item.deprecated = true in <lambda>() [all …]
|
D | ExtractAnnotations.kt | 130 for ((item, annotation) in pairs) { in <lambda>() variable 131 if (item != prev) { in <lambda>() 137 writer.print(item.getExternalAnnotationSignature()) in <lambda>() 141 prev = item in <lambda>() 143 writeAnnotation(writer, item, annotation) in <lambda>() 160 private fun addItem(item: Item, annotation: AnnotationHolder) { in <lambda>() 161 val pkg = when (item) { in <lambda>() 162 is MemberItem -> item.containingClass().containingPackage() in <lambda>() 163 is ParameterItem -> item.containingMethod().containingClass().containingPackage() in <lambda>() 173 list.add(Pair(item, annotation)) in <lambda>() [all …]
|
D | CompatibilityCheck.kt | 84 private fun containingMethod(item: Item): MethodItem? { in containingMethod() 85 if (item is MethodItem) { in containingMethod() 86 return item in containingMethod() 88 if (item is ParameterItem) { in containingMethod() 89 return item.containingMethod() in containingMethod() 692 private fun handleAdded(issue: Issue, item: Item) { in handleAdded() 693 if (item.originallyHidden) { in handleAdded() 700 if (!filterReference.test(item)) { in handleAdded() 721 val equivalent = findBaseItem(item) in handleAdded() 727 report(issue, item, message) in handleAdded() [all …]
|
D | NullnessMigration.kt | 99 fun hasNullnessInformation(item: Item): Boolean { in hasNullnessInformation() 100 return isNullable(item) || isNonNull(item) in hasNullnessInformation() 103 fun findNullnessAnnotation(item: Item): AnnotationItem? { in findNullnessAnnotation() 104 return item.modifiers.annotations().firstOrNull { it.isNullnessAnnotation() } in findNullnessAnnotation() 107 fun isNullable(item: Item): Boolean { in isNullable() 108 return item.modifiers.annotations().any { it.isNullable() } in isNullable() 111 private fun isNonNull(item: Item): Boolean { in isNonNull() 112 return item.modifiers.annotations().any { it.isNonNull() } in isNonNull()
|
D | ApiAnalyzer.kt | 658 private fun ensureParentVisible(item: Item) { in <lambda>() 659 val parent = item.parent() ?: return in <lambda>() 663 val violatingAnnotation = if (item.modifiers.hasShowAnnotation()) { in <lambda>() 664 item.modifiers.annotations().find { in <lambda>() 667 } else if (item.modifiers.hasShowSingleAnnotation()) { in <lambda>() 668 item.modifiers.annotations().find { in <lambda>() 676 Issues.SHOWING_MEMBER_IN_HIDDEN_CLASS, item, in <lambda>() 779 override fun visitItem(item: Item) { in <lambda>() 780 if (item.deprecated && !item.documentation.contains("@deprecated") && in <lambda>() 784 !item.isKotlin() in <lambda>() [all …]
|
D | AnnotationStatistics.kt | 74 override fun skip(item: Item): Boolean { in <lambda>() 75 if (options.omitRuntimePackageStats && item is PackageItem) { in <lambda>() 76 val name = item.qualifiedName() in <lambda>() 85 return super.skip(item) in <lambda>() 204 for (item in sorted) { in <lambda>() constant 205 val containingClass = item.containingClass() in <lambda>() 206 val itemCount = used[item]!! in <lambda>() 249 val item = items[i] in <lambda>() constant 250 val label = getLabel(item) in <lambda>() 251 val count = getCount(item) in <lambda>() [all …]
|
D | Reporter.kt | 134 fun report(id: Issues.Issue, item: Item?, message: String, psi: PsiElement? = null): Boolean { in report() 144 item is PsiItem -> which(severity, elementToLocation(item.psi()), message, id) in report() 145 item is TextItem -> in report() 146 which(severity, (item as? TextItem)?.position.toString(), message, id) in report() 153 if (isSuppressed(id, item, message)) { in report() 159 if (item != null) { in report() 162 val pkg = item.containingPackage(false) in report() 170 if (item != null && baseline != null && baseline.mark(item, message, id)) { in report() 179 fun isSuppressed(id: Issues.Issue, item: Item? = null, message: String? = null): Boolean { in isSuppressed() 185 item ?: return false in isSuppressed() [all …]
|
D | SignatureWriter.kt | 173 private fun writeModifiers(item: Item) { in <lambda>() 176 modifiers = item.modifiers, in <lambda>() 177 item = item, in <lambda>() 250 all.sortedWith(TypeItem.comparator).forEach { item -> in <lambda>() method 253 item.toTypeString( in <lambda>() 256 context = item.asClass(), in <lambda>() 315 item: Item, in <lambda>() 326 context = item, in <lambda>() 335 …if (compatibility.includeExtendsObjectInWildcard && typeString.endsWith(", ?>") && item is Paramet… in <lambda>() 337 when (item.containingMethod().name()) { in <lambda>()
|
D | AnnotationsMerger.kt | 369 for (item in getChildren(root)) { in mergeDocument() method 370 var signature: String? = item.getAttribute(ATTR_NAME) in mergeDocument() 416 … mergeMethodOrParameter(item, containingClass, classItem, methodName, parameterIndex, parameters) in mergeDocument() 419 mergeField(item, containingClass, classItem, fieldName) in mergeDocument() 434 mergeAnnotations(item, classItem) in mergeDocument() 462 item: Element, in mergeMethodOrParameter() 493 mergeAnnotations(item, parameterItem) in mergeMethodOrParameter() 496 mergeAnnotations(item, methodItem) in mergeMethodOrParameter() 500 …private fun mergeField(item: Element, containingClass: String, classItem: ClassItem, fieldName: St… in mergeField() 512 mergeAnnotations(item, fieldItem) in mergeField() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | Item.kt | 262 fun describe(item: Item, capitalize: Boolean = false): String { in describe() 263 return when (item) { in describe() 264 is PackageItem -> describe(item, capitalize = capitalize) in describe() 265 is ClassItem -> describe(item, capitalize = capitalize) in describe() 266 is FieldItem -> describe(item, capitalize = capitalize) in describe() 268 item, in describe() 274 item, in describe() 279 else -> item.toString() in describe() 284 item: MethodItem, in describe() 291 if (item.isConstructor()) { in describe() [all …]
|
D | AnnotationItem.kt | 160 fun simpleName(item: AnnotationItem): String { in simpleName() 161 val qualifiedName = item.qualifiedName() ?: return "" in simpleName() 604 fun getImplicitNullness(item: Item): Boolean? { in getImplicitNullness() 609 val sourcePsi = item.psi() in getImplicitNullness() 615 if (item is FieldItem && in getImplicitNullness() 616 … (item.isEnumConstant() || item.modifiers.isFinal() && item.initialValue(false) != null) in getImplicitNullness() 620 } else if (item is FieldItem && item.modifiers.isFinal()) { in getImplicitNullness() 626 val initializer = (item.psi() as? PsiField)?.initializer in getImplicitNullness() 646 } else if (item.synthetic && (item is MethodItem && item.isEnumSyntheticMethod() || in getImplicitNullness() 647 item is ParameterItem && item.containingMethod().isEnumSyntheticMethod()) in getImplicitNullness() [all …]
|
D | ModifierList.kt | 241 item: Item, in <lambda>() 277 item, in <lambda>() 289 if (item.deprecated && target.isStubsFile()) { in <lambda>() 295 if (item is PackageItem) { in <lambda>() 304 val classItem = item as? ClassItem in <lambda>() 305 val methodItem = item as? MethodItem in <lambda>() 325 item !is ParameterItem && in <lambda>() 370 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in <lambda>() 386 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in <lambda>() 413 if (list.isDefault() && item !is ParameterItem) { in <lambda>() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiClassItem.kt | 126 val item = codebase.findOrCreateClass(cls) in <lambda>() constant 127 result.add(item) in <lambda>() 427 val item = PsiClassItem( in <lambda>() constant 438 codebase.registerClass(item) in <lambda>() 439 item.modifiers.setOwner(item) in <lambda>() 454 methods.add(PsiConstructorItem.create(codebase, item, psiMethod)) in <lambda>() 463 item, false in <lambda>() 474 val constructor = PsiConstructorItem.create(codebase, item, psiMethod) in <lambda>() 494 val method = PsiMethodItem.create(codebase, item, psiMethod) in <lambda>() 504 … constructors.add(PsiConstructorItem.createDefaultConstructor(codebase, item, psiClass)) in <lambda>() [all …]
|
D | PsiCompilationUnit.kt | 148 for (item in imports) { in getImportStatements() constant 149 if (item is ClassItem) { in getImportStatements() 150 map.put(item.simpleName(), item) in getImportStatements() 151 } else if (item is MemberItem) { in getImportStatements() 152 map.put(item.name(), item) in getImportStatements() 172 override fun visitItem(item: Item) { in getImportStatements() 174 if (!predicate.test(item)) { in getImportStatements() 177 val doc = item.documentation in getImportStatements()
|
/tools/test/connectivity/acts_tests/tests/google/bt/performance/ |
D | BtInterferenceDynamicTest.py | 131 for item in self.interference_rssi: 132 if item['chan'] == channel: 133 rssi = item['rssi'] 155 item for item in all_pair 156 if item not in interference_pair_indices_before 181 item for item in all_pair 182 if item not in interference_pair_indices_after 221 item for item in all_pair if item not in current_int_pair 233 item for item in all_pair if item not in current_int_pair
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/ |
D | BtInterferenceBaseTest.py | 95 for item in iperf_result.result['intervals']: 96 rates.append(item['sum']['bits_per_second'] / 8 / 1024 / 1024) 220 for item in self.wifi_int_pairs: 221 ssid = item.network['SSID'] 222 bssid = item.ap.get_bssid_from_ssid(ssid, '2g') 227 "chan": item.channel, 234 for item in self.interference_rssi: 235 item['rssi'] = scaned_rssi[item['bssid']]['mean'] 237 item['chan'], item['rssi']))
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/netstack/ |
D | NetstackIfaceTest.py | 40 for item in interfaces.get("result"): 41 identifier = item.get('id') 100 for item in interfaces.get("result"): 101 identifier = item.get('id') 139 for item in interfaces.get('result'): 141 if "wlan" in item.get('name'): 142 identifier = item.get('id')
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | JavaStubWriter.kt | 59 for (item in it) { in <lambda>() method 60 when (item) { in <lambda>() 118 item = field, in <lambda>() 143 item: Item, in <lambda>() 148 appendModifiers(item, item.modifiers, removeAbstract, removeFinal, addPublic) in <lambda>() 152 item: Item, in <lambda>() 158 val separateLines = item is ClassItem || item is MethodItem in <lambda>() 161 writer, modifiers, item, in <lambda>()
|
D | KotlinStubWriter.kt | 53 for (item in it) { in <lambda>() method 54 when (item) { in <lambda>() 107 item: Item, in <lambda>() 113 val separateLines = item is ClassItem || item is MethodItem in <lambda>() 116 writer, modifiers, item, in <lambda>() 191 item: Item, in <lambda>() 201 context = item, in <lambda>()
|
/tools/security/fuzzing/orphans/libcppbor/ |
D | cppbor_parse_fuzzer.cpp | 22 virtual ParseClient* item(std::unique_ptr<Item>&, const uint8_t*, const uint8_t*, in item() function in FuzzParseClient 37 auto [item, newPos, errMsg] = parse(cursor, end); in FuzzParse() 38 if (!item || !errMsg.empty()) { in FuzzParse() 49 auto [item, newPos, errMsg] = parseWithViews(cursor, end); in FuzzParseWithViews() 50 if (!item || !errMsg.empty()) { in FuzzParseWithViews()
|
/tools/trebuchet/trebuchet/user-switch-analyzer/src/ |
D | UserSwitchAnalyzer.kt | 62 for (item in stages) { in measureServiceStartup() variable 64 it.name.contains("ssm." + item + "User-" + userId) && !it.name.contains("ssm.on") in measureServiceStartup() 66 output.println(item + "User-" + userId + " duration: " + it.duration.durationString()) in measureServiceStartup() 70 it.name.contains("ssm.on" + item + "User-" + userId) in measureServiceStartup() 74 …output.println(it.name.removePrefix("ssm.on" + item + "User-" + userId + " ") + " " + it.duration.… in measureServiceStartup()
|