Home
last modified time | relevance | path

Searched refs:vendor_ramdisk_size (Results 1 – 5 of 5) sorted by relevance

/system/core/fastboot/
Dvendor_boot_img_utils.cpp215 const uint32_t p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in replace_default_vendor_ramdisk()
223 new_hdr->vendor_ramdisk_size = new_ramdisk.size(); in replace_default_vendor_ramdisk()
235 if (auto res = updater.Replace(hdr->vendor_ramdisk_size, new_ramdisk); !res.ok()) in replace_default_vendor_ramdisk()
237 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_default_vendor_ramdisk()
238 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_default_vendor_ramdisk()
259 new_entry->ramdisk_size = new_hdr->vendor_ramdisk_size; in replace_default_vendor_ramdisk()
309 const uint32_t p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in replace_vendor_ramdisk_fragment()
351 new_hdr->vendor_ramdisk_size = new_total_ramdisk_size; in replace_vendor_ramdisk_fragment()
355 const uint32_t new_p = round_up(new_hdr->vendor_ramdisk_size, new_hdr->page_size); in replace_vendor_ramdisk_fragment()
356 if (auto res = updater.Skip(p - hdr->vendor_ramdisk_size, new_p - new_hdr->vendor_ramdisk_size); in replace_vendor_ramdisk_fragment()
Dvendor_boot_img_utils_test.cpp293 EXPECT_EQ(hdr->vendor_ramdisk_size, env->replace->size()); in TEST_P()
297 auto p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in TEST_P()
311 EXPECT_EQ(entry->ramdisk_size, hdr_v4->vendor_ramdisk_size); in TEST_P()
381 EXPECT_EQ(hdr->vendor_ramdisk_size, expect_none_size + expect_platform_size); in TEST_P()
386 auto p = round_up(hdr->vendor_ramdisk_size, hdr->page_size); in TEST_P()
/system/tools/mkbootimg/include/bootimg/
Dbootimg.h298 uint32_t vendor_ramdisk_size; /* size in bytes */ member
/system/tools/mkbootimg/
Dunpack_bootimg.py381 info.vendor_ramdisk_size = unpack('I', args.boot_img.read(4))[0]
394 info.vendor_ramdisk_size, page_size)
444 (ramdisk_offset_base, info.vendor_ramdisk_size, 'vendor_ramdisk'))
Dmkbootimg.py138 vendor_ramdisk_size = args.vendor_ramdisk_total_size
141 vendor_ramdisk_size = filesize(args.vendor_ramdisk)
155 args.vendor_boot.write(pack('I', vendor_ramdisk_size))