Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 24 of 24) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DFlashingResourcesParserTest.java56 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 …]
DFastbootDeviceFlasherTest.java678 BufferedReader reader = new BufferedReader(new StringReader(androidInfoData)); in getFlasherWithParserData()
680 return new FlashingResourcesParser(reader); in getFlasherWithParserData()
/tools/dexter/dexter/
Ddexter.cc127 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/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java103 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()
DBerDataValueReaderTestBase.java49 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/core/src/com/android/tradefed/log/
DConsoleReaderOutputStream.java49 public ConsoleReaderOutputStream(ConsoleReader reader) { in ConsoleReaderOutputStream() argument
50 if (reader == null) throw new NullPointerException(); in ConsoleReaderOutputStream()
51 mConsoleReader = reader; in ConsoleReaderOutputStream()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraShotToShotLatencyTest.java119 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()
DCameraSettingsTest.java140 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()
DCamera2StressTest.java151 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog() local
158 while ((line = reader.readLine()) != null) { in parseLog()
170 reader.close(); in parseLog()
DCamera2FrameworkStressTest.java122 BufferedReader reader = new BufferedReader(new FileReader(outputFile)); in parseLog() local
129 while ((line = reader.readLine()) != null) { in parseLog()
140 reader.close(); in parseLog()
DCameraTestBase.java545 BufferedReader reader = null; in printMeminfo() local
549 reader = new BufferedReader(new StringReader(meminfo)); in printMeminfo()
557 while ((line = reader.readLine()) != null) { in printMeminfo()
/tools/tradefederation/core/src/com/android/tradefed/build/
DOtaZipfileBuildProvider.java77 BufferedReader reader = new BufferedReader( in getBuildPropContents() local
79 String line = reader.readLine(); in getBuildPropContents()
82 line = reader.readLine(); in getBuildPropContents()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestParserTestBase.java61 BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1)); in readInFile() local
63 while ((line = reader.readLine()) != null) { in readInFile()
DGoogleBenchmarkResultParserTest.java67 BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1)); in readInFile() local
69 while ((line = reader.readLine()) != null) { in readInFile()
/tools/loganalysis/src/com/android/loganalysis/parser/
DMemoryHealthParser.java107 public MemoryHealthItem parse(BufferedReader reader) throws IOException { in parse() argument
109 String line = reader.readLine(); in parse()
112 line = reader.readLine(); in parse()
/tools/dexter/slicer/
DAndroid.bp15 "reader.cc",
/tools/metalava/src/main/java/com/android/tools/metalava/apilevels/
DAndroidJarReader.java129 ClassReader reader = new ClassReader(bytes); in readJar() local
131 reader.accept(classNode, 0 /*flags*/); in readJar()
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/
DWifiMonitorService.java226 final BufferedReader reader = new BufferedReader(new InputStreamReader(in)); in getData() local
227 output = reader.readLine(); in getData()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessTestResultsParser.java251 BufferedReader reader = null; in parseFile() local
253 reader = new BufferedReader(new FileReader(file)); in parseFile()
261 while ((line = reader.readLine()) != null) { in parseFile()
264 reader.close(); in parseFile()
/tools/tradefederation/core/src/com/android/tradefed/command/
DConsole.java202 final ConsoleReader reader = new ConsoleReader(); in getReader() local
203 sConsoleStream = new ConsoleReaderOutputStream(reader); in getReader()
223 Console(ConsoleReader reader) { in Console() argument
226 mConsoleReader = reader; in Console()
227 if (reader != null) { in Console()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DAppTransitionTests.java420 BufferedReader reader = new BufferedReader(streamReader)) { in parseTransitionDelayInfo()
421 transitionDelayItems = mEventsLogParser.parseTransitionDelayInfo(reader); in parseTransitionDelayInfo()
437 BufferedReader reader = new BufferedReader(streamReader)) { in parseLatencyInfo()
438 latencyItems = mEventsLogParser.parseLatencyInfo(reader); in parseLatencyInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DSubprocessTestResultsParserTest.java68 BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1)); in readInFile() local
70 while ((line = reader.readLine()) != null) { in readInFile()
/tools/tradefederation/core/res/jacoco/
Djacocoagent.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...
Djacocoant.jarMETA-INF/MANIFEST.MF META-INF/MTNMINDS.SF META-INF/MTNMINDS ...