/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/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/common/src/test/kotlin/trebuchet/task/ |
D | ImportTaskTest.kt | 36 val slices = model.selectAll { it.name.startsWith("MergeShot")} in <lambda>() 46 val process = model.processes.values.find { it.name == "surfaceflinger" }!! in <lambda>() 47 val thread = process.threads.find { it.name == "surfaceflinger" }!! in <lambda>() 48 val slices = thread.selectAll { it.name == "handleMessageRefresh" } in <lambda>() 50 assertFalse(slices.any { it.duration <= 0.0 }) in <lambda>() 51 val totalDuration = slices.map { it.duration }.reduce { a,b -> a+b } in <lambda>() 53 val counter = process.counters.find { it.name == counterName } in <lambda>() 56 assertEquals(2, counter.events.filter { it.count == 2L }.size) in <lambda>() 57 assertFalse(counter.events.any { it.count < 0 || it.count > 2}) in <lambda>() 64 val thread = process.threads.find { it.name == "RenderThread" }!! in <lambda>() [all …]
|
/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/src/main/java/com/android/tools/metalava/ |
D | NullabilityAnnotationsValidator.kt | 110 .filterNot { it.isBlank() } in <lambda>() 111 .map { it.trim() } in <lambda>() 112 .filterNot { it.startsWith("#") } in <lambda>() 137 private fun isNullFromTypeParam(it: AnnotationItem) = in <lambda>() 138 it.qualifiedName()?.endsWith("NullFromTypeParam") == true in <lambda>() 140 private fun isAnyNullabilityAnnotation(it: AnnotationItem) = in <lambda>() 141 it.isNullnessAnnotation() || isNullFromTypeParam(it) in <lambda>() 187 errors.sortBy { it.toString() } in <lambda>() 188 warnings.sortBy { it.toString() } in <lambda>() 210 …Issues.forEach { reporter.report(Issues.INVALID_NULLABILITY_ANNOTATION, it.method, it.toString()) } in <lambda>() [all …]
|
D | FileReadSandbox.kt | 75 allowAccess(File(it)) in initialize() 81 allowAccess(File(it).parentFile) in initialize() 91 System.getenv(it)?.let { in initialize() 92 allowAccess(File(it)) in initialize() 97 allowAccess(File("$it/.cache")) in initialize() 133 files.forEach { allowAccess(it) } in allowAccess() 184 if (absPath.startsWith(it)) { in isAccessAllowed()
|
D | Reporter.kt | 341 sb.append(it).append(": ") in format() 355 sb.append(" [").append(it.name).append("]") in format() 359 location?.let { sb.append(it).append(": ") } in format() 371 id?.let { sb.append(it.name).append(": ") } in format() 385 sb.append(it.name) in format() 388 sb.append(it.code) in format() 391 if (it.rule != null) { in format() 392 sb.append(" [Rule ").append(it.rule) in format() 393 val link = it.category.ruleLink in format() 428 errorMessage ?. let { writer.write(it) } in hasErrors()
|
D | NullnessMigration.kt | 103 return item.modifiers.annotations().firstOrNull { it.isNullnessAnnotation() } in findNullnessAnnotation() 107 return item.modifiers.annotations().any { it.isNullable() } in isNullable() 111 return item.modifiers.annotations().any { it.isNonNull() } in isNonNull()
|
/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>()
|
D | FtraceLine.kt | 129 skipUntil { it == '-'.toByte() } in parseLine() 130 skipUntil { it == '('.toByte() || it == '['.toByte() } in parseLine() 131 rewindUntil { it == '-'.toByte() } in parseLine() 140 skipUntil { it == ')'.toByte() } in parseLine() 150 val func = sliceTo(ftraceLine.function) { skipUntil { it == ':'.toByte() } } in parseLine()
|
/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>()
|
D | MultiLineTrack.kt | 38 add(SliceTrack(it, renderState)) in <lambda>() 48 slices.forEach { addSlice(it) } in <lambda>() 66 slice.children.forEach { addSlice(it) } in addSlice()
|
/tools/ndkports/src/main/kotlin/com/android/ndkports/ |
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>() 56 if (!it.exists()) { in loadPort() 62 if (!it.exists()) { in loadPort() 72 val portsByName = packages.map { loadPort(it) }.associateBy { it.name } in run() 75 outDir.resolve(port.name).also { it.mkdirs() } in run() 79 println(it) in run() 109 println(it) in run()
|
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 | Zip.kt | 33 it.copyTo(zipOut) in zipFile() 48 input.walk().filter { it != input }.forEach { in createZipFromDirectory() 49 zip(it, it.relativeTo(input).path, zos) in createZipFromDirectory()
|
D | Ndk.kt | 27 val files = it.list() in <lambda>() 28 ?: throw RuntimeException("Unable to get file list for $it") in <lambda>() 31 throw RuntimeException("Expected exactly one directory in $it") in <lambda>()
|
D | Port.kt | 41 if (it == 0) { in <lambda>() 44 Result.Error("Process failed with exit code $it") in <lambda>() 93 ).onFailure { return Result.Error(it) } in installDirectoryForPort() 95 build(toolchain, buildDirectory).onFailure { return Result.Error(it) } in installDirectoryForPort() 101 ).onFailure { return Result.Error(it) } in installDirectoryForPort()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | PackageList.kt | 26 it.accept(visitor) in accept() 33 it.acceptTypes(visitor) in acceptTypes() 39 return packages.asSequence().flatMap { it.topLevelClasses() } in allTopLevelClasses() 44 return packages.asSequence().flatMap { it.allClasses() } in allClasses()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/ |
D | ThreadQueries.kt | 26 it.threads.forEach { in firstOrNull() 27 if (predicate(it)) return it in firstOrNull()
|
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/ |
D | ModelFragment.kt | 30 it.asyncSlicesBuilder.autoCloseOpenSlices(globalEndTime) in autoCloseOpenSlices() 31 it.threads.forEach { in autoCloseOpenSlices() 32 it.slicesBuilder.autoCloseOpenSlices(globalEndTime) in autoCloseOpenSlices()
|
/tools/test/graphicsbenchmark/performance_tests/helper/src/com/android/game/qualification/ |
D | GameCoreConfiguration.java | 56 .filter((it) -> !apkNames.contains(it)) in validateConfiguration() 77 .filter((it) -> it.getName().equals(name)) in findCertificationRequirements()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeParameterItem.kt | 47 val clz = codebase.findClass(it) in bounds() 48 if (clz == null && it.contains(".")) { in bounds() 49 codebase.getOrCreateClass(it) in bounds() 54 !it.isJavaLangObject() in bounds() 100 … return p.bounds().filter { !it.isJavaLangObject() }.map { it.qualifiedName() } in bounds()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/ |
D | WorkqueueEvent.kt | 24 it.name = function in <lambda>() 25 it.startTime = event.timestamp in <lambda>() 33 it.endTime = event.timestamp in import()
|
/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/ |
D | RenderState.kt | 36 listeners.forEach { it() } in <lambda>() 45 scale = it in <lambda>()
|