/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | StringSearch.kt | 68 … fun find(reader: StreamingReader, startIndex: Long = 0, inEndIndex: Long = Long.MAX_VALUE): Long { in find() 72 if (index > reader.endIndex) { in find() 73 if (!reader.loadIndex(index)) return -1 in find() 74 if (reader.reachedEof) { in find() 75 endIndex = reader.endIndex in find() 79 while (reader.windowFor(index) !== reader.windowFor(index - lookFor.length + 1)) { in find() 81 while (lookForIndex >= 0 && reader[index] == lookFor[lookForIndex].toByte()) { in find() 88 index += maxOf(skipLut[reader[index].toInt() and 0xFF], suffixSkip[lookForIndex]) in find() 90 if (index > reader.endIndex) { in find() 91 if (!reader.loadIndex(index)) return -1 in find() [all …]
|
D | BufferReader.kt | 74 class MatchResult(val reader: BufferReader) { constant in trebuchet.util.MatchResult 79 reader.index = startIndex + matcher!!.start(group) in int() 80 return reader.readInt() in int() 88 reader.index = startIndex + matcher!!.start(group) in double() 89 return reader.readDouble() in double() 93 reader.index = startIndex + matcher!!.start(group) in long() 94 return reader.readLong() in long() 98 reader.index = startIndex + matcher!!.start(group) in string() 100 return reader.stringTo { index = endAt } in string() 104 reader.index = startIndex + matcher!!.start(group) in slice() [all …]
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/ |
D | ZlibExtractorTest.kt | 35 val reader = StreamingReader(openSample()) in testFactorySuccess() constant 36 reader.loadIndex(reader.keepLoadedSize.toLong()) in testFactorySuccess() 37 assertNotNull(ZlibExtractor.Factory.extractorFor(reader, FatalImportFeedback)) in testFactorySuccess() 42 val reader = StreamingReader(openSample("sample.ftrace")) in testFactoryNotDeflated() constant 43 reader.loadIndex(reader.keepLoadedSize.toLong()) in testFactoryNotDeflated() 44 assertNull(ZlibExtractor.Factory.extractorFor(reader, FatalImportFeedback)) in testFactoryNotDeflated() 49 val reader = StreamingReader(openSample("caltrace1.html")) in testFactoryNoHeader() constant 50 reader.loadIndex(reader.keepLoadedSize.toLong()) in testFactoryNoHeader() 51 assertNull(ZlibExtractor.Factory.extractorFor(reader, FatalImportFeedback)) in testFactoryNoHeader()
|
/tools/dexter/dexter/ |
D | dexter.cc | 127 static void PrintDexMap(const dex::Reader& reader) { in PrintDexMap() argument 130 const dex::MapList& dexMap = *reader.DexMapList(); in PrintDexMap() 192 ? reader.Header()->file_size - section.offset in PrintDexMap() 228 static void PrintDexFileStats(const dex::Reader& reader) { in PrintDexFileStats() argument 229 auto header = reader.Header(); in PrintDexFileStats() 230 auto map_list = reader.DexMapList(); in PrintDexFileStats() 246 static void ListClasses(const dex::Reader& reader) { in ListClasses() argument 248 auto classes = reader.ClassDefs(); in ListClasses() 249 auto types = reader.TypeIds(); in ListClasses() 252 const char* descriptor = reader.GetStringMUTF8(typeId.descriptor_idx); in ListClasses() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/ |
D | FlashingResourcesParserTest.java | 56 BufferedReader reader = new BufferedReader(new StringReader(validInfoData)); in testParseAndroidInfo() local 57 AndroidInfo fullInfo = FlashingResourcesParser.parseAndroidInfo(reader, null); in testParseAndroidInfo() 77 BufferedReader reader = new BufferedReader(new StringReader(validInfoData)); in testParseAndroidInfo_withConstraint() local 81 AndroidInfo fullInfo = FlashingResourcesParser.parseAndroidInfo(reader, constraintMap); in testParseAndroidInfo_withConstraint() 107 BufferedReader reader = new BufferedReader(new StringReader(validInfoData)); in testParseAndroidInfo_boardAndProduct() local 109 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_boardAndProduct() 122 BufferedReader reader = new BufferedReader(new StringReader(validInfoData)); in testParseAndroidInfo_onlyBoard() local 124 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_onlyBoard() 140 BufferedReader reader = new BufferedReader(new StringReader(validInfoData)); in testParseAndroidInfo_onlyProduct() local 142 IFlashingResourcesParser parser = new FlashingResourcesParser(reader); in testParseAndroidInfo_onlyProduct() [all …]
|
/tools/trebuchet/trebuchet/traceutils/src/ |
D | TraceUtils.kt | 44 val reader = StreamingReader(stream) in findTraces() constant 45 reader.loadIndex(reader.keepLoadedSize.toLong()) in findTraces() 46 val extractor = ExtractorRegistry.extractorFor(reader, importFeedback) in findTraces() 48 extractor.extract(reader, { in findTraces() 53 val importer = ImporterRegistry.importerFor(reader, importFeedback) in findTraces() 55 traceFound(reader) in findTraces() 58 traceFound(reader) in findTraces() 68 fun copy(reader: StreamingReader, output: OutputStream) { in copy() 69 reader.windows.forEach { in copy() 73 var next = reader.source.next() in copy() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/ |
D | LogAnalyzer.java | 113 BufferedReader reader = null; in run() local 116 reader = getBufferedReader(mBugreportPath); in run() 117 BugreportItem bugreport = new BugreportParser().parse(reader); in run() 123 reader = getBufferedReader(mLogcatPath); in run() 124 LogcatItem logcat = new LogcatParser().parse(reader); in run() 130 reader = getBufferedReader(mKernelLogPath); in run() 131 KernelLogItem kernelLog = new KernelLogParser().parse(reader); in run() 137 reader = getBufferedReader(mMonkeyLogPath); in run() 138 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(reader); in run() 144 reader = getBufferedReader(mMemoryHealthLogPath); in run() [all …]
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/task/ |
D | ImportTask.kt | 40 val reader = StreamingReader(stream) in extractOrImport() constant 41 reader.loadIndex(reader.keepLoadedSize.toLong()) in extractOrImport() 42 val extractor = ExtractorRegistry.extractorFor(reader, importFeedback) in extractOrImport() 44 extractor.extract(reader, this::extractOrImport) in extractOrImport() 46 addImporterSource(reader) in extractOrImport() 55 private fun addImporterSource(reader: StreamingReader) { in addImporterSource() 56 val importer = ImporterRegistry.importerFor(reader, importFeedback) in addImporterSource() 58 val result = importer.import(reader) in addImporterSource()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueTest.java | 103 BerDataValueReader reader = TEST_VALUE1.dataValueReader(); in testDataValueReader() local 104 assertSame(TEST_VALUE1, reader.readDataValue()); in testDataValueReader() 105 assertNull(reader.readDataValue()); in testDataValueReader() 106 assertNull(reader.readDataValue()); in testDataValueReader() 118 BerDataValueReader reader = dataValue.contentsReader(); in testContentsReader() local 119 assertEquals(ByteBufferBerDataValueReader.class, reader.getClass()); in testContentsReader() 120 assertByteBufferEquals(HexEncoding.decode("30020304"), reader.readDataValue().getEncoded()); in testContentsReader() 121 assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); in testContentsReader() 122 assertNull(reader.readDataValue()); in testContentsReader()
|
D | BerDataValueReaderTestBase.java | 49 BerDataValueReader reader = createReader("3000"); // SEQUENCE with empty contents in testEndOfInput() local 50 assertNotNull(reader.readDataValue()); in testEndOfInput() 52 assertNull(reader.readDataValue()); in testEndOfInput() 54 assertNull(reader.readDataValue()); in testEndOfInput() 260 BerDataValueReader reader = createReader("37018f050001020304"); in testReadAdvancesPosition() local 261 assertByteBufferEquals(HexEncoding.decode("37018f"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 262 assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 263 assertByteBufferEquals(HexEncoding.decode("01020304"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 264 assertNull(reader.readDataValue()); in testReadAdvancesPosition()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | CameraShotToShotLatencyTest.java | 119 BufferedReader reader = null; in parseOutputFile() local 131 reader = new BufferedReader(new FileReader(outputFile)); in parseOutputFile() 133 lineMean = reader.readLine(); in parseOutputFile() 134 lineSd = reader.readLine(); in parseOutputFile() 157 if (reader != null) { in parseOutputFile() 159 reader.close(); in parseOutputFile()
|
D | CameraSettingsTest.java | 140 BufferedReader reader = null; in parseOutputFile() local 152 reader = new BufferedReader(new FileReader(outputFile)); in parseOutputFile() 154 while ((line = reader.readLine()) != null) { in parseOutputFile() 162 StreamUtil.close(reader); in parseOutputFile()
|
D | Camera2FrameworkStressTest.java | 123 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog() local 130 while ((line = reader.readLine()) != null) { in parseLog() 141 reader.close(); in parseLog()
|
D | Camera2StressTest.java | 152 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog() local 159 while ((line = reader.readLine()) != null) { in parseLog() 171 reader.close(); in parseLog()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/events/ |
D | EventParserState.kt | 102 val reader = BufferReader() in createEventParser() constant 105 reader.reset(slice, stringCache) in createEventParser() 106 return reader.tryMatch(matchers[matcher], result) in createEventParser() 114 return reader.read(detailsSlice, stringCache, init) in createEventParser()
|
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/importers/ftrace/ |
D | FtraceLine.kt | 75 private val reader: BufferReader constant 80 reader.read(line, stringCache) { in create() 90 reader(7) in create() 118 reader(7) in parseLine_new()
|
/tools/tradefederation/core/src/com/android/tradefed/log/ |
D | ConsoleReaderOutputStream.java | 49 public ConsoleReaderOutputStream(ConsoleReader reader) { in ConsoleReaderOutputStream() argument 50 if (reader == null) throw new NullPointerException(); in ConsoleReaderOutputStream() 51 mConsoleReader = reader; in ConsoleReaderOutputStream()
|
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/ |
D | ApiGenerator.java | 154 …AndroidJarReader reader = new AndroidJarReader(patterns, minApi, currentJar, currentApi, codebase); in generate() local 155 Api api = reader.getApi(); in generate() 162 AndroidJarReader reader = new AndroidJarReader(apiLevels, codebase); in generate() local 163 Api api = reader.getApi(); in generate()
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/importers/ftrace/ |
D | FtraceImporterTest.kt | 29 val reader = this.makeReader() in String() constant 30 reader.loadIndex(reader.keepLoadedSize.toLong()) in String() 31 return reader in String()
|
/tools/tradefederation/core/src/com/android/tradefed/build/ |
D | OtaZipfileBuildProvider.java | 77 BufferedReader reader = new BufferedReader( in getBuildPropContents() local 79 String line = reader.readLine(); in getBuildPropContents() 82 line = reader.readLine(); in getBuildPropContents()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | RewriteAnnotations.kt | 162 val reader = ClassReader(bytes) in <lambda>() constant 163 rewriteOuterClass(reader) in <lambda>() 169 private fun rewriteOuterClass(reader: ClassReader): ByteArray? { in <lambda>() 193 reader.accept(classVisitor, 0) in <lambda>()
|
D | ConvertJarsToSignatureFiles.kt | 188 val reader: ClassReader in <lambda>() constant 192 reader = ClassReader(bytes) in <lambda>() 194 reader.accept(classNode, 0) in <lambda>()
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MemoryHealthParser.java | 107 public MemoryHealthItem parse(BufferedReader reader) throws IOException { in parse() argument 109 String line = reader.readLine(); in parse() 112 line = reader.readLine(); in parse()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | GTestParserTestBase.java | 59 BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1)); in readInFile() local 61 while ((line = reader.readLine()) != null) { in readInFile()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SubprocessTestResultsParser.java | 272 BufferedReader reader = null; in parseFile() local 274 reader = new BufferedReader(new FileReader(file)); in parseFile() 282 while ((line = reader.readLine()) != null) { in parseFile() 285 reader.close(); in parseFile()
|