Home | History | Annotate | Download | only in audioflinger

Lines Matching defs:pid

317             snprintf(buffer, SIZE, "  pid: %d\n", client->pid());
324 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i));
329 result.append(" session pid count\n");
360 "can't dump AudioFlinger from pid=%d, uid=%d\n",
465 sp<AudioFlinger::Client> AudioFlinger::registerPid(pid_t pid)
468 // If pid is already in the mClients wp<> map, then use that entry
470 sp<Client> client = mClients.valueFor(pid).promote();
472 client = new Client(this, pid);
473 mClients.add(pid, client);
603 pid_t pid = IPCThreadState::self()->getCallingPid();
604 client = registerPid(pid);
922 ALOGW("setStreamVolume() pid %d cannot use internal stream type %d", caller, stream);
1034 ALOGV("setParameters(): io %d, keyvalue %s, calling pid %d",
1118 ALOGVV("getParameters() io %d, keys %s, calling pid %d",
1254 pid_t pid = IPCThreadState::self()->getCallingPid();
1257 if (mNotificationClients.indexOfKey(pid) < 0) {
1260 pid);
1261 ALOGV("registerClient() client %p, pid %d", notificationClient.get(), pid);
1263 mNotificationClients.add(pid, notificationClient);
1275 mPlaybackThreads.valueAt(i)->sendIoConfigEvent(AUDIO_OUTPUT_OPENED, pid);
1279 mRecordThreads.valueAt(i)->sendIoConfigEvent(AUDIO_INPUT_OPENED, pid);
1283 void AudioFlinger::removeNotificationClient(pid_t pid)
1288 mNotificationClients.removeItem(pid);
1291 ALOGV("%d died, releasing its sessions", pid);
1296 ALOGV(" pid %d @ %d", ref->mPid, i);
1297 if (ref->mPid == pid) {
1298 ALOGV(" removing entry for pid %d session %d", pid, ref->mSessionid);
1314 pid_t pid)
1319 if ((pid == 0) || (mNotificationClients.keyAt(i) == pid)) {
1326 void AudioFlinger::removeClient_l(pid_t pid)
1328 ALOGV("removeClient_l() pid %d, calling pid %d", pid,
1330 mClients.removeItem(pid);
1352 AudioFlinger::Client::Client(const sp<AudioFlinger>& audioFlinger, pid_t pid)
1357 mPid(pid),
1383 ALOGW("can not create timed track - pid %d has exceeded the limit",
1403 pid_t pid)
1404 : mAudioFlinger(audioFlinger), mPid(pid), mAudioFlingerClient(client)
1487 pid_t pid = IPCThreadState::self()->getCallingPid();
1488 client = registerPid(pid);
2255 void AudioFlinger::acquireAudioSessionId(int audioSession, pid_t pid)
2259 ALOGV("acquiring %d from %d, for %d", audioSession, caller, pid);
2260 if (pid != -1 && (caller == getpid_cached)) {
2261 caller = pid;
2268 // called from a different pid leaving a stale session reference. Also we don't know how
2289 void AudioFlinger::releaseAudioSessionId(int audioSession, pid_t pid)
2293 ALOGV("releasing %d from %d for %d", audioSession, caller, pid);
2294 if (pid != -1 && (caller == getpid_cached)) {
2295 caller = pid;
2313 ALOGW_IF(caller != getpid_cached, "session id %d not found for pid %d", audioSession, caller);
2496 pid_t pid = IPCThreadState::self()->getCallingPid();
2497 ALOGV("createEffect pid %d, effectClient %p, priority %d, sessionId %d, io %d",
2498 pid, effectClient.get(), priority, sessionId, io);
2513 if (sessionId == AUDIO_SESSION_OUTPUT_STAGE && getpid_cached != pid) {
2654 sp<Client> client = registerPid(pid);