Home
last modified time | relevance | path

Searched refs:startIndex (Results 1 – 18 of 18) sorted by relevance

/tools/trebuchet/core/common/src/main/kotlin/trebuchet/io/
DDataSlice.kt20 var startIndex: Int, variable in trebuchet.io.DataSlice
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()
36 dest.set(buffer, this.startIndex + startIndex, this.startIndex + endIndex) in get()
40 inline val length: Int get() = endIndex - startIndex
42 fun set(buffer: ByteArray, startIndex: Int, endIndex: Int) { in set()
44 this.startIndex = startIndex in set()
55 var myIndex = startIndex in equals()
56 var otherIndex = other.startIndex in equals()
72 for (i in startIndex..endIndex-1) { in hashCode()
[all …]
DStreamingReader.kt25 var startIndex: Long = 0 variable
34 get() = endIndex - startIndex + 1 in get()
43 throw IndexOutOfBoundsException("$i not in range $startIndex..$endIndex") in get()
58 fun iter(startIndex: Long = 0L): Iterator<DataSlice> { in iter()
61 if (startIndex <= win.globalStartIndex) { in iter()
63 } else if (startIndex <= win.globalEndIndex) { in iter()
64 yield(win.slice.slice((startIndex - win.globalStartIndex).toInt())) in iter()
91 startIndex = windows[0].globalStartIndex in addBuffer()
DStreamingLineReader.kt21 private fun findNewlineInWindow(window: StreamingReader.Window, startIndex: Long): Long { in findNewlineInWindow()
22 for (i in startIndex..window.globalEndIndex) { in findNewlineInWindow()
35 var lineStartIndex = stream.startIndex in <lambda>()
61 if (lineStartIndex >= stream.startIndex && (lineEndIndexInclusive - lineStartIndex) >= 0) { in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extractors/
DSystraceExtractor.kt25 private var startIndex: Long = 0 in <lambda>() variable in trebuchet.extractors.SystraceExtractor
31 startIndex = START.find(stream, startIndex) in <lambda>()
32 if (startIndex == -1L) return in <lambda>()
33 startIndex += START.length in <lambda>()
34 if (!stream.loadIndex(startIndex)) return in <lambda>()
35 if (stream[startIndex] == '\n'.toByte()) startIndex++ in <lambda>()
41 endIndex = END.find(stream, startIndex) in <lambda>()
55 startIndex = endIndex in <lambda>()
64 if (window.globalEndIndex >= startIndex && window.globalStartIndex < endIndex) { in <lambda>()
65 if (window.globalStartIndex >= startIndex && window.globalEndIndex <= endIndex) { in <lambda>()
[all …]
DZlibExtractor.kt50 stream.loadIndex(stream.startIndex + 1024) in <lambda>()
56 inflater.setInput(nextBuffer.buffer, nextBuffer.startIndex, nextBuffer.length) in <lambda>()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DBufferReader.kt64 val startIndex = index constant in trebuchet.util.PreviewReader
67 if (index < startIndex) { throw IndexOutOfBoundsException() } in rewind()
76 var startIndex: Int = 0 variable in trebuchet.util.MatchResult
79 reader.index = startIndex + matcher!!.start(group) in int()
88 reader.index = startIndex + matcher!!.start(group) in double()
93 reader.index = startIndex + matcher!!.start(group) in long()
98 reader.index = startIndex + matcher!!.start(group) in string()
99 val endAt = startIndex + matcher!!.end(group) in string()
104 reader.index = startIndex + matcher!!.start(group) in slice()
105 val endAt = startIndex + matcher!!.end(group) in slice()
[all …]
DStringSearch.kt68 … fun find(reader: StreamingReader, startIndex: Long = 0, inEndIndex: Long = Long.MAX_VALUE): Long { in find()
69 var index = startIndex + lookFor.length - 1 in find()
109 var index = reader.startIndex + lookFor.length - 1 in findInLoadedRegion()
134 … fun find(buffer: GenericByteBuffer, startIndex: Long = 0, endIndex: Long = buffer.length): Long { in find()
135 var index = startIndex + lookFor.length - 1 in find()
151 fun find(buffer: ByteArray, startIndex: Int = 0, endIndex: Int = buffer.size): Int { in find()
152 var index = startIndex + lookFor.length - 1 in find()
DByteArrayList.kt54 put(slice.buffer, slice.startIndex, slice.length) in put()
/tools/trebuchet/trebuchet/traceutils/src/
DTraceUtils.kt71 output.write(slice.buffer, slice.startIndex, slice.length) in copy()
75 output.write(next.buffer, next.startIndex, next.length) in copy()
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1BerParser.java340 int startIndex = delimiterIndex + 1; in getElementType() local
341 int endIndex = type.indexOf('>', startIndex); in getElementType()
346 String elementClassName = type.substring(startIndex, endIndex); in getElementType()
/tools/tradefederation/core/tests/src/com/android/tradefed/log/
DFileLoggerTest.java106 int startIndex = message.indexOf(LOG_TAG) - 2; in trimTimestamp() local
107 return message.substring(startIndex); in trimTimestamp()
/tools/dexter/testdata/expected/
Dmedium.rewrite37891 .local v33, "startIndex", int
38176 .local v1, "startIndex", int
41099 .params "counts", "startIndex", "endIndex"
89181 .local v13, "startIndex", int
145467 .local v6, "startIndex", int
167634 .params "str", "startIndex"
Dmedium.wrap_invoke37891 .local v33, "startIndex", int
38176 .local v1, "startIndex", int
41099 .params "counts", "startIndex", "endIndex"
89181 .local v13, "startIndex", int
145467 .local v6, "startIndex", int
167634 .params "str", "startIndex"
Dmedium.scratch_regs46001 .local v33, "startIndex", int
46298 .local v5, "startIndex", int
49519 .params "counts", "startIndex", "endIndex"
104341 .local v13, "startIndex", int
168269 .local v6, "startIndex", int
194237 .params "str", "startIndex"
Dmedium.exit_hook40397 .local v33, "startIndex", int
40683 .local v1, "startIndex", int
43655 .params "counts", "startIndex", "endIndex"
93753 .local v13, "startIndex", int
152227 .local v6, "startIndex", int
175558 .params "str", "startIndex"
Dmedium.entry_hook39249 .local v33, "startIndex", int
39535 .local v1, "startIndex", int
42480 .params "counts", "startIndex", "endIndex"
91577 .local v13, "startIndex", int
149045 .local v6, "startIndex", int
171805 .params "str", "startIndex"
Dmedium.compact_cfg45685 .local v33, "startIndex", int
46028 .local v1, "startIndex", int
49454 .params "counts", "startIndex", "endIndex"
107023 .local v13, "startIndex", int
173911 .local v6, "startIndex", int
201020 .params "str", "startIndex"
Dmedium.asm167599 .params "str", "startIndex"