Lines Matching refs:cc
432 sp<MCameraClient> cc = new MCameraClient();
433 sp<ICamera> c = cs->connect(cc, cameraId);
442 sp<MCameraClient> cc = new MCameraClient();
443 sp<ICamera> c = cs->connect(cc, cameraId);
446 ASSERT(cs->connect(cc, cameraId) != 0);
456 sp<MCameraClient> cc = new MCameraClient();
457 ASSERT(c->connect(cc) != NO_ERROR);
463 sp<MCameraClient> cc = new MCameraClient();
464 ASSERT(c->connect(cc) == NO_ERROR);
535 sp<MCameraClient> cc = new MCameraClient();
536 sp<ICamera> c = cs->connect(cc, cameraId);
539 ASSERT(c->connect(cc) == NO_ERROR);
544 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
549 sp<MCameraClient> cc = new MCameraClient();
550 sp<ICamera> c = cs->connect(cc, cameraId);
570 sp<MCameraClient> cc = new MCameraClient();
571 sp<ICamera> c = cs->connect(cc, cameraId);
606 cc = new MCameraClient();
607 c = cs->connect(cc, cameraId);
613 sp<MCameraClient> cc;
619 cc.clear();
630 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
651 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
661 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
686 cc->assertNotify(CAMERA_MSG_FOCUS, MCameraClient::EQ, 0);
688 cc->waitNotify(CAMERA_MSG_FOCUS, MCameraClient::EQ, 1);
690 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
701 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
709 cc->waitNotify(CAMERA_MSG_SHUTTER, MCameraClient::EQ, 1);
710 cc->waitData(CAMERA_MSG_RAW_IMAGE, MCameraClient::EQ, 1);
711 cc->waitData(CAMERA_MSG_COMPRESSED_IMAGE, MCameraClient::EQ, 1);
714 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
722 cc->clearStat();
724 cc->waitNotify(CAMERA_MSG_SHUTTER, MCameraClient::EQ, 1);
725 cc->waitData(CAMERA_MSG_RAW_IMAGE, MCameraClient::EQ, 1);
726 cc->waitData(CAMERA_MSG_COMPRESSED_IMAGE, MCameraClient::EQ, 1);
729 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
783 cc->clearStat();
785 cc->waitData(CAMERA_MSG_RAW_IMAGE, MCameraClient::EQ, 1);
786 //cc->assertDataSize(CAMERA_MSG_RAW_IMAGE, MCameraClient::EQ, pixels*3/2);
787 cc->waitData(CAMERA_MSG_COMPRESSED_IMAGE, MCameraClient::EQ, 1);
788 cc->assertDataSize(CAMERA_MSG_COMPRESSED_IMAGE, MCameraClient::LT,
790 cc->assertDataSize(CAMERA_MSG_COMPRESSED_IMAGE, MCameraClient::GT, 0);
791 cc->assertNotify(CAMERA_MSG_ERROR, MCameraClient::EQ, 0);
815 cc->clearStat();
823 cc->assertData(CAMERA_MSG_PREVIEW_FRAME, MCameraClient::EQ, 0);
826 cc->assertData(CAMERA_MSG_PREVIEW_FRAME, MCameraClient::GE, 10);
828 cc->assertData(CAMERA_MSG_PREVIEW_FRAME, MCameraClient::EQ, 1);
842 cc->setReleaser(c.get());
848 cc->setReleaser(NULL);
849 cc->assertData(CAMERA_MSG_VIDEO_FRAME, MCameraClient::GE, 10);
867 cc->clearStat();
868 cc->waitData(CAMERA_MSG_PREVIEW_FRAME, MCameraClient::GE, 1);
869 cc->assertDataSize(CAMERA_MSG_PREVIEW_FRAME, MCameraClient::EQ, size);