Home
last modified time | relevance | path

Searched refs:startIndex (Results 1 – 15 of 15) 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
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/tradefederation/core/javatests/com/android/tradefed/log/
DFileLoggerTest.java106 int startIndex = message.indexOf(LOG_TAG) - 2; in trimTimestamp() local
107 return message.substring(startIndex); in trimTimestamp()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTest.java463 int startIndex = shardIndex * chunkSize; in runSingleParFile() local
465 if (startIndex >= totalTests) { in runSingleParFile()
466 startIndex = Math.max(0, totalTests - 1); in runSingleParFile()
469 includedTests = includedTests.subList(startIndex, endIndex); in runSingleParFile()
/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/test_framework/com/android/tradefed/testtype/pandora/
DPtsBotTest.java222 int startIndex = 0; in split() local
315 int startIndex = shardIndex * chunkSize; in run() local
320 String[] tests = Arrays.copyOfRange(allFilteredTests, startIndex, endIndex); in run()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt277 typeName.indexOf('<', startIndex = KOTLIN_FUNCTION_PREFIX.length) + 1 in <lambda>()
/tools/dexter/testdata/expected/
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"