Home
last modified time | relevance | path

Searched refs:Int (Results 1 – 25 of 151) sorted by relevance

1234567

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/collections/
DSparseArray.kt20 class SparseArray<E> constructor(initialCapacity: Int = 10) {
25 private var mSize: Int = 0
42 operator fun get(key: Int): E? { in get()
50 operator fun get(key: Int, valueIfKeyNotFound: E?): E? { in get()
63 fun delete(key: Int) { in delete()
77 fun remove(key: Int) { in remove()
84 fun removeAt(index: Int) { in removeAt()
98 fun removeAtRange(index: Int, size: Int) { in removeAtRange()
134 fun put(key: Int, value: E) { in put()
183 fun size(): Int { in size()
[all …]
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DDataSlice.kt20 var startIndex: Int,
21 var endIndex: Int) {
31 inline operator fun get(i: Int): Byte = buffer[startIndex + i] in get()
34 inline fun slice(startIndex: Int, endIndex: Int = this.endIndex, in get()
40 inline val length: Int get() = endIndex - startIndex
42 fun set(buffer: ByteArray, startIndex: Int, endIndex: Int) { in set()
67 private var _cachedHashCode: Int = 1
69 override fun hashCode(): Int { in hashCode()
90 fun ByteArray.asSlice(length: Int = this.size) = DataSlice(this, 0, length) in ByteArray()
96 override val length: Int get() = data.length in ByteArray()
[all …]
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt26 open class BufferReaderState(var buffer: ByteArray, var index: Int, var endIndexExclusive: Int) { in isDigit()
37 inline fun skipCount(count: Int) { in isDigit()
76 var startIndex: Int = 0
78 fun int(group: Int): Int { in int()
83 fun intOr(group: Int, default: Int): Int { in intOr()
87 fun double(group: Int): Double { in double()
92 fun long(group: Int): Long { in long()
97 fun string(group: Int): String { in string()
103 fun slice(group: Int): DataSlice { in slice()
109 fun reader(group: Int): BufferReader { in reader()
[all …]
DByteArrayList.kt22 class ByteArrayList constructor(initialCapacity: Int = 10) {
24 var size: Int = 0
27 var capacity: Int
37 operator fun get(index: Int): Byte { in get()
47 fun put(buf: ByteArray, offset: Int, length: Int) { in put()
57 fun reset(initialCapacity: Int = 10): DataSlice { in reset()
DStringSearch.kt32 fun isPrefix(str: CharSequence, pos: Int): Boolean { in isPrefix()
36 fun longestCommonSuffix(word: CharSequence, pos: Int): Int { in longestCommonSuffix()
37 var i: Int = 0 in longestCommonSuffix()
151 fun find(buffer: ByteArray, startIndex: Int = 0, endIndex: Int = buffer.size): Int { in find()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DKotlinInteropChecksTest.kt285 fun error_throwsCheckedExceptionWithWrongExceptionClassInThrows(x: Int) { in Methods annotated @JvmSynthetic with default parameters don't require @JvmOverloads()
292 fun ok_hasThrows1(x: Int) { in ok_hasThrows1()
299 fun ok_hasThrows2(x: Int) { in ok_hasThrows2()
305 fun error_throwsRuntimeExceptionDocsMissing(x: Int) { in error_throwsRuntimeExceptionDocsMissing()
312 fun error_missingSpecificAnnotation(x: Int) { in error_missingSpecificAnnotation()
319 fun ok_docsPresent(x: Int) { in ok_docsPresent()
325 fun ok_exceptionCaught(x: Int) { in ok_exceptionCaught()
334 fun ok_exceptionCaught2(x: Int) { in ok_exceptionCaught2()
343 var errorVar: Int
348 var okValAnnotation: Int
[all …]
DAndroidJarsToSignaturesCommandTest.kt86 fun oldAndroidJarFile(apiVersion: Int): String { in Test convert jars()
89 fun currentVersionDir(apiVersion: Int): String { in Test convert jars()
92 fun currentApiDir(apiVersion: Int): String { in Test convert jars()
95 fun currentAndroidJarFile(apiVersion: Int): String { in Test convert jars()
98 fun currentApiTxtFile(apiVersion: Int): String { in Test convert jars()
103 val version: Int, in Test convert jars()
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DAsyncSlicesBuilder.kt26 val cookie: Int,
28 val startThreadId: Int,
29 var endThreadId: Int
36 private fun key(name: String, cookie: Int): String { in key()
40 fun openAsyncSlice(pid: Int, name: String, cookie: Int, startTime: Double) { in openAsyncSlice()
45 fun closeAsyncSlice(pid: Int, name: String, cookie: Int, endTime: Double) { in closeAsyncSlice()
DProcessModelFragment.kt22 class ProcessModelFragment(id: Int, var name: String? = null, in <lambda>()
24 private var _id: Int = id in <lambda>()
25 var id: Int in <lambda>()
35 private val _threads = mutableMapOf<Int, ThreadModelFragment>() in <lambda>()
48 fun threadFor(pid: Int, name: String? = null): ThreadModelFragment { in <lambda>()
83 fun hint(id: Int = InvalidId, name: String? = null) { in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/
DSchedEvent.kt51 private fun MatchResult.schedState(group: Int) = read(group) { readSchedulingState() } in <lambda>()
53 class SchedSwitchEvent(val prevComm: String, val prevPid: Int, val prevPrio: Int,
54 val prevState: SchedulingState, val nextComm: String, val nextPid: Int,
55 val nextPrio: Int) : FtraceEventDetails {
67 class SchedWakeupEvent(val comm: String, val pid: Int, val prio: Int, val targetCpu: Int)
DFtraceEvent.kt27 val pid: Int, in <lambda>()
28 val tgid: Int, in <lambda>()
29 val cpu: Int, in <lambda>()
39 private var ftraceLineMatcher: Int = -1 in <lambda>()
40 private var cpuBufferStarted: Int = -1 in <lambda>()
DTraceMarkerEvent.kt22 class BeginSliceEvent(val tgid: Int, val title: String) : FtraceEventDetails { in <lambda>()
39 class CounterSliceEvent(val tgid: Int, val name: String, val value: Long) : FtraceEventDetails {
47 class StartAsyncSliceEvent(val tgid: Int, val name: String, val cookie: Int) : FtraceEventDetails {
54 class FinishAsyncSliceEvent(val tgid: Int, val name: String, val cookie: Int) : FtraceEventDetails {
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DTimelineView.kt43 override fun getScrollableBlockIncrement(visibleRect: Rectangle, orientation: Int, in getScrollableBlockIncrement()
44 direction: Int): Int { in getScrollableBlockIncrement()
48 override fun getScrollableUnitIncrement(visibleRect: Rectangle, orientation: Int, in getScrollableUnitIncrement()
49 direction: Int): Int { in getScrollableUnitIncrement()
95 private val zoomFocalPointX: Int get() { in isFocusable()
DRenderState.kt22 class RenderState(minX: Double, maxX: Double, viewWidth: Int) { in <lambda>()
39 fun xViewToWorld(x: Int) = (x / scale) + panX in <lambda>()
41 fun zoomBy(amount: Double, viewX: Int) { in <lambda>()
51 fun pan(deltaX: Int) { in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/
DFtraceLine.kt33 private var _pid: Int = 0
34 private var _tgid: Int = 0
35 private var _cpu: Int = 0
41 var tgid: Int
56 private fun set(taskName: String?, pid: Int, tgid: Int, cpu: Int, timestamp: Double, in set()
126 var tgid: Int = InvalidId in parseLine()
DFtraceImporterState.kt44 private fun createProcess(tgid: Int, name: String? = null): ThreadModelFragment { in <lambda>()
55 fun processFor(tgid: Int, name: String? = null): ProcessModelFragment { in <lambda>()
76 fun threadFor(pid: Int, tgid: Int = InvalidId, task: String? = null): ThreadModelFragment { in <lambda>()
95 fun cpuFor(cid: Int): CpuModelFragment { in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt351 Int::class -> value.toInt() in convertValue()
455 override fun hashCode(): Int { in hashCode()
640 private fun findEnd(source: String, from: Int, to: Int, sentinel: Char): Int { in findEnd()
657 from: Int, in addAttribute()
658 to: Int in addAttribute()
666 val valueBegin: Int in addAttribute()
667 val valueEnd: Int in addAttribute()
693 override fun hashCode(): Int { in hashCode()
765 override fun hashCode(): Int { in toSource()
782 override fun hashCode(): Int { in hashCode()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DApiClass.kt28 class ApiClass(name: String, version: Int, deprecated: Boolean) :
42 fun addField(name: String, version: Int, deprecated: Boolean): ApiElement { in addField()
49 fun addMethod(name: String, version: Int, deprecated: Boolean): ApiElement { in addMethod()
65 fun addSuperClass(superClass: String, since: Int): ApiElement { in addSuperClass()
80 fun updateHidden(api: Int, hidden: Boolean) { in updateHidden()
88 fun addInterface(interfaceClass: String, since: Int) { in addInterface()
98 version: Int, in addToMap()
114 version: Int in addToArray()
298 var min = Int.MAX_VALUE in removeHiddenSuperClasses()
DJarReaderUtils.kt28 fun Api.readAndroidJar(apiLevel: Int, jar: File) { in <lambda>()
33 fun Api.readExtensionJar(extensionVersion: Int, module: String, jar: File, nextApiLevel: Int) { in readExtensionJar()
37 fun Api.readJar(apiLevel: Int, jar: File, extensionVersion: Int? = null, module: String? = null) { in readJar()
112 private fun isDeprecated(access: Int) = (access and Opcodes.ACC_DEPRECATED) != 0
DApiElement.kt60 internal constructor(name: String, version: Int, deprecated: Boolean = false) {
90 fun update(version: Int, deprecated: Boolean) { in update()
118 fun update(version: Int) { in update()
127 fun updateExtension(version: Int) { in updateExtension()
229 override fun compareTo(other: ApiElement): Int { in compareTo()
234 const val NEVER = Int.MAX_VALUE
DApiGenerator.kt39 firstApiLevel: Int, in <lambda>()
40 currentApiLevel: Int, in <lambda>()
133 private fun createApiFromAndroidJars(apiLevels: Array<File>, firstApiLevel: Int): Api { in <lambda>()
164 apiLevelNotInAndroidSdk: Int, in <lambda>()
167 skipVersionsGreaterThan: Int? in <lambda>()
256 var skipVersionsGreaterThan: Int? in <lambda>()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSliceTrack.kt29 trackHeight: Int = LayoutConstants.TrackHeight) : JComponent() {
43 var x: Int in paintComponent()
44 var width: Int in paintComponent()
70 open fun drawLabel(slice: T, g: Graphics, metrics: FontMetrics, x: Int, y: Int, width: Int) { in drawLabel()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/doc/
DDocAnalyzer.kt175 depth: Int, in <lambda>()
526 if (level is Int) { in <lambda>()
703 val pkgApi = HashMap<PackageItem, Int?>(300) in <lambda>()
758 private fun addApiLevelDocumentation(level: Int, item: Item) { in <lambda>()
819 private fun addDeprecatedDocumentation(level: Int, item: Item) { in <lambda>()
856 fun ApiConstraint.minApiLevel(): Int { in ApiConstraint()
867 fun ApiLookup.getClassVersion(cls: ClassItem): Int { in getClassVersion()
874 fun ApiLookup.getMethodVersion(method: MethodItem): Int { in ApiLookup()
883 fun ApiLookup.getFieldVersion(field: FieldItem): Int { in ApiLookup()
889 fun ApiLookup.getClassDeprecatedIn(cls: ClassItem): Int { in ApiLookup()
[all …]
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DCMakeCompatibleVersion.kt30 val major: Int,
31 val minor: Int?,
32 val patch: Int?,
33 val tweak: Int?
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiFileLocation.kt61 private var _line: Int = Int.MIN_VALUE
69 override val line: Int
83 if (_line != Int.MIN_VALUE) { in ensureInitialized()
155 private fun getLineNumber(text: String, offset: Int): Int { in getLineNumber()

1234567