Home
last modified time | relevance | path

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

/system/chre/util/tests/
Dsynchronized_expandable_memory_pool_test.cc49 constexpr uint8_t blockSize = 3; in TEST() local
52 SynchronizedExpandableMemoryPool<int, blockSize, maxBlockCount> in TEST()
55 ASSERT_EQ(testMemoryPool.getFreeSpaceCount(), blockSize * maxBlockCount); in TEST()
60 constexpr uint8_t blockSize = 3; 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()
77 constexpr uint8_t blockSize = 3; in TEST() local
81 SynchronizedExpandableMemoryPool<int, blockSize, maxBlockCount> in TEST()
83 int *tempDataPtrs[blockSize * maxBlockCount]; in TEST()
[all …]
Dsegmented_queue_test.cc118 constexpr uint8_t blockSize = 5; in TEST() local
121 SegmentedQueue<int, blockSize> segmentedQueue(maxBlockCount, in TEST()
125 EXPECT_EQ(segmentedQueue.capacity(), staticBlockCount * blockSize); in TEST()
130 constexpr uint8_t blockSize = 5; 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()
148 constexpr uint8_t blockSize = 5; in TEST() local
151 SegmentedQueue<ConstructorCount, blockSize> segmentedQueue(maxBlockCount); in TEST()
153 for (uint32_t queueSize = 0; queueSize < blockSize * maxBlockCount; in TEST()
[all …]
Dblocking_queue_test.cc78 constexpr uint8_t blockSize = 16; in TEST() local
81 BlockingSegmentedQueue<int, blockSize> blockingQueue(maxBlockCount, in TEST()
/system/extras/boottime_tools/bootanalyze/stressfs/src/com/android/car/test/stressfs/
DWritingService.java136 int blockSize = getQueryParam(data, "block", DEFAULT_BLOCK_SIZE); in onBind() local
138 Log.i(TAG, "Block Size: " + blockSize); in onBind()
141 if (fileSize % blockSize != 0) { in onBind()
146 StringBuilder builder = new StringBuilder(blockSize); in onBind()
/system/extras/zram-perf/
Dzram-perf.cpp60 size_t blockSize = 0; in getSize() local
61 int result = ioctl(m_fd, BLKGETSIZE, &blockSize); in getSize()
65 return blockSize * kSectorSize; in getSize()
/system/tools/hidl/host_utils/
DFormatter.cpp169 size_t blockSize = block.computeSize(false); in printBlock() local
170 if (blockSize + lineStart < lineLength) { in printBlock()
176 blockSize = block.computeSize(true); in printBlock()
177 if ((blockSize + getIndentation() + mSpacesPerIndent + prefixSize) < lineLength) { in printBlock()