Home
last modified time | relevance | path

Searched refs:firstRegionLength (Results 1 – 2 of 2) sorted by relevance

/system/libfmq/include/fmq/
DMessageQueueBase.h524 size_t firstRegionLength = first.getLength(); in getSlot() local
527 if (idx > firstRegionLength + secondRegionLength) { in getSlot()
531 if (idx < firstRegionLength) { in getSlot()
535 return second.getAddress() + idx - firstRegionLength; in getSlot()
542 size_t firstRegionLength = first.getLength(); in getMemRegionInfo() local
545 if (startIdx + nMessages > firstRegionLength + secondRegionLength) { in getMemRegionInfo()
555 startIdx < firstRegionLength ? std::min(nMessages, firstRegionLength - startIdx) : 0; in getMemRegionInfo()
565 size_t secondStartIdx = startIdx > firstRegionLength ? startIdx - firstRegionLength : 0; in getMemRegionInfo()
/system/libfmq/tests/
Dmsgq_test_client.cpp720 size_t firstRegionLength = first.getLength(); in TYPED_TEST() local
723 if (i < firstRegionLength) { in TYPED_TEST()
726 ASSERT_EQ(i, *(second.getAddress() + i - firstRegionLength)); in TYPED_TEST()
767 size_t firstRegionLength = first.getLength(); in TYPED_TEST() local
772 if (i < firstRegionLength) { in TYPED_TEST()
775 *(secondBaseAddress + i - firstRegionLength) = i; in TYPED_TEST()