/system/chre/util/include/chre/util/ |
D | memory_pool_impl.h | 26 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 …]
|
D | fixed_size_blocking_queue_impl.h | 25 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 …]
|
D | synchronized_memory_pool_impl.h | 25 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()
|
D | memory_pool.h | 48 template <typename ElementType, size_t kSize> 111 alignof(MemoryPoolBlock)>::type mBlocks[kSize]; 117 size_t mFreeBlockCount = kSize;
|
D | synchronized_memory_pool.h | 28 template <typename ElementType, size_t kSize> 65 MemoryPool<ElementType, kSize> mMemoryPool;
|
D | fixed_size_blocking_queue.h | 33 template <typename ElementType, size_t kSize> 105 ArrayQueue<ElementType, kSize> mQueue;
|
/system/core/fs_mgr/libfiemap/ |
D | fiemap_writer_test.cpp | 317 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/ |
D | VtsHidlAllocatorV1_0TargetTest.cpp | 97 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/ |
D | struct.h | 261 static constexpr size_t kSize = TailList::kSize + 1; 271 static constexpr size_t kSize = 0;
|
D | proto.hpp | 252 make_index_sequence<DescriptorForType<StructType>::kFields.kSize>())> 363 static constexpr size_t kNumDescriptors = kFieldSpecList.kSize;
|
/system/chre/util/tests/ |
D | array_queue_test.cc | 448 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()
|
D | dynamic_vector_test.cc | 728 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/ |
D | utils_unittest.cc | 65 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/ |
D | audio.h | 1905 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()
|