Home | History | Annotate | Download | only in mediaresourcemanager

Lines Matching defs:pid

64         int pid,
66 ssize_t index = map.indexOfKey(pid);
68 // new pid
70 map.add(pid, infosForPid);
73 return map.editValueFor(pid);
109 snprintf(buffer, SIZE, " Pid: %d\n", mMap.keyAt(i));
167 int pid,
171 String8 log = String8::format("addResource(pid %d, clientId %lld, resources %s)",
172 pid, (long long) clientId, getString(resources).string());
176 ResourceInfos& infos = getResourceInfosForEdit(pid, mMap);
182 void ResourceManagerService::removeResource(int pid, int64_t clientId) {
184 "removeResource(pid %d, clientId %lld)",
185 pid, (long long) clientId);
189 ssize_t index = mMap.indexOfKey(pid);
191 ALOGV("removeResource: didn't find pid %d for clientId %lld", pid, (long long) clientId);
336 ALOGE("getAllClients_l: can't reclaim resource %s from pid %d",
358 ALOGE("getLowestPriorityBiggestClient_l: can't get process priority for pid %d",
379 int pid = -1;
393 ALOGV("getLowestPriorityPid_l: can't get priority of pid %d, skipped", tempPid);
394 // TODO: remove this pid from mMap?
397 if (pid == -1 || tempPriority > priority) {
399 pid = tempPid;
403 if (pid != -1) {
404 *lowestPriorityPid = pid;
407 return (pid != -1);
410 bool ResourceManagerService::isCallingPriorityHigher_l(int callingPid, int pid) {
417 if (!mProcessInfo->getPriority(pid, &priority)) {
425 int pid, const String8 &type, sp<IResourceManagerClient> *client) {
426 ssize_t index = mMap.indexOfKey(pid);
428 ALOGE("getBiggestClient_l: can't find resource info for pid %d", pid);
448 ALOGE("getBiggestClient_l: can't find resource type %s for pid %d", type.string(), pid);