Lines Matching defs:pid

314             snprintf(buffer, SIZE, "  pid: %d\n", client->pid());
321 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i));
326 result.append(" session pid count\n");
357 "can't dump AudioFlinger from pid=%d, uid=%d\n",
459 sp<AudioFlinger::Client> AudioFlinger::registerPid(pid_t pid)
462 // If pid is already in the mClients wp<> map, then use that entry
464 sp<Client> client = mClients.valueFor(pid).promote();
466 client = new Client(this, pid);
467 mClients.add(pid, client);
597 pid_t pid = IPCThreadState::self()->getCallingPid();
598 client = registerPid(pid);
902 ALOGW("setStreamVolume() pid %d cannot use internal stream type %d", caller, stream);
1006 ALOGV("setParameters(): io %d, keyvalue %s, calling pid %d",
1092 ALOGVV("getParameters() io %d, keys %s, calling pid %d",
1205 pid_t pid = IPCThreadState::self()->getCallingPid();
1206 if (mNotificationClients.indexOfKey(pid) < 0) {
1209 pid);
1210 ALOGV("registerClient() client %p, pid %d", notificationClient.get(), pid);
1212 mNotificationClients.add(pid, notificationClient);
1235 void AudioFlinger::removeNotificationClient(pid_t pid)
1240 mNotificationClients.removeItem(pid);
1243 ALOGV("%d died, releasing its sessions", pid);
1248 ALOGV(" pid %d @ %d", ref->mPid, i);
1249 if (ref->mPid == pid) {
1250 ALOGV(" removing entry for pid %d session %d", pid, ref->mSessionid);
1276 void AudioFlinger::removeClient_l(pid_t pid)
1278 ALOGV("removeClient_l() pid %d, calling pid %d", pid,
1280 mClients.removeItem(pid);
1302 AudioFlinger::Client::Client(const sp<AudioFlinger>& audioFlinger, pid_t pid)
1307 mPid(pid),
1333 ALOGW("can not create timed track - pid %d has exceeded the limit",
1353 pid_t pid)
1354 : mAudioFlinger(audioFlinger), mPid(pid), mAudioFlingerClient(client)
1436 pid_t pid = IPCThreadState::self()->getCallingPid();
1437 client = registerPid(pid);
2192 void AudioFlinger::acquireAudioSessionId(int audioSession, pid_t pid)
2196 ALOGV("acquiring %d from %d, for %d", audioSession, caller, pid);
2197 if (pid != -1 && (caller == getpid_cached)) {
2198 caller = pid;
2205 // called from a different pid leaving a stale session reference. Also we don't know how
2226 void AudioFlinger::releaseAudioSessionId(int audioSession, pid_t pid)
2230 ALOGV("releasing %d from %d for %d", audioSession, caller, pid);
2231 if (pid != -1 && (caller == getpid_cached)) {
2232 caller = pid;
2250 ALOGW_IF(caller != getpid_cached, "session id %d not found for pid %d", audioSession, caller);
2429 pid_t pid = IPCThreadState::self()->getCallingPid();
2430 ALOGV("createEffect pid %d, effectClient %p, priority %d, sessionId %d, io %d",
2431 pid, effectClient.get(), priority, sessionId, io);
2446 if (sessionId == AUDIO_SESSION_OUTPUT_STAGE && getpid_cached != pid) {
2587 sp<Client> client = registerPid(pid);