Lines Matching defs:msgType

527 status_t CameraClient::takePicture(int msgType) {
528 LOG1("takePicture (pid %d): 0x%x", getCallingPid(), msgType);
534 if ((msgType & CAMERA_MSG_RAW_IMAGE) &&
535 (msgType & CAMERA_MSG_RAW_IMAGE_NOTIFY)) {
543 int picMsgType = msgType
660 void CameraClient::enableMsgType(int32_t msgType) {
661 android_atomic_or(msgType, &mMsgEnabled);
662 mHardware->enableMsgType(msgType);
665 void CameraClient::disableMsgType(int32_t msgType) {
666 android_atomic_and(~msgType, &mMsgEnabled);
667 mHardware->disableMsgType(msgType);
671 bool CameraClient::lockIfMessageWanted(int32_t msgType) {
673 while (mMsgEnabled & msgType) {
677 msgType, sleepCount * CHECK_MESSAGE_INTERVAL);
682 LOG1("lockIfMessageWanted(%d): enter sleep", msgType);
686 ALOGW("lockIfMessageWanted(%d): dropped unwanted message", msgType);
713 void CameraClient::notifyCallback(int32_t msgType, int32_t ext1,
715 LOG2("notifyCallback(%d)", msgType);
725 if (!client->lockIfMessageWanted(msgType)) return;
727 switch (msgType) {
733 client->handleGenericNotify(msgType, ext1, ext2);
738 void CameraClient::dataCallback(int32_t msgType,
740 LOG2("dataCallback(%d)", msgType);
750 if (!client->lockIfMessageWanted(msgType)) return;
757 switch (msgType & ~CAMERA_MSG_PREVIEW_METADATA) {
759 client->handlePreviewData(msgType, dataPtr, metadata);
771 client->handleGenericData(msgType, dataPtr, metadata);
777 int32_t msgType, const sp<IMemory>& dataPtr, void* user) {
778 LOG2("dataCallbackTimestamp(%d)", msgType);
788 if (!client->lockIfMessageWanted(msgType)) return;
796 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
817 void CameraClient::handlePreviewData(int32_t msgType,
851 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
855 c->dataCallback(msgType, mem, metadata);
900 void CameraClient::handleGenericNotify(int32_t msgType,
905 c->notifyCallback(msgType, ext1, ext2);
909 void CameraClient::handleGenericData(int32_t msgType,
914 c->dataCallback(msgType, dataPtr, metadata);
919 int32_t msgType, const sp<IMemory>& dataPtr) {
923 c->dataCallbackTimestamp(timestamp, msgType, dataPtr);
928 int32_t msgType, const sp<ICameraClient>& client,
975 client->dataCallback(msgType, frame, metadata);