Lines Matching refs:pid

66 aaudio_result_t AAudioClientTracker::registerClient(pid_t pid,  in registerClient()  argument
68 ALOGV("registerClient(), calling pid = %d, getpid() = %d\n", pid, getpid()); in registerClient()
77 if (mNotificationClients.count(pid) == 0) { in registerClient()
79 sp<NotificationClient> notificationClient = new NotificationClient(pid, binder); in registerClient()
80 mNotificationClients[pid] = notificationClient; in registerClient()
86 ALOGW("registerClient(%d) already registered!", pid); in registerClient()
91 void AAudioClientTracker::unregisterClient(pid_t pid) { in unregisterClient() argument
92 ALOGV("unregisterClient(), calling pid = %d, getpid() = %d\n", pid, getpid()); in unregisterClient()
94 mNotificationClients.erase(pid); in unregisterClient()
97 int32_t AAudioClientTracker::getStreamCount(pid_t pid) { in getStreamCount() argument
99 auto it = mNotificationClients.find(pid); in getStreamCount()
108 AAudioClientTracker::registerClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) { in registerClientStream() argument
109 ALOGV("registerClientStream(%d,)\n", pid); in registerClientStream()
111 return getNotificationClient_l(pid)->registerClientStream(serviceStream); in registerClientStream()
116 AAudioClientTracker::unregisterClientStream(pid_t pid, in unregisterClientStream() argument
118 ALOGV("unregisterClientStream(%d,)\n", pid); in unregisterClientStream()
120 auto it = mNotificationClients.find(pid); in unregisterClientStream()
122 ALOGV("unregisterClientStream(%d,) found NotificationClient\n", pid); in unregisterClientStream()
125 ALOGE("unregisterClientStream(%d,) missing NotificationClient\n", pid); in unregisterClientStream()
130 void AAudioClientTracker::setExclusiveEnabled(pid_t pid, bool enabled) { in setExclusiveEnabled() argument
131 ALOGD("%s(%d, %d)\n", __func__, pid, enabled); in setExclusiveEnabled()
133 getNotificationClient_l(pid)->setExclusiveEnabled(enabled); in setExclusiveEnabled()
136 bool AAudioClientTracker::isExclusiveEnabled(pid_t pid) { in isExclusiveEnabled() argument
138 return getNotificationClient_l(pid)->isExclusiveEnabled(); in isExclusiveEnabled()
142 AAudioClientTracker::getNotificationClient_l(pid_t pid) { in getNotificationClient_l() argument
143 sp<NotificationClient> notificationClient = mNotificationClients[pid]; in getNotificationClient_l()
146 ALOGV("%s(%d,) unrecognized PID\n", __func__, pid); in getNotificationClient_l()
147 notificationClient = new AAudioClientTracker::NotificationClient(pid, nullptr); in getNotificationClient_l()
148 mNotificationClients[pid] = notificationClient; in getNotificationClient_l()
157 AAudioClientTracker::NotificationClient::NotificationClient(pid_t pid, const sp<IBinder>& binder) in NotificationClient() argument
158 : mProcessId(pid), mBinder(binder) { in NotificationClient()