Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 8 of 8) sorted by relevance

/frameworks/libs/binary_translation/guest_os_primitives/
Dguest_map_shadow.cc158 size_t old_size, in RemapExecutable() argument
163 old_start + old_size, in RemapExecutable()
169 GuestAddr old_end_page = AlignUpGuestPageSize(old_start + old_size); in RemapExecutable()
177 CopyExecutable(old_start, old_size, old_end_page, new_end_page - old_end_page); in RemapExecutable()
183 CHECK((old_start + old_size) <= new_start || (new_start + new_size) <= old_start); in RemapExecutable()
185 CopyExecutable(old_start, old_size < new_size ? old_size : new_size, new_start, new_size); in RemapExecutable()
186 ClearExecutable(old_start, old_size); in RemapExecutable()
/frameworks/libs/binary_translation/kernel_api/
Dsys_mman_emulation.cc102 void* MremapForGuest(void* old_addr, size_t old_size, size_t new_size, int flags, void* new_addr) { in MremapForGuest() argument
110 if (new_size <= old_size) { in MremapForGuest()
117 if (shadow->GetExecutable(ToGuestAddr(old_addr), old_size) == kBitMixed) { in MremapForGuest()
123 void* result = mremap(old_addr, old_size, new_size, flags, new_addr); in MremapForGuest()
126 shadow->RemapExecutable(ToGuestAddr(old_addr), old_size, ToGuestAddr(result), new_size); in MremapForGuest()
/frameworks/libs/binary_translation/assembler/
Dmachine_code.cc37 size_t old_size = code_.size(); in Grow() local
38 code_.resize(old_size + count); in Grow()
39 return old_size; in Grow()
/frameworks/libs/binary_translation/kernel_api/include/berberis/kernel_api/
Dsys_mman_emulation.h30 void* MremapForGuest(void* old_addr, size_t old_size, size_t new_size, int flags, void* new_addr);
/frameworks/libs/binary_translation/guest_os_primitives/include/berberis/guest_os_primitives/
Dguest_map_shadow.h52 void RemapExecutable(GuestAddr old_start, size_t old_size, GuestAddr new_start, size_t new_size);
/frameworks/native/libs/vr/libpdx/private/pdx/
Dutility.h86 size_t old_size = size_; in grow_by() local
87 resize(old_size + size_delta); in grow_by()
88 return data_ + old_size; in grow_by()
/frameworks/native/vulkan/libvulkan/
Ddriver.cpp848 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local
849 if (size <= old_size) in DefaultReallocate()
856 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp220 size_t old_size = ptr ? malloc_usable_size(ptr) : 0; in DefaultReallocate() local
221 if (size <= old_size) in DefaultReallocate()
228 memcpy(new_ptr, ptr, std::min(old_size, size)); in DefaultReallocate()