Home | History | Annotate | Download | only in libcameraservice

Lines Matching refs:CLIENT

64     class Client;
161 // Client functionality
212 // Return the package name for this client
215 // Notify client about a fatal error
219 // Get the UID of the application client using this
222 // Get the PID of the application client using this
225 // Check what API level is used for this client. This is used to determine which
268 OpsCallback(wp<BasicClient> client);
285 class Client : public hardware::BnCamera, public BasicClient
292 virtual status_t connect(const sp<hardware::ICameraClient>& client) = 0;
316 Client(const sp<CameraService>& cameraService,
324 ~Client();
326 // return our camera client
338 // Check what API level is used for this client. This is used to determine which
342 // Convert client from cookie.
343 static sp<CameraService::Client> getClientFromCookie(void* user);
350 }; // class Client
418 * This container does NOT represent an active camera client. These are represented using
493 // The returned clientPid is the PID of the client that directly connects to camera.
500 // Handle active client evictions, and update service state.
505 sp<BasicClient>* client,
509 template<class CALLBACK, class CLIENT>
514 /*out*/sp<CLIENT>& device);
554 * Evict client who's remote binder has died. Returns true if this client was in the active
562 * Remove the given client from the active clients list; does not disconnect the client.
566 void removeByClient(const BasicClient* client);
569 * Add new client to active clients list after conflicting clients have disconnected using the
570 * values set in the partial descriptor passed in to construct the actual client descriptor.
575 void finishConnectLocked(const sp<BasicClient>& client, const DescriptorPtr& desc);
583 * Remove a single client corresponding to the given camera id from the list of active clients.
601 * Add an event log message that a client has been disconnected.
606 * Add an event log message that a client has been connected.
611 * Add an event log message that a client's connect attempt has been rejected.
633 * Add an event log message that a client has unexpectedly died.
686 // camera id -> torch client binder
687 // only store the last client that turns on each camera's torch mode
692 // check and handle if torch client's process has died
756 /*out*/sp<BasicClient>* client);
795 * For example if a client disconnects, we want to go to PRESENT
819 template<class CALLBACK, class CLIENT>
823 /*out*/sp<CLIENT>& device) {
835 sp<CLIENT> client = nullptr;
849 // Enforce client permissions and do basic sanity checks
878 "Higher-priority client using camera, ID \"%s\" currently unavailable",
888 // Handle special case for API1 MediaRecorder where the existing client is returned
889 device = static_cast<CLIENT*>(clientTmp.get());
913 client = static_cast<CLIENT*>(tmp.get());
915 LOG_ALWAYS_FATAL_IF(client.get() == nullptr, "%s: CameraService in invalid state",
918 if ((err = client->initialize(mModule)) != OK) {
919 ALOGE("%s: Could not initialize client from HAL module.", __FUNCTION__);
948 // Assume we have always received a Client subclass for API1
949 sp<Client> shimClient = reinterpret_cast<Client*>(client.get());
963 // If only updating legacy shim parameters, immediately disconnect client
965 client->disconnect();
968 // Otherwise, add client to active clients list
969 finishConnectLocked(client, partial);
973 // Important: release the mutex here so the client can call back into the service from its
975 device = client;