Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 118) sorted by relevance

12345

/frameworks/native/cmds/dumpstate/
Dutils.c62 int pid; in for_each_pid() local
67 if (!(pid = atoi(de->d_name))) { in for_each_pid()
71 sprintf(cmdpath,"/proc/%d/cmdline", pid); in for_each_pid()
79 func(pid, cmdline); in for_each_pid()
85 void show_wchan(int pid, const char *name) { in show_wchan() argument
92 sprintf(path, "/proc/%d/wchan", pid); in show_wchan()
103 printf("%-7d %-32s %s\n", pid, name, buffer); in show_wchan()
135 void do_showmap(int pid, const char *name) { in do_showmap() argument
139 sprintf(title, "SHOW MAP %d (%s)", pid, name); in do_showmap()
140 sprintf(arg, "%d", pid); in do_showmap()
[all …]
/frameworks/base/core/java/android/net/
DCredentials.java25 private final int pid; field in Credentials
31 public Credentials (int pid, int uid, int gid) { in Credentials() argument
32 this.pid = pid; in Credentials()
38 return pid; in getPid()
/frameworks/base/core/java/android/os/
DProcess.java529 result.pid = sZygoteInputStream.readInt(); in zygoteSendArgsAndGetResult()
530 if (result.pid < 0) { in zygoteSendArgsAndGetResult()
710 public static final int getUidForPid(int pid) { in getUidForPid() argument
714 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues); in getUidForPid()
724 public static final int getParentPid(int pid) { in getParentPid() argument
728 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues); in getParentPid()
807 public static final native void setProcessGroup(int pid, int group) in setProcessGroup() argument
885 public static final native boolean setOomAdj(int pid, int amt); in setOomAdj() argument
908 public static final void killProcess(int pid) { in killProcess() argument
909 sendSignal(pid, SIGNAL_KILL); in killProcess()
[all …]
DSchedulingPolicyService.java41 public int requestPriority(int pid, int tid, int prio) { in requestPriority() argument
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) { in requestPriority()
55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ? in requestPriority()
/frameworks/base/core/java/com/android/internal/os/
DProcessStats.java175 public final int pid; field in ProcessStats.Stats
207 pid = _pid; in Stats()
209 final File procDir = new File("/proc", Integer.toString(pid)); in Stats()
224 new File(procDir, "task"), Integer.toString(pid)); in Stats()
346 int pid = pids[i]; in collectStats() local
347 if (pid < 0) { in collectStats()
348 NP = pid; in collectStats()
353 if (st != null && st.pid == pid) { in collectStats()
360 + " pid " + pid + ": " + st); in collectStats()
394 mCurThreadPids = collectStats(st.threadsDir, pid, false, in collectStats()
[all …]
DZygoteConnection.java206 int pid = -1; in runOnce() local
235 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids, in runOnce()
250 if (pid == 0) { in runOnce()
263 return handleParentProc(pid, descriptors, serverPipeFd, parsedArgs); in runOnce()
992 private boolean handleParentProc(int pid, in handleParentProc() argument
995 if (pid > 0) { in handleParentProc()
996 setChildPgid(pid); in handleParentProc()
1006 if (pipeFd != null && pid > 0) { in handleParentProc()
1024 while (parentPid > 0 && parentPid != pid) { in handleParentProc()
1029 pid = innerPid; in handleParentProc()
[all …]
DZygoteInit.java494 int pid; in startSystemServer() local
502 pid = Zygote.forkSystemServer( in startSystemServer()
514 if (pid == 0) { in startSystemServer()
580 int pid; in runForkMode() local
582 pid = Zygote.fork(); in runForkMode()
584 if (pid == 0) { in runForkMode()
598 } else if (pid > 0) { in runForkMode()
691 static native int setpgid(int pid, int pgid); in setpgid() argument
700 static native int getpgid(int pid) throws IOException; in getpgid() argument
733 static native long capgetPermitted(int pid) in capgetPermitted() argument
/frameworks/av/media/libmedia/
DIMediaPlayerService.cpp59 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) in createMetadataRetriever() argument
63 data.writeInt32(pid); in createMetadataRetriever()
69 pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionId) { in create() argument
72 data.writeInt32(pid); in create()
80 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) in createMediaRecorder() argument
84 data.writeInt32(pid); in createMediaRecorder()
171 pid_t pid = data.readInt32(); in onTransact() local
175 sp<IMediaPlayer> player = create(pid, client, audioSessionId); in onTransact()
209 pid_t pid = data.readInt32(); in onTransact() local
210 sp<IMediaRecorder> recorder = createMediaRecorder(pid); in onTransact()
[all …]
/frameworks/native/libs/binder/
DPermissionCache.cpp84 pid_t pid = ipcState->getCallingPid(); in checkCallingPermission() local
86 if (outPid) *outPid = pid; in checkCallingPermission()
88 return PermissionCache::checkPermission(permission, pid, uid); in checkCallingPermission()
92 const String16& permission, pid_t pid, uid_t uid) { in checkPermission() argument
93 if ((uid == 0) || (pid == getpid())) { in checkPermission()
102 granted = android::checkPermission(permission, pid, uid); in checkPermission()
DIServiceManager.cpp60 pid_t pid = ipcState->getCallingPid(); in checkCallingPermission() local
62 if (outPid) *outPid = pid; in checkCallingPermission()
64 return checkPermission(permission, pid, uid); in checkCallingPermission()
67 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission() argument
78 bool res = pc->checkPermission(permission, pid, uid); in checkPermission()
83 String8(permission).string(), uid, pid); in checkPermission()
91 String8(permission).string(), uid, pid); in checkPermission()
110 String8(permission).string(), uid, pid); in checkPermission()
DIPermissionController.cpp40 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) in checkPermission() argument
45 data.writeInt32(pid); in checkPermission()
66 int32_t pid = data.readInt32(); in onTransact() local
68 bool res = checkPermission(permission, pid, uid); in onTransact()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp184 void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jint grp) in android_os_Process_setProcessGroup() argument
186 ALOGV("%s pid=%d grp=%d", __func__, pid, grp); in android_os_Process_setProcessGroup()
210 sprintf(proc_path, "/proc/%d/cmdline", pid); in android_os_Process_setProcessGroup()
219 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline); in android_os_Process_setProcessGroup()
221 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline); in android_os_Process_setProcessGroup()
224 sprintf(proc_path, "/proc/%d/task", pid); in android_os_Process_setProcessGroup()
304 jint pid, jint pri) in android_os_Process_setThreadPriority() argument
310 if (pid == androidGetTid()) { in android_os_Process_setThreadPriority()
321 int rc = androidSetThreadPriority(pid, pri); in android_os_Process_setThreadPriority()
342 jint pid) in android_os_Process_getThreadPriority() argument
[all …]
Dcom_android_internal_os_ZygoteInit.cpp70 JNIEnv* env, jobject clazz, jint pid, jint pgid) in com_android_internal_os_ZygoteInit_setpgid() argument
72 if (setpgid(pid, pgid) < 0) { in com_android_internal_os_ZygoteInit_setpgid()
83 JNIEnv* env, jobject clazz, jint pid) in com_android_internal_os_ZygoteInit_getpgid() argument
86 ret = getpgid(pid); in com_android_internal_os_ZygoteInit_getpgid()
177 capheader.pid = 0; in com_android_internal_os_ZygoteInit_setCapabilities()
193 jobject clazz, jint pid) in com_android_internal_os_ZygoteInit_capgetPermitted() argument
203 capheader.pid = pid; in com_android_internal_os_ZygoteInit_capgetPermitted()
/frameworks/compile/libbcc/gdb_plugin/
Dandroid-commands.py312 pid = line[1]
315 return (pid, user)
317 ret.append((pid, user))
325 def kill_by_pid(self, pid): argument
326 self._shell(*["kill", "-9", pid])
329 (pid, user) = self.get_process_info(process_name)
330 while pid != None:
331 self.kill_by_pid(pid)
332 (pid, user) = self.get_process_info(process_name)
346 (self.pid, self.owner_user) = \
[all …]
/frameworks/base/core/java/android/app/
DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities); in onForegroundActivitiesChanged() argument
23 void onImportanceChanged(int pid, int uid, int importance); in onImportanceChanged() argument
24 void onProcessDied(int pid, int uid); in onProcessDied() argument
DIActivityController.aidl46 boolean appCrashed(String processName, int pid, in appCrashed() argument
53 int appEarlyNotResponding(String processName, int pid, String annotation); in appEarlyNotResponding() argument
60 int appNotResponding(String processName, int pid, String processStats); in appNotResponding() argument
/frameworks/base/core/java/android/database/
DCursorWindow.java718 private void recordNewWindow(int pid, int window) { in recordNewWindow() argument
720 sWindowToPidMap.put(window, pid); in recordNewWindow()
749 int pid = sWindowToPidMap.valueAt(indx); in printStats() local
750 int value = pidCounts.get(pid); in printStats()
751 pidCounts.put(pid, ++value); in printStats()
757 int pid = pidCounts.keyAt(i); in printStats() local
758 if (pid == myPid) { in printStats()
761 buff.append("pid " + pid + "="); in printStats()
763 int num = pidCounts.get(pid); in printStats()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl26 void noteStartWakelock(int uid, int pid, String name, int type); in noteStartWakelock() argument
27 void noteStopWakelock(int uid, int pid, String name, int type); in noteStopWakelock() argument
37 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, int type); in noteStartWakelockFromSource() argument
38 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, int type); in noteStopWakelockFromSource() argument
/frameworks/base/core/java/android/content/
DContextWrapper.java499 public int checkPermission(String permission, int pid, int uid) { in checkPermission() argument
500 return mBase.checkPermission(permission, pid, uid); in checkPermission()
515 String permission, int pid, int uid, String message) { in enforcePermission() argument
516 mBase.enforcePermission(permission, pid, uid, message); in enforcePermission()
541 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { in checkUriPermission() argument
542 return mBase.checkUriPermission(uri, pid, uid, modeFlags); in checkUriPermission()
557 String writePermission, int pid, int uid, int modeFlags) { in checkUriPermission() argument
559 pid, uid, modeFlags); in checkUriPermission()
564 Uri uri, int pid, int uid, int modeFlags, String message) { in enforceUriPermission() argument
565 mBase.enforceUriPermission(uri, pid, uid, modeFlags, message); in enforceUriPermission()
[all …]
DContentProvider.java278 final int pid = Binder.getCallingPid(); in enforceReadPermission() local
289 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) { in enforceReadPermission()
306 if (context.checkPermission(pathPerm, pid, uid) == PERMISSION_GRANTED) { in enforceReadPermission()
324 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION) in enforceReadPermission()
333 + ContentProvider.this.getClass().getName() + " uri " + uri + " from pid=" + pid in enforceReadPermission()
339 final int pid = Binder.getCallingPid(); in enforceWritePermission() local
350 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) { in enforceWritePermission()
367 if (context.checkPermission(pathPerm, pid, uid) == PERMISSION_GRANTED) { in enforceWritePermission()
385 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_WRITE_URI_PERMISSION) in enforceWritePermission()
394 + ContentProvider.this.getClass().getName() + " uri " + uri + " from pid=" + pid in enforceWritePermission()
/frameworks/av/include/media/
DIMediaPlayerService.h47 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) = 0;
48 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) = 0;
49 …virtual sp<IMediaPlayer> create(pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionI…
/frameworks/base/services/java/com/android/server/am/
DBatteryStatsService.java105 public void noteStartWakelock(int uid, int pid, String name, int type) { in noteStartWakelock() argument
108 mStats.noteStartWakeLocked(uid, pid, name, type); in noteStartWakelock()
112 public void noteStopWakelock(int uid, int pid, String name, int type) { in noteStopWakelock() argument
115 mStats.noteStopWakeLocked(uid, pid, name, type); in noteStopWakelock()
119 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, int type) { in noteStartWakelockFromSource() argument
122 mStats.noteStartWakeFromSourceLocked(ws, pid, name, type); in noteStartWakelockFromSource()
126 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, int type) { in noteStopWakelockFromSource() argument
129 mStats.noteStopWakeFromSourceLocked(ws, pid, name, type); in noteStopWakelockFromSource()
DReceiverList.java40 public final int pid; field in ReceiverList
53 pid = _pid; in ReceiverList()
73 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.print(uid); in dumpLocal()
104 sb.append(pid); in toString()
DActivityManagerService.java383 int pid; field in ActivityManagerService.ForegroundToken
602 public int pid; field in ActivityManagerService.Identity
606 pid = _pid; in Identity()
786 int pid; field in ActivityManagerService.ProcessChangeItem
851 AppDeathRecipient(ProcessRecord app, int pid, in AppDeathRecipient() argument
857 mPid = pid; in AppDeathRecipient()
930 && proc.pid != MY_PID) {
1261 final int pid = msg.arg1;
1263 dispatchProcessDied(pid, uid);
1386 app.pid = MY_PID; in setSystemProcess()
[all …]
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp51 unsigned pid, ABitReader *br, status_t *err);
54 unsigned pid, unsigned continuity_counter,
105 unsigned pid() const { return mElementaryPID; } in pid() function
106 void setPID(unsigned pid) { mElementaryPID = pid; } in setPID()
187 unsigned pid, ABitReader *br, status_t *err) { in parsePSISection() argument
190 if (pid != mProgramMapPID) { in parsePSISection()
200 unsigned pid, unsigned continuity_counter, in parsePID() argument
205 ssize_t index = mStreams.indexOfKey(pid); in parsePID()
353 ALOGI("PID 0x%08x => type 0x%02x", stream->pid(), stream->type()); in parseProgramMap()
377 info1.mPID == s1->pid() && info1.mType == s2->type() in parseProgramMap()
[all …]

12345