Lines Matching refs:client

105 // tear down the client
174 // lock camera to this client if the the camera is unlocked
180 // returns NO_ERROR if the client already owns the camera, EBUSY otherwise
205 // connect a new client to the camera
206 status_t CameraClient::connect(const sp<hardware::ICameraClient>& client) {
218 (IInterface::asBinder(client) == IInterface::asBinder(mRemoteCallback))) {
219 LOG1("Connect to the same client");
225 mRemoteCallback = client;
248 // Allow both client and the cameraserver to disconnect at all times
250 ALOGW("different client - don't disconnect");
834 // client's callback functions, depending on the message type.
852 sp<CameraClient> client = getClientFromCookie(user);
853 if (client.get() == nullptr) return;
855 if (!client->lockIfMessageWanted(msgType)) return;
860 client->handleShutter();
863 client->handleGenericNotify(msgType, ext1, ext2);
872 sp<CameraClient> client = getClientFromCookie(user);
873 if (client.get() == nullptr) return;
875 if (!client->lockIfMessageWanted(msgType)) return;
878 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
884 client->handlePreviewData(msgType, dataPtr, metadata);
887 client->handlePostview(dataPtr);
890 client->handleRawPicture(dataPtr);
893 client->handleCompressedPicture(dataPtr);
896 client->handleGenericData(msgType, dataPtr, metadata);
905 sp<CameraClient> client = getClientFromCookie(user);
906 if (client.get() == nullptr) return;
908 if (!client->lockIfMessageWanted(msgType)) return;
912 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
916 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
922 sp<CameraClient> client = getClientFromCookie(user);
923 if (client.get() == nullptr) return;
924 if (!client->lockIfMessageWanted(msgType)) return;
926 sp<hardware::ICameraClient> c = client->mRemoteCallback;
927 client->mLock.unlock();
952 Mutex::Autolock l(client->mAvailableCallbackBuffersLock);
953 client->mAvailableCallbackBuffers.push_back(msg.dataPtr);
1005 // hold a strong pointer to the client
1008 // clear callback flags if no client or one-shot mode
1118 int32_t msgType, const sp<hardware::ICameraClient>& client,
1165 client->dataCallback(msgType, frame, metadata);