Home
last modified time | relevance | path

Searched refs:kSize (Results 1 – 14 of 14) 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 size_t MemoryPool<ElementType, kSize>::getFreeBlockCount() const { in getFreeBlockCount()
69 template<typename ElementType, size_t kSize>
[all …]
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 bool FixedSizeBlockingQueue<ElementType, kSize>::push(ElementType&& element) { in push()
52 template<typename ElementType, size_t kSize>
53 ElementType FixedSizeBlockingQueue<ElementType, kSize>::pop() { in pop()
64 template<typename ElementType, size_t kSize>
65 bool FixedSizeBlockingQueue<ElementType, kSize>::empty() { in empty()
70 template<typename ElementType, size_t kSize>
71 size_t FixedSizeBlockingQueue<ElementType, kSize>::size() { in size()
[all …]
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()
40 template<typename ElementType, size_t kSize>
41 size_t SynchronizedMemoryPool<ElementType, kSize>::getFreeBlockCount() { in getFreeBlockCount()
Dmemory_pool.h48 template<typename ElementType, size_t kSize>
111 alignof(MemoryPoolBlock)>::type mBlocks[kSize];
117 size_t mFreeBlockCount = kSize;
Dsynchronized_memory_pool.h28 template<typename ElementType, size_t kSize>
65 MemoryPool<ElementType, kSize> mMemoryPool;
Dfixed_size_blocking_queue.h33 template <typename ElementType, size_t kSize>
105 ArrayQueue<ElementType, kSize> mQueue;
/system/core/fs_mgr/libfiemap_writer/
Dfiemap_writer_test.cpp311 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() local
312 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
315 auto buffer = std::make_unique<int[]>(kSize / sizeof(int)); in TEST_F()
316 for (size_t i = 0; i < kSize / sizeof(int); i++) { in TEST_F()
319 ASSERT_TRUE(ptr->Write(buffer.get(), kSize)); in TEST_F()
321 std::string expected(reinterpret_cast<char*>(buffer.get()), kSize); in TEST_F()
329 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() local
330 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
333 auto buffer = std::make_unique<int[]>(kSize / sizeof(int)); in TEST_F()
334 for (size_t i = 0; i < kSize / sizeof(int); i++) { in TEST_F()
[all …]
/system/libhidl/transport/allocator/1.0/vts/functional/
DVtsHidlAllocatorV1_0TargetTest.cpp106 constexpr size_t kSize = 1337; in TEST_F() local
108 sp<IMemory> memory = expectAllocateSuccess(kSize); in TEST_F()
121 for (int i = 0; i < kSize; i++) { in TEST_F()
122 EXPECT_OK(memory->readRange(i, kSize)); in TEST_F()
123 EXPECT_OK(memory->updateRange(i, kSize)); in TEST_F()
126 EXPECT_OK(memory->readRange(i, kSize)); in TEST_F()
129 EXPECT_OK(memory->updateRange(i, kSize)); in TEST_F()
/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.h1201 const size_t kSize = AUDIO_DEVICE_MAX_ADDRESS_LEN + sizeof("a2dp_sink_address="); in audio_device_address_to_parameter() local
1202 char param[kSize]; in audio_device_address_to_parameter()
1207 snprintf(param, kSize, "%s=%s", "a2dp_source_address", address); in audio_device_address_to_parameter()
1209 snprintf(param, kSize, "%s=%s", "mix", address); in audio_device_address_to_parameter()
1211 snprintf(param, kSize, "%s", address); in audio_device_address_to_parameter()
1214 snprintf(param, kSize, "%s=%s", "a2dp_sink_address", address); in audio_device_address_to_parameter()
1216 snprintf(param, kSize, "%s=%s", "mix", address); in audio_device_address_to_parameter()
1218 snprintf(param, kSize, "%s", address); in audio_device_address_to_parameter()
/system/chre/util/tests/
Darray_queue_test.cc447 constexpr size_t kSize = 8; in TEST() local
448 ArrayQueue<size_t, kSize> q; in TEST()
450 v.resize(kSize); in TEST()
452 for (size_t i = 0; i < kSize; i++) { in TEST()
455 v.assign(kSize, 0xdeadbeef); in TEST()
Ddynamic_vector_test.cc723 constexpr size_t kSize = 4; in TEST() local
724 for (int i = 0; i < kSize; i++) { in TEST()
728 for (int i = kSize - 1; i >= 0; i--) { in TEST()
/system/update_engine/common/
Dutils_unittest.cc78 const size_t kSize = 1024 * 1024; in TEST() local
79 for (size_t i = 0; i < kSize; i++) { in TEST()
84 EXPECT_TRUE(utils::ReadFileChunk(file.path().c_str(), kSize, 10, &in_data)); in TEST()