/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 | 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 | 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 | 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 …]
|
D | ApkSigningBlockUtils.java | 439 DataSource[] contents, in computeOneMbChunkContentDigests() argument 453 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 495 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 543 DataSource[] contents, in computeOneMbChunkContentDigests() argument 547 for (DataSource input : contents) { in computeOneMbChunkContentDigests() 561 ChunkSupplier chunkSupplier = new ChunkSupplier(contents); in computeOneMbChunkContentDigests()
|
/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 …]
|
D | SubprocessTestResultsParserTest.java | 90 String[] contents = readInFile(SUBPROC_OUTPUT_FILE_1); in testParse_randomEvents() local 122 resultParser.processNewLines(contents); in testParse_randomEvents() 133 String[] contents = readInFile(SUBPROC_OUTPUT_FILE_2); in testParse_invalidEventOrder() local 164 resultParser.processNewLines(contents); in testParse_invalidEventOrder()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/rust/ |
D | RustTestResultParserTest.java | 102 String[] contents = readInFile(RUST_OUTPUT_FILE_1); in testParseRealOutput() local 111 mParser.processNewLines(contents); in testParseRealOutput() 118 String[] contents = readInFile(RUST_OUTPUT_FILE_2); in testParseRealOutput2() local 130 mParser.processNewLines(contents); in testParseRealOutput2() 137 String[] contents = readInFile(RUST_OUTPUT_FILE_3); in testParseRealOutput3() local 146 mParser.processNewLines(contents); in testParseRealOutput3() 157 String[] contents = readInFile(RUST_OUTPUT_FILE_1); in testParsePartialOutput() local 164 mParser.processNewLines(Arrays.copyOfRange(contents, 0, 4)); in testParsePartialOutput() 165 mParser.processNewLines(Arrays.copyOfRange(contents, 4, 7)); in testParsePartialOutput() 166 mParser.processNewLines(Arrays.copyOfRange(contents, 4, contents.length)); in testParsePartialOutput()
|
/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, 267 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/apksig/src/test/java/com/android/apksig/util/ |
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 | InMemoryDataSinkDataSourceTest.java | 29 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument 31 sink.consume(contents, 0, 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()
|
/tools/metalava/src/main/java/com/android/tools/metalava/ |
D | Driver.kt | 406 val contents = sources.joinToString(" ") { in processFlags() constant 414 file.writeText(contents) in processFlags() 1179 var contents = Files.asCharSource(file, UTF_8).read() in addHiddenPackages() variable 1181 contents = packageHtmlToJavadoc(contents) in addHiddenPackages() 1200 map[realPkg] = contents in addHiddenPackages() 1201 if (contents.contains("@hide")) { in addHiddenPackages()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | StoredEntry.java | 601 CloseableByteSource contents; in createSourcesFromRawContents() local 608 contents = new InflaterByteSource(rawContents); in createSourcesFromRawContents() 610 contents = rawContents; in createSourcesFromRawContents() 613 return new ProcessedAndRawByteSources(contents, rawContents); in createSourcesFromRawContents()
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeSigner.java | 312 signatureJarEntries.add(Pair.of(MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest() 392 result.contents = manifestOut.toByteArray(); in generateManifestFile() 415 public byte[] contents; field in V1SchemeSigner.OutputManifestFile 451 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
|
/tools/security/fuzzing/orphans/libskia/ |
D | libskia_image_processor_fuzzer.cpp | 33 static int getAndroidPixels(std::string& contents, bool requestPremul) { in getAndroidPixels() argument 35 …std::unique_ptr<SkMemoryStream> stream = SkMemoryStream::MakeDirect(contents.data(), contents.size… in getAndroidPixels()
|
/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/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()
|