Home | History | Annotate | Download | only in api1

Lines Matching refs:msgType

516 status_t CameraClient::takePicture(int msgType) {
517 LOG1("takePicture (pid %d): 0x%x", getCallingPid(), msgType);
523 if ((msgType & CAMERA_MSG_RAW_IMAGE) &&
524 (msgType & CAMERA_MSG_RAW_IMAGE_NOTIFY)) {
532 int picMsgType = msgType
640 void CameraClient::enableMsgType(int32_t msgType) {
641 android_atomic_or(msgType, &mMsgEnabled);
642 mHardware->enableMsgType(msgType);
645 void CameraClient::disableMsgType(int32_t msgType) {
646 android_atomic_and(~msgType, &mMsgEnabled);
647 mHardware->disableMsgType(msgType);
651 bool CameraClient::lockIfMessageWanted(int32_t msgType) {
653 while (mMsgEnabled & msgType) {
657 msgType, sleepCount * CHECK_MESSAGE_INTERVAL);
662 LOG1("lockIfMessageWanted(%d): enter sleep", msgType);
666 ALOGW("lockIfMessageWanted(%d): dropped unwanted message", msgType);
693 void CameraClient::notifyCallback(int32_t msgType, int32_t ext1,
695 LOG2("notifyCallback(%d)", msgType);
705 if (!client->lockIfMessageWanted(msgType)) return;
707 switch (msgType) {
713 client->handleGenericNotify(msgType, ext1, ext2);
718 void CameraClient::dataCallback(int32_t msgType,
720 LOG2("dataCallback(%d)", msgType);
730 if (!client->lockIfMessageWanted(msgType)) return;
737 switch (msgType & ~CAMERA_MSG_PREVIEW_METADATA) {
739 client->handlePreviewData(msgType, dataPtr, metadata);
751 client->handleGenericData(msgType, dataPtr, metadata);
757 int32_t msgType, const sp<IMemory>& dataPtr, void* user) {
758 LOG2("dataCallbackTimestamp(%d)", msgType);
768 if (!client->lockIfMessageWanted(msgType)) return;
776 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
797 void CameraClient::handlePreviewData(int32_t msgType,
831 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
835 c->dataCallback(msgType, mem, metadata);
880 void CameraClient::handleGenericNotify(int32_t msgType,
885 c->notifyCallback(msgType, ext1, ext2);
889 void CameraClient::handleGenericData(int32_t msgType,
894 c->dataCallback(msgType, dataPtr, metadata);
899 int32_t msgType, const sp<IMemory>& dataPtr) {
903 c->dataCallbackTimestamp(timestamp, msgType, dataPtr);
908 int32_t msgType, const sp<ICameraClient>& client,
942 client->dataCallback(msgType, frame, metadata);