Home
last modified time | relevance | path

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

12345678

/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt58 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>()
429 .filter { it.internalDesc() == desc } in <lambda>()
430 .forEach { return it } in <lambda>()
[all …]
/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/
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) } in <lambda>()
173 superClass?.let { addConstructors(it, filter) } in <lambda>()
214 .map { it.isPrivate } in <lambda>()
222 it.mutableModifiers().setVisibilityLevel(visibilityLevel) in <lambda>()
223 it.hidden = false in <lambda>()
224 it.superConstructor = superClass?.stubConstructor in <lambda>()
260 if (filterEmit.test(it)) { in <lambda>()
[all …]
DApiLint.kt877 if (fields.none { it.name() == "CREATOR" }) { in <lambda>()
883 if (methods.none { it.name() == "writeToParcel" }) { in <lambda>()
889 if (methods.none { it.name() == "describeContents" }) { in <lambda>()
904 val parameters = it.parameters() in <lambda>()
1250 fields.firstOrNull { it.name() == fieldName }?.let { field -> in <lambda>()
1398 it.toType().toTypeString() in <lambda>()
1444 val builtMethods = builtClass.filteredMethods(filterReference).map { it.name() }.toSet() in <lambda>()
1466 val implementsIInterface = interfaces.any { it.toTypeString() == "android.os.IInterface" } in <lambda>()
2100 if (methods.none { !it.modifiers.isStatic() } && in <lambda>()
2101 fields.none { !it.modifiers.isStatic() }) { in <lambda>()
[all …]
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(Issues.INVALID_NULLABILITY_ANNOTATION, it.method, it.toString()) } in <lambda>()
[all …]
DDriver.kt121 if (options.allReporters.any { it.hasErrors() } && !options.passBaselineUpdates) { in run()
171 it.writeErrorMessage(stderr) in run()
230 val totalErrors = reporters.sumBy { it.errorCount } in repeatErrors()
234 var numShown = it.printErrors(writer, remainingCap) in repeatErrors()
252 sources.firstOrNull { !it.path.endsWith(DOT_TXT) }?. let { in processFlags()
265 options.manifest?.let { codebase.manifest = it } in processFlags()
273 subtractApi(codebase, it) in processFlags()
298 it, codebase, docStubs = true, in processFlags()
342 val memberIsNotCloned: Predicate<Item> = Predicate { !it.isCloned() } in processFlags()
387 it, codebase, docStubs = false, in processFlags()
[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 …]
DReporter.kt342 sb.append(it).append(": ") in format()
356 sb.append(" [").append(it.name).append("]") in format()
360 location?.let { sb.append(it).append(": ") } in format()
372 id?.let { sb.append(it.name).append(": ") } in format()
386 sb.append(it.name) in format()
389 sb.append(it.code) in format()
392 if (it.rule != null) { in format()
393 sb.append(" [Rule ").append(it.rule) in format()
394 val link = it.category.ruleLink in format()
434 writer.println(it) in printErrors()
[all …]
DOptions.kt1232 var argument = it in <lambda>()
1242 prev = it in <lambda>()
1766 classpath.none { it.name == FN_FRAMEWORK_LIBRARY }) { in <lambda>()
1794 it.name == propertyName in <lambda>()
1814 … showAnnotations.getIncludedAnnotationNames().forEach { sb.append(annotationToPrefix(it)) } in <lambda>()
1901 .map { fileForPathInner(it.replace("%", apiLevel.toString())) } in <lambda>()
1902 .firstOrNull { it.isFile } in <lambda>()
2055 .map { fileForPathInner(it) } in <lambda>()
2069 pathList.asSequence().map { File(it) }.forEach { in <lambda>()
2070 if (!allowDirs && !it.isFile) { in <lambda>()
[all …]
/tools/metalava/
DREADME.md4 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 …]
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/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/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/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 …]
/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/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/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 …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt91 .map { it.createFile(dir) } in <lambda>()
92 .forEach { assertNotNull(it) } in <lambda>()
494 if (sourceFiles.any { it.targetPath.startsWith("src2") }) { in <lambda>()
504 signatureSource?. let { sources.add(it) } in <lambda>()
526 … sourceFiles.asSequence().map { File(project, it.targetPath).path }.toList().toTypedArray() in <lambda>()
531 .map { it.createFile(project) } in <lambda>()
532 .map { it.path } in <lambda>()
533 .joinToString(separator = File.pathSeparator) { it } in <lambda>()
977 importedPackageArgs.add(it) in <lambda>()
983 skipEmitPackagesArgs.add(it) in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiModifierItem.kt183 val qualifiedName = it.qualifiedName in create()
187 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in create()
196 PsiAnnotationItem.create(codebase, it, qualifiedName) in create()
215 … psiAnnotations.map { PsiAnnotationItem.create(codebase, it) }.toMutableList() in create()
225 .filter { !isPrimitiveVariable || it !is KotlinNullabilityUAnnotation } in create()
228 val qualifiedName = it.qualifiedName in create()
231 val otherwise = it.findAttributeValue(ATTR_OTHERWISE) in create()
240 UAnnotationItem.create(codebase, it, qualifiedName) in create()
245 … if (psiAnnotations.isNotEmpty() && annotations.none { it.isNullnessAnnotation() }) { in create()
246 … val ktNullAnnotation = psiAnnotations.firstOrNull { it is KtLightNullabilityAnnotation<*> } in create()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DJavaStubWriter.kt59 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/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/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/apkzlib/src/test/resources/testData/packaging/text-files/
Drfc2460.txt178 Note: it is possible, though unusual, for a device with multiple
353 unrecognized by the node, it should discard the packet and send an
383 When more than one extension header is used in the same packet, it is
421 being tunneled over or encapsulated in IPv6), it may be followed by
431 appear immediately after an IPv6 header only. Nonetheless, it is
551 NOTE! the format of the Pad1 option is a special case -- it does
805 A Routing header is not examined or processed until it reaches the
1018 However, it is not required that a source node know the maximum
1019 packet lifetime. Rather, it is assumed that the requirement can
1029 "original packet", and it is considered to consist of two parts, as
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/pts/instructions/
DGAP_PTS_INSTRUCTIONS189 Note: Run the test a first time and it will fail. Change the address to
198 Note: Do not accept pairing on phone until after you accept it on PTS
207 Note: Run the test a first time and it will fail. Change the address to
228 Note: Do not accept pairing on phone until after you accept it on PTS
250 Note: Run the test a first time and it will fail. Change the address to
267 Note: Run the test a first time and it will fail. Change the address to
275 Do not accept pairing on phone until after you accept it on PTS
296 Note: Run the test a first time and it will fail. Change the address to
311 Note: Do not accept pairing on phone until after you accept it on PTS
317 Note: Run the test a first time and it will fail. Change the address to
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/
Dplugin.proto66 // appears before any file that imports it.
73 // is not similarly optimized on protoc's end -- it will store all fields in
81 // should exit with status code zero even if it reports an error in this way.
101 // this writing protoc does not optimize for this -- it will read the entire
112 // The annotation can have arbitrary text before and after it on the line,
113 // which allows it to be placed in a comment. NAME should be replaced with
118 // The double-@ is intended to make it unlikely that the generated code
122 // .pb.h files that it generates:
137 // inserts into it must both run as part of a single invocation of protoc.

12345678