/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.h | 83 // Max shared memory size for audio tracks and audio records per client process 161 virtual void registerClient(const sp<IAudioFlingerClient>& client); 432 const sp<IAudioFlingerClient>& client, 485 // server side of the client's IAudioTrack 507 // server side of the client's IAudioRecord
|
H A D | Effects.cpp | 1019 result.append("\t\t\t Pid Priority Ctrl Locked client server\n"); 1043 const sp<AudioFlinger::Client>& client, 1047 mEffect(effect), mEffectClient(effectClient), mClient(client), mCblk(NULL), 1052 if (client == 0) { 1056 mCblkMemory = client->heap()->allocate(EFFECT_PARAM_BUFFER_SIZE + bufOffset); 1201 // Client destructor must run with AudioFlinger client mutex locked 1230 // particular client process: no risk to block the whole media server process or mixer 1042 EffectHandle(const sp<EffectModule>& effect, const sp<AudioFlinger::Client>& client, const sp<IEffectClient>& effectClient, int32_t priority) argument
|
H A D | Effects.h | 35 // from different client threads. It keeps a list of EffectHandle objects corresponding 36 // to all client applications using this effect and notifies applications of effect state, 150 Vector<EffectHandle *> mHandles; // list of client handles 170 const sp<AudioFlinger::Client>& client, 195 // - signal: true client app should be signaled of change, false otherwise 222 sp<IEffectClient> mEffectClient; // callback interface for client notifications 223 /*const*/ sp<Client> mClient; // client for shared memory allocation, see disconnect() 228 int mPriority; // client application priority to control the effect
|
H A D | PlaybackTracks.h | 26 const sp<Client>& client,
|
H A D | RecordTracks.h | 26 const sp<Client>& client, 71 bool mOverflow; // overflow on most recent attempt to fill client buffer 73 AudioBufferProvider::Buffer mSink; // references client's buffer sink in shared memory
|
H A D | Threads.cpp | 191 // Initially this heap is used to allocate client buffers for "fast" AudioRecord. 1261 const sp<AudioFlinger::Client>& client, 1374 handle = new EffectHandle(effect, client, effectClient, priority); 1748 const sp<AudioFlinger::Client>& client, 1765 // client expresses a preference for FAST, but we get the final say 1822 // or the client should compute and pass in a larger buffer request. 1900 track = new Track(this, client, streamType, sampleRate, format, 2005 // buffers before playing. This is to ensure the client will 3946 // indicate to client process that the track was disabled because of underrun; 4035 // enforce this condition only once to enable draining the buffer in case the client 1260 createEffect_l( const sp<AudioFlinger::Client>& client, const sp<IEffectClient>& effectClient, int32_t priority, audio_session_t sessionId, effect_descriptor_t *desc, int *enabled, status_t *status) argument 1747 createTrack_l( const sp<AudioFlinger::Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, IAudioFlinger::track_flags_t *flags, pid_t tid, int uid, status_t *status) argument 6276 createRecordTrack_l( const sp<AudioFlinger::Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, audio_session_t sessionId, size_t *notificationFrames, int uid, IAudioFlinger::track_flags_t *flags, pid_t tid, status_t *status) argument [all...] |
H A D | Threads.h | 67 // Config event sequence by client if status needed (e.g binder thread calling setParameters()): 292 const sp<AudioFlinger::Client>& client, 366 // objects that will be read-only to client processes, read/write to mediaserver, 367 // and shared by all client processes of the thread. 490 // we need to make sure that AudioTrack client has enough time to send large buffers 561 const sp<AudioFlinger::Client>& client, 1253 const sp<AudioFlinger::Client>& client, 1327 // resampler converts input at HAL Hz to output at AudioRecord client Hz
|
H A D | TrackBase.h | 58 const sp<Client>& client,
|
H A D | Tracks.cpp | 68 const sp<Client>& client, 82 mClient(client), 121 if (client != 0) { 122 mCblkMemory = client->heap()->allocate(size); 126 client->heap()->dump("AudioTrack"); 233 // Client destructor must run with AudioFlinger client mutex locked 235 // If the client's reference count drops to zero, the associated destructor 338 const sp<Client>& client, 350 : TrackBase(thread, client, sampleRate, format, channelMask, frameCount, 373 // client 66 TrackBase( ThreadBase *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int clientUid, IAudioFlinger::track_flags_t flags, bool isOut, alloc_type alloc, track_type type) argument 336 Track( PlaybackThread *thread, const sp<Client>& client, audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, const sp<IMemory>& sharedBuffer, audio_session_t sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument 1461 RecordTrack( RecordThread *thread, const sp<Client>& client, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, void *buffer, audio_session_t sessionId, int uid, IAudioFlinger::track_flags_t flags, track_type type) argument [all...] |
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyService.cpp | 148 // A notification client is always registered by AudioSystem when the client process 150 void AudioPolicyService::registerClient(const sp<IAudioPolicyServiceClient>& client) argument 152 if (client == 0) { 153 ALOGW("%s got NULL client", __FUNCTION__); 161 client, 163 ALOGV("registerClient() client %p, uid %d", client.get(), uid); 167 sp<IBinder> binder = IInterface::asBinder(client); 183 // removeNotificationClient() is called when the client proces 279 NotificationClient(const sp<AudioPolicyService>& service, const sp<IAudioPolicyServiceClient>& client, uid_t uid) argument [all...] |
H A D | AudioPolicyService.h | 187 virtual void registerClient(const sp<IAudioPolicyServiceClient>& client); 536 const sp<IAudioPolicyServiceClient>& client,
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 334 // Remove the client from the list of active clients 337 // Notify the client of disconnection 346 // Disconnect client 348 // Ensure not in binder RPC so client disconnect PID checks work correctly 754 /*out*/sp<BasicClient>* client) { 763 *client = new CameraClient(cameraService, tmp, packageName, cameraId, facing, 779 *client = new Camera2Client(cameraService, tmp, packageName, cameraId, facing, 784 *client = new CameraDeviceClient(cameraService, tmp, packageName, cameraId, 802 *client = new CameraClient(cameraService, tmp, packageName, cameraId, facing, 937 "forward camera access to camera %s for client 750 makeClient(const sp<CameraService>& cameraService, const sp<IInterface>& cameraCb, const String16& packageName, int cameraId, int facing, int clientPid, uid_t clientUid, int servicePid, bool legacyMode, int halVersion, int deviceVersion, apiLevel effectiveApiLevel, sp<BasicClient>* client) argument 1034 finishConnectLocked(const sp<BasicClient>& client, const CameraService::DescriptorPtr& desc) argument 1066 handleEvictionsLocked(const String8& cameraId, int clientPid, apiLevel effectiveApiLevel, const sp<IBinder>& remoteCallback, const String8& packageName, sp<BasicClient>* client, std::shared_ptr<resource_policy::ClientDescriptor<String8, sp<BasicClient>>>* partial) argument 1260 sp<Client> client = nullptr; local 1305 sp<Client> client = nullptr; local 1332 sp<CameraDeviceClient> client = nullptr; local 1643 removeByClient(const BasicClient* client) argument 2298 OpsCallback(wp<BasicClient> client) argument 2304 sp<BasicClient> client = mClient.promote(); local 2587 auto client = clientDescriptor->getValue(); local [all...] |
H A D | CameraService.h | 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); 292 virtual status_t connect(const sp<hardware::ICameraClient>& client) = 0; 326 // return our camera client 338 // Check what API level is used for this client. This is used to determine which 342 // Convert client fro 835 sp<CLIENT> client = nullptr; local [all...] |
/frameworks/av/services/camera/libcameraservice/api1/ |
H A D | Camera2Client.cpp | 73 ALOGV("%s: Initializing client for camera %d", __FUNCTION__, mCameraId); 376 // Allow both client and the cameraserver to disconnect at all times 439 status_t Camera2Client::connect(const sp<hardware::ICameraClient>& client) { argument 453 mRemoteCallback = client; 454 mSharedCameraCallbacks = client; 463 ALOGV("%s: Camera %d: Lock call from pid %d; current client pid %d", 484 ALOGV("%s: Camera %d: Unlock call from pid %d; current client pid %d", 1294 * Send immediate notification back to client
|
H A D | Camera2Client.h | 57 virtual status_t connect(const sp<hardware::ICameraClient>& client);
|
H A D | CameraClient.cpp | 101 // tear down the client 165 // lock camera to this client if the the camera is unlocked 171 // returns NO_ERROR if the client already owns the camera, EBUSY otherwise 196 // connect a new client to the camera 197 status_t CameraClient::connect(const sp<hardware::ICameraClient>& client) { argument 209 (IInterface::asBinder(client) == IInterface::asBinder(mRemoteCallback))) { 210 LOG1("Connect to the same client"); 216 mRemoteCallback = client; 239 // Allow both client and the cameraserver to disconnect at all times 241 ALOGW("different client 770 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get()); local 790 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get()); local 823 sp<CameraClient> client = static_cast<CameraClient*>(getClientFromCookie(user).get()); local 991 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 D | CameraClient.h | 37 virtual status_t connect(const sp<hardware::ICameraClient>& client); 120 const sp<hardware::ICameraClient>& client, 161 // trying to deliver the callback messages if the client is not 162 // interested in it anymore. For example, if the client is calling
|
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | CallbackProcessor.cpp | 34 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 D | CallbackProcessor.h | 44 CallbackProcessor(sp<Camera2Client> client); 82 status_t processNewCallback(sp<Camera2Client> &client);
|
H A D | CaptureSequencer.cpp | 37 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 ¶ms, sp<Camera2Client> &client) argument 711 shutterNotifyLocked(const Parameters ¶ms, sp<Camera2Client> client, int msgType) argument [all...] |
H A D | CaptureSequencer.h | 47 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 D | FrameProcessor.cpp | 32 sp<Camera2Client> client) : 34 mClient(client), 42 SharedParameters::Lock l(client->getParameters()); 44 if (client->getCameraDeviceVersion() >= CAMERA_DEVICE_API_VERSION_3_2) { 72 sp<Camera2Client> client = mClient.promote(); local 73 if (!client.get()) { 79 if (client->getCameraDeviceVersion() >= CAMERA_DEVICE_API_VERSION_3_2) { 91 if (!isPartialResult && processFaceDetect(frame.mMetadata, client) != OK) { 96 process3aState(frame, client); 103 const sp<Camera2Client> &client) { 31 FrameProcessor(wp<CameraDeviceBase> device, sp<Camera2Client> client) argument 102 processFaceDetect(const CameraMetadata &frame, const sp<Camera2Client> &client) argument 247 process3aState(const CaptureResult &frame, const sp<Camera2Client> &client) argument 392 callbackFaceDetection(sp<Camera2Client> client, const camera_frame_metadata &metadata) argument [all...] |
H A D | FrameProcessor.h | 42 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(sp<Camera2Client> client,
|
H A D | JpegProcessor.cpp | 39 sp<Camera2Client> client, 42 mDevice(client->getCameraDevice()), 44 mId(client->getCameraId()), 38 JpegProcessor( sp<Camera2Client> client, wp<CaptureSequencer> sequencer) argument
|
H A D | JpegProcessor.h | 47 JpegProcessor(sp<Camera2Client> client, wp<CaptureSequencer> sequencer);
|