Home
last modified time | relevance | path

Searched refs:numElementsInQueue (Results 1 – 4 of 4) sorted by relevance

/system/libfmq/include/fmq/
DMessageQueue.h46 MessageQueue(size_t numElementsInQueue, bool configureEventFlagWord, in MessageQueue()
48 : MessageQueueBase<MQDescriptor, T, flavor>(numElementsInQueue, configureEventFlagWord, in MessageQueue()
51 MessageQueue(size_t numElementsInQueue, bool configureEventFlagWord = false)
52 : MessageQueueBase<MQDescriptor, T, flavor>(numElementsInQueue, configureEventFlagWord,
DAidlMessageQueue.h100 AidlMessageQueue(size_t numElementsInQueue, bool configureEventFlagWord,
103 AidlMessageQueue(size_t numElementsInQueue, bool configureEventFlagWord = false)
104 : AidlMessageQueue(numElementsInQueue, configureEventFlagWord, android::base::unique_fd(),
121 AidlMessageQueue<T, U>::AidlMessageQueue(size_t numElementsInQueue, bool configureEventFlagWord,
124 numElementsInQueue, configureEventFlagWord, std::move(bufferFd), bufferSize) {}
DMessageQueueBase.h63 MessageQueueBase(size_t numElementsInQueue, bool configureEventFlagWord,
66 MessageQueueBase(size_t numElementsInQueue, bool configureEventFlagWord = false)
67 : MessageQueueBase(numElementsInQueue, configureEventFlagWord, android::base::unique_fd(),
662 MessageQueueBase<MQDescriptorType, T, flavor>::MessageQueueBase(size_t numElementsInQueue, in MessageQueueBase() argument
667 if (numElementsInQueue > SIZE_MAX / sizeof(T)) { in MessageQueueBase()
670 ". Number of elements: " + std::to_string(numElementsInQueue)); in MessageQueueBase()
673 if (bufferFd != -1 && numElementsInQueue * sizeof(T) > bufferSize) { in MessageQueueBase()
676 std::to_string(numElementsInQueue * sizeof(T)) + ")."); in MessageQueueBase()
684 size_t kQueueSizeBytes = numElementsInQueue * sizeof(T); in MessageQueueBase()
/system/libfmq/tests/
Dfmq_unit_tests.cpp302 size_t numElementsInQueue = SIZE_MAX / sizeof(uint16_t) + 1; in TYPED_TEST() local
304 new (std::nothrow) typename TypeParam::MQType(numElementsInQueue); in TYPED_TEST()
314 size_t numElementsInQueue = SIZE_MAX / sizeof(uint32_t) - PAGE_SIZE - 1; in TEST_F() local
318 android::AidlMessageQueue<uint32_t, SynchronizedReadWrite> fmq(numElementsInQueue); in TEST_F()
328 size_t numElementsInQueue = 64; in TEST_F() local
331 MessageQueueSync8* fmq = new (std::nothrow) MessageQueueSync8(numElementsInQueue); in TEST_F()
362 size_t numElementsInQueue = 64; in TEST_F() local
365 MessageQueueUnsync8* fmq = new (std::nothrow) MessageQueueUnsync8(numElementsInQueue); in TEST_F()
457 size_t numElementsInQueue = SSIZE_MAX / sizeof(uint16_t) + 1; in TEST_F() local
458 AidlMessageQueueSync16* fmq = new (std::nothrow) AidlMessageQueueSync16(numElementsInQueue); in TEST_F()