Searched refs:pid (Results 1 - 25 of 134) sorted by relevance

123456

/frameworks/base/core/java/android/app/
H A DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
23 void onProcessStateChanged(int pid, int uid, int procState);
24 void onProcessDied(int pid, int uid);
H A DIActivityController.aidl46 boolean appCrashed(String processName, int pid,
53 int appEarlyNotResponding(String processName, int pid, String annotation);
60 int appNotResponding(String processName, int pid, String processStats);
H A DAppImportanceMonitor.java50 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) {
54 public void onProcessStateChanged(int pid, int uid, int procState) {
56 updateImportanceLocked(pid, uid,
63 public void onProcessDied(int pid, int uid) {
65 updateImportanceLocked(pid, uid,
98 updateImportanceLocked(app.uid, app.pid, app.importance, false);
117 void updateImportanceLocked(int uid, int pid, int importance, boolean repChange) { argument
124 ent.procs.remove(pid);
126 ent.procs.put(pid, importance);
/frameworks/base/core/java/android/net/
H A DCredentials.java24 /** pid of process. root peers may lie. */
25 private final int pid; field in class:Credentials
31 public Credentials (int pid, int uid, int gid) { argument
32 this.pid = pid;
38 return pid;
/frameworks/base/core/java/android/os/
H A DISchedulingPolicyService.aidl29 * The thread group leader of tid must be pid.
32 int requestPriority(int pid, int tid, int prio);
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
H A DProcess.java531 * and returns the child's pid. Please note: the present implementation
546 * After the zygote process reads these it will write the pid of
571 result.pid = inputStream.readInt();
572 if (result.pid < 0) {
813 * @param pid the process id
817 public static final int getUidForPid(int pid) { argument
821 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues);
827 * @param pid the process id
831 public static final int getParentPid(int pid) { argument
835 Process.readProcLines("/proc/" + pid
914 setProcessGroup(int pid, int group) argument
922 getProcessGroup(int pid) argument
1000 setSwappiness(int pid, boolean is_increased) argument
1023 killProcess(int pid) argument
1039 sendSignal(int pid, int signal) argument
1047 killProcessQuiet(int pid) argument
1057 sendSignalQuiet(int pid, int signal) argument
1112 getPss(int pid) argument
1123 public int pid; field in class:Process.ProcessStartResult
1136 killProcessGroup(int uid, int pid) argument
[all...]
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.h22 // Request elevated priority for thread tid, whose thread group leader must be pid.
27 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous = false);
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
H A DISchedulingPolicyService.h29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio, bool asynchronous) argument
44 data.writeInt32(pid);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessMemInfo.java21 final int pid; field in class:ProcessMemInfo
32 pid = _pid;
/frameworks/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java40 public int requestPriority(int pid, int tid, int prio) { argument
41 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
45 // Once we've verified that the caller is mediaserver, we can trust the pid but
46 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
49 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
54 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
/frameworks/native/libs/binder/
H A DIPermissionController.cpp39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
44 data.writeInt32(pid);
65 int32_t pid = data.readInt32(); local
67 bool res = checkPermission(permission, pid, uid);
H A DPermissionCache.cpp62 // note, we don't need to store the pid, which is not actually used in
84 pid_t pid = ipcState->getCallingPid(); local
86 if (outPid) *outPid = pid;
88 return PermissionCache::checkPermission(permission, pid, uid);
92 const String16& permission, pid_t pid, uid_t uid) {
93 if ((uid == 0) || (pid == getpid())) {
102 granted = android::checkPermission(permission, pid, uid);
91 checkPermission( const String16& permission, pid_t pid, uid_t uid) argument
/frameworks/native/cmds/dumpstate/
H A Dutils.c90 int pid; local
95 if (!(pid = atoi(de->d_name))) {
99 sprintf(cmdpath,"/proc/%d/cmdline", pid);
107 helper(pid, cmdline, arg);
113 static void for_each_pid_helper(int pid, const char *cmdline, void *arg) { argument
115 func(pid, cmdline);
122 static void for_each_tid_helper(int pid, const char *cmdline, void *arg) { argument
128 sprintf(taskpath, "/proc/%d/task", pid);
135 func(pid, pid, cmdlin
174 show_wchan(int pid, int tid, const char *name) argument
244 do_showmap(int pid, const char *name) argument
308 pid_t pid = fork(); local
574 int pid = atoi(d->d_name); local
[all...]
H A Ddumpstate.h46 /* redirect output to a file, optionally gzipping; returns gzip pid */
62 void show_wchan(int pid, int tid, const char *name);
65 void do_showmap(int pid, const char *name);
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl58 void noteStartWakelock(int uid, int pid, String name, String historyName,
60 void noteStopWakelock(int uid, int pid, String name, String historyName, int type);
62 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, String historyName,
64 void noteChangeWakelockFromSource(in WorkSource ws, int pid, String name, String histyoryName,
67 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, String historyName,
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
H A DUiAutomationShellWrapper.java100 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument
107 public int appEarlyNotResponding(String processName, int pid, String annotation) argument
114 public int appNotResponding(String processName, int pid, String processStats) argument
/frameworks/base/core/java/com/android/internal/os/
H A DZygote.java84 * @return 0 if this is the child, pid of the child
93 int pid = nativeForkAndSpecialize(
99 return pid;
120 * common actions performed in forkAndSpecialize, the pid of the child
138 * @return 0 if this is the child, pid of the child
144 int pid = nativeForkSystemServer(
147 return pid;
/frameworks/native/include/binder/
H A DIPermissionController.h33 int32_t pid, int32_t uid) = 0;
/frameworks/base/core/jni/
H A Dcom_android_internal_os_Zygote.cpp80 pid_t pid; local
83 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) {
93 ALOGI("Process %d exited cleanly (%d)", pid, WEXITSTATUS(status));
97 ALOGI("Process %d exited due to signal (%d)", pid, WTERMSIG(status));
100 ALOGI("Process %d dumped core.", pid);
107 if (pid == gSystemServerPid) {
115 if (pid < 0 && errno != ECHILD) {
229 capheader.pid = 0;
436 pid_t pid = fork(); local
438 if (pid
609 pid_t pid = ForkAndSpecializeCommon(env, uid, gid, gids, local
[all...]
H A Dandroid_util_Process.cpp174 void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jint grp) argument
176 ALOGV("%s pid=%d grp=%" PRId32, __func__, pid, grp);
200 sprintf(proc_path, "/proc/%d/cmdline", pid);
209 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
211 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
214 sprintf(proc_path, "/proc/%d/task", pid);
231 ALOGE("Error getting pid fo
261 android_os_Process_getProcessGroup(JNIEnv* env, jobject clazz, jint pid) argument
302 android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz, jint pid, jint pri) argument
339 android_os_Process_getThreadPriority(JNIEnv* env, jobject clazz, jint pid) argument
351 android_os_Process_setSwappiness(JNIEnv *env, jobject clazz, jint pid, jboolean is_increased) argument
628 int pid = strtol(entry->d_name, &end, 10); local
863 android_os_Process_sendSignal(JNIEnv* env, jobject clazz, jint pid, jint sig) argument
871 android_os_Process_sendSignalQuiet(JNIEnv* env, jobject clazz, jint pid, jint sig) argument
892 android_os_Process_getPss(JNIEnv* env, jobject clazz, jint pid) argument
957 int pid = atoi(d->d_name); local
1006 android_os_Process_killProcessGroup(JNIEnv* env, jobject clazz, jint uid, jint pid) argument
[all...]
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.h40 MetadataRetrieverClient(const sp<IMediaPlayerService>& service, pid_t pid, int32_t connId);
61 explicit MetadataRetrieverClient(pid_t pid);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java56 * @param pid The process id of where the binding came from.
59 int uid, int pid) {
63 mPid = pid;
120 + " / uid " + mUid + " / pid " + mPid + "}";
58 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument

Completed in 3539 milliseconds

123456