• Home
  • Raw
  • Download

Lines Matching refs:tx

343     MessageQueueSync::MemTransaction tx;  in TEST_F()  local
344 ASSERT_TRUE(mQueue->beginWrite(dataLen, &tx)); in TEST_F()
346 ASSERT_TRUE(tx.copyTo(data, 0 /* startIdx */, dataLen)); in TEST_F()
352 ASSERT_TRUE(mQueue->beginRead(dataLen, &tx)); in TEST_F()
354 ASSERT_TRUE(tx.copyFrom(readData, 0 /* startIdx */, dataLen)); in TEST_F()
371 MessageQueueSync::MemTransaction tx; in TEST_F() local
372 ASSERT_TRUE(mQueue->beginWrite(dataLen, &tx)); in TEST_F()
374 auto first = tx.getFirstRegion(); in TEST_F()
375 auto second = tx.getSecondRegion(); in TEST_F()
379 uint8_t* ptr = tx.getSlot(i); in TEST_F()
387 ASSERT_TRUE(mQueue->beginRead(dataLen, &tx)); in TEST_F()
389 first = tx.getFirstRegion(); in TEST_F()
390 second = tx.getSecondRegion(); in TEST_F()
395 uint8_t* ptr = tx.getSlot(i); in TEST_F()
424 MessageQueueSync::MemTransaction tx; in TEST_F() local
425 ASSERT_FALSE(mQueue->beginRead(dataLen, &tx)); in TEST_F()
427 auto first = tx.getFirstRegion(); in TEST_F()
428 auto second = tx.getSecondRegion(); in TEST_F()
464 MessageQueueSync::MemTransaction tx; in TEST_F() local
465 ASSERT_FALSE(mQueue->beginWrite(1, &tx)); in TEST_F()
467 auto first = tx.getFirstRegion(); in TEST_F()
468 auto second = tx.getSecondRegion(); in TEST_F()
532 MessageQueueSync::MemTransaction tx; in TEST_F() local
533 ASSERT_FALSE(mQueue->beginWrite(dataLen, &tx)); in TEST_F()
535 auto first = tx.getFirstRegion(); in TEST_F()
536 auto second = tx.getSecondRegion(); in TEST_F()
617 MessageQueueSync::MemTransaction tx; in TEST_F() local
618 ASSERT_TRUE(mQueue->beginWrite(mNumMessagesMax, &tx)); in TEST_F()
620 auto first = tx.getFirstRegion(); in TEST_F()
621 auto second = tx.getSecondRegion(); in TEST_F()
625 ASSERT_TRUE(tx.copyTo(&data[0], 0 /* startIdx */, mNumMessagesMax)); in TEST_F()
629 ASSERT_TRUE(mQueue->beginRead(mNumMessagesMax, &tx)); in TEST_F()
631 first = tx.getFirstRegion(); in TEST_F()
632 second = tx.getSecondRegion(); in TEST_F()
636 ASSERT_TRUE(tx.copyFrom(&readData[0], 0 /* startIdx */, mNumMessagesMax)); in TEST_F()
695 MessageQueueUnsync::MemTransaction tx; in TEST_F() local
696 ASSERT_TRUE(mQueue->beginWrite(1, &tx)); in TEST_F()
698 ASSERT_EQ(tx.getFirstRegion().getLength(), 1U); in TEST_F()
700 ASSERT_TRUE(tx.copyTo(&data[0], 0 /* startIdx */)); in TEST_F()