Home
last modified time | relevance | path

Searched refs:maxBlockCount (Results 1 – 6 of 6) sorted by relevance

/system/chre/util/tests/
Dsynchronized_expandable_memory_pool_test.cc50 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 …]
Dsegmented_queue_test.cc119 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 …]
Dblocking_queue_test.cc79 constexpr uint8_t maxBlockCount = 3; in TEST() local
81 BlockingSegmentedQueue<int, blockSize> blockingQueue(maxBlockCount, in TEST()
/system/chre/util/include/chre/util/
Dblocking_segmented_queue.h51 BlockingSegmentedQueue(size_t maxBlockCount, size_t staticBlockCount = 1)
52 : BlockingQueue(maxBlockCount, staticBlockCount) {} in BlockingQueue() argument
Dsegmented_queue.h56 SegmentedQueue(size_t maxBlockCount, size_t staticBlockCount = 1);
Dsegmented_queue_impl.h30 SegmentedQueue<ElementType, kBlockSize>::SegmentedQueue(size_t maxBlockCount, in SegmentedQueue() argument
32 : kMaxBlockCount(maxBlockCount), kStaticBlockCount(staticBlockCount) { in SegmentedQueue()