Home | History | Annotate | Download | only in libcameraservice

Lines Matching refs:msgType

791 status_t CameraService::Client::takePicture(int msgType) {
792 LOG1("takePicture (pid %d): 0x%x", getCallingPid(), msgType);
801 if ((msgType & CAMERA_MSG_RAW_IMAGE) &&
802 (msgType & CAMERA_MSG_RAW_IMAGE_NOTIFY)) {
810 picMsgType = msgType
921 void CameraService::Client::enableMsgType(int32_t msgType) {
922 android_atomic_or(msgType, &mMsgEnabled);
923 mHardware->enableMsgType(msgType);
926 void CameraService::Client::disableMsgType(int32_t msgType) {
927 android_atomic_and(~msgType, &mMsgEnabled);
928 mHardware->disableMsgType(msgType);
932 bool CameraService::Client::lockIfMessageWanted(int32_t msgType) {
934 while (mMsgEnabled & msgType) {
938 msgType, sleepCount * CHECK_MESSAGE_INTERVAL);
943 LOG1("lockIfMessageWanted(%d): enter sleep", msgType);
947 ALOGW("lockIfMessageWanted(%d): dropped unwanted message", msgType);
1007 void CameraService::Client::notifyCallback(int32_t msgType, int32_t ext1,
1009 LOG2("notifyCallback(%d)", msgType);
1018 if (!client->lockIfMessageWanted(msgType)) return;
1020 switch (msgType) {
1026 client->handleGenericNotify(msgType, ext1, ext2);
1031 void CameraService::Client::dataCallback(int32_t msgType,
1033 LOG2("dataCallback(%d)", msgType);
1042 if (!client->lockIfMessageWanted(msgType)) return;
1049 switch (msgType & ~CAMERA_MSG_PREVIEW_METADATA) {
1051 client->handlePreviewData(msgType, dataPtr, metadata);
1063 client->handleGenericData(msgType, dataPtr, metadata);
1069 int32_t msgType, const sp<IMemory>& dataPtr, void* user) {
1070 LOG2("dataCallbackTimestamp(%d)", msgType);
1079 if (!client->lockIfMessageWanted(msgType)) return;
1087 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
1108 void CameraService::Client::handlePreviewData(int32_t msgType,
1142 copyFrameAndPostCopiedFrame(msgType, c, heap, offset, size, metadata);
1146 c->dataCallback(msgType, mem, metadata);
1191 void CameraService::Client::handleGenericNotify(int32_t msgType,
1196 c->notifyCallback(msgType, ext1, ext2);
1200 void CameraService::Client::handleGenericData(int32_t msgType,
1205 c->dataCallback(msgType, dataPtr, metadata);
1210 int32_t msgType, const sp<IMemory>& dataPtr) {
1214 c->dataCallbackTimestamp(timestamp, msgType, dataPtr);
1219 int32_t msgType, const sp<ICameraClient>& client,
1253 client->dataCallback(msgType, frame, metadata);