/tools/repohooks/tools/ |
D | android_test_mapping_format_unittest.py | 204 android_test_mapping_format.process_file(file.read()) 213 file.read()) 223 file.read()) 233 file.read()) 243 file.read()) 250 file.read()) 260 file.read()) 270 file.read()) 280 file.read()) 290 file.read()) [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/ |
D | InputStreamBerDataValueReader.java | 54 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/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
D | RamDisk.java | 60 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
|
D | FileDisk.java | 110 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/trebuchet/core/common/src/main/kotlin/trebuchet/extras/ |
D | StreamAdapter.kt | 38 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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | CentralDirectory.java | 283 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 …]
|
D | Eocd.java | 132 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()
|
D | LazyDelegateByteSource.java | 128 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()
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | ReadWithDifferentCompressionLevelsTest.java | 33 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()
|
D | ExtraFieldTest.java | 219 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()
|
/tools/tradefederation/core/javatests/com/android/tradefed/util/ |
D | SizeLimitedOutputStreamTest.java | 50 int read; in testMaxFileSizeHelper() local 51 while ((read = readStream.read()) != -1) { in testMaxFileSizeHelper() 52 readData[readDataPos] = (byte)read; in testMaxFileSizeHelper()
|
/tools/tradefederation/core/common_util/com/android/tradefed/util/ |
D | SparseImageUtil.java | 81 n = in.read(buf, off, left); in readFully() 202 public int read(byte[] buf, int off, int len) throws IOException { in read() method in SparseImageUtil.SparseInputStream 204 return mIn.read(buf, off, len); in read() 212 n = mIn.read(buf, off, (int) Math.min(mLeft, len)); in read() 222 n = super.read(buf, off, len); in read() 231 public int read() throws IOException { in read() method in SparseImageUtil.SparseInputStream 233 return mIn.read(); in read() 241 ret = mIn.read(); in read()
|
/tools/netsim/rust/daemon/src/devices/ |
D | devices_handler.rs | 130 self.devices.read().unwrap().values().find(|d| d.guid == *guid) in get_or_create_device() 339 (device.chips.read().unwrap().is_empty(), radio_stats) in remove_chip() 352 .read() in remove_chip() 375 .read() in delete_chip() 378 .find(|(_, device)| device.chips.read().unwrap().contains_key(&chip_id)) in delete_chip() 407 && manager.devices.read().unwrap().values().any(|d| d.guid == new_device.name) in create_device() 455 Some(id) => match manager.devices.read().unwrap().get(&id) { in patch_device() 473 let devices = manager.devices.read().unwrap(); in patch_device() 537 .read() in get_distance() 540 .map(|device_ref| device_ref.position.read().unwrap().clone()) in get_distance() [all …]
|
D | chip.rs | 138 proto_chip.manufacturer.clone_from(&self.manufacturer.read().unwrap()); in get() 139 proto_chip.product_name.clone_from(&self.product_name.read().unwrap()); in get() 202 self.chips.read().unwrap().get(chip_id).cloned() in get_chip() 252 assert!(chip_manager.chips.read().unwrap().contains_key(&chip_id)); in test_new_and_get_with_singleton() 265 assert_eq!(chip.manufacturer.read().unwrap().to_string(), MANUFACTURER); in test_new_and_get_with_singleton() 266 assert_eq!(chip.product_name.read().unwrap().to_string(), PRODUCT_NAME); in test_new_and_get_with_singleton() 299 expected.manufacturer.clone_from(&chip.manufacturer.read().unwrap()); in test_chip_get() 300 expected.product_name.clone_from(&chip.product_name.read().unwrap()); in test_chip_get() 324 assert_eq!(patch_body.manufacturer, chip.manufacturer.read().unwrap().to_string()); in test_chip_patch() 325 assert_eq!(patch_body.product_name, chip.product_name.read().unwrap().to_string()); in test_chip_patch()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | Fat16RootDirectory.java | 53 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()
|
D | FatFileSystem.java | 69 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
|
/tools/asuite/aidegen/lib/ |
D | clion_project_file_gen_unittest.py | 105 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/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/ |
D | TraceViewerWindow.kt | 75 val read = stream.read(buffer) in <lambda>() constant 76 if (read == -1) return null in <lambda>() 77 return buffer.asSlice(read) in <lambda>()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | FileChannelDataSource.java | 111 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/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/utils/ |
D | CloseableDelegateByteSource.java | 134 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/acloud/public/ |
D | config_test.py | 121 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/netsim/rust/daemon/src/ |
D | config.rs | 41 let config = CONFIG.read().unwrap(); in get_dev() 55 let config = CONFIG.read().unwrap(); in get_pcap() 69 let config = CONFIG.read().unwrap(); in get_disable_wifi_p2p()
|
/tools/metalava/ |
D | version.properties | 3 # This file is read by gradle build scripts, but also packaged with metalava 4 # as a resource for the Version classes to read.
|
/tools/security/remote_provisioning/hwtrust/src/cbor/dice/ |
D | chain.rs | 130 let chain = fs::read("testdata/dice/valid_ed25519.chain").unwrap(); in chain_form_valid_proper() 138 let chain = fs::read("testdata/dice/cf_degenerate.chain").unwrap(); in chain_form_valid_degenerate() 146 let chain = fs::read("testdata/dice/valid_ed25519.chain").unwrap(); in check_chain_valid_ed25519() 154 let chain = fs::read("testdata/dice/valid_ed25519.chain").unwrap(); in check_chain_valid_ed25519_value() 163 let chain = fs::read("testdata/dice/valid_p256.chain").unwrap(); in check_chain_valid_p256() 171 let chain = fs::read("testdata/dice/valid_p256.chain").unwrap(); in check_chain_valid_p256_value() 186 let chain = fs::read("testdata/dice/bad_p256.chain").unwrap(); in check_chain_bad_p256() 193 let chain = fs::read("testdata/dice/bad_pub_key.chain").unwrap(); in check_chain_bad_pub_key() 200 let chain = fs::read("testdata/dice/bad_final_signature.chain").unwrap(); in check_chain_bad_final_signature()
|
/tools/test/openhst/ |
D | stress_test_common.py | 49 return open(path, "rb").read() 53 return open(resource_name, "rb").read() 55 "rb").read()
|