/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | StreamUtilTest.java | 41 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/ |
D | GTestXmlResultParserTest.java | 80 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 …]
|
D | GTestResultParserTest.java | 40 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 …]
|
D | GTestListTestParserTest.java | 43 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()
|
D | GoogleBenchmarkResultParserTest.java | 101 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 …]
|
D | PythonUnitTestResultParserTest.java | 544 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/ |
D | AndroidBinXmlParser.java | 298 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/ |
D | InMemoryDataSinkDataSourceTest.java | 29 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument 31 sink.consume(contents, 0, contents.length); in createDataSource()
|
D | DataSourceFromRAFChunkTest.java | 73 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()
|
D | DataSinkFromRAFTest.java | 56 byte[] contents = new byte[(int) f.length()]; in getContents() 58 f.readFully(contents); in getContents() 59 return ByteBuffer.wrap(contents); in getContents()
|
D | DataSourceFromByteBufferTest.java | 47 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument 48 return CloseableWithDataSource.of(DataSources.asDataSource(ByteBuffer.wrap(contents))); in createDataSource()
|
D | DataSourceFromRAFTest.java | 76 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/ |
D | RustTestResultParserTest.java | 101 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()
|
D | RustTestBaseTest.java | 97 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/ |
D | CsvReader.java | 43 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/ |
D | ota_tools_test.py | 63 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/ |
D | StreamUtil.java | 64 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()
|
D | ByteArrayList.java | 129 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/ |
D | README.md | 3 The contents of this page have been moved to source.android.com.
|
/tools/asuite/atest/ |
D | README.md | 3 The contents of this page have been moved to source.android.com.
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | MediaPlayerStressTest.java | 162 String contents; in parseOutputFile() local 164 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile() 171 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
|
D | MediaStressTest.java | 138 String contents; in parseOutputFile() local 141 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile() 148 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
|
D | VideoEditingPerformanceTest.java | 206 String contents; in parseOutputFile() local 208 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile() 215 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
|
D | VideoEditingMemoryTest.java | 217 String contents; in parseOutputFile() local 219 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile() 226 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
|
D | MediaMemoryTest.java | 226 String contents; in parseOutputFile() local 228 contents = StreamUtil.getStringFromStream(dataStream); in parseOutputFile() 235 List<String> lines = Arrays.asList(contents.split("\n")); in parseOutputFile()
|