Lines Matching refs:mCamera
358 mCamera = ProCamera::connect(CAMERA_ID); in SetUp()
359 ASSERT_NE((void*)NULL, mCamera.get()); in SetUp()
362 mCamera->setListener(mListener); in SetUp()
366 ASSERT_NE((void*)NULL, mCamera.get()); in TearDown()
367 mCamera->disconnect(); in TearDown()
371 sp<ProCamera> mCamera; member in android::camera2::tests::client::ProCameraTest
490 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in createSubmitRequestForStreams()
503 EXPECT_OK(mCamera->submitRequest(requestTmp, /*streaming*/true)); in createSubmitRequestForStreams()
506 EXPECT_OK(mCamera->submitRequest(requestTmp, in createSubmitRequestForStreams()
521 CameraMetadata staticInfo = mCamera->getCameraInfo(CAMERA_ID); in TEST_F()
545 EXPECT_FALSE(mCamera->hasExclusiveLock()); in TEST_F()
546 EXPECT_EQ(OK, mCamera->exclusiveTryLock()); in TEST_F()
552 EXPECT_TRUE(mCamera->hasExclusiveLock()); in TEST_F()
553 EXPECT_EQ(OK, mCamera->exclusiveUnlock()); in TEST_F()
558 EXPECT_FALSE(mCamera->hasExclusiveLock()); in TEST_F()
576 EXPECT_FALSE(mCamera->hasExclusiveLock()); in TEST_F()
577 EXPECT_EQ(OK, mCamera->exclusiveTryLock()); in TEST_F()
583 EXPECT_TRUE(mCamera->hasExclusiveLock()); in TEST_F()
584 EXPECT_EQ(OK, mCamera->exclusiveUnlock()); in TEST_F()
589 EXPECT_FALSE(mCamera->hasExclusiveLock()); in TEST_F()
624 ASSERT_OK(mCamera->createStream(mDisplayW, mDisplayH, mDisplayFmt, in TEST_F()
629 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
645 mCamera = ProCamera::connect(CAMERA_ID); in TEST_F()
648 mCamera->disconnect(); in TEST_F()
651 mCamera = NULL; in TEST_F()
662 EXPECT_OK(mCamera->deleteStream(depthStreamId)); in TEST_F()
663 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
679 EXPECT_OK(mCamera->createStream(/*width*/1280, /*height*/960, in TEST_F()
684 EXPECT_OK(mCamera->createStream(/*width*/320, /*height*/240, in TEST_F()
688 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
697 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in TEST_F()
730 EXPECT_OK(mCamera->submitRequest(request, /*streaming*/true)); in TEST_F()
738 EXPECT_OK(mCamera->deleteStream(allStreams[i])); in TEST_F()
740 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
756 EXPECT_OK(mCamera->createStreamCpu(/*width*/320, /*height*/240, in TEST_F()
760 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
769 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in TEST_F()
799 EXPECT_OK(mCamera->submitRequest(request, /*streaming*/true)); in TEST_F()
809 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
810 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
823 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
828 EXPECT_OK(mCamera->createStreamCpu(/*width*/320, /*height*/240, in TEST_F()
832 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
841 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in TEST_F()
871 EXPECT_OK(mCamera->submitRequest(request, /*streaming*/true)); in TEST_F()
888 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
889 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
904 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
908 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
916 EXPECT_OK(mCamera->createDefaultRequest(CAMERA2_TEMPLATE_PREVIEW, in TEST_F()
946 EXPECT_OK(mCamera->submitRequest(request, /*streaming*/true)); in TEST_F()
956 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
957 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
970 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
974 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
981 EXPECT_OK(mCamera->waitForFrameMetadata()); in TEST_F()
982 CameraMetadata meta = mCamera->consumeFrameMetadata(); in TEST_F()
987 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
988 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
998 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
1002 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
1010 EXPECT_EQ(1, mCamera->waitForFrameBuffer(streamId)); in TEST_F()
1023 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
1024 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
1038 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
1045 EXPECT_OK(mCamera->createStreamCpu(/*width*/320, /*height*/240, in TEST_F()
1049 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
1065 EXPECT_OK(mCamera->waitForFrameMetadata()); in TEST_F()
1066 CameraMetadata meta = mCamera->consumeFrameMetadata(); in TEST_F()
1071 EXPECT_EQ(1, mCamera->waitForFrameBuffer(depthStreamId)); in TEST_F()
1110 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
1111 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
1123 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
1128 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
1137 EXPECT_TRUE((numFrames = mCamera->waitForFrameBuffer(streamId)) > 0); in TEST_F()
1140 EXPECT_EQ(numFrames-1, mCamera->dropFrameBuffer(streamId, numFrames-1)); in TEST_F()
1164 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
1165 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()
1177 EXPECT_OK(mCamera->createStreamCpu(/*width*/1280, /*height*/960, in TEST_F()
1182 EXPECT_OK(mCamera->exclusiveTryLock()); in TEST_F()
1194 EXPECT_LT(0, (numFrames = mCamera->waitForFrameBuffer(streamId))); in TEST_F()
1224 EXPECT_OK(mCamera->deleteStream(streamId)); in TEST_F()
1225 EXPECT_OK(mCamera->exclusiveUnlock()); in TEST_F()