Home
last modified time | relevance | path

Searched refs:contents (Results 1 – 25 of 61) sorted by relevance

123

/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DStreamUtilTest.java41 final String contents = "this is a string"; in testGetByteArrayListFromSource() local
42 final byte[] contentBytes = contents.getBytes(); in testGetByteArrayListFromSource()
60 final String contents = "this is a string"; in testGetByteArrayListFromStream() local
61 final byte[] contentBytes = contents.getBytes(); in testGetByteArrayListFromStream()
77 final String contents = "this is a string"; in testGetStringFromSource() local
78 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetStringFromSource()
81 assertEquals(contents, output); in testGetStringFromSource()
90 final String contents = "this is a string"; in testGetBufferedReaderFromInputStream() local
92 try (InputStreamSource source = new ByteArrayInputStreamSource(contents.getBytes())) { in testGetBufferedReaderFromInputStream()
94 assertEquals(contents, output.readLine()); in testGetBufferedReaderFromInputStream()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DGTestXmlResultParserTest.java80 File contents = readInFile(GTEST_OUTPUT_FILE_1); in testParseSimpleFile() local
101 resultParser.parseResult(contents, null); in testParseSimpleFile()
104 FileUtil.deleteFile(contents); in testParseSimpleFile()
112 File contents = readInFile(GTEST_OUTPUT_FILE_2); in testParseLargerFile() local
129 resultParser.parseResult(contents, null); in testParseLargerFile()
132 FileUtil.deleteFile(contents); in testParseLargerFile()
142 File contents = readInFile(GTEST_OUTPUT_FILE_3); in testParseWithFailures() local
166 resultParser.parseResult(contents, null); in testParseWithFailures()
169 FileUtil.deleteFile(contents); in testParseWithFailures()
179 File contents = FileUtil.createTempFile("test", ".xml"); in testParseWithEmptyFile() local
[all …]
DGTestResultParserTest.java40 String[] contents = readInFile(GTEST_OUTPUT_FILE_1); in testParseSimpleFile() local
56 resultParser.processNewLines(contents); in testParseSimpleFile()
64 String[] contents = readInFile(GTEST_OUTPUT_FILE_2); in testParseSimpleFileNoTimes() local
80 resultParser.processNewLines(contents); in testParseSimpleFileNoTimes()
88 String[] contents = readInFile(GTEST_OUTPUT_FILE_3); in testParseNoTests() local
96 resultParser.processNewLines(contents); in testParseNoTests()
104 String[] contents = readInFile(GTEST_OUTPUT_FILE_4); in testParseLargerFile() local
120 resultParser.processNewLines(contents); in testParseLargerFile()
130 String[] contents = readInFile(GTEST_OUTPUT_FILE_5); in testParseWithFailures() local
181 resultParser.processNewLines(contents); in testParseWithFailures()
[all …]
DGTestListTestParserTest.java43 String[] contents = readInFile(GTEST_LIST_FILE_1); in testParseSimpleList() local
58 parser.processNewLines(contents); in testParseSimpleList()
68 String[] contents = readInFile(GTEST_LIST_FILE_2); in testParseMultiClassList() local
83 parser.processNewLines(contents); in testParseMultiClassList()
92 String[] contents = readInFile(GTEST_LIST_FILE_3); in testParseMalformedList() local
97 parser.processNewLines(contents); in testParseMalformedList()
108 String[] contents = readInFile(GTEST_LIST_FILE_4); in testParseSimpleList_withSpecialChar() local
132 parser.processNewLines(contents); in testParseSimpleList_withSpecialChar()
145 String[] contents = readInFile(GTEST_LIST_FILE_5); in testParseParameterized() local
160 parser.processNewLines(contents); in testParseParameterized()
DGoogleBenchmarkResultParserTest.java101 CollectingOutputReceiver contents = readInFile(GBENCH_OUTPUT_FILE_1); in testParseSimpleFile() local
104 Map<String, String> results = resultParser.parse(contents); in testParseSimpleFile()
159 CollectingOutputReceiver contents = readInFile(GBENCH_OUTPUT_FILE_2); in testParseSimpleFile_twoTests() local
162 resultParser.parse(contents); in testParseSimpleFile_twoTests()
183 CollectingOutputReceiver contents = readInFile(GBENCH_OUTPUT_FILE_3); in testParse_contextError() local
186 resultParser.parse(contents); in testParse_contextError()
197 CollectingOutputReceiver contents = readInFile(GBENCH_OUTPUT_FILE_4); in testParse_noBenchmarkResults() local
200 resultParser.parse(contents); in testParse_noBenchmarkResults()
221 CollectingOutputReceiver contents = readInFile(GBENCH_OUTPUT_FILE_7); in testParse_benchmarkError() local
224 resultParser.parse(contents); in testParse_benchmarkError()
[all …]
DPythonUnitTestResultParserTest.java544 String[] contents = readInFile(PYTHON_OUTPUT_FILE_1); in testParseRealOutput() local
568 mParser.processNewLines(contents); in testParseRealOutput()
582 String[] contents = readInFile(PYTHON_OUTPUT_FILE_2); in testParseRealOutput2() local
591 mParser.processNewLines(contents); in testParseRealOutput2()
597 String[] contents = readInFile(PYTHON_OUTPUT_FILE_3); in testParseRealOutput3() local
614 mParser.processNewLines(contents); in testParseRealOutput3()
620 String[] contents = readInFile("python_subtest_output.txt"); in testParseSubtestOutput() local
643 mParser.processNewLines(contents); in testParseSubtestOutput()
657 String[] contents = readInFile(PYTHON_OUTPUT_FILE_1); in testParseTestResults_withIncludeFilters() local
692 mParser.processNewLines(contents); in testParseTestResults_withIncludeFilters()
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DAndroidBinXmlParser.java298 ByteBuffer contents = chunk.getContents(); in next() local
299 if (contents.remaining() < 20) { in next()
302 + contents.remaining() + " bytes"); in next()
304 long nsId = getUnsignedInt32(contents); in next()
305 long nameId = getUnsignedInt32(contents); in next()
306 int attrStartOffset = getUnsignedInt16(contents); in next()
307 int attrSizeBytes = getUnsignedInt16(contents); in next()
308 int attrCount = getUnsignedInt16(contents); in next()
310 contents.position(0); in next()
311 if (attrStartOffset > contents.remaining()) { in next()
[all …]
/tools/apksig/src/test/java/com/android/apksig/util/
DInMemoryDataSinkDataSourceTest.java29 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument
31 sink.consume(contents, 0, contents.length); in createDataSource()
DDataSourceFromRAFChunkTest.java73 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument
75 byte[] fullContents = new byte[2 + contents.length + 1]; in createDataSource()
78 System.arraycopy(contents, 0, fullContents, 2, contents.length); in createDataSource()
93 factory.create(f, 2, contents.length), in createDataSource()
DDataSinkFromRAFTest.java56 byte[] contents = new byte[(int) f.length()]; in getContents()
58 f.readFully(contents); in getContents()
59 return ByteBuffer.wrap(contents); in getContents()
DDataSourceFromByteBufferTest.java47 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument
48 return CloseableWithDataSource.of(DataSources.asDataSource(ByteBuffer.wrap(contents))); in createDataSource()
DDataSourceFromRAFTest.java76 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument
80 Files.write(tmp.toPath(), contents); in createDataSource() local
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/
DRustTestResultParserTest.java101 String[] contents = readInFile(RUST_OUTPUT_FILE_1); in testParseRealOutput() local
110 mParser.processNewLines(contents); in testParseRealOutput()
116 String[] contents = readInFile(RUST_OUTPUT_FILE_2); in testParseRealOutput2() local
128 mParser.processNewLines(contents); in testParseRealOutput2()
134 String[] contents = readInFile(RUST_OUTPUT_FILE_3); in testParseRealOutput3() local
143 mParser.processNewLines(contents); in testParseRealOutput3()
DRustTestBaseTest.java97 String[] contents = readInFile(RUST_LIST_FILE_1); in testParseTestListRealOutput() local
98 assertEquals(42, RustTestBase.parseTestListCount(contents)); in testParseTestListRealOutput()
115 String[] contents = { in testParseTestListMalformed() local
119 RustTestBase.parseTestListCount(contents); in testParseTestListMalformed()
/tools/platform-compat/javatest/android/processor/compat/unsupportedappusage/
DCsvReader.java43 List<String> contents = mSplitter.splitToList(line); in CsvReader() local
45 for (int i = 0; i < Math.min(contents.size(), mColumns.size()); ++i) { in CsvReader()
46 contentMap.put(mColumns.get(i), contents.get(i)); in CsvReader()
/tools/acloud/internal/lib/
Dota_tools_test.py63 self.contents = None
71 self.contents = f.read()
90 def _CreateFile(path, contents): argument
96 f.write(contents)
185 self.assertEqual(rewritten_misc_info.contents,
264 self.assertEqual(rewritten_config.contents,
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DStreamUtil.java64 final String contents; in getStringFromSource() local
66 contents = getStringFromStream(stream); in getStringFromSource()
70 return contents; in getStringFromSource()
100 final ByteArrayList contents; in getByteArrayListFromSource() local
102 contents = getByteArrayListFromStream(stream); in getByteArrayListFromSource()
106 return contents; in getByteArrayListFromSource()
DByteArrayList.java129 byte[] contents = new byte[mCurBytes]; in getContents()
130 System.arraycopy(mStorage, 0, contents, 0, mCurBytes); in getContents()
131 return contents; in getContents()
/tools/tradefederation/core/atest/
DREADME.md3 The contents of this page have been moved to source.android.com.
/tools/asuite/atest/
DREADME.md3 The contents of this page have been moved to source.android.com.
/tools/tradefederation/contrib/src/com/android/media/tests/
DMediaPlayerStressTest.java162 String contents; in parseOutputFile() local
164 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
171 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
DMediaStressTest.java138 String contents; in parseOutputFile() local
141 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
148 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
DVideoEditingPerformanceTest.java206 String contents; in parseOutputFile() local
208 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
215 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
DVideoEditingMemoryTest.java217 String contents; in parseOutputFile() local
219 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
226 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
DMediaMemoryTest.java226 String contents; in parseOutputFile() local
228 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile()
235 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()

123