Home
last modified time | relevance | path

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

12

/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 …]
DApkSigningBlockUtils.java285 DataSource[] contents, in computeOneMbChunkContentDigests() argument
299 for (DataSource input : contents) { in computeOneMbChunkContentDigests()
341 for (DataSource input : contents) { in computeOneMbChunkContentDigests()
389 DataSource[] contents, in computeOneMbChunkContentDigests() argument
393 for (DataSource input : contents) { in computeOneMbChunkContentDigests()
407 ChunkSupplier chunkSupplier = new ChunkSupplier(contents); in computeOneMbChunkContentDigests()
/tools/apksig/src/test/java/com/android/apksig/util/
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()
DInMemoryDataSinkDataSourceTest.java29 protected CloseableWithDataSource createDataSource(byte[] contents) throws IOException { in createDataSource() argument
31 sink.consume(contents, 0, 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
DDataSourceTestBase.java41 protected abstract CloseableWithDataSource createDataSource(byte[] contents) throws IOException; in createDataSource() argument
43 protected CloseableWithDataSource createDataSource(String contents) throws IOException { in createDataSource() argument
44 return createDataSource(contents.getBytes(StandardCharsets.UTF_8)); in createDataSource()
/tools/acloud/internal/lib/
Dota_tools_test.py64 self.contents = None
72 self.contents = f.read()
91 def _CreateFile(path, contents): argument
97 f.write(contents)
213 self.assertEqual(rewritten_misc_info.contents,
295 self.assertEqual(rewritten_config.contents,
/tools/platform-compat/java/com/android/class2nonsdklist/
DAnnotationPropertyWriter.java41 Map<String, String> contents = new HashMap<>(annotationProperties); in consume() local
44 contents.put(SIGNATURE_COLUMN, apiSignature); in consume()
47 mColumns.addAll(contents.keySet()); in consume()
48 mContents.add(contents); in consume()
/tools/security/fuzzing/orphans/libskia/
Dlibskia_image_processor_fuzzer.cpp33 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/
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/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt421 val contents = sources.joinToString(" ") { in processFlags() constant
429 file.writeText(contents) in processFlags()
1161 var contents = Files.asCharSource(file, UTF_8).read() in gatherPackageJavadoc() variable
1163 contents = packageHtmlToJavadoc(contents) in gatherPackageJavadoc()
1178 map[pkg] = contents in gatherPackageJavadoc()
1179 if (contents.contains("@hide")) { in gatherPackageJavadoc()
DExtractAnnotations.kt151 val bytes = writer.contents.toByteArray(UTF_8) in <lambda>()
386 val contents: String get() = stringWriter.toString() in <lambda>() constant in com.android.tools.metalava.ExtractAnnotations.StringPrintWriter
398 return contents in <lambda>()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java309 signatureJarEntries.add(Pair.of(V1SchemeConstants.MANIFEST_ENTRY_NAME, manifest.contents)); in signManifest()
389 result.contents = manifestOut.toByteArray(); in generateManifestFile()
412 public byte[] contents; field in V1SchemeSigner.OutputManifestFile
448 Base64.getEncoder().encodeToString(md.digest(manifest.contents))); in generateSignatureFile()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DStoredEntry.java601 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/security/fuzzing/orphans/libcppbor/
Dcppbor_fuzzer.cpp23 std::string contents = dataProvider.ConsumeRemainingBytesAsString(); in FuzzStringParsing() local
24 cppbor::Tstr val(contents); in FuzzStringParsing()
/tools/ndkports/
Dbuild.gradle.kts69 contents { in port()
90 contents { in <lambda>()
/tools/apksig/src/main/java/com/android/apksig/apk/
DApkUtilsLite.java168 public ApkSigningBlock(long startOffsetInApk, DataSource contents) { in ApkSigningBlock() argument
170 mContents = contents; in ApkSigningBlock()
DApkUtils.java147 public ApkSigningBlock(long startOffsetInApk, DataSource contents) { in ApkSigningBlock() argument
148 super(startOffsetInApk, contents); in ApkSigningBlock()
/tools/platform-compat/java/com/android/javac/
DJavac.java69 public Javac addSource(String classname, String contents) { in addSource() argument
76 return contents; in addSource()
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py679 contents = []
683 contents.append(cnt.rstrip())
684 return contents
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java439 int tagClass, boolean constructed, int tagNumber, byte[]... contents) { in createTag() argument
448 for (byte[] c : contents) { in createTag()
492 for (byte[] c : contents) { in createTag()
/tools/metalava/src/main/java/com/android/tools/metalava/stub/
DStubWriter.kt68 val contents = if (root != null) { in <lambda>() constant
74 target.writeText(contents) in <lambda>()
/tools/treble/hacksaw/workspace/
Dworkspace.go184 contents, err := ioutil.ReadDir(workspaceProject)
188 if len(contents) == 0 {

12