/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/ |
D | SliceQueries.kt | 78 if (predicate(it)) { in selectAll() 79 ret.add(it) in selectAll() 93 if (predicate(it)) { in ProcessModel() 94 ret.add(it) in ProcessModel() 103 if (predicate(it)) { in selectAll() 104 ret.add(it) in selectAll() 116 return this.processes.values.mapNotNull { it.selectFirst(predicate) }.minBy { it.startTime } in selectFirst() 129 if (predicate(it)) { in ProcessModel() 130 ret = it in ProcessModel() 155 if (predicate(it)) { in selectFirst() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | ClassItem.kt | 58 return sequenceOf(this).plus(innerClasses().asSequence().flatMap { it.allClasses() }) in <lambda>() 136 val cls = it.asClass() in <lambda>() 329 visitor.visitType(it.toType(), it) in <lambda>() 335 owner?.let { visitor.visitType(itf, it) } in <lambda>() 404 .filter { it.matches(template) } in <lambda>() 405 .forEach { return it } in <lambda>() 408 superClass()?.findMethod(template, true, includeInterfaces)?.let { return it } in <lambda>() 414 cls.findMethod(template, includeSuperClasses, true)?.let { return it } in <lambda>() 444 .filter { it.internalDesc() == desc } in <lambda>() 445 .forEach { return it } in <lambda>() [all …]
|
D | ModifierList.kt | 87 return annotations().any { it.isNonNull() || it.isNullable() } in <lambda>() 92 return annotations().any { it.isNullable() } in <lambda>() 104 options.showAnnotations.matches(it) in <lambda>() 118 options.showSingleAnnotations.matches(it) in <lambda>() 131 options.showForStubPurposesAnnotations.matches(it) in <lambda>() 133 … options.showAnnotations.matches(it) && !options.showForStubPurposesAnnotations.matches(it) in <lambda>() 182 mappedName == it.qualifiedName() in <lambda>() 521 annotations = annotations.sortedBy { it.qualifiedName() } in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | ApiAnalyzer.kt | 92 val allClasses = packages.allClasses().filter { filter.test(it) } in <lambda>() 99 val leafClasses = allClasses.filter { !it.tag }.toList() in <lambda>() 109 .filter { filter.test(it) } in <lambda>() 110 .forEach { addConstructors(it, filter) } in <lambda>() 171 superClass?.let { addConstructors(it, filter) } in <lambda>() 212 .map { it.isPrivate } in <lambda>() 220 it.mutableModifiers().setVisibilityLevel(visibilityLevel) in <lambda>() 221 it.hidden = false in <lambda>() 222 it.superConstructor = superClass?.stubConstructor in <lambda>() 258 if (filterEmit.test(it)) { in <lambda>() [all …]
|
D | NullabilityAnnotationsValidator.kt | 109 .filterNot { it.isBlank() } in <lambda>() 110 .map { it.trim() } in <lambda>() 111 .filterNot { it.startsWith("#") } in <lambda>() 136 private fun isNullFromTypeParam(it: AnnotationItem) = in <lambda>() 137 it.qualifiedName()?.endsWith("NullFromTypeParam") == true in <lambda>() 139 private fun isAnyNullabilityAnnotation(it: AnnotationItem) = in <lambda>() 140 it.isNullnessAnnotation() || isNullFromTypeParam(it) in <lambda>() 186 errors.sortBy { it.toString() } in <lambda>() 187 warnings.sortBy { it.toString() } in <lambda>() 209 …Issues.forEach { reporter.report(Issues.INVALID_NULLABILITY_ANNOTATION, it.method, it.toString()) } in <lambda>() [all …]
|
D | Driver.kt | 117 if (options.allReporters.any { it.hasErrors() } && !options.passBaselineUpdates) { in run() 167 it.writeErrorMessage(stderr) in run() 226 val totalErrors = reporters.sumBy { it.errorCount } in repeatErrors() 230 var numShown = it.printErrors(writer, remainingCap) in repeatErrors() 248 sources.firstOrNull { !it.path.endsWith(DOT_TXT) }?. let { in processFlags() 261 options.manifest?.let { codebase.manifest = it } in processFlags() 269 subtractApi(codebase, it) in processFlags() 294 it, codebase, docStubs = true, in processFlags() 335 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in processFlags() 349 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in processFlags() [all …]
|
D | AnnotationStatistics.kt | 171 !it.hasNullnessInfo() in <lambda>() 288 { (it as ClassItem).qualifiedName() }, in <lambda>() 289 { classCount[it]!! }, in <lambda>() 320 val member = it as MemberItem in <lambda>() 325 { used[it]!! }, in <lambda>() 405 recordUsages(used, it, it.path) in <lambda>() 443 val count = used[it] in <lambda>() 445 used[it] = 1 in <lambda>() 447 used[it] = count + 1 in <lambda>() 457 val count = used[it] in <lambda>() [all …]
|
D | ApiLint.kt | 868 if (fields.none { it.name() == "CREATOR" }) { in <lambda>() 874 if (methods.none { it.name() == "writeToParcel" }) { in <lambda>() 880 if (methods.none { it.name() == "describeContents" }) { in <lambda>() 895 val parameters = it.parameters() in <lambda>() 1241 fields.firstOrNull { it.name() == fieldName }?.let { field -> in <lambda>() 1390 it.toType().toTypeString() in <lambda>() 1437 }?.map { "get$it" }?.toSet() in <lambda>() 1439 allowedGetters?.let { expectedGetters.add(method to it) } in <lambda>() 1454 …ltClass.filteredMethods(filterReference, includeSuperClassMethods = true).map { it.name() }.toSet() in <lambda>() 1457 val expectedGetterCalls = expectedGetterNames.map { "$it()" } in <lambda>() [all …]
|
/tools/trebuchet/trebuchet/analyzer/src/ |
D | Analyzer.kt | 25 val slices = model.slices().filter { it.name.startsWith("MergeShot") } in <lambda>() 27 val totalDuration = slices.map { it.duration }.reduce { a, b -> a+b } in <lambda>() 34 it.slices.any { in measureStartup() 35 it.name == "PreFork" || it.name == "activityStart" in measureStartup() 39 val rtThread = process.threads.first { it.name == "RenderThread" } in measureStartup() 41 it.name == "PreFork" || it.name == "activityStart" in measureStartup() 44 it.name == "DrawFrame" in measureStartup() 52 it.name == "latchBuffer" in measureRotator() 60 it.name == "sde_rotator_retire_handler" in measureRotator() 61 && it.startTime > slice.endTime in measureRotator() [all …]
|
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/ |
D | Model.kt | 38 it.autoCloseOpenSlices() in <lambda>() 39 beginTimestamp = minOf(beginTimestamp, it.globalStartTime) in <lambda>() 40 endTimestamp = maxOf(endTimestamp, it.globalEndTime) in <lambda>() 41 parentTimestamp = maxOf(parentTimestamp, it.parentTimestamp) in <lambda>() 42 realtimeTimestamp = maxOf(realtimeTimestamp, it.realtimeTimestamp) in <lambda>() 43 it.processes.forEach { in <lambda>() 44 if (it.id != InvalidId) { in <lambda>() 46 processBuilder.put(it.id, ProcessModel(this, it)) in <lambda>() 49 it.cpus.forEach { in <lambda>() 50 cpuBuilder.add(CpuModel(this, it)) in <lambda>() [all …]
|
/tools/trebuchet/trebuchet/startup-summarizer/src/ |
D | StartupSummarizer.kt | 195 …tartupTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.endTime - it.startTime}) in printSampleSetPlainText() 196 …iceStandardDeviation) = averageAndStandardDeviation(records.map {it.firstSliceTime - it.startTime}) in printSampleSetPlainText() 197 …rentiatedTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.undifferentiatedTime… in printSampleSetPlainText() 207 …andardDeviation) = averageAndStandardDeviation(records.map { it.reportFullyDrawnTime!! - it.startT… in printSampleSetPlainText() 216 …chedStateTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.schedTimings.getOrDe… in printSampleSetPlainText() 258 printSliceTimings(records.map {it.topLevelSliceInfo}, false) in printSampleSetPlainText() 261 printSliceTimings(records.map {it.nonNestedSliceInfo}, true) in printSampleSetPlainText() 264 printSliceTimings(records.map {it.undifferentiatedSliceInfo}, true) in printSampleSetPlainText() 305 …tartupTimeStandardDeviation) = averageAndStandardDeviation(records.map {it.endTime - it.startTime}) in printSampleSetCSV() 308 …iceStandardDeviation) = averageAndStandardDeviation(records.map {it.firstSliceTime - it.startTime}) in printSampleSetCSV() [all …]
|
/tools/ndkports/src/main/kotlin/com/android/ndkports/ |
D | PrefabPackageBuilder.kt | 60 it.name = port.name in <lambda>() 61 it.description = "The ndkports AAR for ${port.name}." in <lambda>() 62 it.url = "https://android.googlesource.com/platform/tools/ndkports" in <lambda>() 63 it.groupId = groupId in <lambda>() 64 it.artifactId = artifactId in <lambda>() 65 it.version = port.mavenVersion in <lambda>() 66 it.packaging = "aar" in <lambda>() 67 it.licenses = listOf( in <lambda>() 74 it.developers = listOf( in <lambda>() 79 it.scm = Scm().also { scm -> in <lambda>() [all …]
|
D | Cli.kt | 49 require(it.isNotEmpty()) { "must provide at least one package" } in <lambda>() 52 private val ndk: Ndk by option().convert { Ndk(File(it)) }.required() in <lambda>() 59 if (!it.exists()) { in portDirectoryFor() 65 if (!it.exists()) { in portDirectoryFor() 75 val portsByName = packages.map { loadPort(it) }.associateBy { it.name } in run() 78 outDir.resolve(port.name).also { it.mkdirs() } in run() 112 println(it) in run()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/model/ |
D | SliceGroupBuilderTest.kt | 28 it.startTime = 1.0 in testSimpleBuild() 29 it.name = "first" in testSimpleBuild() 32 it.endTime = 2.0 in testSimpleBuild() 43 it.startTime = 1.0 in testNestedBuild() 44 it.name = "first" in testNestedBuild() 47 it.startTime = 1.1 in testNestedBuild() 48 it.name = "nested" in testNestedBuild() 51 it.endTime = 1.2 in testNestedBuild() 58 it.endTime = 2.0 in testNestedBuild()
|
/tools/metalava/ |
D | README.md | 4 it does not generate docs; it's intended only for **meta**data extraction and 58 Metalava has a new command line syntax, but it also understands the doclava1 84 annotations. This isn't just merged at export time, it's merged at codebase 85 load time such that it can be part of the API analysis. 92 * Improve the signature format such that it for example labels enums "enum" 137 * Misc documentation handling; for example, it attempts to fix sentences that 155 the API and which one is implementation; it is simply handed the filtered API 166 but not versa). It also lets you diff directly on a source tree; it does not 175 StringBuilder.setLength(int) was missing from the API signatures since it is a 178 anyway since it packages package private classes. Metalava strictly applies [all …]
|
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/ |
D | SliceTrack.kt | 51 x = ((it.startTime - panX) * scale).toInt() in paintComponent() 52 val scaledWidth = (it.endTime - it.startTime) * scale in paintComponent() 55 var color = colorFor(it) in paintComponent() 64 drawLabel(it, g, metrics, x, ty, width) in paintComponent() 90 it.startTime > timestamp -> 1 in <lambda>() 91 it.endTime < timestamp -> -1 in <lambda>() 94 }.let { if (it < 0) null else slices[it] } in <lambda>()
|
/tools/metalava/buildSrc/src/main/kotlin/com/android/tools/metalava/ |
D | LibraryBuildInfo.kt | 66 it.writeText("{ \"artifacts\": [\n") in createFile() 67 it.appendText(serializedInfo) in createFile() 68 it.appendText("]}") in createFile() 79 it.artifactId.set(project.provider<String> { project.name }) in configureBuildInfoTask() 80 it.groupId.set(project.provider<String> { project.group as String }) in configureBuildInfoTask() 81 it.version.set(project.provider<String> { project.version as String }) in configureBuildInfoTask() 83 it.sha.set(project.provider<String> { if (inCI) getGitSha(project.projectDir) else "" }) in configureBuildInfoTask() 84 it.outputFile.set(project.provider<File> { in configureBuildInfoTask() 90 it.aggregateOutputFile.set(project.provider<File> { in configureBuildInfoTask()
|
D | Publishing.kt | 33 it.description = "Create a zip of the library in a maven format" in configurePublishingArchive() 34 it.group = "publishing" in configurePublishingArchive() 36 it.from("${distributionDirectory.canonicalPath}/repo") in configurePublishingArchive() 37 it.archiveFileName.set(project.provider<String> { in configurePublishingArchive() 40 it.destinationDirectory.set(distributionDirectory) in configurePublishingArchive() 41 it.dependsOn("publish${publicationName}PublicationTo${repositoryName}Repository") in configurePublishingArchive()
|
/tools/external/fat32lib/ |
D | NOTICE | 8 of this license document, but changing it is not allowed. 15 The licenses for most software are designed to take away your freedom to share and change it. By co… 17 …f the Free Software Foundation and other authors who decide to use it. You can use it too, but we … 19 …that you receive source code or can get it if you want it; that you can change the software and us… 21 …te to certain responsibilities for you if you distribute copies of the library or if you modify it. 23 … them with the library after making changes to the library and recompiling it. And you must show t… 27 To protect each distributor, we want to make it very clear that there is no warranty for the free l… 35 We call this license the "Lesser" General Public License because it does Less to protect the user's… 37 …al need to encourage the widest possible use of a certain library, so that it becomes a de-facto s… 41 Although the Lesser General Public License is Less protective of the users' freedom, it does ensure… [all …]
|
/tools/trebuchet/trebuchet/user-switch-analyzer/src/ |
D | UserSwitchAnalyzer.kt | 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() 72 it.duration in measureServiceStartup() 74 …output.println(it.name.removePrefix("ssm.on" + item + "User-" + userId + " ") + " " + it.duration.… in measureServiceStartup()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiModifierItem.kt | 191 val qualifiedName = it.qualifiedName in <lambda>() 195 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in <lambda>() 204 PsiAnnotationItem.create(codebase, it, qualifiedName) in <lambda>() 223 … psiAnnotations.map { PsiAnnotationItem.create(codebase, it) }.toMutableList() in <lambda>() 233 .filter { !isPrimitiveVariable || it !is KotlinNullabilityUAnnotation } in <lambda>() 236 val qualifiedName = it.qualifiedName in <lambda>() 239 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in <lambda>() 248 UAnnotationItem.create(codebase, it, qualifiedName) in <lambda>() 253 … if (psiAnnotations.isNotEmpty() && annotations.none { it.isNullnessAnnotation() }) { in <lambda>() 254 … val ktNullAnnotation = psiAnnotations.firstOrNull { it is KtLightNullabilityAnnotation<*> } in <lambda>() [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/stub/ |
D | JavaStubWriter.kt | 59 for (item in it) { in <lambda>() 106 for (field in cls.filteredFields(filterReference, true).sortedBy { it.sortingRank }) { in <lambda>() 273 superConstructor?.let { it -> in <lambda>() method 274 val parameters = it.parameters() in <lambda>() 275 … val invokeOnThis = constructor != null && constructor.containingClass() == it.containingClass() in <lambda>() 278 it.containingClass().constructors().filter { filterReference.test(it) }.size > 1 in <lambda>() 292 val typeString = type.toErasedTypeString(it).replace("...", "[]") in <lambda>() 297 … val map = constructor?.containingClass()?.mapTypeVariables(it.containingClass()) in <lambda>() 298 val cast = map?.get(type.toTypeString(context = it)) ?: typeString in <lambda>() 308 val typeString = type.toTypeString(context = it) in <lambda>()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceImporter.kt | 37 par_map(stream.iterLines(), ::createEventParser) { parserState, it -> in <lambda>() method 39 FtraceEvent.tryParseText(parserState, it) in <lambda>() 41 println("line '$it' failed") in <lambda>() 46 if (it == null) { in <lambda>() 54 if (it === CpuBufferStarted) { in <lambda>() 57 state.importEvent(it) in <lambda>()
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 83 .map { it.createFile(dir) } in <lambda>() 84 .forEach { assertNotNull(it) } in <lambda>() 503 if (sourceFiles.any { it.targetPath.startsWith("src2") }) { in <lambda>() 513 signatureSource?. let { sources.add(it) } in <lambda>() 535 … sourceFiles.asSequence().map { File(project, it.targetPath).path }.toList().toTypedArray() in <lambda>() 540 .map { it.createFile(project) } in <lambda>() 541 .map { it.path } in <lambda>() 542 .joinToString(separator = File.pathSeparator) { it } in <lambda>() 1021 importedPackageArgs.add(it) in <lambda>() 1027 skipEmitPackagesArgs.add(it) in <lambda>() [all …]
|
/tools/aadevtools/avd/ |
D | README.md | 9 * test_avd_avd_image.sh is the test & also examples of how to use it. 13 * test_create_avd.sh is the test & also examples of how to use it. 14 * patch_avd.sh changes an AVD configuration for bigger RAM, heap & data disk. So it can perform pro… 15 * patch_all_avds.sh changes all AVD configuration for more RAM & heap. So it can perform properly. 16 * test_patch_all_avds.sh is the test & also examples of how to use it. 18 * test_set_avds_force_cold_boot.sh is the test & also examples of how to use it.
|