Home
last modified time | relevance | path

Searched refs:new_p (Results 1 – 3 of 3) sorted by relevance

/system/core/fastboot/
Dvendor_boot_img_utils.cpp241 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_default_vendor_ramdisk() local
242 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_default_vendor_ramdisk()
245 if (auto res = updater.CheckOffset(o + p, o + new_p); !res.ok()) return res.error(); in replace_default_vendor_ramdisk()
259 if (auto res = updater.CheckOffset(o + p + q + r, o + new_p + q + new_r); !res.ok()) in replace_default_vendor_ramdisk()
365 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_vendor_ramdisk_fragment() local
366 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_vendor_ramdisk_fragment()
369 if (auto res = updater.CheckOffset(o + p, o + new_p); !res.ok()) return res.error(); in replace_vendor_ramdisk_fragment()
395 if (auto res = updater.CheckOffset(o + p + q + r, o + new_p + q + r); !res.ok()) in replace_vendor_ramdisk_fragment()
/system/core/fs_mgr/libfiemap/
Dimage_manager.cpp830 auto new_p = builder->AddPartition("_temp_for_verify", 0); in ValidateImageMaps() local
831 if (!new_p) { in ValidateImageMaps()
837 if (!FillPartitionExtents(builder.get(), new_p, fiemap.get(), partition_size)) { in ValidateImageMaps()
848 if (!CompareExtents(old_p, new_p)) { in ValidateImageMaps()
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h629 uint8_t *new_p = allocate(new_size);
630 memcpy_downward(old_p, old_size, new_p, new_size, in_use_back,
633 return new_p;
641 void memcpy_downward(uint8_t *old_p, size_t old_size, uint8_t *new_p,
644 memcpy(new_p + new_size - in_use_back, old_p + old_size - in_use_back,
646 memcpy(new_p, old_p, in_use_front);