Home
last modified time | relevance | path

Searched refs:MemoryPool (Results 1 – 4 of 4) sorted by relevance

/system/chre/util/include/chre/util/
Dmemory_pool_impl.h27 MemoryPool<ElementType, kSize>::MemoryPool() { in MemoryPool() function
39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args&&... args) { in allocate()
53 void MemoryPool<ElementType, kSize>::deallocate(ElementType *element) { in deallocate()
65 size_t MemoryPool<ElementType, kSize>::getFreeBlockCount() const { in getFreeBlockCount()
70 typename MemoryPool<ElementType, kSize>::MemoryPoolBlock
71 *MemoryPool<ElementType, kSize>::blocks() { in blocks()
Dmemory_pool.h49 class MemoryPool : public NonCopyable {
55 MemoryPool();
Dsynchronized_memory_pool.h65 MemoryPool<ElementType, kSize> mMemoryPool;
/system/chre/util/tests/
Dmemory_pool_test.cc8 using chre::MemoryPool;
10 TEST(MemoryPool, ExhaustPool) { in TEST() argument
11 MemoryPool<int, 3> memoryPool; in TEST()
23 TEST(MemoryPool, ExhaustPoolThenDeallocateOneAndAllocateOne) { in TEST() argument
24 MemoryPool<int, 3> memoryPool; in TEST()
66 TEST(MemoryPool, ExhaustPoolThenRandomDeallocate) { in TEST() argument
72 MemoryPool<size_t, kMemoryPoolSize> memoryPool; in TEST()