Home | History | Annotate | Download | only in api1

Lines Matching refs:Client

43         Client(cameraService, cameraClient, clientPackageName,
101 // tear down the client
119 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n",
165 // lock camera to this client if the the camera is unlocked
171 // returns NO_ERROR if the client already owns the camera, EBUSY otherwise
196 // connect a new client to the camera
197 status_t CameraClient::connect(const sp<hardware::ICameraClient>& client) {
209 (IInterface::asBinder(client) == IInterface::asBinder(mRemoteCallback))) {
210 LOG1("Connect to the same client");
216 mRemoteCallback = client;
239 // Allow both client and the cameraserver to disconnect at all times
241 ALOGW("different client - don't disconnect");
270 CameraService::Client::disconnect();
752 // client's callback functions, depending on the message type.
770 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get());
771 if (client.get() == nullptr) return;
773 if (!client->lockIfMessageWanted(msgType)) return;
778 client->handleShutter();
781 client->handleGenericNotify(msgType, ext1, ext2);
790 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get());
791 if (client.get() == nullptr) return;
793 if (!client->lockIfMessageWanted(msgType)) return;
796 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
802 client->handlePreviewData(msgType, dataPtr, metadata);
805 client->handlePostview(dataPtr);
808 client->handleRawPicture(dataPtr);
811 client->handleCompressedPicture(dataPtr);
814 client->handleGenericData(msgType, dataPtr, metadata);
823 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get());
824 if (client.get() == nullptr) return;
826 if (!client->lockIfMessageWanted(msgType)) return;
830 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
834 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
879 // hold a strong pointer to the client
882 // clear callback flags if no client or one-shot mode
992 int32_t msgType, const sp<hardware::ICameraClient>& client,
1039 client->dataCallback(msgType, frame, metadata);