Home
last modified time | relevance | path

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

/hardware/interfaces/media/bufferpool/aidl/default/
DBufferPool.h154 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,
DDataHelper.h82 const size_t allocSize, in InternalBuffer()
85 mAllocation(alloc), mAllocSize(allocSize), mConfig(allocConfig), in InternalBuffer()
DAccessor.cpp212 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()
DBufferPool.cpp440 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/
DQemuPipeStream.cpp77 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()
DVirtioGpuPipeStream.cpp115 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/
DPool.cpp225 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/
DSubAllocator_unittest.cpp63 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/
DCommandBufferStagingStream.cpp168 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/
DSoundTriggerHalImpl.cpp353 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/
DSoundTriggerHw.cpp383 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/
DAddressSpaceStream.cpp107 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/
DSoundTriggerHw.cpp375 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/
DVkReconstruction.cpp181 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/
Dallocator.h50 size_t *allocSize) override;
Dallocator.cpp145 size_t *allocSize) { in allocate() argument
157 *allocSize = ashmemParams.data.capacity; in allocate()
/hardware/interfaces/media/bufferpool/aidl/default/include/bufferpool2/
DBufferPoolTypes.h109 size_t *allocSize) = 0;
/hardware/qcom/display/msm8226/libgralloc/
Dgpu.cpp48 allocSize = gralloc_alloc_size; in gpu_context_t()
/hardware/qcom/display/msm8960/libgralloc/
Dgpu.cpp49 allocSize = gralloc_alloc_size; in gpu_context_t()
/hardware/qcom/display/msm8084/libgralloc/
Dgpu.cpp49 allocSize = gralloc_alloc_size; in gpu_context_t()