Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 148) sorted by relevance

123456

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/
DSliceQueries.kt78 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/
DClassItem.kt50 return sequenceOf(this).plus(innerClasses().asSequence().flatMap { it.allClasses() }) in <lambda>()
128 val cls = it.asClass() in <lambda>()
326 visitor.visitType(it.toType(), it) in <lambda>()
332 owner?.let { visitor.visitType(itf, it) } in <lambda>()
401 .filter { it.matches(template) } in <lambda>()
402 .forEach { return it } in <lambda>()
405 superClass()?.findMethod(template, true, includeInterfaces)?.let { return it } in <lambda>()
411 cls.findMethod(template, includeSuperClasses, true)?.let { return it } in <lambda>()
426 .filter { it.internalDesc() == desc } in <lambda>()
427 .forEach { return it } in <lambda>()
[all …]
/tools/trebuchet/trebuchet/analyzer/src/
DAnalyzer.kt25 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/metalava/src/main/java/com/android/tools/metalava/
DNullabilityAnnotationsValidator.kt110 .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(Errors.INVALID_NULLABILITY_ANNOTATION, it.method, it.toString()) } in <lambda>()
[all …]
DApiAnalyzer.kt94 val allClasses = packages.allClasses().filter { filter.test(it) } in <lambda>()
101 val leafClasses = allClasses.filter { !it.tag }.toList() in <lambda>()
111 .filter { filter.test(it) } in <lambda>()
112 .forEach { addConstructors(it, filter, true) } in <lambda>()
176 superClass?.let { it -> addConstructors(it, filter, false) } in <lambda>() method
234 it.mutableModifiers().setPackagePrivate(true) in <lambda>()
235 it.hidden = false in <lambda>()
236 it.superConstructor = superClass?.defaultConstructor in <lambda>()
310 if (filterEmit.test(it)) { in <lambda>()
311 generateInheritedStubs(it, filterEmit, filterReference) in <lambda>()
[all …]
DReporter.kt315 sb.append(it).append(": ") in toString()
328 … id?.let { sb.append(" [").append(if (it.name != null) it.name else it.code).append("]") } in toString()
331 location?.let { sb.append(it).append(": ") } in toString()
343 id?.let { sb.append(if (it.name != null) it.name else it.code).append(": ") } in toString()
357 if (it.name != null) { in toString()
358 sb.append(it.name) in toString()
360 if (compatibility.includeExitCode || it.name == null) { in toString()
361 if (it.name != null) { in toString()
364 sb.append(it.code) in toString()
367 if (it.rule != null) { in toString()
[all …]
DAnnotationStatistics.kt172 !it.hasNullnessInfo() in <lambda>()
289 { (it as ClassItem).qualifiedName() }, in <lambda>()
290 { classCount[it]!! }, in <lambda>()
321 val member = it as MemberItem in <lambda>()
326 { used[it]!! }, in <lambda>()
406 recordUsages(used, it, it.path) in <lambda>()
444 val count = used[it] in <lambda>()
446 used[it] = 1 in <lambda>()
448 used[it] = count + 1 in <lambda>()
458 val count = used[it] in <lambda>()
[all …]
DStubWriter.kt61 .or { it is ClassItem && it.notStrippable }, in <lambda>()
95 packageDocs.getOverviewDocumentation(pkg)?.let { writeDocOverview(pkg, it) } in visitPackage()
196 compilationUnit?.getHeaderComments()?.let { writer.println(it) } in visitClass()
207 for (item in it) { in visitClass()
253 for (field in cls.filteredFields(filterReference, true).sortedBy { it.sortingRank }) { in visitClass()
444 superConstructor?.let { it -> in writeConstructorBody() method
445 val parameters = it.parameters() in writeConstructorBody()
446 … val invokeOnThis = constructor != null && constructor.containingClass() == it.containingClass() in writeConstructorBody()
449 it.containingClass().constructors().filter { filterReference.test(it) }.size > 1 in writeConstructorBody()
463 val typeString = type.toErasedTypeString(it).replace("...", "[]") in writeConstructorBody()
[all …]
DDiff.kt61 before.split("\n".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray(), in getDiff()
62 after.split("\n".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray(), in getDiff()
113 if (!before[i].trim { it <= ' ' }.isEmpty()) { in getDiff()
121 if (!after[j].trim { it <= ' ' }.isEmpty()) { in getDiff()
149 if (!before[i].trim { it <= ' ' }.isEmpty()) { in getDiff()
158 if (!after[j].trim { it <= ' ' }.isEmpty()) { in getDiff()
DDriver.kt133 … stdout.println("$ENV_VAR_METALAVA_PREPEND_ARGS: ${prepend.joinToString { "\"$it\"" }}") in run()
134 … stdout.println("$ENV_VAR_METALAVA_APPEND_ARGS: ${append.joinToString { "\"$it\"" }}") in run()
226 options.manifest?.let { codebase.manifest = it } in processFlags()
233 subtractApi(codebase, it) in processFlags()
258 it, codebase, docStubs = true, in processFlags()
277 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in processFlags()
329 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in processFlags()
404 it, codebase, docStubs = false, in processFlags()
414 RewriteAnnotations().copyAnnotations(codebase, file, File(it, file.name)) in processFlags()
425 val path = it.path in processFlags()
[all …]
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/
DModel.kt38 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 …]
DProcessModel.kt34 threadBuilder.add(ThreadModel(this, it)) in <lambda>()
36 threadBuilder.sortBy { it.id } in <lambda>()
38 … counters = fragment.counters.values.filter { it.events.isNotEmpty() }.map { Counter(it) }.toList() in <lambda>()
40 … hasContent = counters.isNotEmpty() || asyncSlices.isNotEmpty() || threads.any { it.hasContent } in <lambda>()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/task/
DImportTaskTest.kt36 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/trebuchet/startup-summarizer/src/
DStartupSummarizer.kt195 …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/trebuchet/core/common/src/test/kotlin/trebuchet/model/
DSliceGroupBuilderTest.kt28 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/
DREADME.md4 it does not generate docs; it's intended only for **meta**data extraction and
55 Metalava has a new command line syntax, but it also understands the doclava1
81 annotations. This isn't just merged at export time, it's merged at codebase
82 load time such that it can be part of the API analysis.
89 * Improve the signature format such that it for example labels enums "enum"
134 * Misc documentation handling; for example, it attempts to fix sentences that
152 the API and which one is implementation; it is simply handed the filtered API
163 but not versa). It also lets you diff directly on a source tree; it does not
172 StringBuilder.setLength(int) was missing from the API signatures since it is a
175 anyway since it packages package private classes. Metalava strictly applies
[all …]
DFORMAT.md9 through Android P. Note that this isn't actually a single format; it evolved
24 in format v2, but it was deferred since type-use annotations introduces
56 the version number. This makes it possible for tools to more safely interpret
154 "implement" it instead of "extend"-ing it, etc; enums and annotations are just
181 in the above it was missing from super interface Collection:
189 whereas in the v2 format it's included:
265 Kotlin's Java support means that it wil take a Kotlin property and compile it
276 it will get recorded in the signature files like this:
286 the getters and setters away from the defaults), but it's helpful to be explicit
352 files, that method does not exist, but clearly it's there in the SDK. The reason
[all …]
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt51 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/src/main/java/com/android/tools/metalava/model/psi/
DPsiModifierItem.kt167 val qualifiedName = it.qualifiedName in create()
171 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in create()
180 PsiAnnotationItem.create(codebase, it, qualifiedName) in create()
199 … psiAnnotations.map { PsiAnnotationItem.create(codebase, it) }.toMutableList() in create()
209 .filter { !isPrimitiveVariable || it !is KotlinNullabilityUAnnotation } in create()
212 val qualifiedName = it.qualifiedName in create()
215 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in create()
224 UAnnotationItem.create(codebase, it, qualifiedName) in create()
229 … if (psiAnnotations.isNotEmpty() && annotations.none { it.isNullnessAnnotation() }) { in create()
230 … val ktNullAnnotation = psiAnnotations.firstOrNull { it is KtLightNullabilityAnnotation } in create()
[all …]
/tools/external/fat32lib/
DNOTICE8 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/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceImporter.kt37 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>()
DFtraceLine.kt129 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/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParameterItem.kt47 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/
DTraceMarkerEvent.kt25 it.startTime = event.timestamp in <lambda>()
26 it.name = title in <lambda>()
34 it.endTime = event.timestamp in import()
75 val name = stringTo { skipUntil { it == '|'.toByte() } } in readCounter()
86 val name = stringTo { skipUntil { it == '|'.toByte() } } in BufferReader()
97 val name = stringTo { skipUntil { it == '|'.toByte() } } in BufferReader()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto51 // files it parses.
157 // starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
240 // store the values in them. Instead it stores them in a field in the *Options
343 // for everything in the file, or it will be completely ignored; in the very
353 // The parser stores options it doesn't recognize here. See above.
388 // for the message, or it will be completely ignored; in the very least,
415 // The parser stores options it doesn't recognize here. See above.
424 // representation of the field than it normally would. See the specific
426 // release -- sorry, we'll try to include it in a future version!
447 // form. The inner message will actually be parsed when it is first accessed.
[all …]

123456