Searched refs:maxBlockCount (Results 1 – 6 of 6) sorted by relevance
/system/chre/util/tests/ |
D | synchronized_expandable_memory_pool_test.cc | 50 constexpr uint8_t maxBlockCount = 5; in TEST() local 52 SynchronizedExpandableMemoryPool<int, blockSize, maxBlockCount> in TEST() 55 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount); in TEST() 61 constexpr uint8_t maxBlockCount = 5; in TEST() local 63 SynchronizedExpandableMemoryPool<ConstructorCount, blockSize, maxBlockCount> in TEST() 70 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount - 1); in TEST() 73 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount); in TEST() 78 constexpr uint8_t maxBlockCount = 4; in TEST() local 81 SynchronizedExpandableMemoryPool<int, blockSize, maxBlockCount> in TEST() 83 int *tempDataPtrs[blockSize * maxBlockCount]; in TEST() [all …]
|
D | segmented_queue_test.cc | 119 constexpr uint8_t maxBlockCount = 3; in TEST() local 121 SegmentedQueue<int, blockSize> segmentedQueue(maxBlockCount, in TEST() 131 constexpr uint8_t maxBlockCount = 3; in TEST() local 132 SegmentedQueue<int, blockSize> segmentedQueue(maxBlockCount); in TEST() 134 for (uint32_t queueSize = 0; queueSize < blockSize * maxBlockCount; in TEST() 143 EXPECT_EQ(segmentedQueue.size(), maxBlockCount * blockSize); in TEST() 149 constexpr uint8_t maxBlockCount = 3; in TEST() local 151 SegmentedQueue<ConstructorCount, blockSize> segmentedQueue(maxBlockCount); in TEST() 153 for (uint32_t queueSize = 0; queueSize < blockSize * maxBlockCount; in TEST() 164 EXPECT_EQ(segmentedQueue.size(), maxBlockCount * blockSize); in TEST() [all …]
|
D | blocking_queue_test.cc | 79 constexpr uint8_t maxBlockCount = 3; in TEST() local 81 BlockingSegmentedQueue<int, blockSize> blockingQueue(maxBlockCount, in TEST()
|
/system/chre/util/include/chre/util/ |
D | blocking_segmented_queue.h | 51 BlockingSegmentedQueue(size_t maxBlockCount, size_t staticBlockCount = 1) 52 : BlockingQueue(maxBlockCount, staticBlockCount) {} in BlockingQueue() argument
|
D | segmented_queue.h | 56 SegmentedQueue(size_t maxBlockCount, size_t staticBlockCount = 1);
|
D | segmented_queue_impl.h | 30 SegmentedQueue<ElementType, kBlockSize>::SegmentedQueue(size_t maxBlockCount, in SegmentedQueue() argument 32 : kMaxBlockCount(maxBlockCount), kStaticBlockCount(staticBlockCount) { in SegmentedQueue()
|