Home
last modified time | relevance | path

Searched refs:kAllocSize (Results 1 – 3 of 3) sorted by relevance

/system/chre/apps/chqts/src/shared/
Ddumb_allocator_test.cc21 static constexpr size_t kAllocSize = 128; variable
24 typedef nanoapp_testing::DumbAllocator<kAllocSize, kSlotCount> DA;
33 void *ptr = da.alloc(kAllocSize); in TEST()
42 ptrs[i] = da.alloc(kAllocSize); in TEST()
50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST()
57 void *newPtr = da.alloc(kAllocSize); in TEST()
66 uint8_t *ptr = static_cast<uint8_t*>(da.alloc(kAllocSize)); in TEST()
75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1)); in TEST()
76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2)); in TEST()
81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1)); in TEST()
Ddumb_allocator.h64 template<size_t kAllocSize, size_t kSlotCount>
68 : DumbAllocatorBase(kAllocSize, kSlotCount, mRawMemoryArray) {} in DumbAllocator()
99 uint8_t mRawMemoryArray[kAllocSize * kSlotCount];
Dsend_message.cc30 constexpr size_t kAllocSize = 128; variable
32 static DumbAllocator<kAllocSize, 4> gDumbAlloc;
35 if (messageSize > kAllocSize) { in freeDumbAllocMessage()