Home
last modified time | relevance | path

Searched refs:wantedSize (Results 1 – 4 of 4) sorted by relevance

/device/generic/goldfish-opengl/android-emu/android/base/
DPool.cpp307 void* alloc(size_t wantedSize) { in alloc() argument
308 if (wantedSize > mMaxFastSize) { in alloc()
309 D("requested size %zu too large", wantedSize); in alloc()
314 std::max(mMinAllocSize, leastPowerof2(wantedSize)); in alloc()
320 wantedSize, minAllocSizeNeeded, index); in alloc()
400 void* Pool::alloc(size_t wantedSize) { in alloc() argument
401 void* ptr = mImpl->alloc(wantedSize); in alloc()
407 ptr = ::malloc(wantedSize); in alloc()
410 D("Failed to service allocation for %zu bytes", wantedSize); in alloc()
DAndroidSubAllocator.cpp159 void* alloc(size_t wantedSize) { in alloc() argument
160 if (wantedSize == 0) return nullptr; in alloc()
163 (uint64_t)wantedSize; in alloc()
167 ((wantedSize + pageSize - 1) / pageSize); in alloc()
218 void* SubAllocator::alloc(size_t wantedSize) { in alloc() argument
219 return mImpl->alloc(wantedSize); in alloc()
DPool.h48 void* alloc(size_t wantedSize);
DAndroidSubAllocator.h55 void* alloc(size_t wantedSize);