/frameworks/av/media/bufferpool/1.0/ |
D | AccessorImpl.h | 125 void onBufferAllocated(size_t allocSize) { in onBufferAllocated() 126 mSizeCached += allocSize; in onBufferAllocated() 129 mSizeInUse += allocSize; in onBufferAllocated() 136 void onBufferEvicted(size_t allocSize) { in onBufferEvicted() 137 mSizeCached -= allocSize; in onBufferEvicted() 142 void onBufferRecycled(size_t allocSize) { in onBufferRecycled() 143 mSizeInUse += allocSize; in onBufferRecycled() 151 void onBufferUnused(size_t allocSize) { in onBufferUnused() 152 mSizeInUse -= allocSize; in onBufferUnused() 275 const size_t allocSize,
|
D | AccessorImpl.cpp | 55 const size_t allocSize, in InternalBuffer() 58 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig) {} in InternalBuffer() 189 size_t allocSize; in allocate() local 190 status = mAllocator->allocate(params, &alloc, &allocSize); in allocate() 193 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate() 493 const size_t allocSize, in addNewBuffer() argument 504 bufferId, alloc, allocSize, params); in addNewBuffer() 509 mStats.onBufferAllocated(allocSize); in addNewBuffer()
|
/frameworks/base/tools/preload/ |
D | MemoryUsage.java | 47 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/ |
D | android_ddm_DdmHandleNativeHeap.cpp | 46 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/bufferpool/2.0/ |
D | AccessorImpl.h | 203 void onBufferAllocated(size_t allocSize) { in onBufferAllocated() 204 mSizeCached += allocSize; in onBufferAllocated() 207 mSizeInUse += allocSize; in onBufferAllocated() 214 void onBufferEvicted(size_t allocSize) { in onBufferEvicted() 215 mSizeCached -= allocSize; in onBufferEvicted() 220 void onBufferRecycled(size_t allocSize) { in onBufferRecycled() 221 mSizeInUse += allocSize; in onBufferRecycled() 229 void onBufferUnused(size_t allocSize) { in onBufferUnused() 230 mSizeInUse -= allocSize; in onBufferUnused() 362 const size_t allocSize,
|
D | AccessorImpl.cpp | 62 const size_t allocSize, in InternalBuffer() 65 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig), in InternalBuffer() 220 size_t allocSize; in allocate() local 221 status = mAllocator->allocate(params, &alloc, &allocSize); in allocate() 224 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate() 703 const size_t allocSize, in addNewBuffer() argument 714 bufferId, alloc, allocSize, params); in addNewBuffer() 719 mStats.onBufferAllocated(allocSize); in addNewBuffer()
|
/frameworks/av/media/extractors/mp4/ |
D | SampleTable.cpp | 399 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/ |
D | LinearAllocator.cpp | 205 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()
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 394 size_t allocSize = size + sPadding; in Alloc() local 396 if (align - 1 > SIZE_MAX - allocSize) { in Alloc() 402 allocSize += align - 1; in Alloc() 403 allocSize &= ~(align - 1); in Alloc() 408 ret = ion_alloc(ionFd, allocSize, align, heapMask, flags, &buffer); in Alloc() 411 ionFd, allocSize, align, heapMask, flags, ret, buffer); in Alloc() 421 return new Impl(ionFd, allocSize - sPadding, bufferFd, buffer, id, ret); in Alloc() 423 ret = ion_alloc_fd(ionFd, allocSize, align, heapMask, flags, &bufferFd); in Alloc() 426 ionFd, allocSize, align, heapMask, flags, ret, bufferFd); in Alloc() 429 return new ImplV2(ionFd, allocSize - sPadding, bufferFd, id, ret); in Alloc()
|
D | C2DmaBufAllocator.cpp | 125 C2DmaBufAllocation(BufferAllocator& alloc, size_t allocSize, size_t capacity, 268 C2DmaBufAllocation::C2DmaBufAllocation(BufferAllocator& alloc, size_t allocSize, size_t capacity, in C2DmaBufAllocation() argument 274 bufferFd = alloc.Alloc(heap_name, allocSize, flags); in C2DmaBufAllocation() 400 size_t allocSize = (size_t)capacity + sPadding; in newLinearAllocation() local 403 mBufferAllocator, allocSize, allocSize - sPadding, heap_name, flags, getId()); in newLinearAllocation()
|
/frameworks/base/libs/hwui/ |
D | VertexBuffer.h | 144 void createDegenerateSeparators(int allocSize) { in createDegenerateSeparators() argument 146 for (TYPE* degen = (TYPE*)mBuffer + allocSize; degen < end; degen += 2 + allocSize) { in createDegenerateSeparators()
|
/frameworks/native/libs/binder/tests/unit_fuzzers/ |
D | MemoryDealerFuzz.cpp | 62 size_t allocSize = fdp.ConsumeIntegralInRange<size_t>(0, kMaxAllocSize); in LLVMFuzzerTestOneInput() local 63 sp<IMemory> allocated = dealer->allocate(allocSize); in LLVMFuzzerTestOneInput()
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | rslist.rscript | 51 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/ |
D | rslist.rscript | 51 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/ |
D | rslist.rscript | 51 int allocSize = rsAllocationGetDimX(listAlloc); 57 int totalItemHeight = itemHeight * allocSize; 80 for(int i = 0; i < allocSize; i ++) {
|
/frameworks/base/tools/preload/loadclass/ |
D | LoadClass.java | 52 int allocSize = Debug.getGlobalAllocSize(); in main() local 72 response.append(',').append(allocSize); in main()
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | MtpMockDatabase.cpp | 190 size_t allocSize = handle % 0x1000; in getThumbnail() local 191 void* data = calloc(allocSize, sizeof(uint8_t)); in getThumbnail() 196 outThumbSize = allocSize; in getThumbnail()
|
/frameworks/av/media/bufferpool/1.0/vts/ |
D | allocator.h | 37 size_t *allocSize) override;
|
D | allocator.cpp | 127 size_t *allocSize) { in allocate() argument 139 *allocSize = ashmemParams.data.capacity; in allocate()
|
/frameworks/av/media/bufferpool/2.0/tests/ |
D | allocator.h | 49 size_t *allocSize) override;
|
D | allocator.cpp | 145 size_t *allocSize) { in allocate() argument 157 *allocSize = ashmemParams.data.capacity; in allocate()
|
/frameworks/av/media/bufferpool/1.0/include/bufferpool/ |
D | BufferPoolTypes.h | 96 size_t *allocSize) = 0;
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 347 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/2.0/include/bufferpool/ |
D | BufferPoolTypes.h | 101 size_t *allocSize) = 0;
|
/frameworks/av/media/libmedia/ |
D | IOMX.cpp | 528 size_t allocSize = 0; in onTransact() local 541 allocSize = (size + pageSize * 2) & ~(pageSize - 1); in onTransact() 542 params = mmap(NULL, allocSize, PROT_READ | PROT_WRITE, in onTransact() 561 if (mprotect((char*)params + allocSize - pageSize, pageSize, in onTransact() 596 munmap(params, allocSize); in onTransact()
|