Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/tools/preload/
DMemoryUsage.java47 final int allocSize; field in MemoryUsage
62 allocSize = Integer.parseInt(parsed[8]); in MemoryUsage()
77 allocSize = -1; in MemoryUsage()
90 int allocSize, in MemoryUsage() argument
101 this.allocSize = allocSize; in MemoryUsage()
116 allocSize - baseline.allocSize, in subtract()
123 return allocSize - freedSize; in javaHeapSize()
/frameworks/base/core/jni/
Dandroid_ddm_DdmHandleNativeHeap.cpp48 size_t allocSize; member
82 get_malloc_leak_info(&allocBytes, &header.allocSize, &header.allocInfoSize, in DdmHandleNativeHeap_getLeakInfo()
86 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory); in DdmHandleNativeHeap_getLeakInfo()
94 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); in DdmHandleNativeHeap_getLeakInfo()
101 header.allocSize, reinterpret_cast<jbyte*>(allocBytes)); in DdmHandleNativeHeap_getLeakInfo()
/frameworks/av/media/libstagefright/
DSampleTable.cpp408 uint64_t allocSize = (uint64_t)mTimeToSampleCount * 2 * sizeof(uint32_t); in setTimeToSampleParams() local
409 mTotalSize += allocSize; in setTimeToSampleParams()
415 (unsigned long long)allocSize, in setTimeToSampleParams()
429 (size_t)allocSize) < (ssize_t)allocSize) { in setTimeToSampleParams()
477 uint64_t allocSize = (uint64_t)numEntries * 2 * sizeof(int32_t); in setCompositionTimeToSampleParams() local
478 if (allocSize > kMaxTotalSize) { in setCompositionTimeToSampleParams()
483 mTotalSize += allocSize; in setCompositionTimeToSampleParams()
489 (unsigned long long)allocSize, in setCompositionTimeToSampleParams()
503 (size_t)allocSize) < (ssize_t)allocSize) { in setCompositionTimeToSampleParams()
542 uint64_t allocSize = (uint64_t)numSyncSamples * sizeof(uint32_t); in setSyncSampleParams() local
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Drslist.rs51 int allocSize = rsAllocationGetDimX(listAlloc);
57 int totalItemHeight = itemHeight * allocSize;
80 for(int i = 0; i < allocSize; i ++) {
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Drslist.rs51 int allocSize = rsAllocationGetDimX(listAlloc);
57 int totalItemHeight = itemHeight * allocSize;
80 for(int i = 0; i < allocSize; i ++) {
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Drslist.rs51 int allocSize = rsAllocationGetDimX(listAlloc);
57 int totalItemHeight = itemHeight * allocSize;
80 for(int i = 0; i < allocSize; i ++) {
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp221 void LinearAllocator::rewindIfLastAlloc(void* ptr, size_t allocSize) { in rewindIfLastAlloc() argument
227 allocSize = ALIGN(allocSize); in rewindIfLastAlloc()
229 && ptr == ((char*)mNext - allocSize)) { in rewindIfLastAlloc()
230 mWastedSpace += allocSize; in rewindIfLastAlloc()
DLinearAllocator.h98 void rewindIfLastAlloc(void* ptr, size_t allocSize);
/frameworks/base/libs/hwui/
DVertexBuffer.h145 void createDegenerateSeparators(int allocSize) { in createDegenerateSeparators() argument
147 for (TYPE* degen = (TYPE*)mBuffer + allocSize; degen < end; degen += 2 + allocSize) { in createDegenerateSeparators()
DPathTessellator.cpp269 const int allocSize = (vertices.size() + extra) * 2; in getStrokeVerticesFromUnclosedVertices() local
270 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); in getStrokeVerticesFromUnclosedVertices()
301 Vertex::set(&buffer[allocSize - 1 - capOffset], in getStrokeVerticesFromUnclosedVertices()
580 const int allocSize = 6 * vertices.size() + 2 + 6 * extra; in getStrokeVerticesFromUnclosedVerticesAA() local
582 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); in getStrokeVerticesFromUnclosedVerticesAA()
/frameworks/base/tools/preload/loadclass/
DLoadClass.java52 int allocSize = Debug.getGlobalAllocSize(); in main() local
72 response.append(',').append(allocSize); in main()
/frameworks/base/libs/hwui/hwui/
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);
DBitmap.cpp49 typedef sk_sp<Bitmap> (*AllocPixelRef)(size_t allocSize, const SkImageInfo& info,
/frameworks/rs/driver/
DrsdAllocation.cpp346 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable() local
348 allocSize *= 6; in AllocationBuildPointerTable()
351 return allocSize; in AllocationBuildPointerTable()
359 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { in allocAlignedMemory() argument
361 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); in allocAlignedMemory()
366 memset(ptr, 0, allocSize); in allocAlignedMemory()
384 …size_t allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlig… in rsdAllocationInitStrided() local
425 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
437 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
446 if(allocSize != verifySize) { in rsdAllocationInitStrided()
[all …]
/frameworks/native/opengl/libagl/
Degl.cpp412 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in connect() local
415 allocSize > UINT32_MAX) { in connect()
418 depth.data = (GGLubyte*)malloc(allocSize); in connect()
566 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in swapBuffers() local
569 allocSize > UINT32_MAX) { in swapBuffers()
573 depth.data = (GGLubyte*)malloc(allocSize); in swapBuffers()
691 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pixmap_surface_t() local
694 allocSize > UINT32_MAX) { in egl_pixmap_surface_t()
698 depth.data = (GGLubyte*)malloc(allocSize); in egl_pixmap_surface_t()
779 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pbuffer_surface_t() local
[all …]
/frameworks/rs/
DrsScriptC_LibGL.cpp215 size_t allocSize = a->getType()->getPackedSizeBytes(); in rsrDrawTextAlloc() local
216 rsc->mStateFont.renderText(text, allocSize, x, y); in rsrDrawTextAlloc()
/frameworks/rs/rsov/driver/
DrsovAllocation.cpp133 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable() local
135 allocSize *= 6; in AllocationBuildPointerTable()
138 return allocSize; in AllocationBuildPointerTable()
305 size_t allocSize = AllocationBuildPointerTable(rsc, alloc, type, nullptr); in rsovAllocationInit() local
306 RSoVAllocation *rsovAlloc = new RSoVAllocation(rsov, type, allocSize); in rsovAllocationInit()
/frameworks/av/media/libmedia/
DIOMX.cpp680 size_t allocSize = 0; in onTransact() local
693 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact()
694 params = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, in onTransact()
713 if (mprotect((char*)params + allocSize - pageSize, pageSize, in onTransact()
748 munmap(params, allocSize); in onTransact()
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache.cpp179 [value, valueSize](size_t allocSize) { in get() argument
180 return (allocSize <= valueSize ? value : nullptr); in get()
/frameworks/base/tools/aapt/
DAaptAssets.cpp449 size_t allocSize = (size*3)/2; in editData() local
450 void* buf = realloc(mData, allocSize); in editData()
456 mBufferSize = allocSize; in editData()
/frameworks/rs/cpu_ref/
DrsCpuCore.cpp744 const size_t allocSize = mtls->accumStride * numAllocAccum; in launchReduceParallel() local
745 mtls->accumAlloc = static_cast<uint8_t *>(memalign(mPageSize, allocSize)); in launchReduceParallel()