Searched refs:allocSize (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp48 size_t allocSize; member in struct:Header
82 get_malloc_leak_info(&allocBytes, &header.allocSize, &header.allocInfoSize,
85 ALOGD("*** mapSize: %zu allocSize: %zu allocInfoSize: %zu totalMemory: %zu",
86 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory);
94 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize);
101 header.allocSize, reinterpret_cast<jbyte*>(allocBytes));
/frameworks/base/tools/preload/
H A DMemoryUsage.java47 final int allocSize; field in class:MemoryUsage
62 allocSize = Integer.parseInt(parsed[8]);
77 allocSize = -1;
90 int allocSize,
101 this.allocSize = allocSize;
116 allocSize - baseline.allocSize,
123 return allocSize - freedSize;
83 MemoryUsage(int nativeSharedPages, int javaSharedPages, int otherSharedPages, int nativePrivatePages, int javaPrivatePages, int otherPrivatePages, int allocCount, int allocSize, int freedCount, int freedSize, long nativeHeapSize) argument
/frameworks/base/tools/preload/loadclass/
H A DLoadClass.java52 int allocSize = Debug.getGlobalAllocSize();
72 response.append(',').append(allocSize);
/frameworks/av/media/libstagefright/
H A DSampleTable.cpp408 uint64_t allocSize = (uint64_t)mTimeToSampleCount * 2 * sizeof(uint32_t); local
409 mTotalSize += allocSize;
415 (unsigned long long)allocSize,
429 (size_t)allocSize) < (ssize_t)allocSize) {
477 uint64_t allocSize = (uint64_t)numEntries * 2 * sizeof(int32_t); local
478 if (allocSize > kMaxTotalSize) {
483 mTotalSize += allocSize;
489 (unsigned long long)allocSize,
503 (size_t)allocSize) < (ssize_
542 uint64_t allocSize = (uint64_t)numSyncSamples * sizeof(uint32_t); local
[all...]
/frameworks/base/libs/hwui/utils/
H A DLinearAllocator.cpp221 void LinearAllocator::rewindIfLastAlloc(void* ptr, size_t allocSize) { argument
227 allocSize = ALIGN(allocSize);
229 && ptr == ((char*)mNext - allocSize)) {
230 mWastedSpace += allocSize;
H A DLinearAllocator.h98 void rewindIfLastAlloc(void* ptr, size_t allocSize);
/frameworks/base/libs/hwui/
H A DVertexBuffer.h145 void createDegenerateSeparators(int allocSize) { argument
147 for (TYPE* degen = (TYPE*)mBuffer + allocSize; degen < end; degen += 2 + allocSize) {
H A DPathTessellator.cpp269 const int allocSize = (vertices.size() + extra) * 2; local
270 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize);
301 Vertex::set(&buffer[allocSize - 1 - capOffset],
580 const int allocSize = 6 * vertices.size() + 2 + 6 * extra; local
582 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize);
/frameworks/base/libs/hwui/hwui/
H A DBitmap.h54 static sk_sp<Bitmap> allocateAshmemBitmap(size_t allocSize, const SkImageInfo& info,
61 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes);
H A DBitmap.cpp49 typedef sk_sp<Bitmap> (*AllocPixelRef)(size_t allocSize, const SkImageInfo& info,
/frameworks/rs/driver/
H A DrsdAllocation.cpp346 size_t allocSize = alloc->mHal.drvState.faceOffset; local
348 allocSize *= 6;
351 return allocSize;
359 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { argument
361 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize);
366 memset(ptr, 0, allocSize);
384 size_t allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlignment); local
425 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment);
437 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment);
446 if(allocSize !
[all...]
/frameworks/rs/
H A DrsScriptC_LibGL.cpp215 size_t allocSize = a->getType()->getPackedSizeBytes(); local
216 rsc->mStateFont.renderText(text, allocSize, x, y);
/frameworks/av/media/libmedia/
H A DIOMX.cpp680 size_t allocSize = 0; local
693 allocSize = (size + pageSize * 2) & ~(pageSize - 1);
694 params = mmap(NULL, allocSize, PROT_READ | PROT_WRITE,
713 if (mprotect((char*)params + allocSize - pageSize, pageSize,
748 munmap(params, allocSize);
/frameworks/rs/rsov/driver/
H A DrsovAllocation.cpp133 size_t allocSize = alloc->mHal.drvState.faceOffset; local
135 allocSize *= 6;
138 return allocSize;
305 size_t allocSize = AllocationBuildPointerTable(rsc, alloc, type, nullptr); local
306 RSoVAllocation *rsovAlloc = new RSoVAllocation(rsov, type, allocSize);
/frameworks/native/opengl/libagl/
H A Degl.cpp412 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * local
415 allocSize > UINT32_MAX) {
418 depth.data = (GGLubyte*)malloc(allocSize);
566 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * local
569 allocSize > UINT32_MAX) {
573 depth.data = (GGLubyte*)malloc(allocSize);
691 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * local
694 allocSize > UINT32_MAX) {
698 depth.data = (GGLubyte*)malloc(allocSize);
779 uint64_t allocSize local
[all...]
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.cpp179 [value, valueSize](size_t allocSize) {
180 return (allocSize <= valueSize ? value : nullptr);
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp449 size_t allocSize = (size*3)/2; local
450 void* buf = realloc(mData, allocSize);
456 mBufferSize = allocSize;
/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp743 // allocSize = mtls->accumStride * (numAllocation - 1) + mtls->accumSize
744 const size_t allocSize = mtls->accumStride * numAllocAccum; local
745 mtls->accumAlloc = static_cast<uint8_t *>(memalign(mPageSize, allocSize));

Completed in 546 milliseconds