Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 33) sorted by relevance

12

/bootable/recovery/recovery_utils/
Droots.cpp135 const FstabEntry* v = android::fs_mgr::GetEntryForPath(&fstab, volume); in format_volume() local
136 if (v == nullptr) { in format_volume()
140 if (v->fs_type == "ramdisk") { in format_volume()
144 if (v->mount_point != volume) { in format_volume()
149 LOG(ERROR) << "format_volume: Failed to unmount \"" << v->mount_point << "\""; in format_volume()
152 if (v->fs_type != "ext4" && v->fs_type != "f2fs") { in format_volume()
153 LOG(ERROR) << "format_volume: fs_type \"" << v->fs_type << "\" unsupported"; in format_volume()
164 if (v->length > 0) { in format_volume()
165 length = v->length; in format_volume()
166 } else if (v->length < 0) { in format_volume()
[all …]
/bootable/libbootloader/gbl/libstorage/src/
Dmulti_blocks.rs36 .map_err(|v| StorageError::FailedGettingBlockDevices(v)) in for_each_until()
51 let _ = self.for_each_until(&mut |v, id| { in sync_gpt_all()
52 match v.sync_gpt() { in sync_gpt_all()
53 Err(e) => f(v, id, e), in sync_gpt_all()
65 self.for_each_until(&mut |v, id| { in check_part()
66 res = match v.find_partition(part).map(|v| (id, v)) { in check_part()
68 v => v.or(res), in check_part()
115 devs.for_each_until(&mut |v, id| { in until_ok()
116 res = f(v, id); in until_ok()
206 assert_eq!(devs.find_partition("boot_a").map(|v| v.size()).unwrap(), Ok(8 * 1024)); in test_multi_block_gpt_partition_size()
[all …]
Dnon_blocking.rs200 Self::Blocking(v) => *v, in as_block_io()
201 Self::NonBlocking(v) => v, in as_block_io()
211 Self::Blocking(v) => BlockDeviceIo::Blocking(*v), in scoped_instance()
212 Self::NonBlocking(v) => BlockDeviceIo::NonBlocking(*v), in scoped_instance()
304 v => { in update()
309 self.0 = IoBufferState::Ready(unsafe { &mut **buffer }, v); in update()
381 self.current_io.as_ref().map(|v| v.is_pending()).unwrap_or(false) in is_pending()
Dtestlib.rs40 NUM_TIMESTAMP_PAUSER.with(|v| (*v.borrow() == 0).then(|| advance_timestamp())); in query_timestamp()
49 NUM_TIMESTAMP_PAUSER.with(|v| *v.borrow_mut() -= 1); in drop()
56 NUM_TIMESTAMP_PAUSER.with(|v| *v.borrow_mut() += 1); in new()
188 Some(NonBlockingIoState::Ready(v)) => { in check_status()
189 let res = *v; in check_status()
474 .map(|(k, v)| { in partitions_to_disk_data()
475 let last = (SafeNum::from(v.size()).round_up(block_size) / block_size + block - 1) in partitions_to_disk_data()
Dlib.rs300 .map(|v| Partition::new(*v, io.block_size()))) in next()
508 v => Gpt::required_buffer_size(v)?, in required_scratch_size()
665 v => v, in alignment_scratch_size()
689 v => v.into(), in split_scratch()
959 let data = (0..case.storage_size).map(|v| v as u8).collect::<Vec<_>>(); in read_test_helper()
987 let data = (0..case.storage_size).map(|v| v as u8).collect::<Vec<_>>(); in write_test_helper()
/bootable/libbootloader/gbl/libabr/src/
Dc_staticlib.rs63 s.as_bytes().iter().for_each(|v| abr_print_ascii_char(*v)); in write_str()
163 Ok(v) => { in unpack_result()
164 *val = v.into(); in unpack_result()
188 Some(v) => *v = successful, in AbrGetBootSlot()
227 Ok(v) => v, in AbrMarkSlotActive()
269 Ok(v) => v, in AbrMarkSlotUnbootable()
292 Ok(v) => v, in AbrMarkSlotSuccessful()
322 SlotState::Bootable(v) => v, in from()
349 Ok(v) => v, in AbrGetSlotInfo()
354 .map(|v| SlotInfo::from(v)), in AbrGetSlotInfo()
Dlib.rs110 v if v == (SlotIndex::A).into() => Ok(SlotIndex::A), in try_from()
111 v if v == (SlotIndex::B).into() => Ok(SlotIndex::B), in try_from()
112 v if v == (SlotIndex::R).into() => Ok(SlotIndex::R), in try_from()
374 Ok(v) => { in load_metadata()
375 abr_data_orig = v; in load_metadata()
376 v in load_metadata()
421 Ok(v) => v, in get_boot_slot()
451 v => { in get_boot_slot()
452 is_slot_marked_successful = abr_data.slot_data(v).successful_boot == 1; in get_boot_slot()
637 bytes.iter_mut().for_each(|v| *v = reverse_byte(*v)); in reverse_u32()
/bootable/deprecated-ota/updater/
Dmounts.cpp54 MountedVolume* v = new MountedVolume; in scan_mounted_volumes() local
55 v->device = e->mnt_fsname; in scan_mounted_volumes()
56 v->mount_point = e->mnt_dir; in scan_mounted_volumes()
57 v->filesystem = e->mnt_type; in scan_mounted_volumes()
58 v->flags = e->mnt_opts; in scan_mounted_volumes()
59 g_mounts_state.push_back(v); in scan_mounted_volumes()
/bootable/deprecated-ota/edify/
Dexpr.cpp50 std::unique_ptr<Value> v(expr->fn(expr->name.c_str(), state, expr->argv)); in Evaluate() local
51 if (!v) { in Evaluate()
54 if (v->type != Value::Type::STRING) { in Evaluate()
55 ErrorAbort(state, kArgsParsingFailure, "expecting string, got value type %d", v->type); in Evaluate()
59 *result = v->data; in Evaluate()
145 int v; in SleepFn() local
146 if (!android::base::ParseInt(val.c_str(), &v, 0)) { in SleepFn()
149 sleep(v); in SleepFn()
156 std::string v; in StdoutFn() local
157 if (!Evaluate(state, argv[i], &v)) { in StdoutFn()
[all …]
Dparser.yy46 va_list v;
47 va_start(v, count);
50 e->argv.emplace_back(va_arg(v, Expr*));
52 va_end(v);
/bootable/recovery/tests/testdata/
Drecovery_body219 …����������������������������ERCP ��� �������������������������� �����������/ueventd.U
231 …������������������������������ERCP ��� ������������������������������������/dev��� �/U
253 …�����������ERCP ��� �������������������.������������������q/adf-overlay-engi…
290 �����������/block/vold/W
345 …���������ERCP ��� �������������������������� �����������=/iio:devicen�������������…
437 …���������������������ERCP ��� �������������������������������������//vcsn��������������…
443 …���������������������ERCP ��� �������������������������������������3/videon�����������…
467 …�����ERCP ��� �������������������������������������4/bin/install-recovery
496 …������������������������ERCP ��� ������������������������������������ /vendor��� �/U
521 …layout_versiony�$�$���u:object_r:unencrypted_data_file:s0����/data/unencrypted(/.*)…
[all …]
/bootable/libbootloader/gbl/libfdt/src/
Dlib.rs47 v if v < 0 => Err(FdtError::CLibError(unsafe { in map_result()
48 core::ffi::CStr::from_ptr(fdt_strerror(v)).to_str().unwrap() in map_result()
50 v => Ok(v), in map_result()
187 Some(v) => Ok(unsafe { in get_property()
189 v.data.as_ptr() as *const u8, in get_property()
190 u32::from_be(v.len).try_into().map_err(|_| FdtError::IntegerOverflow)?, in get_property()
293 Ok(v) => v, in find_or_add_node()
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs811 Ok(v) => v, in download()
915 FastbootUtils::new(self.download_buffer, &mut self.total_download_size, info.map(|v| v)) in utils()
982 args.next().filter(|v| *v != "").ok_or("").or(default.map_err(|e| e.into())) in next_arg()
1000 Ok(v) => hex_to_u64(v), in next_arg_u64()
1042 Some(v) => { in get_var()
1043 out[..v.len()].clone_from_slice(v.as_bytes()); in get_var()
1044 Ok(v.len()) in get_var()
1113 Some(v) => { in receive_packet()
1114 let size = core::cmp::min(out.len(), v.len()); in receive_packet()
1115 out[..size].clone_from_slice(&v[..size]); in receive_packet()
[all …]
/bootable/libbootloader/gbl/efi/src/
Dnet.rs93 .for_each(|v| *v = Box::into_raw(Box::new([0u8; ETHERNET_FRAME_SIZE]))); in new()
109 self.tx_frames.iter_mut().for_each(|v| { in drop()
113 let _ = unsafe { Box::from_raw(v) }; in drop()
284 .filter_map(|(handle, path)| path.ok().map(|v| (handle, v))) in find_net_device()
363 Ok(v) => v, in receive_exact()
393 Ok(v) => v, in send_exact()
Dfastboot.rs143 socket.interface().ip_addrs().iter().for_each(|v| { in fastboot_loop()
144 efi_println!(efi_entry, "\t{}", v.address()); in fastboot_loop()
215 Ok(v) => Some(v), in run_fastboot()
229 v => v?, in run_fastboot()
Davb.rs57 .and_then(|v| v.size()) in read_from_partition()
125 .and_then(|v| v.size()) in get_size_of_partition()
Dmain.rs52 if let Ok(v) = loaded_image_path(&entry) { in main()
53 efi_println!(entry, "Image path: {}", v); in main()
Dandroid_boot.rs246 match gpt_devices.find_partition("bootconfig").and_then(|v| v.size()) { in load_android_simple()
308 all_cmdline.iter().for_each(|v| all_cmdline_len += v.len()); in load_android_simple()
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dvars.rs99 gbl_fb.storage().for_each_until(&mut |mut v, id| { in get_all()
102 let v = &mut v; in get_all() localVariable
106 for ptn in v.partition_iter() { in get_all()
Dmod.rs183 .find_map(|v| v.get(self, var, args.clone(), out).transpose()) in get_var()
192 Self::NATIVE_VARS.iter().find_map(|v| v.get_all(self, f).err()).map_or(Ok(()), |e| Err(e)) in get_var_all()
447 let blk_id = blk_id.map_or("".to_string(), |v| format!("{:#x}", v)); in check_gpt_upload()
495 let mut download = expected.iter().map(|v| !(*v)).collect::<Vec<_>>(); in check_flash_part()
Dsparse.rs120 v => (v, Some(self.fill_value_or_skip_blocks)), in get_blocks_and_value()
180 (blks, Some(v)) => { in write_sparse_image()
182 let buffer = fill_buffer.get(v, sz)?; in write_sparse_image()
/bootable/libbootloader/gbl/libbootconfig/src/
Dlib.rs127 .map(|v| *v as u32) in checksum()
128 .reduce(|acc, v| acc.overflowing_add(v).0) in checksum()
/bootable/libbootloader/gbl/libgbl/src/slots/
Dfuchsia.rs484 let v: Vec<Slot> = sb.slots_iter().collect(); in test_no_bootable_slots_boot_recovery() localVariable
485 for slot in v { in test_no_bootable_slots_boot_recovery()
497 let v: Vec<Slot> = sb.slots_iter().collect(); in test_set_active_slot() localVariable
499 assert_eq!(sb.get_boot_target(), BootTarget::NormalBoot(v[0])); in test_set_active_slot()
500 for slot in v.iter() { in test_set_active_slot()
516 let v: Vec<Slot> = sb.slots_iter().collect(); in test_get_slot_last_set_active() localVariable
517 assert_eq!(sb.set_active_slot(v[0].suffix), Ok(())); in test_get_slot_last_set_active()
518 assert_eq!(sb.get_slot_last_set_active(), v[0]); in test_get_slot_last_set_active()
519 for slot in v.iter() { in test_get_slot_last_set_active()
/bootable/libbootloader/gbl/libefi/src/protocol/
Ddevice_path.rs98 for c in char::decode_utf16(text.into_iter().map(|v| *v)) { in fmt()
/bootable/libbootloader/gbl/libboot/src/
Dx86.rs127 v => v as usize, in setup_sects()

12