/hardware/interfaces/media/bufferpool/aidl/default/ |
D | BufferPool.h | 154 void onBufferAllocated(size_t allocSize) { in onBufferAllocated() 155 mSizeCached += allocSize; in onBufferAllocated() 158 mSizeInUse += allocSize; in onBufferAllocated() 165 void onBufferEvicted(size_t allocSize) { in onBufferEvicted() 166 mSizeCached -= allocSize; in onBufferEvicted() 171 void onBufferRecycled(size_t allocSize) { in onBufferRecycled() 172 mSizeInUse += allocSize; in onBufferRecycled() 180 void onBufferUnused(size_t allocSize) { in onBufferUnused() 181 mSizeInUse -= allocSize; in onBufferUnused() 313 const size_t allocSize,
|
D | DataHelper.h | 82 const size_t allocSize, in InternalBuffer() 85 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig), in InternalBuffer()
|
D | Accessor.cpp | 212 size_t allocSize; in allocate() local 213 status = mAllocator->allocate(params, &alloc, &allocSize); in allocate() 216 status = mBufferPool.addNewBuffer(alloc, allocSize, params, bufferId, handle); in allocate()
|
D | BufferPool.cpp | 440 const size_t allocSize, in addNewBuffer() argument 451 bufferId, alloc, allocSize, params); in addNewBuffer() 456 mStats.onBufferAllocated(allocSize); in addNewBuffer()
|
/hardware/google/gfxstream/guest/OpenglSystemCommon/ |
D | QemuPipeStream.cpp | 77 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local 79 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer() 81 else if (m_bufsize < allocSize) { in allocBuffer() 82 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer() 85 m_bufsize = allocSize; in allocBuffer() 87 ERR("realloc (%zu) failed\n", allocSize); in allocBuffer()
|
D | VirtioGpuPipeStream.cpp | 115 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local 117 m_buf = (unsigned char *)malloc(allocSize); in allocBuffer() 119 else if (m_bufsize < allocSize) { in allocBuffer() 120 unsigned char *p = (unsigned char *)realloc(m_buf, allocSize); in allocBuffer() 123 m_bufsize = allocSize; in allocBuffer() 125 ERR("realloc (%zu) failed\n", allocSize); in allocBuffer()
|
/hardware/google/gfxstream/guest/android-emu/aemu/base/ |
D | Pool.cpp | 225 Heap(size_t allocSize, size_t chunksPerSize) : in Heap() argument 226 mBlock(allocSize, chunksPerSize) { in Heap() 285 size_t allocSize = mMinAllocSize << i; in Impl() local 287 D("create heap for size %zu", allocSize); in Impl() 289 Heap* newHeap = new Heap(allocSize, mChunksPerSize); in Impl() 293 allocSize, in Impl() 374 size_t allocSize; member
|
/hardware/google/aemu/base/ |
D | SubAllocator_unittest.cpp | 63 for (size_t allocSize : sizesToTest) { in TEST() local 65 size_t trySize = allocSize / allocCount; in TEST() 179 size_t allocSize = in TEST() local 181 void* ptr = subAlloc.alloc(allocSize); in TEST() 184 total += allocSize; in TEST() 192 "size " << allocSize << in TEST()
|
/hardware/google/gfxstream/guest/vulkan_enc/ |
D | CommandBufferStagingStream.cpp | 168 size_t allocSize = (1048576 < minSize ? minSize : 1048576); in allocBuffer() local 171 m_mem = m_alloc(allocSize); in allocBuffer() 172 m_size = allocSize; in allocBuffer() 181 size_t newAllocSize = m_size * 2 + allocSize; in allocBuffer()
|
/hardware/interfaces/soundtrigger/2.0/default/ |
D | SoundTriggerHalImpl.cpp | 353 size_t allocSize = in convertSoundModelToHal() local 356 static_cast<struct sound_trigger_phrase_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 359 allocSize); in convertSoundModelToHal() 372 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal() local 373 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 376 allocSize); in convertSoundModelToHal() 407 size_t allocSize = sizeof(struct sound_trigger_recognition_config) + config->data.size(); in convertRecognitionConfigToHal() local 409 static_cast<struct sound_trigger_recognition_config*>(malloc(allocSize)); in convertRecognitionConfigToHal() 412 "malloc failed for size %zu in convertRecognitionConfigToHal", allocSize); in convertRecognitionConfigToHal()
|
/hardware/interfaces/soundtrigger/2.3/default/ |
D | SoundTriggerHw.cpp | 383 size_t allocSize = in convertSoundModelToHal() local 386 static_cast<struct sound_trigger_phrase_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 389 allocSize); in convertSoundModelToHal() 402 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal() local 403 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 406 allocSize); in convertSoundModelToHal() 438 size_t allocSize = sizeof(struct sound_trigger_recognition_config) + config->data.size(); in convertRecognitionConfigToHal() local 440 static_cast<struct sound_trigger_recognition_config*>(malloc(allocSize)); in convertRecognitionConfigToHal() 443 "malloc failed for size %zu in convertRecognitionConfigToHal", allocSize); in convertRecognitionConfigToHal() 469 size_t allocSize = in convertRecognitionConfigToHalHeader() local [all …]
|
/hardware/google/gfxstream/guest/GoldfishAddressSpace/ |
D | AddressSpaceStream.cpp | 107 size_t allocSize = in allocBuffer() local 110 if (m_writeStep < allocSize) { in allocBuffer() 112 m_tmpBufSize = allocSize * 2; in allocBuffer() 116 if (m_tmpBufSize < allocSize) { in allocBuffer() 117 m_tmpBufSize = allocSize * 2; in allocBuffer() 126 m_tmpBufXferSize = allocSize; in allocBuffer()
|
/hardware/interfaces/soundtrigger/2.2/default/ |
D | SoundTriggerHw.cpp | 375 size_t allocSize = in convertSoundModelToHal() local 378 static_cast<struct sound_trigger_phrase_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 381 allocSize); in convertSoundModelToHal() 394 size_t allocSize = sizeof(struct sound_trigger_sound_model) + soundModel->data.size(); in convertSoundModelToHal() local 395 halModel = static_cast<struct sound_trigger_sound_model*>(malloc(allocSize)); in convertSoundModelToHal() 398 allocSize); in convertSoundModelToHal() 430 size_t allocSize = sizeof(struct sound_trigger_recognition_config) + config->data.size(); in convertRecognitionConfigToHal() local 432 static_cast<struct sound_trigger_recognition_config*>(malloc(allocSize)); in convertRecognitionConfigToHal() 435 "malloc failed for size %zu in convertRecognitionConfigToHal", allocSize); in convertRecognitionConfigToHal()
|
/hardware/google/gfxstream/host/vulkan/ |
D | VkReconstruction.cpp | 181 size_t allocSize = (m_bufsize < minSize ? minSize : m_bufsize); in allocBuffer() local 183 m_buf = (unsigned char*)malloc(allocSize); in allocBuffer() 184 } else if (m_bufsize < allocSize) { in allocBuffer() 185 unsigned char* p = (unsigned char*)realloc(m_buf, allocSize); in allocBuffer() 188 m_bufsize = allocSize; in allocBuffer() 190 ERR("realloc (%zu) failed\n", allocSize); in allocBuffer()
|
/hardware/interfaces/media/bufferpool/aidl/default/tests/ |
D | allocator.h | 50 size_t *allocSize) override;
|
D | allocator.cpp | 145 size_t *allocSize) { in allocate() argument 157 *allocSize = ashmemParams.data.capacity; in allocate()
|
/hardware/interfaces/media/bufferpool/aidl/default/include/bufferpool2/ |
D | BufferPoolTypes.h | 109 size_t *allocSize) = 0;
|
/hardware/qcom/display/msm8226/libgralloc/ |
D | gpu.cpp | 48 allocSize = gralloc_alloc_size; in gpu_context_t()
|
/hardware/qcom/display/msm8960/libgralloc/ |
D | gpu.cpp | 49 allocSize = gralloc_alloc_size; in gpu_context_t()
|
/hardware/qcom/display/msm8084/libgralloc/ |
D | gpu.cpp | 49 allocSize = gralloc_alloc_size; in gpu_context_t()
|