Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 20 of 20) 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/rs/java/tests/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/java/tests/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/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/rs/java/tests/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/
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/rs/driver/
DrsdAllocation.cpp353 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable() local
355 allocSize *= 6; in AllocationBuildPointerTable()
358 return allocSize; in AllocationBuildPointerTable()
366 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { in allocAlignedMemory() argument
368 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); in allocAlignedMemory()
373 memset(ptr, 0, allocSize); in allocAlignedMemory()
391 …size_t allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlig… in rsdAllocationInitStrided() local
432 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
444 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
453 if(allocSize != verifySize) { in rsdAllocationInitStrided()
[all …]
/frameworks/av/media/libstagefright/
DSampleTable.cpp416 uint64_t allocSize = (uint64_t)numEntries * 2 * sizeof(uint32_t); in setCompositionTimeToSampleParams() local
417 if (allocSize > UINT32_MAX) { in setCompositionTimeToSampleParams()
468 uint64_t allocSize = mNumSyncSamples * (uint64_t)sizeof(uint32_t); in setSyncSampleParams() local
469 if (allocSize > SIZE_MAX) { in setSyncSampleParams()
/frameworks/native/opengl/libagl/
Degl.cpp397 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in connect() local
400 allocSize > UINT32_MAX) { in connect()
403 depth.data = (GGLubyte*)malloc(allocSize); in connect()
557 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in swapBuffers() local
560 allocSize > UINT32_MAX) { in swapBuffers()
564 depth.data = (GGLubyte*)malloc(allocSize); in swapBuffers()
682 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pixmap_surface_t() local
685 allocSize > UINT32_MAX) { in egl_pixmap_surface_t()
689 depth.data = (GGLubyte*)malloc(allocSize); in egl_pixmap_surface_t()
769 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pbuffer_surface_t() local
[all …]
/frameworks/rs/
DrsScriptC_LibGL.cpp219 size_t allocSize = a->getType()->getPackedSizeBytes(); in rsrDrawTextAlloc() local
220 rsc->mStateFont.renderText(text, allocSize, x, y); in rsrDrawTextAlloc()
/frameworks/av/media/libmedia/
DIOMX.cpp743 size_t allocSize = 0; in onTransact() local
757 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact()
758 params = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, in onTransact()
778 mprotect((char*)params + allocSize - pageSize, pageSize, PROT_NONE); in onTransact()
818 munmap(params, allocSize); in onTransact()
/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.cpp746 const size_t allocSize = mtls->accumStride * numAllocAccum; in launchReduceParallel() local
747 mtls->accumAlloc = static_cast<uint8_t *>(memalign(mPageSize, allocSize)); in launchReduceParallel()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmap_Delegate.java330 int config, int allocSize, boolean isPremultiplied) { in nativeReconfigure() argument
/frameworks/base/core/jni/android/graphics/
DBitmap.cpp800 jint width, jint height, jint configHandle, jint allocSize, in Bitmap_reconfigure() argument
810 if (width * height * SkColorTypeBytesPerPixel(colorType) > allocSize) { in Bitmap_reconfigure()
/frameworks/base/graphics/java/android/graphics/
DBitmap.java1698 int config, int allocSize, in nativeReconfigure() argument