/bootable/libbootloader/gbl/libabr/src/ |
D | lib.rs | 247 let res = Self { in deserialize() localVariable 261 if res.magic != *ABR_MAGIC { in deserialize() 265 if res.crc32 != crc32(&bytes[..28]) { in deserialize() 269 if res.version_major > ABR_MAJOR_VERSION { in deserialize() 274 Ok(res) in deserialize() 279 let mut res = [0u8; ABR_DATA_SIZE]; localVariable 280 res[..4].clone_from_slice(&self.magic); 281 res[4] = self.version_major; 282 res[5] = self.version_minor; 283 res[6..8].clone_from_slice(&self.reserved); [all …]
|
D | c_staticlib.rs | 154 fn unpack_result<T: Into<O>, O>(res: AbrResult<T>, val: &mut O) -> c_uint { in unpack_result() 155 match res { in unpack_result()
|
/bootable/recovery/recovery_utils/ |
D | battery_utils.cpp | 57 auto res = health->getChargeStatus(&charge_status); in GetBatteryInfo() local 58 if (!res.isOk()) { in GetBatteryInfo() 59 LOG(WARNING) << "Unable to call getChargeStatus: " << res.getDescription(); in GetBatteryInfo() 71 auto res = health->getCapacity(&capacity); in GetBatteryInfo() local 72 if (!res.isOk()) { in GetBatteryInfo() 73 LOG(WARNING) << "Unable to call getCapacity: " << res.getDescription(); in GetBatteryInfo()
|
/bootable/recovery/bootloader_message/ |
D | misctrl_main.cpp | 40 int res = 0; in check_control_message() local 46 res = 1; in check_control_message() 54 res |= android::base::SetProperty("ro.misctrl.16kb_before", before_16kb ? "1" : "0"); in check_control_message() 58 res |= 1; in check_control_message() 61 return res; in check_control_message()
|
/bootable/libbootloader/gbl/libgbl/src/fastboot/ |
D | vars.rs | 96 let mut res: Result<(), CommandError> = Ok(()); in get_all() localVariable 105 res = (|| { in get_all() 115 res.is_err() in get_all() 117 res in get_all() 159 let mut res: Result<(), CommandError> = Ok(()); in get_all() localVariable 163 res = (|| { in get_all() 167 res.is_err() in get_all() 169 res in get_all()
|
D | sparse.rs | 246 let mut res: T = Default::default(); in copy_from() localVariable 247 res.as_bytes_mut().clone_from_slice(get(bytes, 0, size_of::<T>())?); in copy_from() 248 Ok(res) in copy_from()
|
D | mod.rs | 371 let mut res = Ok(()); in fetch() localVariable 373 res = fb.fetch(part.as_str(), off, size, upload_builder, &mut utils) in fetch() 375 assert!(res.is_err() || uploaded == usize::try_from(size).unwrap()); in fetch() 376 res.map(|_| upload_out) in fetch()
|
/bootable/libbootloader/gbl/libfastboot/src/ |
D | lib.rs | 194 let mut res = CommandError(FormattedBytes([0u8; COMMAND_ERROR_LENGTH], 0)); in from() localVariable 195 write!(res.0, "{}", val).unwrap(); in from() 196 res in from() 352 res: &'a mut [u8], in oem() 467 let mut res = [0u8; MAX_RESPONSE_SIZE]; in send() localVariable 468 self.transport_error = self.transport.send_packet(fastboot_info!(res, "{}", msg)); in send() 484 let mut res = [0u8; 16]; in start() localVariable 485 (self.send)(snprintf!(res, "DATA{:08x}", data_size).as_bytes())?; in start() 527 let res = f(upload_builder); in with_upload_builder() localVariable 533 _ => Ok(res), in with_upload_builder() [all …]
|
/bootable/recovery/minui/ |
D | graphics_drm.cpp | 334 drmModeRes* res = nullptr; in Init() local 348 res = drmModeGetResources(fd.get()); in Init() 349 if (!res) { in Init() 354 if (res->count_crtcs > 0 && res->count_connectors > 0) { in Init() 355 if (find_first_connected_connector(fd.get(), res)) { in Init() 361 drmModeFreeResources(res); in Init() 362 res = nullptr; in Init() 365 if (drm_fd == -1 || res == nullptr) { in Init() 370 if (!FindAndSetMonitor(drm_fd, res)) { in Init() 372 drmModeFreeResources(res); in Init() [all …]
|
/bootable/libbootloader/gbl/libstorage/src/ |
D | multi_blocks.rs | 64 let mut res = Err(StorageError::NotExist); in check_part() localVariable 66 res = match v.find_partition(part).map(|v| (id, v)) { in check_part() 67 Ok(_) if res.is_ok() => Err(StorageError::PartitionNotUnique), in check_part() 68 v => v.or(res), in check_part() 70 res.err() == Some(StorageError::PartitionNotUnique) in check_part() 72 res in check_part() 114 let mut res: Result<R> = Err(StorageError::BlockDeviceNotFound); in until_ok() localVariable 116 res = f(v, id); in until_ok() 117 res.is_ok() in until_ok() 119 res in until_ok()
|
D | lib.rs | 294 let res = with_partitioned_scratch( in next() localVariable 306 Some(res) in next() 522 let mut res: Result<R> = Err(StorageError::BlockIoNotProvided); in with_partitioned_scratch() localVariable 524 res = (|| { in with_partitioned_scratch() 532 res in with_partitioned_scratch() 823 let res = write_aligned_offset_and_buffer( in write_aligned_buffer() localVariable 831 res?; in write_aligned_buffer()
|
/bootable/recovery/tools/image_generator/ |
D | README.md | 20 strings in xml format, e.g. bootable/recovery/tools/recovery_l10n/res/ 25 [tools/recovery_l10n/res/](../recovery_l10n/res/values). For each background text, the tool renders 31 form the final resource image that locates in res/images, e.g. `install_text.png`
|
/bootable/recovery/tools/recovery_l10n/ |
D | README.md | 1 # Steps to regenerate background text images under res-*dpi/images/ 10 res-xxhdpi. 11 * We can set up the maximum width of the final png image in res/layout/main.xml
|
/bootable/libbootloader/gbl/libefi/src/ |
D | protocol.rs | 106 let res: EfiResult<()> = match $method { localVariable 110 res
|
D | lib.rs | 194 let res = entry.system_table().boot_services().get_memory_map(aligned)?; in exit_boot_services() localVariable 195 entry.system_table().boot_services().exit_boot_services(&res)?; in exit_boot_services() 203 Ok(res) in exit_boot_services() 1393 let res = efi_entry in test_check_event() localVariable 1398 assert_eq!(efi_entry.system_table().boot_services().check_event(&res), Ok(true)); in test_check_event() 1399 assert_eq!(efi_entry.system_table().boot_services().check_event(&res), Ok(false)); in test_check_event() 1400 assert!(efi_entry.system_table().boot_services().check_event(&res).is_err()); in test_check_event() 1406 let res: EfiResult<()> = Err(EFI_STATUS_NOT_FOUND.into()); in test_efi_error() localVariable 1407 assert_eq!(res.unwrap_err().err(), ErrorTypes::EfiStatusError(14)); in test_efi_error()
|
/bootable/libbootloader/gbl/efi/src/ |
D | net.rs | 125 let mut res: DeviceCapabilities = Default::default(); in capabilities() localVariable 126 res.max_transmission_unit = 65535; in capabilities() 127 res.medium = Medium::Ethernet; in capabilities() 128 res in capabilities() 191 let res = *self.curr; localVariable 193 Some(self.tx_frames[res])
|
/bootable/libbootloader/gbl/libgbl/src/ |
D | ops.rs | 129 let mut res = Ok(()); in required_scratch_size() localVariable 131 res = (|| { in required_scratch_size() 138 res.and(total) in required_scratch_size()
|
D | lib.rs | 651 let res = gbl.load_and_verify_image( in test_load_and_verify_image_avb_io_error() localVariable 657 assert_eq!(res.unwrap_err(), IntegrationError::AvbSlotVerifyError(SlotVerifyError::Io)); in test_load_and_verify_image_avb_io_error() 693 let res = gbl.load_and_verify_image( in test_load_and_verify_image_stub() localVariable 699 assert!(res.is_ok()); in test_load_and_verify_image_stub() 711 let res = gbl.load_and_verify_image( in test_load_and_verify_image_avb_error() localVariable 717 assert_eq!(res.unwrap_err(), IntegrationError::AvbSlotVerifyError(TEST_ERROR)); in test_load_and_verify_image_avb_error()
|
/bootable/libbootloader/gbl/libefi/src/protocol/ |
D | device_path.rs | 59 let res = unsafe { f(device_path.interface_ptr(), display_only, allow_shortcuts) }; in convert_device_path_to_text() localVariable 60 Ok(DevicePathText::new(res, self.efi_entry)) in convert_device_path_to_text()
|
/bootable/libbootloader/gbl/libgbl/src/slots/ |
D | fuchsia.rs | 624 let res = block_dev.read_gpt_partition(PARTITION, OFFSET, &mut read_buffer); in test_writeback() localVariable 625 assert!(res.is_ok()); in test_writeback() 634 let res = block_dev.read_gpt_partition(PARTITION, OFFSET, &mut read_buffer); in test_writeback() localVariable 635 assert!(res.is_ok()); in test_writeback() 664 let res = block_dev.read_gpt_partition(PARTITION, OFFSET, &mut read_buffer); in test_writeback_with_cursor() localVariable 665 assert!(res.is_ok()); in test_writeback_with_cursor()
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 22 import android.content.res.AssetManager; 23 import android.content.res.Configuration; 24 import android.content.res.Resources;
|
/bootable/recovery/ |
D | Android.bp | 243 name: "res-testdata", 246 "res-*/images/*_text.png",
|
/bootable/recovery/updater_sample/ |
D | Android.bp | 40 resource_dirs: ["res"],
|
/bootable/recovery/updater_sample/tests/ |
D | Android.bp | 48 resource_dirs: ["res"],
|
/bootable/deprecated-ota/updater/ |
D | blockimg.cpp | 178 auto res = mkdir(dirname.c_str(), MARKER_DIRECTORY_MODE); in SetUpdatedMarker() local 179 if (res == -1 && errno != EEXIST) { in SetUpdatedMarker() 825 int res = stat(cn.c_str(), &sb); in WriteStash() local 827 if (res == 0) { in WriteStash() 885 int res = stat(dirname.c_str(), &sb); in CreateStash() local 886 if (res == -1 && errno != ENOENT) { in CreateStash() 893 if (res == -1) { in CreateStash() 895 res = mkdir_recursively(dirname, STASH_DIRECTORY_MODE, false, nullptr); in CreateStash() 897 if (res != 0) { in CreateStash() 1775 int res = CreateStash(state, stash_max_blocks, params.stashbase); in PerformBlockImageUpdate() local [all …]
|