Searched refs:client (Results 251 - 275 of 313) sorted by last modified time

<<111213

/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp79 ALOGV("%s: Initializing client for camera %d", __FUNCTION__, mCameraId);
385 // Allow both client and the cameraserver to disconnect at all times
448 status_t Camera2Client::connect(const sp<hardware::ICameraClient>& client) { argument
462 mRemoteCallback = client;
463 mSharedCameraCallbacks = client;
472 ALOGV("%s: Camera %d: Lock call from pid %d; current client pid %d",
493 ALOGV("%s: Camera %d: Unlock call from pid %d; current client pid %d",
1310 * Send immediate notification back to client
H A DCamera2Client.h57 virtual status_t connect(const sp<hardware::ICameraClient>& client);
H A DCameraClient.cpp104 // tear down the client
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) { argument
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
836 sp<CameraClient> client = getClientFromCookie(user); local
856 sp<CameraClient> client = getClientFromCookie(user); local
889 sp<CameraClient> client = getClientFromCookie(user); local
906 sp<CameraClient> client = getClientFromCookie(user); local
1100 copyFrameAndPostCopiedFrame( int32_t msgType, const sp<hardware::ICameraClient>& client, const sp<IMemoryHeap>& heap, size_t offset, size_t size, camera_frame_metadata_t *metadata) argument
[all...]
H A DCameraClient.h37 virtual status_t connect(const sp<hardware::ICameraClient>& client);
126 const sp<hardware::ICameraClient>& client,
167 // trying to deliver the callback messages if the client is not
168 // interested in it anymore. For example, if the client is calling
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DCallbackProcessor.cpp34 CallbackProcessor::CallbackProcessor(sp<Camera2Client> client): argument
36 mClient(client),
37 mDevice(client->getCameraDevice()),
38 mId(client->getCameraId()),
64 sp<Camera2Client> client = mClient.promote(); local
65 if (client == 0) return OK;
66 sp<CameraDeviceBase> device = client->getCameraDevice();
74 client->getCameraId(), strerror(-res), res);
234 sp<Camera2Client> client = mClient.promote(); local
235 if (client
261 processNewCallback(sp<Camera2Client> &client) argument
[all...]
H A DCallbackProcessor.h44 explicit CallbackProcessor(sp<Camera2Client> client);
82 status_t processNewCallback(sp<Camera2Client> &client);
H A DCaptureSequencer.cpp37 CaptureSequencer::CaptureSequencer(wp<Camera2Client> client): argument
48 mClient(client),
204 sp<Camera2Client> client = mClient.promote(); local
205 if (client == 0) return false;
213 currentState = (this->*kStateManagers[currentState])(client);
226 client->getCameraId(), kStateNames[mCaptureState]);
232 client->getCameraId());
240 sp<Camera2Client> &/*client*/) {
256 CaptureSequencer::CaptureState CaptureSequencer::manageDone(sp<Camera2Client> &client) { argument
270 SharedParameters::Lock l(client
326 manageStart( sp<Camera2Client> &client) argument
358 manageZslStart( sp<Camera2Client> &client) argument
407 manageStandardStart( sp<Camera2Client> &client) argument
489 manageStandardCapture( sp<Camera2Client> &client) argument
584 manageStandardCaptureWait( sp<Camera2Client> &client) argument
676 updateCaptureRequest(const Parameters &params, sp<Camera2Client> &client) argument
711 shutterNotifyLocked(const Parameters &params, const sp<Camera2Client>& client, int msgType) argument
[all...]
H A DCaptureSequencer.h47 explicit CaptureSequencer(wp<Camera2Client> client);
138 typedef CaptureState (CaptureSequencer::*StateManager)(sp<Camera2Client> &client);
154 CaptureState manageIdle(sp<Camera2Client> &client);
155 CaptureState manageStart(sp<Camera2Client> &client);
157 CaptureState manageZslStart(sp<Camera2Client> &client);
158 CaptureState manageZslWaiting(sp<Camera2Client> &client);
159 CaptureState manageZslReprocessing(sp<Camera2Client> &client);
161 CaptureState manageStandardStart(sp<Camera2Client> &client);
162 CaptureState manageStandardPrecaptureWait(sp<Camera2Client> &client);
163 CaptureState manageStandardCapture(sp<Camera2Client> &client);
[all...]
H A DFrameProcessor.cpp32 sp<Camera2Client> client) :
34 mClient(client),
42 SharedParameters::Lock l(client->getParameters());
68 sp<Camera2Client> client = mClient.promote(); local
69 if (!client.get()) {
78 if (!isPartialResult && processFaceDetect(frame.mMetadata, client) != OK) {
83 process3aState(frame, client);
90 const sp<Camera2Client> &client) {
97 SharedParameters::Lock l(client->getParameters());
116 SharedParameters::Lock l(client
31 FrameProcessor(wp<CameraDeviceBase> device, sp<Camera2Client> client) argument
234 process3aState(const CaptureResult &frame, const sp<Camera2Client> &client) argument
374 callbackFaceDetection(const sp<Camera2Client>& client, const camera_frame_metadata &metadata) argument
[all...]
H A DFrameProcessor.h42 FrameProcessor(wp<CameraDeviceBase> device, sp<Camera2Client> client);
54 void processNewFrames(const sp<Camera2Client> &client);
60 const sp<Camera2Client> &client);
62 // Send 3A state change notifications to client based on frame metadata
64 const sp<Camera2Client> &client);
110 void callbackFaceDetection(const sp<Camera2Client>& client,
H A DJpegProcessor.cpp39 sp<Camera2Client> client,
42 mDevice(client->getCameraDevice()),
44 mId(client->getCameraId()),
38 JpegProcessor( sp<Camera2Client> client, wp<CaptureSequencer> sequencer) argument
H A DJpegProcessor.h47 JpegProcessor(sp<Camera2Client> client, wp<CaptureSequencer> sequencer);
H A DStreamingProcessor.cpp43 StreamingProcessor::StreamingProcessor(sp<Camera2Client> client): argument
44 mClient(client),
45 mDevice(client->getCameraDevice()),
46 mId(client->getCameraId()),
110 sp<Camera2Client> client = mClient.promote(); local
111 if (client == 0) {
H A DStreamingProcessor.h42 explicit StreamingProcessor(sp<Camera2Client> client);
H A DZslProcessor.cpp126 sp<Camera2Client> client,
131 mClient(client),
133 mId(client->getCameraId()),
145 if (client != 0) {
147 static_cast<Camera3Device*>(client->getCameraDevice().get());
222 sp<Camera2Client> client = mClient.promote(); local
223 if (client == 0) {
228 static_cast<Camera3Device*>(client->getCameraDevice().get());
242 client->getCameraId(), strerror(-res), res);
250 __FUNCTION__, client
125 ZslProcessor( sp<Camera2Client> client, wp<CaptureSequencer> sequencer) argument
336 sp<Camera2Client> client = nullptr; local
392 sp<Camera2Client> client = mClient.promote(); local
480 sp<Camera2Client> client = mClient.promote(); local
[all...]
H A DZslProcessor.h49 ZslProcessor(sp<Camera2Client> client, wp<CaptureSequencer> sequencer);
75 * A capture request is created and submitted on behalf of the client.
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp90 ALOGV("%s: Initializing client for camera %s", __FUNCTION__,
184 // Allow both client and the media server to disconnect at all times
212 const sp<TCamCallbacks>& client) {
231 TClientBase::mRemoteCallback = client;
232 mSharedCameraCallbacks = client;
349 SharedCameraCallbacks &client) :
351 mRemoteCallback(client.mRemoteCallback),
352 mSharedClient(client) {
364 const sp<TCamCallbacks>&client) :
366 mRemoteCallback(client) {
211 connect( const sp<TCamCallbacks>& client) argument
348 Lock( SharedCameraCallbacks &client) argument
[all...]
H A DCamera2ClientBase.h96 explicit Lock(SharedCameraCallbacks &client);
102 explicit SharedCameraCallbacks(const sp<TCamCallbacks>& client);
103 SharedCameraCallbacks& operator=(const sp<TCamCallbacks>& client);
121 /** Binder client interface-related private members */
123 // Mutex that must be locked by methods implementing the binder client
124 // interface. Ensures serialization between incoming client calls.
/frameworks/av/services/camera/libcameraservice/utils/
H A DClientManager.h266 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client);
296 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
299 * Return a vector of active ClientDescriptors that prevent this client from being added.
302 const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const;
327 * Block until the given client is no longer in the active clients list, or the timeout
333 status_t waitUntilRemoved(const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client,
337 * Set the current listener for client add/remove events.
347 * The onClientRemoved method will be called when the client has been removed or evicted
349 * method will be called when the client has been added to the ClientManager that this
362 * vector of ClientDescriptors that are higher priority than the incoming client an
410 wouldEvictLocked( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client, bool returnIncompatibleClients) const argument
503 addAndEvict( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) argument
620 waitUntilRemoved( const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client, nsecs_t timeout) const argument
[all...]
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.cpp104 const sp<IResourceManagerClient>& client,
113 info.client = client;
179 snprintf(buffer, SIZE, " Name: %s\n", infos[j].client->getName().string());
227 const sp<IResourceManagerClient> client,
239 ResourceInfo& info = getResourceInfoForEdit(clientId, client, infos);
244 IInterface::asBinder(client)->linkToDeath(info.deathNotifier);
273 IInterface::asBinder(infos[j].client)->unlinkToDeath(infos[j].deathNotifier);
280 ALOGV("didn't find client");
289 sp<IResourceManagerClient> client; local
102 getResourceInfoForEdit( int64_t clientId, const sp<IResourceManagerClient>& client, ResourceInfos& infos) argument
224 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
436 getLowestPriorityBiggestClient_l( int callingPid, MediaResource::Type type, sp<IResourceManagerClient> *client) argument
508 getBiggestClient_l( int pid, MediaResource::Type type, sp<IResourceManagerClient> *client) argument
[all...]
H A DResourceManagerService.h38 sp<IResourceManagerClient> client; member in struct:android::ResourceInfo
64 const sp<IResourceManagerClient> client,
83 // Returns false if any client belongs to a process with higher priority than the
88 // Gets the client who owns specified resource type from lowest possible priority process.
90 // priority. The client will remain unchanged if returns false.
92 sp<IResourceManagerClient> *client);
98 // Gets the client who owns biggest piece of specified resource type from pid.
99 // Returns false if failed. The client will remain unchanged if failed.
100 bool getBiggestClient_l(int pid, MediaResource::Type type, sp<IResourceManagerClient> *client);
104 // A helper function basically calls getLowestPriorityBiggestClient_l and add the result client
[all...]
/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerService_test.cpp32 static int64_t getId(const sp<IResourceManagerClient>& client) { argument
33 return (int64_t) client.get();
60 sp<IResourceManagerClient> client(this);
61 mService->removeResource(mPid, (int64_t) client.get());
118 static void expectEqResourceInfo(const ResourceInfo &info, sp<IResourceManagerClient> client, argument
120 EXPECT_EQ(client, info.client);
140 // pid priority client type number
234 EXPECT_EQ(mTestClient3, infos2[0].client);
440 // clean up client
447 sp<IResourceManagerClient> client; local
486 sp<IResourceManagerClient> client; local
[all...]
/frameworks/av/services/radio/
H A DRadioService.cpp108 const sp<IRadioClient>& client,
120 if (client == 0) {
137 radio = module->addClient(client, config, withAudio);
388 sp<RadioService::ModuleClient> RadioService::Module::addClient(const sp<IRadioClient>& client, argument
403 if (mModuleClients[i]->client() == client) {
404 // client already connected: reject
408 moduleClient = new ModuleClient(this, client, config, audio);
422 // If another client is preempted, it is notified by a callback with RADIO_EVENT_CONTROL
424 // - If the newly connected client request
107 attach(radio_handle_t handle, const sp<IRadioClient>& client, const struct radio_band_config *config, bool withAudio, sp<IRadio>& radio) argument
644 ModuleClient(const sp<Module>& module, const sp<IRadioClient>& client, const struct radio_band_config *config, bool audio) argument
908 sp<IRadioClient> client; local
[all...]
H A DRadioService.h58 const sp<IRadioClient>& client,
77 sp<ModuleClient> addClient(const sp<IRadioClient>& client,
126 wp<ModuleClient> mModuleClient; // client module the thread belongs to
139 const sp<IRadioClient>& client,
170 sp<IRadioClient> client() const { return mClient; } function in class:android::RadioService::ModuleClient
192 wp<Module> mModule; // The module this client is attached to
198 // this client does not have control on any
/frameworks/av/services/soundtrigger/
H A DSoundTriggerHwService.cpp109 const sp<ISoundTriggerClient>& client,
119 if (client == 0) {
128 sp<ModuleClient> moduleClient = module->addClient(client);
509 SoundTriggerHwService::Module::addClient(const sp<ISoundTriggerClient>& client) argument
515 if (mModuleClients[i]->client() == client) {
516 // Client already present, reuse client
520 moduleClient = new ModuleClient(this, client);
522 ALOGV("addClient() client %p", moduleClient.get());
544 ALOGV("remove client
108 attach(const sound_trigger_module_handle_t handle, const sp<ISoundTriggerClient>& client, sp<ISoundTrigger>& moduleInterface) argument
744 sp<ISoundTriggerClient> client; local
768 sp<ISoundTriggerClient> client; local
919 ModuleClient(const sp<Module>& module, const sp<ISoundTriggerClient>& client) argument
1057 sp<ISoundTriggerClient> client; local
[all...]

Completed in 208 milliseconds

<<111213