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/
Dfiemap_writer_test.cpp317 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() local
318 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
321 auto buffer = std::make_unique<int[]>(kSize / sizeof(int)); in TEST_F()
322 for (size_t i = 0; i < kSize / sizeof(int); i++) { in TEST_F()
325 ASSERT_TRUE(ptr->Write(buffer.get(), kSize)); in TEST_F()
327 std::string expected(reinterpret_cast<char*>(buffer.get()), kSize); in TEST_F()
335 static constexpr size_t kSize = kChunkSize * 3; in TEST_F() local
336 auto ptr = SplitFiemap::Create(testfile, kSize, kChunkSize); in TEST_F()
339 auto buffer = std::make_unique<int[]>(kSize / sizeof(int)); in TEST_F()
340 for (size_t i = 0; i < kSize / sizeof(int); i++) { in TEST_F()
[all …]
/system/libhidl/transport/allocator/1.0/vts/functional/
DVtsHidlAllocatorV1_0TargetTest.cpp97 constexpr size_t kSize = 1337; in TEST_P() local
99 sp<IMemory> memory = expectAllocateSuccess(kSize); in TEST_P()
112 for (int i = 0; i < kSize; i++) { in TEST_P()
113 EXPECT_OK(memory->readRange(i, kSize)); in TEST_P()
114 EXPECT_OK(memory->updateRange(i, kSize)); in TEST_P()
117 EXPECT_OK(memory->readRange(i, kSize)); in TEST_P()
120 EXPECT_OK(memory->updateRange(i, kSize)); in TEST_P()
/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/chre/util/tests/
Darray_queue_test.cc448 constexpr size_t kSize = 8; in TEST() local
449 ArrayQueue<size_t, kSize> q; in TEST()
451 v.resize(kSize); in TEST()
453 for (size_t i = 0; i < kSize; i++) { in TEST()
456 v.assign(kSize, 0xdeadbeef); in TEST()
Ddynamic_vector_test.cc728 constexpr size_t kSize = 4; in TEST() local
729 for (int i = 0; i < kSize; i++) { in TEST()
733 for (int i = kSize - 1; i >= 0; i--) { in TEST()
/system/update_engine/common/
Dutils_unittest.cc65 const size_t kSize = 1024 * 1024; in TEST() local
66 for (size_t i = 0; i < kSize; i++) { in TEST()
71 EXPECT_TRUE(utils::ReadFileChunk(file.path().c_str(), kSize, 10, &in_data)); in TEST()
/system/media/audio/include/system/
Daudio.h1905 const size_t kSize = AUDIO_DEVICE_MAX_ADDRESS_LEN + sizeof("a2dp_source_address="); in audio_device_address_to_parameter() local
1906 char param[kSize]; in audio_device_address_to_parameter()
1909 snprintf(param, kSize, "%s=%s", "a2dp_source_address", address); in audio_device_address_to_parameter()
1911 snprintf(param, kSize, "%s=%s", "a2dp_sink_address", address); in audio_device_address_to_parameter()
1913 snprintf(param, kSize, "%s=%s", "mix", address); in audio_device_address_to_parameter()
1915 snprintf(param, kSize, "%s", address); in audio_device_address_to_parameter()