Home | History | Annotate | Download | only in api1

Lines Matching refs:Client

44         Client(cameraService, cameraClient, clientPackageName,
104 // tear down the client
122 size_t len = snprintf(buffer, SIZE, "Client[%d] (%p) with UID %d\n",
168 // lock camera to this client if the the camera is unlocked
174 // returns NO_ERROR if the client already owns the camera, EBUSY otherwise
199 // connect a new client to the camera
200 status_t CameraClient::connect(const sp<hardware::ICameraClient>& client) {
212 (IInterface::asBinder(client) == IInterface::asBinder(mRemoteCallback))) {
213 LOG1("Connect to the same client");
219 mRemoteCallback = client;
242 // Allow both client and the cameraserver to disconnect at all times
244 ALOGW("different client - don't disconnect");
273 CameraService::Client::disconnect();
818 // client's callback functions, depending on the message type.
836 sp<CameraClient> client = getClientFromCookie(user);
837 if (client.get() == nullptr) return;
839 if (!client->lockIfMessageWanted(msgType)) return;
844 client->handleShutter();
847 client->handleGenericNotify(msgType, ext1, ext2);
856 sp<CameraClient> client = getClientFromCookie(user);
857 if (client.get() == nullptr) return;
859 if (!client->lockIfMessageWanted(msgType)) return;
862 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
868 client->handlePreviewData(msgType, dataPtr, metadata);
871 client->handlePostview(dataPtr);
874 client->handleRawPicture(dataPtr);
877 client->handleCompressedPicture(dataPtr);
880 client->handleGenericData(msgType, dataPtr, metadata);
889 sp<CameraClient> client = getClientFromCookie(user);
890 if (client.get() == nullptr) return;
892 if (!client->lockIfMessageWanted(msgType)) return;
896 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0);
900 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr);
906 sp<CameraClient> client = getClientFromCookie(user);
907 if (client.get() == nullptr) return;
908 if (!client->lockIfMessageWanted(msgType)) return;
910 sp<hardware::ICameraClient> c = client->mRemoteCallback;
911 client->mLock.unlock();
936 Mutex::Autolock l(client->mAvailableCallbackBuffersLock);
937 client->mAvailableCallbackBuffers.push_back(msg.dataPtr);
988 client
991 // clear callback flags if no client or one-shot mode
1101 int32_t msgType, const sp<hardware::ICameraClient>& client,
1148 client->dataCallback(msgType, frame, metadata);