Lines Matching defs:msgType

509 status_t CameraClient::takePicture(int msgType) {
510 LOG1("takePicture (pid %d): 0x%x", getCallingPid(), msgType);
516 if ((msgType & CAMERA_MSG_RAW_IMAGE) &&
517 (msgType & CAMERA_MSG_RAW_IMAGE_NOTIFY)) {
525 int picMsgType = msgType
633 void CameraClient::enableMsgType(int32_t msgType) {
634 android_atomic_or(msgType, &mMsgEnabled);
635 mHardware->enableMsgType(msgType);
638 void CameraClient::disableMsgType(int32_t msgType) {
639 android_atomic_and(~msgType, &mMsgEnabled);
640 mHardware->disableMsgType(msgType);
644 bool CameraClient::lockIfMessageWanted(int32_t msgType) {
646 while (mMsgEnabled & msgType) {
650 msgType, sleepCount * CHECK_MESSAGE_INTERVAL);
655 LOG1("lockIfMessageWanted(%d): enter sleep", msgType);
659 ALOGW("lockIfMessageWanted(%d): dropped unwanted message", msgType);
686 void CameraClient::notifyCallback(int32_t msgType, int32_t ext1,
688 LOG2("notifyCallback(%d)", msgType);
698 if (!client->lockIfMessageWanted(msgType)) return;
700 switch (msgType) {
706 client->handleGenericNotify(msgType, ext1, ext2);
711 void CameraClient::dataCallback(int32_t msgType,
713 LOG2("dataCallback(%d)", msgType);
723 if (!client->lockIfMessageWanted(msgType)) return;
730 switch (msgType & ~CAMERA_MSG_PREVIEW_METADATA) {
732 client->handlePreviewData(msgType, dataPtr, metadata);
744 client->handleGenericData(msgType, dataPtr, metadata);
750 int32_t msgType, const sp<IMemory>& dataPtr, void* user) {
751 LOG2("dataCallbackTimestamp(%d)", msgType);
761 if (!client->lockIfMessageWanted(msgType)) return;
769 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
790 void CameraClient::handlePreviewData(int32_t msgType,
824 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
828 c->dataCallback(msgType, mem, metadata);
873 void CameraClient::handleGenericNotify(int32_t msgType,
878 c->notifyCallback(msgType, ext1, ext2);
882 void CameraClient::handleGenericData(int32_t msgType,
887 c->dataCallback(msgType, dataPtr, metadata);
892 int32_t msgType, const sp<IMemory>& dataPtr) {
896 c->dataCallbackTimestamp(timestamp, msgType, dataPtr);
901 int32_t msgType, const sp<ICameraClient>& client,
935 client->dataCallback(msgType, frame, metadata);