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

12345

/frameworks/base/core/java/android/app/
H A DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
23 void onImportanceChanged(int pid, int uid, int importance);
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);
/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 DSchedulingPolicyService.java41 public int requestPriority(int pid, int tid, int prio) { argument
42 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
46 // Once we've verified that the caller is mediaserver, we can trust the pid but
47 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
H A DProcess.java489 * and returns the child's pid. Please note: the present implementation
506 * After the zygote process reads these it will write the pid of
529 result.pid = sZygoteInputStream.readInt();
530 if (result.pid < 0) {
706 * @param pid the process id
710 public static final int getUidForPid(int pid) { argument
714 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues);
720 * @param pid the process id
724 public static final int getParentPid(int pid) { argument
728 Process.readProcLines("/proc/" + pid
807 setProcessGroup(int pid, int group) argument
885 setOomAdj(int pid, int amt) argument
908 killProcess(int pid) argument
924 sendSignal(int pid, int signal) argument
932 killProcessQuiet(int pid) argument
942 sendSignalQuiet(int pid, int signal) argument
995 getPss(int pid) argument
1006 public int pid; field in class:Process.ProcessStartResult
[all...]
/frameworks/av/services/audioflinger/
H A DSchedulingPolicyService.h22 // Request elevated priority for thread tid, whose thread group leader must be pid.
24 int requestPriority(pid_t pid, pid_t tid, int32_t prio);
H A DSchedulingPolicyService.cpp28 int requestPriority(pid_t pid, pid_t tid, int32_t prio) argument
49 return sps->requestPriority(pid, tid, prio);
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio) argument
44 data.writeInt32(pid);
H A DISchedulingPolicyService.h29 virtual int requestPriority(/*pid_t*/int32_t pid, /*pid_t*/int32_t tid,
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.h38 /* redirect output to a file, optionally gzipping; returns gzip pid */
48 void show_wchan(int pid, const char *name);
51 void do_showmap(int pid, const char *name);
H A Dutils.c62 int pid; local
67 if (!(pid = atoi(de->d_name))) {
71 sprintf(cmdpath,"/proc/%d/cmdline", pid);
79 func(pid, cmdline);
85 void show_wchan(int pid, const char *name) { argument
92 sprintf(path, "/proc/%d/wchan", pid);
103 printf("%-7d %-32s %s\n", pid, name, buffer);
135 void do_showmap(int pid, const char *name) { argument
139 sprintf(title, "SHOW MAP %d (%s)", pid, name);
140 sprintf(arg, "%d", pid);
189 pid_t pid = fork(); local
443 int pid = atoi(d->d_name); local
[all...]
/frameworks/native/libs/binder/
H A DIPermissionController.cpp40 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
45 data.writeInt32(pid);
66 int32_t pid = data.readInt32(); local
68 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
H A DIServiceManager.cpp60 pid_t pid = ipcState->getCallingPid(); local
62 if (outPid) *outPid = pid;
64 return checkPermission(permission, pid, uid);
67 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) argument
78 bool res = pc->checkPermission(permission, pid, uid);
81 ALOGI("Check passed after %d seconds for %s from uid=%d pid=%d",
83 String8(permission).string(), uid, pid);
90 ALOGW("Permission failure: %s from uid=%d pid=%d",
91 String8(permission).string(), uid, pid);
109 ALOGI("Waiting to check permission %s from uid=%d pid
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl26 void noteStartWakelock(int uid, int pid, String name, int type);
27 void noteStopWakelock(int uid, int pid, String name, int type);
37 void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, int type);
38 void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, int type);
/frameworks/av/include/media/
H A 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 audioSessionId = 0) = 0;
/frameworks/av/media/libmedia/
H A DIMediaPlayerService.cpp59 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) argument
63 data.writeInt32(pid);
69 pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionId) {
72 data.writeInt32(pid);
80 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) argument
84 data.writeInt32(pid);
171 pid_t pid = data.readInt32(); local
175 sp<IMediaPlayer> player = create(pid, client, audioSessionId);
209 pid_t pid = data.readInt32(); local
210 sp<IMediaRecorder> recorder = createMediaRecorder(pid);
68 create( pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionId) argument
216 pid_t pid = data.readInt32(); local
[all...]
/frameworks/native/include/binder/
H A DIPermissionController.h33 int32_t pid, int32_t uid) = 0;
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.h39 MetadataRetrieverClient(const sp<IMediaPlayerService>& service, pid_t pid, int32_t connId);
58 explicit MetadataRetrieverClient(pid_t pid);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java57 * @param pid The process id of where the binding came from.
60 int uid, int pid) {
64 mPid = pid;
121 + " / uid " + mUid + " / pid " + mPid + "}";
59 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument
/frameworks/base/core/jni/
H A Dcom_android_internal_os_ZygoteInit.cpp70 JNIEnv* env, jobject clazz, jint pid, jint pgid)
72 if (setpgid(pid, pgid) < 0) {
80 * private static native int getpgid(int pid)
83 JNIEnv* env, jobject clazz, jint pid)
86 ret = getpgid(pid);
177 capheader.pid = 0;
193 jobject clazz, jint pid)
203 capheader.pid = pid;
69 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument
82 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument
192 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument
H A Dandroid_util_Process.cpp184 void android_os_Process_setProcessGroup(JNIEnv* env, jobject clazz, int pid, jint grp) argument
186 ALOGV("%s pid=%d grp=%d", __func__, pid, grp);
210 sprintf(proc_path, "/proc/%d/cmdline", pid);
219 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
221 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
224 sprintf(proc_path, "/proc/%d/task", pid);
241 ALOGE("Error getting pid fo
303 android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz, jint pid, jint pri) argument
341 android_os_Process_getThreadPriority(JNIEnv* env, jobject clazz, jint pid) argument
353 android_os_Process_setOomAdj(JNIEnv* env, jobject clazz, jint pid, jint adj) argument
619 int pid = strtol(entry->d_name, &end, 10); local
839 android_os_Process_sendSignal(JNIEnv* env, jobject clazz, jint pid, jint sig) argument
847 android_os_Process_sendSignalQuiet(JNIEnv* env, jobject clazz, jint pid, jint sig) argument
868 android_os_Process_getPss(JNIEnv* env, jobject clazz, jint pid) argument
933 int pid = atoi(d->d_name); local
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DProcessStats.java175 public final int pid; field in class:ProcessStats.Stats
207 pid = _pid;
209 final File procDir = new File("/proc", Integer.toString(pid));
224 new File(procDir, "task"), Integer.toString(pid));
346 int pid = pids[i];
347 if (pid < 0) {
348 NP = pid;
353 if (st != null && st.pid == pid) {
360 + " pid "
521 getCpuTimeForPid(int pid) argument
756 printProcessCPU(PrintWriter pw, String prefix, int pid, String label, int totalTime, int user, int system, int iowait, int irq, int softIrq, int minFaults, int majFaults) argument
[all...]

Completed in 319 milliseconds

12345