Lines Matching defs:Client

145     sp<Client> client;
230 sp<Client> client = findClientUnsafe(cameraClient->asBinder(), outIndex);
243 sp<CameraService::Client> CameraService::findClientUnsafe(
245 sp<Client> client;
254 // Client::~Client() -> disconnect() -> removeClient().
274 CameraService::Client* CameraService::getClientByIdUnsafe(int cameraId) {
284 sp<CameraService::Client> CameraService::getClientByRemote(
289 sp<Client> client;
323 // may come in while the previous Client's destructor has not been run or is
324 // still running. If the last strong reference of the previous Client is gone
325 // but the destructor has not been finished, we should not allow the new Client
326 // to be created because we need to wait for the previous Client to tear down
390 CameraService::Client::Client(const sp<CameraService>& cameraService,
394 LOG1("Client::Client E (pid %d, id %d)", callingPid, cameraId);
406 LOG1("Client::Client X (pid %d, id %d)", callingPid, cameraId);
410 CameraService::Client::~Client() {
414 Client::disconnect();
419 Mutex* CameraService::Client::getClientLockFromCookie(void* user) {
423 // Provide client pointer for callbacks. Client lock returned from getClientLockFromCookie should
425 CameraService::Client* CameraService::Client::getClientFromCookie(void* user) {
426 Client* client = gCameraService->getClientByIdUnsafe((int) user);
428 // This could happen if the Client is in the process of shutting down (the
440 void CameraService::Client::disconnect() {
526 sp<Client> client = mClient[i].promote();
533 result = String8::format(" Device is open. Client instance dump:\n");
571 sp<Client> cameraClient = getClientByRemote(who);