Lines Matching refs:client
155 sp<Client> client; in connect() local
172 client = mClient[cameraId].promote(); in connect()
173 if (client != 0) { in connect()
174 if (cameraClient->asBinder() == client->getCameraClient()->asBinder()) { in connect()
177 return client; in connect()
208 client = new Client(this, cameraClient, hardware, cameraId, info.facing, callingPid); in connect()
209 mClient[cameraId] = client; in connect()
211 return client; in connect()
221 sp<Client> client; in removeClient() local
231 client = mClient[i].promote(); in removeClient()
233 if (client == 0) { in removeClient()
238 if (cameraClient->asBinder() == client->getCameraClient()->asBinder()) { in removeClient()
445 status_t CameraService::Client::connect(const sp<ICameraClient>& client) { in connect() argument
456 if (mCameraClient != 0 && (client->asBinder() == mCameraClient->asBinder())) { in connect()
463 mCameraClient = client; in connect()
930 sp<Client> client = gCameraService->getClientById((int) user); in getClientFromCookie() local
935 if (client == 0) return NULL; in getClientFromCookie()
938 if (client->mCameraService.get() != gCameraService) { in getClientFromCookie()
943 if (client->mHardware == 0) { in getClientFromCookie()
948 return client; in getClientFromCookie()
978 sp<Client> client = getClientFromCookie(user); in notifyCallback() local
979 if (client == 0) return; in notifyCallback()
980 if (!client->lockIfMessageWanted(msgType)) return; in notifyCallback()
985 client->handleShutter(); in notifyCallback()
988 client->handleGenericNotify(msgType, ext1, ext2); in notifyCallback()
997 sp<Client> client = getClientFromCookie(user); in dataCallback() local
998 if (client == 0) return; in dataCallback()
999 if (!client->lockIfMessageWanted(msgType)) return; in dataCallback()
1003 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in dataCallback()
1009 client->handlePreviewData(msgType, dataPtr, metadata); in dataCallback()
1012 client->handlePostview(dataPtr); in dataCallback()
1015 client->handleRawPicture(dataPtr); in dataCallback()
1018 client->handleCompressedPicture(dataPtr); in dataCallback()
1021 client->handleGenericData(msgType, dataPtr, metadata); in dataCallback()
1030 sp<Client> client = getClientFromCookie(user); in dataCallbackTimestamp() local
1031 if (client == 0) return; in dataCallbackTimestamp()
1032 if (!client->lockIfMessageWanted(msgType)) return; in dataCallbackTimestamp()
1036 client->handleGenericNotify(CAMERA_MSG_ERROR, UNKNOWN_ERROR, 0); in dataCallbackTimestamp()
1040 client->handleGenericDataTimestamp(timestamp, msgType, dataPtr); in dataCallbackTimestamp()
1172 int32_t msgType, const sp<ICameraClient>& client, in copyFrameAndPostCopiedFrame() argument
1206 client->dataCallback(msgType, frame, metadata); in copyFrameAndPostCopiedFrame()
1272 sp<Client> client = mClient[i].promote(); in dump() local
1273 if (client == 0) continue; in dump()
1277 client->getCameraClient()->asBinder().get(), in dump()
1278 client->mClientPid); in dump()
1281 client->mHardware->dump(fd, args); in dump()