Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 40) sorted by relevance

12

/bootable/recovery/fuse_sideload/
Dfuse_sideload.cpp128 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/
DMain.java246 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/
Dinterlace-frames.py47 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/
Dmulti_blocks.rs86 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 …]
Dlib.rs230 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 …]
Dnon_blocking.rs140 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/
Dvars.rs33 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()
Dmod.rs67 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 …]
Dsparse.rs285 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/
Dgen_gpt_disk.py164 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/
Dgen_update_config.py117 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/
Dandroid_boot.rs59 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/
Dlib.rs101 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/
DREADME.md24 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/
Dandroid_boot.rs234 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()
Dfastboot.rs49 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/
Dapplypatch.cpp70 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/
Dlib.rs102 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/
Dgbl_toolchain.bzl187 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.gitignore4 gbl/bazel-out
DBUILD20 dist_dir = "out/gbl_efi/",
/bootable/libbootloader/gbl/libabr/src/
Dc_staticlib.rs120 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/
Dreadme.bzl30 --out)
91 "--out",
/bootable/recovery/tests/
DAndroid.bp93 …ead) <(cat $(location testdata/recovery_body) | gzip) $(location testdata/recovery_tail) > $(out)",
99 out: [
/bootable/libbootloader/gbl/libboot/src/
Daarch64.rs36 el = out(reg) el, in current_el()

12