Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 162) sorted by relevance

1234567

/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DInputStreamBerDataValueReader.java54 int firstIdentifierByte = in.read(); in readDataValue()
61 int firstLengthByte = in.read(); in readDataValue()
121 b = in.read(); in readHighTagNumber()
148 int b = in.read(); in readLongFormLength()
182 int b = in.read(); in skipPrimitiveIndefiniteLengthContents()
250 public int read() throws IOException { in read() method in InputStreamBerDataValueReader.RecordingInputStream
251 int b = mIn.read(); in read()
259 public int read(byte[] b) throws IOException { in read() method in InputStreamBerDataValueReader.RecordingInputStream
260 int len = mIn.read(b); in read()
268 public int read(byte[] b, int off, int len) throws IOException { in read() method in InputStreamBerDataValueReader.RecordingInputStream
[all …]
/tools/asuite/aidegen/lib/
Dclion_project_file_gen_unittest.py105 content = hfile.read()
131 content = hfile.read()
148 content = hfile.read()
164 content = hfile.read()
183 content = hfile.read()
235 content = hfile.read()
247 content = hfile.read()
259 content = hfile.read()
284 content = hfile.read()
300 content = hfile.read()
[all …]
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DCentralDirectory.java283 long madeBy = F_MADE_BY.read(bytes); in readEntry()
285 long versionNeededToExtract = F_VERSION_EXTRACT.read(bytes); in readEntry()
291 long gpBit = F_GP_BIT.read(bytes); in readEntry()
294 long methodCode = F_METHOD.read(bytes); in readEntry()
306 lastModTime = F_LAST_MOD_TIME.read(bytes); in readEntry()
307 lastModDate = F_LAST_MOD_DATE.read(bytes); in readEntry()
310 long crc32 = F_CRC32.read(bytes); in readEntry()
311 long compressedSize = F_COMPRESSED_SIZE.read(bytes); in readEntry()
312 long uncompressedSize = F_UNCOMPRESSED_SIZE.read(bytes); in readEntry()
313 int fileNameLength = Ints.checkedCast(F_FILE_NAME_LENGTH.read(bytes)); in readEntry()
[all …]
DEocd.java132 long totalRecords1 = F_RECORDS_DISK.read(bytes); in Eocd()
133 long totalRecords2 = F_RECORDS_TOTAL.read(bytes); in Eocd()
134 long directorySize = F_CD_SIZE.read(bytes); in Eocd()
135 long directoryOffset = F_CD_OFFSET.read(bytes); in Eocd()
136 int commentSize = Ints.checkedCast(F_COMMENT_SIZE.read(bytes)); in Eocd()
DLazyDelegateByteSource.java128 public byte[] read() throws IOException { in read() method in LazyDelegateByteSource
129 return get().read(); in read()
133 public <T> T read(@Nonnull ByteProcessor<T> processor) throws IOException { in read() method in LazyDelegateByteSource
134 return get().read(processor); in read()
DStoredEntry.java344 public byte[] read() throws IOException { in read() method in StoredEntry
357 public int read(byte[] bytes) throws IOException { in read() method in StoredEntry
363 return ByteStreams.read(is, bytes, 0, bytes.length); in read()
468 long extraLength = F_EXTRA_LENGTH.read(bytes); in readLocalHeader()
511 long sig = signatureField.read(ddBytes); in readDataDescriptorRecord()
649 byte[] rawContents = oldSource.getRawByteSource().read(); in loadSourceIntoMemory()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
DRamDisk.java60 int read = zis.read(buffer); in readGzipped() local
63 while (read >= 0) { in readGzipped()
64 total += read; in readGzipped()
65 bos.write(buffer, 0, read); in readGzipped()
66 read = zis.read(buffer); in readGzipped()
116 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() method in RamDisk
DFileDisk.java110 public void read(long devOffset, ByteBuffer dest) throws IOException { in read() method in FileDisk
118 final int read = fc.read(dest, devOffset); in read() local
119 if (read < 0) throw new IOException(); in read()
120 toRead -= read; in read()
121 devOffset += read; in read()
/tools/security/remote_provisioning/cert_validator/src/
Dlib.rs30 &bcc::entry::read("testdata/open-dice/_CBOR_Ed25519_cert_full_cert_chain_0.cert") in test_bcc_payload_check()
42 &bcc::entry::read("testdata/open-dice/_CBOR_Ed25519_cert_full_cert_chain_0.cert") in test_bcc_payload_check_sign1()
47 &bcc::entry::read("testdata/open-dice/_CBOR_Ed25519_cert_full_cert_chain_1.cert") in test_bcc_payload_check_sign1()
52 &bcc::entry::read("testdata/open-dice/_CBOR_Ed25519_cert_full_cert_chain_2.cert") in test_bcc_payload_check_sign1()
87 let chain = bcc::Chain::read("testdata/bcc/valid.chain").unwrap(); in test_check_chain_valid()
95 let chain = bcc::Chain::read("testdata/bcc/valid_p256.chain").unwrap(); in test_check_chain_valid_p256()
103 let chain = bcc::Chain::read("testdata/bcc/bad_p256.chain").unwrap(); in test_check_chain_bad_p256()
109 let chain = bcc::Chain::read("testdata/bcc/bad_pub_key.chain").unwrap(); in test_check_chain_bad_pub_key()
115 let chain = bcc::Chain::read("testdata/bcc/bad_final_signature.chain").unwrap(); in test_check_chain_bad_final_signature()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DZFileTest.java299 assertEquals(0, is.read());
300 assertEquals(1, is.read());
301 assertEquals(-1, is.read());
329 assertArrayEquals(new byte[] { 6, 7, 8 }, file2.read());
338 assertArrayEquals(new byte[] { 11, 12 }, file2.read());
344 assertArrayEquals(new byte[] { 11, 12 }, file2.read());
369 assertArrayEquals(new byte[]{9, 0, 1, 2, 3, 4}, file3.read());
379 assertArrayEquals(new byte[]{11, 12,}, file3.read());
385 assertArrayEquals(new byte[]{11, 12,}, file3.read());
412 assertArrayEquals(new byte[]{1, 2, 3, 4, 5}, file1.read());
[all …]
DExtraFieldTest.java219 assertArrayEquals(new byte[] { 0, 1, 2 }, before.read()); in addExtraFieldToExistingEntry()
223 assertArrayEquals(new byte[] { 3, 4, 5 }, extra.read()); in addExtraFieldToExistingEntry()
227 assertArrayEquals(new byte[] { 6, 7, 8 }, after.read()); in addExtraFieldToExistingEntry()
267 assertArrayEquals(new byte[] { 0, 1, 2 }, before.read()); in removeExtraFieldFromExistingEntry()
271 assertArrayEquals(new byte[] { 3, 4, 5 }, extra.read()); in removeExtraFieldFromExistingEntry()
275 assertArrayEquals(new byte[] { 6, 7, 8 }, after.read()); in removeExtraFieldFromExistingEntry()
315 assertArrayEquals(new byte[] { 0, 1, 2 }, before.read()); in updateExtraFieldOfExistingEntry()
319 assertArrayEquals(new byte[] { 3, 4, 5 }, extra.read()); in updateExtraFieldOfExistingEntry()
323 assertArrayEquals(new byte[] { 6, 7, 8 }, after.read()); in updateExtraFieldOfExistingEntry()
DReadWithDifferentCompressionLevelsTest.java33 try (ZFile read = new ZFile(l9File, new ZFileOptions())) { in readL9() argument
34 assertNotNull(read.get("text-files/rfc2460.txt")); in readL9()
43 try (ZFile read = new ZFile(l1File, new ZFileOptions())) { in readL1() argument
44 assertNotNull(read.get("text-files/rfc2460.txt")); in readL1()
DZFileSortTest.java91 assertArrayEquals(new byte[] { 1, 2, 3 }, mMaryEntry.read()); in readEntries()
96 assertArrayEquals(new byte[] { 4, 5 }, mAndrewEntry.read()); in readEntries()
101 assertArrayEquals(new byte[] { 6, 7, 8, 9 }, mBethEntry.read()); in readEntries()
106 assertArrayEquals(new byte[] { 10 }, mPeterEntry.read()); in readEntries()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/extras/
DStreamAdapter.kt38 val read = inputStream.read(buffer) in next() constant
39 if (read == -1) { in next()
43 totalRead += read in next()
45 return DataSlice(buffer, 0, read) in next()
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DFatFileSystem.java69 this.bs = BootSector.read(device); in FatFileSystem()
76 this.fat = Fat.read(bs, 0); in FatFileSystem()
80 final Fat tmpFat = Fat.read(bs, i); in FatFileSystem()
92 this.fsiSector = FsInfoSector.read(f32bs); in FatFileSystem()
101 Fat16RootDirectory.read((Fat16BootSector) bs,readOnly); in FatFileSystem()
120 public static FatFileSystem read(BlockDevice device, boolean readOnly) in read() method in FatFileSystem
DFat16RootDirectory.java53 public static Fat16RootDirectory read( in read() method in Fat16RootDirectory
57 result.read(); in read()
79 protected void read(ByteBuffer data) throws IOException { in read() method in Fat16RootDirectory
80 this.device.read(deviceOffset, data); in read()
DAbstractDirectory.java77 protected abstract void read(ByteBuffer data) throws IOException; in read() method in AbstractDirectory
244 protected final void read() throws IOException { in read() method in AbstractDirectory
248 read(data); in read()
253 FatDirectoryEntry.read(data, isReadOnly()); in read()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DFileChannelDataSource.java111 int read = mChannel.read(buf); in feed() local
112 if (read < 0) { in feed()
115 chunkRemaining -= read; in feed()
148 chunkSize = mChannel.read(dest); in copyTo()
/tools/acloud/public/
Dconfig_test.py121 self.config_file.read.return_value = self.INTERNAL_CONFIG
124 self.config_file.read.return_value = self.USER_CONFIG
132 self.config_file.read.return_value = self.USER_CONFIG
174 self.config_file.read.return_value = self.USER_CONFIG
211 self.config_file.read.return_value = self.INTERNAL_CONFIG
266 self.config_file.read.return_value = "malformed text"
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DTraceViewerWindow.kt75 val read = stream.read(buffer) in <lambda>() constant
76 if (read == -1) return null in <lambda>()
77 return buffer.asSlice(read) in <lambda>()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java66 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signEmptyJar()
95 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signJarWithPrexistingSimpleTextFilePre18()
109 Manifest signature = new Manifest(new ByteArrayInputStream(signatureEntry.read())); in signJarWithPrexistingSimpleTextFilePre18()
114 byte[] manifestTextBytes = manifestEntry.read(); in signJarWithPrexistingSimpleTextFilePre18()
152 Manifest manifest = new Manifest(new ByteArrayInputStream(manifestEntry.read())); in signJarWithPrexistingSimpleTextFilePos18()
167 Manifest signature = new Manifest(new ByteArrayInputStream(signatureEntry.read())); in signJarWithPrexistingSimpleTextFilePos18()
172 byte[] manifestTextBytes = manifestEntry.read(); in signJarWithPrexistingSimpleTextFilePos18()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/
DCloseableDelegateByteSource.java134 public byte[] read() throws IOException { in read() method in CloseableDelegateByteSource
135 return get().read(); in read()
139 public <T> T read(@Nonnull ByteProcessor<T> processor) throws IOException { in read() method in CloseableDelegateByteSource
140 return get().read(processor); in read()
/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_lineage.txt14 specified; the lineage will then be read from the signed data in the APK.
74 providing multiple passwords, the passwords are read from
75 the file one line at a time. Passwords are read in the
77 signer, KeyStore password is read before the key password
78 is read.
97 providing multiple passwords, the passwords are read from
98 the file one line at a time. Passwords are read in the
100 signer, KeyStore password is read before the key password
101 is read.
Dhelp_rotate.txt14 specified; the lineage will then be read from the signed data in the APK.
80 providing multiple passwords, the passwords are read from
81 the file one line at a time. Passwords are read in the
83 signer, KeyStore password is read before the key password
84 is read.
103 providing multiple passwords, the passwords are read from
104 the file one line at a time. Passwords are read in the
106 signer, KeyStore password is read before the key password
107 is read.
Dhelp_sign.txt86 app and can read/write persistently stored data of the
108 can also be specified; the lineage will then be read from
167 providing multiple passwords, the passwords are read from
168 the file one line at a time. Passwords are read in the
170 signer, KeyStore password is read before the key password
171 is read.
190 providing multiple passwords, the passwords are read from
191 the file one line at a time. Passwords are read in the
193 signer, KeyStore password is read before the key password
194 is read.

1234567