Home
last modified time | relevance | path

Searched refs:kSize (Results 1 – 11 of 11) sorted by relevance

/system/chre/util/include/chre/util/
Dmemory_pool_impl.h26 template<typename ElementType, size_t kSize>
27 MemoryPool<ElementType, kSize>::MemoryPool() { in MemoryPool()
32 for (size_t i = 0; i < kSize; i++) { in MemoryPool()
37 template<typename ElementType, size_t kSize>
39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args&&... args) { in allocate()
52 template<typename ElementType, size_t kSize>
53 void MemoryPool<ElementType, kSize>::deallocate(ElementType *element) { in deallocate()
64 template<typename ElementType, size_t kSize>
65 MemoryPool<ElementType, kSize>::MemoryPoolBlock::MemoryPoolBlock( in MemoryPoolBlock()
Dfixed_size_blocking_queue_impl.h25 template<typename ElementType, size_t kSize>
26 bool FixedSizeBlockingQueue<ElementType, kSize>::push( in push()
39 template<typename ElementType, size_t kSize>
40 ElementType FixedSizeBlockingQueue<ElementType, kSize>::pop() { in pop()
51 template<typename ElementType, size_t kSize>
52 bool FixedSizeBlockingQueue<ElementType, kSize>::empty() { in empty()
Dsynchronized_memory_pool_impl.h25 template<typename ElementType, size_t kSize>
27 ElementType *SynchronizedMemoryPool<ElementType, kSize>::allocate( in allocate()
33 template<typename ElementType, size_t kSize>
34 void SynchronizedMemoryPool<ElementType, kSize>::deallocate( in deallocate()
Dmemory_pool.h49 template<typename ElementType, size_t kSize>
101 FixedSizeVector<MemoryPoolBlock, kSize> mBlocks;
107 size_t mFreeBlockCount = kSize;
Dfixed_size_blocking_queue.h33 template <typename ElementType, size_t kSize>
68 ArrayQueue<ElementType, kSize> mQueue;
Dsynchronized_memory_pool.h28 template<typename ElementType, size_t kSize>
60 MemoryPool<ElementType, kSize> mMemoryPool;
/system/chre/util/tests/
Ddynamic_vector_test.cc484 constexpr size_t kSize = ARRAY_SIZE(array); in TEST() local
487 for (size_t i = 0; i < kSize; ++i) { in TEST()
493 vector.erase(kSize - 1); in TEST()
494 for (size_t i = 0; i < kSize - 1; i++) { in TEST()
497 EXPECT_EQ(gDestructorCount[kSize - 1], 1); in TEST()
500 for (size_t i = 0; i < kSize; ++i) { in TEST()
709 constexpr size_t kSize = 4; in TEST() local
710 int buf[kSize]; in TEST()
711 for (size_t i = 0; i < kSize; i++) { in TEST()
717 vector.wrap(buf, kSize); in TEST()
[all …]
/system/nvram/messages/include/nvram/messages/
Dstruct.h261 static constexpr size_t kSize = TailList::kSize + 1;
271 static constexpr size_t kSize = 0;
Dproto.hpp252 make_index_sequence<DescriptorForType<StructType>::kFields.kSize>())>
363 static constexpr size_t kNumDescriptors = kFieldSpecList.kSize;
/system/media/audio/include/system/
Daudio.h925 const size_t kSize = AUDIO_DEVICE_MAX_ADDRESS_LEN + sizeof("a2dp_sink_address="); in audio_device_address_to_parameter() local
926 char param[kSize]; in audio_device_address_to_parameter()
929 snprintf(param, kSize, "%s=%s", "a2dp_sink_address", address); in audio_device_address_to_parameter()
931 snprintf(param, kSize, "%s=%s", "mix", address); in audio_device_address_to_parameter()
933 snprintf(param, kSize, "%s", address); in audio_device_address_to_parameter()
/system/update_engine/common/
Dutils_unittest.cc80 const size_t kSize = 1024 * 1024; in TEST() local
81 for (size_t i = 0; i < kSize; i++) { in TEST()
86 EXPECT_TRUE(utils::ReadFileChunk(file.value().c_str(), kSize, 10, &in_data)); in TEST()