Home
last modified time | relevance | path

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

12

/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.h126 void onBufferAllocated(size_t allocSize) { in onBufferAllocated()
127 mSizeCached += allocSize; in onBufferAllocated()
130 mSizeInUse += allocSize; in onBufferAllocated()
137 void onBufferEvicted(size_t allocSize) { in onBufferEvicted()
138 mSizeCached -= allocSize; in onBufferEvicted()
143 void onBufferRecycled(size_t allocSize) { in onBufferRecycled()
144 mSizeInUse += allocSize; in onBufferRecycled()
152 void onBufferUnused(size_t allocSize) { in onBufferUnused()
153 mSizeInUse -= allocSize; in onBufferUnused()
276 const size_t allocSize,
DAccessorImpl.cpp54 const size_t allocSize, in InternalBuffer()
57 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig) {} in InternalBuffer()
184 size_t allocSize; in allocate() local
185 status = mAllocator->allocate(params, &alloc, &allocSize); in allocate()
188 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
488 const size_t allocSize, in addNewBuffer() argument
499 bufferId, alloc, allocSize, params); in addNewBuffer()
504 mStats.onBufferAllocated(allocSize); in addNewBuffer()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.h193 void onBufferAllocated(size_t allocSize) { in onBufferAllocated()
194 mSizeCached += allocSize; in onBufferAllocated()
197 mSizeInUse += allocSize; in onBufferAllocated()
204 void onBufferEvicted(size_t allocSize) { in onBufferEvicted()
205 mSizeCached -= allocSize; in onBufferEvicted()
210 void onBufferRecycled(size_t allocSize) { in onBufferRecycled()
211 mSizeInUse += allocSize; in onBufferRecycled()
219 void onBufferUnused(size_t allocSize) { in onBufferUnused()
220 mSizeInUse -= allocSize; in onBufferUnused()
352 const size_t allocSize,
DAccessorImpl.cpp56 const size_t allocSize, in InternalBuffer()
59 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig), in InternalBuffer()
201 size_t allocSize; in allocate() local
202 status = mAllocator->allocate(params, &alloc, &allocSize); in allocate()
205 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
682 const size_t allocSize, in addNewBuffer() argument
693 bufferId, alloc, allocSize, params); in addNewBuffer()
698 mStats.onBufferAllocated(allocSize); in addNewBuffer()
/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.cpp46 size_t allocSize; member
85 header.allocSize = leak_info.overall_size; in DdmHandleNativeHeap_getLeakInfo()
91 header.mapSize, header.allocSize, header.allocInfoSize, header.totalMemory); in DdmHandleNativeHeap_getLeakInfo()
99 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); in DdmHandleNativeHeap_getLeakInfo()
106 header.allocSize, reinterpret_cast<jbyte*>(leak_info.buffer)); in DdmHandleNativeHeap_getLeakInfo()
/frameworks/av/media/extractors/mp4/
DSampleTable.cpp399 uint64_t allocSize = (uint64_t)mTimeToSampleCount * 2 * sizeof(uint32_t); in setTimeToSampleParams() local
400 mTotalSize += allocSize; in setTimeToSampleParams()
406 (unsigned long long)allocSize, in setTimeToSampleParams()
420 (size_t)allocSize) < (ssize_t)allocSize) { in setTimeToSampleParams()
468 uint64_t allocSize = (uint64_t)numEntries * 2 * sizeof(int32_t); in setCompositionTimeToSampleParams() local
469 if (allocSize > kMaxTotalSize) { in setCompositionTimeToSampleParams()
474 mTotalSize += allocSize; in setCompositionTimeToSampleParams()
480 (unsigned long long)allocSize, in setCompositionTimeToSampleParams()
494 (size_t)allocSize) < (ssize_t)allocSize) { in setCompositionTimeToSampleParams()
533 uint64_t allocSize = (uint64_t)numSyncSamples * sizeof(uint32_t); in setSyncSampleParams() local
[all …]
/frameworks/base/libs/hwui/utils/
DLinearAllocator.cpp205 void LinearAllocator::rewindIfLastAlloc(void* ptr, size_t allocSize) { in rewindIfLastAlloc() argument
211 allocSize = ALIGN(allocSize); in rewindIfLastAlloc()
213 ptr == ((char*)mNext - allocSize)) { in rewindIfLastAlloc()
214 mWastedSpace += allocSize; in rewindIfLastAlloc()
DLinearAllocator.h98 void rewindIfLastAlloc(void* ptr, size_t allocSize);
/frameworks/base/libs/hwui/
DVertexBuffer.h144 void createDegenerateSeparators(int allocSize) { in createDegenerateSeparators() argument
146 for (TYPE* degen = (TYPE*)mBuffer + allocSize; degen < end; degen += 2 + allocSize) { in createDegenerateSeparators()
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Drslist.rscript51 int allocSize = rsAllocationGetDimX(listAlloc);
57 int totalItemHeight = itemHeight * allocSize;
80 for(int i = 0; i < allocSize; i ++) {
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Drslist.rscript51 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.rscript51 int allocSize = rsAllocationGetDimX(listAlloc);
57 int totalItemHeight = itemHeight * allocSize;
80 for(int i = 0; i < allocSize; i ++) {
/frameworks/base/tools/preload/loadclass/
DLoadClass.java52 int allocSize = Debug.getGlobalAllocSize(); in main() local
72 response.append(',').append(allocSize); in main()
/frameworks/av/media/bufferpool/2.0/tests/
Dallocator.cpp127 size_t *allocSize) { in allocate() argument
139 *allocSize = ashmemParams.data.capacity; in allocate()
Dallocator.h37 size_t *allocSize) override;
/frameworks/av/media/bufferpool/1.0/vts/
Dallocator.cpp127 size_t *allocSize) { in allocate() argument
139 *allocSize = ashmemParams.data.capacity; in allocate()
Dallocator.h37 size_t *allocSize) override;
/frameworks/rs/driver/
DrsdAllocation.cpp347 size_t allocSize = alloc->mHal.drvState.faceOffset; in AllocationBuildPointerTable() local
349 allocSize *= 6; in AllocationBuildPointerTable()
352 return allocSize; in AllocationBuildPointerTable()
360 static uint8_t* allocAlignedMemory(size_t allocSize, bool forceZero, size_t requiredAlignment) { in allocAlignedMemory() argument
362 uint8_t* ptr = (uint8_t *)memalign(requiredAlignment, allocSize); in allocAlignedMemory()
367 memset(ptr, 0, allocSize); in allocAlignedMemory()
385 …size_t allocSize = AllocationBuildPointerTable(rsc, alloc, alloc->getType(), nullptr, requiredAlig… in rsdAllocationInitStrided() local
426 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
438 ptr = allocAlignedMemory(allocSize, forceZero, requiredAlignment); in rsdAllocationInitStrided()
447 if(allocSize != verifySize) { in rsdAllocationInitStrided()
[all …]
/frameworks/av/media/bufferpool/1.0/include/bufferpool/
DBufferPoolTypes.h96 size_t *allocSize) = 0;
/frameworks/av/media/bufferpool/2.0/include/bufferpool/
DBufferPoolTypes.h101 size_t *allocSize) = 0;
/frameworks/native/opengl/libagl/
Degl.cpp414 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in connect() local
417 allocSize > UINT32_MAX) { in connect()
420 depth.data = (GGLubyte*)malloc(allocSize); in connect()
568 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in swapBuffers() local
571 allocSize > UINT32_MAX) { in swapBuffers()
575 depth.data = (GGLubyte*)malloc(allocSize); in swapBuffers()
693 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pixmap_surface_t() local
696 allocSize > UINT32_MAX) { in egl_pixmap_surface_t()
700 depth.data = (GGLubyte*)malloc(allocSize); in egl_pixmap_surface_t()
781 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in egl_pbuffer_surface_t() local
[all …]
/frameworks/av/media/libmedia/
DIOMX.cpp529 size_t allocSize = 0; in onTransact() local
542 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact()
543 params = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, in onTransact()
562 if (mprotect((char*)params + allocSize - pageSize, pageSize, in onTransact()
597 munmap(params, allocSize); in onTransact()
/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/base/libs/hwui/hwui/
DBitmap.h135 Bitmap(void* address, size_t allocSize, const SkImageInfo& info, size_t rowBytes);

12