Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:Client

95 static const char kClientLockedString[] = "Client lock is taken\n";
267 const AudioClient& client,
282 direction, attr, config, client, deviceId,
291 const AudioClient& client,
316 &streamType, client.clientPid, client.clientUid,
324 client.clientPid,
325 client.clientUid,
326 client.packageName,
402 sp<Client> client = mClients.valueAt(i).promote();
403 if (client != 0) {
404 snprintf(buffer, SIZE, " pid: %d\n", client->pid());
584 sp<AudioFlinger::Client> AudioFlinger::registerPid(pid_t pid)
588 // (for which promote() is always != 0), otherwise create a new entry and Client.
589 sp<Client> client = mClients.valueFor(pid).promote();
590 if (client == 0) {
591 client = new Client(this, pid);
592 mClients.add(pid, client);
595 return client;
661 sp<Client> client;
705 // client AudioTrack::set already implements AUDIO_STREAM_DEFAULT => AUDIO_STREAM_MUSIC,
736 client = registerPid(clientPid);
758 track = thread->createTrack_l(client, streamType, input.attr, &output.sampleRate,
799 // remove local strong reference to Client before deleting the Track so that the
800 // Client destructor is called by the TrackBase destructor with mClientLock held
805 client.clear();
811 // return handle to client
1438 void AudioFlinger::registerClient(const sp<IAudioFlingerClient>& client)
1441 if (client == 0) {
1449 client,
1451 ALOGV("registerClient() client %p, pid %d", notificationClient.get(), pid);
1455 sp<IBinder> binder = IInterface::asBinder(client);
1543 AudioFlinger::Client::Client(const sp<AudioFlinger>& audioFlinger, pid_t pid)
1550 (std::string("AudioFlinger::Client(") + std::to_string(pid) + ")").c_str());
1553 // Client destructor must be called with AudioFlinger::mClientLock held
1554 AudioFlinger::Client::~Client()
1559 sp<MemoryDealer> AudioFlinger::Client::heap() const
1567 const sp<IAudioFlingerClient>& client,
1569 : mAudioFlinger(audioFlinger), mPid(pid), mAudioFlingerClient(client)
1627 sp<Client> client;
1680 client = registerPid(clientPid);
1720 recordTrack = thread->createRecordTrack_l(client, input.attr, &output.sampleRate,
1755 // return handle to client
1760 // remove local strong reference to Client before deleting the RecordTrack so that the
1761 // Client destructor is called by the TrackBase destructor with mClientLock held
1766 client.clear();
1910 // TODO: Cache the client shared heap size in a persistent property.
1914 // crash and restore. Before update from AudioService, the client would get the
2150 // notify client processes of the new output creation
2190 // notify client processes of the new output creation
2332 // notify client processes of the new input creation
2499 // If we still have effect chains, it means that a client still holds a handle
2513 // first check if a record thread is already opened with a client on same session.
2548 // we have a different lock for notification client
2594 // This is a binder API, so a malicious client could pass in a bad parameter.
2614 // Ignore requests received from processes not known as notification client. The request
2617 // to clear this reference if the client process dies.
2619 ALOGW("acquireAudioSessionId() unknown client %d for session %d", caller, audioSession);
3151 sp<Client> client = registerPid(pid);
3155 handle = thread->createEffect_l(client, effectClient, priority, sessionId,
3158 // remove local strong reference to Client with mClientLock held
3160 client.clear();