Lines Matching refs:b2
97 std::unique_ptr<BufferHubBuffer> b2; member in android::__anon098392b00111::BufferHubBufferStateTransitionTest
114 b2 = BufferHubBuffer::import(token); in CreateTwoClientsOfABuffer()
115 ASSERT_THAT(b2, NotNull()); in CreateTwoClientsOfABuffer()
117 b2ClientMask = b2->clientStateMask(); in CreateTwoClientsOfABuffer()
130 auto b2 = BufferHubBuffer::create(kWidth, kHeight, kLayerCount, kFormat, kUsage, in TEST_F() local
133 EXPECT_THAT(b2, IsNull()); in TEST_F()
166 std::unique_ptr<BufferHubBuffer> b2 = BufferHubBuffer::import(token); in TEST_F() local
168 ASSERT_THAT(b2, NotNull()); in TEST_F()
169 EXPECT_TRUE(b2->isValid()); in TEST_F()
171 EXPECT_TRUE(cmpAHardwareBufferDesc(b1->desc(), b2->desc())); in TEST_F()
172 EXPECT_EQ(b1->userMetadataSize(), b2->userMetadataSize()); in TEST_F()
176 EXPECT_EQ(b1->id(), b2->id()); in TEST_F()
178 EXPECT_NE(b1->clientStateMask(), b2->clientStateMask()); in TEST_F()
182 EXPECT_TRUE(b2->isReleased()); in TEST_F()
187 const BufferHubEventFd& eventFd2 = b2->eventFd(); in TEST_F()
223 std::unique_ptr<BufferHubBuffer> b2 = BufferHubBuffer::import(token); in TEST_F() local
226 EXPECT_THAT(b2, IsNull()); in TEST_F()
263 EXPECT_EQ(b2->gain(), -EBUSY); in TEST_F()
269 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
274 EXPECT_EQ(b2->gain(), -EBUSY); in TEST_F()
293 EXPECT_EQ(b2->gain(), 0); in TEST_F()
300 EXPECT_EQ(b2->post(), -EBUSY); in TEST_F()
320 EXPECT_EQ(b2->post(), -EBUSY); in TEST_F()
326 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
331 EXPECT_EQ(b2->post(), -EBUSY); in TEST_F()
339 EXPECT_EQ(b2->post(), -EBUSY); in TEST_F()
348 EXPECT_EQ(b2->acquire(), 0); in TEST_F()
364 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
369 EXPECT_EQ(b2->acquire(), 0); in TEST_F()
377 EXPECT_EQ(b2->acquire(), -EBUSY); in TEST_F()
386 EXPECT_EQ(b2->acquire(), -EBUSY); in TEST_F()
408 EXPECT_EQ(b2->release(), 0); in TEST_F()
414 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
417 EXPECT_EQ(b2->release(), 0); in TEST_F()
427 ASSERT_EQ(b2->acquire(), 0); in TEST_F()
428 ASSERT_EQ(b2->release(), 0); in TEST_F()
445 std::unique_ptr<BufferHubBuffer> b2 = BufferHubBuffer::import(token); in TEST_F() local
447 ASSERT_THAT(b2, NotNull()); in TEST_F()
448 ASSERT_NE(b1->clientStateMask(), b2->clientStateMask()); in TEST_F()
451 EXPECT_EQ(b2->acquire(), 0); in TEST_F()
467 std::unique_ptr<BufferHubBuffer> b2 = BufferHubBuffer::import(token); in TEST_F() local
469 ASSERT_THAT(b2, NotNull()); in TEST_F()
470 ASSERT_NE(b1->clientStateMask(), b2->clientStateMask()); in TEST_F()
472 EXPECT_EQ(b2->acquire(), 0); in TEST_F()