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(),
660 MessageQueueBase<MQDescriptorType, T, flavor>::MessageQueueBase(size_t numElementsInQueue, in MessageQueueBase() argument
665 if (numElementsInQueue > SIZE_MAX / sizeof(T)) { in MessageQueueBase()
668 ". Number of elements: " + std::to_string(numElementsInQueue)); in MessageQueueBase()
671 if (numElementsInQueue == 0) { in MessageQueueBase()
675 if (bufferFd != -1 && numElementsInQueue * sizeof(T) > bufferSize) { in MessageQueueBase()
678 std::to_string(numElementsInQueue * sizeof(T)) + ")."); in MessageQueueBase()
686 size_t kQueueSizeBytes = numElementsInQueue * sizeof(T); in MessageQueueBase()
/system/libfmq/tests/
Dfmq_unit_tests.cpp304 size_t numElementsInQueue = SIZE_MAX / sizeof(uint16_t) + 1; in TYPED_TEST() local
305 typename TypeParam::MQType fmq(numElementsInQueue); in TYPED_TEST()
379 size_t numElementsInQueue = SIZE_MAX / sizeof(uint32_t) - PAGE_SIZE - 1; in TEST_F() local
383 android::AidlMessageQueue<uint32_t, SynchronizedReadWrite> fmq(numElementsInQueue); in TEST_F()
393 size_t numElementsInQueue = 64; in TEST_F() local
396 MessageQueueSync8 fmq(numElementsInQueue); in TEST_F()
425 size_t numElementsInQueue = 64; in TEST_F() local
428 MessageQueueUnsync8 fmq(numElementsInQueue); in TEST_F()
515 size_t numElementsInQueue = SSIZE_MAX / sizeof(uint16_t) + 1; in TEST_F() local
516 AidlMessageQueueSync16 fmq(numElementsInQueue); in TEST_F()