/bootable/recovery/fuse_sideload/ |
D | fuse_sideload.cpp | 128 fuse_init_out out; in handle_init() local 129 out.minor = MIN(req->minor, FUSE_KERNEL_MINOR_VERSION); in handle_init() 130 size_t fuse_struct_size = sizeof(out); in handle_init() 141 out.major = FUSE_KERNEL_VERSION; in handle_init() 142 out.max_readahead = req->max_readahead; in handle_init() 143 out.flags = 0; in handle_init() 144 out.max_background = 32; in handle_init() 145 out.congestion_threshold = 32; in handle_init() 146 out.max_write = 4096; in handle_init() 147 fuse_reply(fd, hdr->unique, &out, fuse_struct_size); in handle_init() [all …]
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 246 Bitmap out = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); 247 out.eraseColor(0xff000000); 305 out.setPixel(0, p, colorFor(tw & 0xff)); 306 out.setPixel(1, p, colorFor(tw >>> 8)); 307 out.setPixel(2, p, colorFor(h & 0xff)); 308 out.setPixel(3, p, colorFor(h >>> 8)); 309 out.setPixel(4, p, colorFor(langBytes.length)); 312 out.setPixel(x, p, colorFor(b)); 315 out.setPixel(x, p, colorFor(0)); 319 out.setPixels(pixels, left, w, 0, p, tw, h); [all …]
|
/bootable/recovery/ |
D | interlace-frames.py | 47 out = Image.new("RGB", (w, h*N)) 51 out.putpixel((i, j*N+fn), f.getpixel((i, j))) 62 out.save(output, pnginfo=meta) 84 out = Image.new('RGB', (width, height)) 85 out.info = img.info 88 out.putpixel((i, j), img.getpixel((i, j * num_frames + k))) 90 out2 = out.convert(mode='P', palette=palette)
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | multi_blocks.rs | 86 fn read_gpt_partition(&mut self, part_name: &str, offset: u64, out: &mut [u8]) -> Result<()> { in read_gpt_partition() 88 until_ok(self, |dev, _| dev.read_gpt_partition(part_name, offset, out)) in read_gpt_partition() 172 let mut out = vec![0u8; blk_0[off..].len()]; in test_multi_block_read() localVariable 173 devs.get(0).unwrap().read(u64::try_from(off).unwrap(), &mut out[..]).unwrap(); in test_multi_block_read() 174 assert_eq!(out, blk_0[off..]); in test_multi_block_read() 176 let mut out = vec![0u8; blk_1[off..].len()]; in test_multi_block_read() localVariable 177 devs.get(1).unwrap().read(u64::try_from(off).unwrap(), &mut out[..]).unwrap(); in test_multi_block_read() 178 assert_eq!(out, blk_1[off..]); in test_multi_block_read() 241 let mut out = vec![0u8; expected.len()]; in check_read_partition() localVariable 242 devs.read_gpt_partition(part, off, &mut out[..]).unwrap(); in check_read_partition() [all …]
|
D | lib.rs | 230 out: &mut [u8], in read_blocks() 369 fn read(&mut self, offset: u64, out: &mut [u8]) -> Result<()> { in read() 370 with_partitioned_scratch(self, |io, alignment, _, _| read(io, offset, out, alignment))? in read() 444 fn read_gpt_partition(&mut self, part_name: &str, offset: u64, out: &mut [u8]) -> Result<()> { in read_gpt_partition() 446 check_gpt_rw_params(gpt_buffer, part_name, offset, out.len()) in read_gpt_partition() 448 self.read(offset, out) in read_gpt_partition() 570 out: &mut [u8], in read_aligned_all() 572 let blk_offset = check_range(blk_io, offset, out).map(u64::try_from)??; in read_aligned_all() 573 Ok(blk_io.read_blocks(blk_offset, out)?) in read_aligned_all() 582 out: &mut [u8], in read_aligned_offset_and_buffer() [all …]
|
D | non_blocking.rs | 140 out: &mut [u8], in read_blocks() 142 let ptr = out as *mut [u8]; in read_blocks() 549 out: &'d mut [u8], in read_scoped() 552 let len = out.len(); in read_scoped() 553 dev.read(offset, &mut Some(out), 0, len)?; in read_scoped() 563 pub fn read_blocking(&mut self, offset: u64, out: &mut [u8]) -> Result<()> { in read_blocking() 564 self.read_scoped(offset, out)?.sync() in read_blocking() 610 let out = &mut buffer.get()[offset..][..size]; in read_io_buffer() localVariable 611 assert!(is_buffer_aligned(out, io.as_block_io().alignment().into())?); in read_io_buffer() 614 BlockDeviceIo::Blocking(io) => io.read_blocks(blk_offset, out), in read_io_buffer()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | vars.rs | 33 out: &mut [u8], in get() 51 out: &mut [u8], in get() 53 Ok((name == self.0).then_some(snprintf!(out, "{}", self.1).len())) in get() 79 out: &mut [u8], in get() 83 PARTITION_SIZE => Some(snprintf!(out, "{:#x}", gbl_fb.partition_io(part).size()).len()), in get() 84 PARTITION_TYPE => Some(snprintf!(out, "raw").len()), // Image type not supported yet. in get() 136 out: &mut [u8], in get() 147 Some(snprintf!(out, "{:#x}", val).len()) in get()
|
D | mod.rs | 67 pub fn read(&mut self, offset: u64, out: &mut [u8]) -> Result<(), CommandError> { in read() 68 let offset = self.check_range(offset, out.len())?; in read() 71 "" => dev.read(offset, out), in read() 72 part => dev.read_gpt_partition(part, offset, out), in read() 178 out: &mut [u8], in get_var() 183 .find_map(|v| v.get(self, var, args.clone(), out).transpose()) in get_var() 277 let mut out = vec![0u8; fastboot::MAX_RESPONSE_SIZE]; in check_var() localVariable 279 gbl_fb.get_var_as_str(var, args.split(':'), &mut out[..], &mut utils).unwrap(), in check_var() 310 let mut out = vec![0u8; fastboot::MAX_RESPONSE_SIZE]; in test_get_var_partition_info() localVariable 312 .get_var_as_str("partition", "non-existent".split(':'), &mut out[..], &mut utils) in test_get_var_partition_info() [all …]
|
D | sparse.rs | 285 let mut out = vec![0u8; 2 * raw.len()]; in test_sparse_write() localVariable 288 out[off.try_into().unwrap()..][..data.len()].clone_from_slice(data); in test_sparse_write() 294 assert_eq!(out[..raw.len()].to_vec(), raw); in test_sparse_write() 302 let mut out = vec![0u8; 2 * raw.len()]; in test_sparse_write_non_default_block_size() localVariable 305 out[off.try_into().unwrap()..][..data.len()].clone_from_slice(data); in test_sparse_write_non_default_block_size() 311 assert_eq!(out[..raw.len()].to_vec(), raw); in test_sparse_write_non_default_block_size()
|
/bootable/libbootloader/gbl/tools/ |
D | gen_gpt_disk.py | 164 dest_file = pathlib.Path(args.out) 171 str(temp_disk), append_offset, start - append_offset, args.out 179 append_offset += _append(file, 0, file_size, args.out) 184 str(temp_disk), append_offset, end - append_offset, args.out 189 str(temp_disk), append_offset, disk_size - append_offset, args.out
|
/bootable/recovery/updater_sample/tools/ |
D | gen_update_config.py | 117 def write(self, out): argument 119 with open(out, 'w') as out_file: 155 if not args.out.endswith('.json'): 166 gen.write(args.out) 167 print('Config is written to ' + args.out)
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | android_boot.rs | 59 pub fn fastboot_usb_receive(&self, out: &mut [u8], out_size: &mut usize) -> EfiResult<()> { in fastboot_usb_receive() 60 *out_size = out.len(); in fastboot_usb_receive() 71 out.as_mut_ptr() as _, in fastboot_usb_receive()
|
/bootable/libbootloader/gbl/libbootconfig/src/ |
D | lib.rs | 101 self.add_with(|out| { in add() 102 out[..config.len()].clone_from_slice(config.as_bytes()); in add() 145 self.add_with(|out| { in write_str() 146 out.get_mut(..s.len()) in write_str()
|
/bootable/recovery/tools/recovery_l10n/ |
D | README.md | 24 adb root && adb pull /data/data/com.android.recovery_l10n/files/text-out.png 28 * "pngcrush -c 0 ..." converts "text-out.png" into a 1-channel image, 36 pngcrush -c 0 text-out.png $OUTPUT_PNG
|
/bootable/libbootloader/gbl/efi/src/ |
D | android_boot.rs | 234 bootconfig_builder.add_with(|out| { in load_android_simple() 239 &mut out[..hdr.bootconfig_size as usize], in load_android_simple() 248 bootconfig_builder.add_with(|out| { in load_android_simple() 253 let max_size = core::cmp::min(sz.try_into().unwrap(), out.len()); in load_android_simple() 255 .read_gpt_partition("bootconfig", 0, &mut out[..max_size]) in load_android_simple() 258 Ok(CStr::from_bytes_until_nul(&out[..]) in load_android_simple()
|
D | fastboot.rs | 49 fn read_exact(&mut self, out: &mut [u8]) -> Result<(), TransportError> { in read_exact() 50 self.last_err = self.socket.receive_exact(out, DEFAULT_TIMEOUT_MS); in read_exact() 98 fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize, TransportError> { in receive_packet() 101 match self.protocol.fastboot_usb_receive(out, &mut out_size) { in receive_packet()
|
/bootable/deprecated-ota/applypatch/ |
D | applypatch.cpp | 70 static bool ReadPartitionToBuffer(const Partition& partition, FileContents* out, in ReadPartitionToBuffer() argument 87 SHA1(buffer.data(), buffer.size(), out->sha1); in ReadPartitionToBuffer() 88 if (memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer() 89 out->data = std::move(buffer); in ReadPartitionToBuffer() 100 if (LoadFileContents(Paths::Get().cache_temp_source(), out) && in ReadPartitionToBuffer() 101 memcmp(out->sha1, expected_sha1, SHA_DIGEST_LENGTH) == 0) { in ReadPartitionToBuffer()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 102 fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize, TransportError>; in receive_packet() 121 fn read_exact(&mut self, out: &mut [u8]) -> Result<(), TransportError>; in read_exact() 144 fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize, TransportError> { in receive_packet() 150 match out.len() < packet_size { in receive_packet() 153 self.0.read_exact(&mut out[..packet_size])?; in receive_packet() 221 out: &mut [u8], in get_var() 230 out: &'s mut [u8], in get_var_as_str() 233 let size = self.get_var(var, args, out, utils)?; in get_var_as_str() 234 Ok(from_utf8(out.get(..size).ok_or("Invalid variable size")?) in get_var_as_str() 751 out: &'s mut [u8], in get_var_str() [all …]
|
/bootable/libbootloader/gbl/toolchain/ |
D | gbl_toolchain.bzl | 187 out = ctx.actions.declare_file(ctx.label.name) 189 output = out, 192 return [DefaultInfo(files = depset([out]), executable = out)] 220 out = ctx.actions.declare_file("{}_{}.{}".format(stem, ctx.label.name, file.extension)) 221 ctx.actions.symlink(output = out, target_file = file) 222 outs.append(out)
|
/bootable/libbootloader/ |
D | .gitignore | 4 gbl/bazel-out
|
D | BUILD | 20 dist_dir = "out/gbl_efi/",
|
/bootable/libbootloader/gbl/libabr/src/ |
D | c_staticlib.rs | 120 fn read_abr_metadata(&mut self, out: &mut [u8]) -> Result<(), Option<&'static str>> { in read_abr_metadata() 128 match unsafe { read_abr_metadata(self.ops.context, out.len(), out.as_mut_ptr() as _) } { in read_abr_metadata()
|
/bootable/libbootloader/gbl/ |
D | readme.bzl | 30 --out) 91 "--out",
|
/bootable/recovery/tests/ |
D | Android.bp | 93 …ead) <(cat $(location testdata/recovery_body) | gzip) $(location testdata/recovery_tail) > $(out)", 99 out: [
|
/bootable/libbootloader/gbl/libboot/src/ |
D | aarch64.rs | 36 el = out(reg) el, in current_el()
|