Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/android/system/
DStructUcred.java28 public final int pid; field in StructUcred
36 public StructUcred(int pid, int uid, int gid) { in StructUcred() argument
37 this.pid = pid; in StructUcred()
DStructCapUserHeader.java53 public final int pid; field in StructCapUserHeader
65 public StructCapUserHeader(int version, int pid) { in StructCapUserHeader() argument
67 this.pid = pid; in StructCapUserHeader()
DOs.java263 public static int getpgid(int pid) throws ErrnoException { return Libcore.os.getpgid(pid); } in getpgid() argument
421 …public static void kill(int pid, int signal) throws ErrnoException { Libcore.os.kill(pid, signal);… in kill() argument
723 …public static void setpgid(int pid, int pgid) throws ErrnoException { Libcore.os.setpgid(pid, pgid… in setpgid() argument
996 public static int waitpid(int pid, Int32Ref status, int options) throws ErrnoException { in waitpid() argument
997 return Libcore.os.waitpid(pid, status, options); in waitpid()
/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java56 private final int pid; field in UNIXProcess
65 private native int waitForProcessExit(int pid); in waitForProcessExit() argument
133 pid = forkAndExec(prog,
172 int exitcode = waitForProcessExit(pid);
220 private static native void destroyProcess(int pid);
230 destroyProcess(pid);
240 sb.append(pid);
/libcore/ojluni/annotations/hiddenapi/java/lang/
DUNIXProcess.java46 private native int waitForProcessExit(int pid); in waitForProcessExit() argument
91 private static native void destroyProcess(int pid); in destroyProcess() argument
107 @android.compat.annotation.UnsupportedAppUsage private final int pid; field in UNIXProcess
110 pid = 0;
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DProcessTest.java41 String pid = Integer.toString(Libcore.os.getpid()); in test_55017() local
43 String[] psCommand = onDevice ? new String[] { "ps", "--ppid", pid } in test_55017()
44 : new String[] { "ps", "S", "--ppid", pid }; in test_55017()
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java320 public int getpgid(int pid) throws ErrnoException { return os.getpgid(pid); } in getpgid() argument
445 public void kill(int pid, int signal) throws ErrnoException { os.kill(pid, signal); } in kill() argument
755 public void setpgid(int pid, int pgid) throws ErrnoException { os.setpgid(pid, pgid); } in setpgid() argument
941 …public int waitpid(int pid, Int32Ref status, int options) throws ErrnoException { return os.waitpi… in waitpid() argument
DOs.java259 public int getpgid(int pid) throws ErrnoException; in getpgid() argument
384 public void kill(int pid, int signal) throws ErrnoException; in kill() argument
616 public void setpgid(int pid, int pgid) throws ErrnoException; in setpgid() argument
765 public int waitpid(int pid, Int32Ref status, int options) throws ErrnoException; in waitpid() argument
DLinux.java93 public native int getpgid(int pid); in getpgid() argument
118 public native void kill(int pid, int signal) throws ErrnoException; in kill() argument
246 public native void setpgid(int pid, int pgid) throws ErrnoException; in setpgid() argument
281 public native int waitpid(int pid, Int32Ref status, int options) throws ErrnoException; in waitpid() argument
/libcore/ojluni/src/main/native/
DUNIXProcess_md.c329 jint pid) in UNIXProcess_waitForProcessExit() argument
336 while (waitpid(pid, &status, 0) < 0) { in UNIXProcess_waitForProcessExit()
989 UNIXProcess_destroyProcess(JNIEnv *env, jobject junk, jint pid) in UNIXProcess_destroyProcess() argument
991 kill(pid, SIGTERM); in UNIXProcess_destroyProcess()
/libcore/ojluni/src/main/java/java/util/
DXMLUtils.java189 public InputSource resolveEntity(String pid, String sid) in resolveEntity() argument
/libcore/luni/src/test/java/libcore/java/lang/
DProcessBuilderTest.java89 int pid = getChildProcessPid(process); in testRedirectErrorStream_outputAndErrorAreMerged() local
90 String path = "/proc/" + pid + "/fd/"; in testRedirectErrorStream_outputAndErrorAreMerged()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp550 return env->NewObject(JniConstants::GetStructUcredClass(env), ctor, u.pid, u.uid, u.gid); in makeStructUcred()
906 c_header->pid = env->GetIntField(java_header, pid_fid); in ReadStructCapUserHeader()
1468 static jint Linux_getpgid(JNIEnv* env, jobject, jint pid) { in Linux_getpgid() argument
1469 return throwIfMinusOne(env, "getpgid", TEMP_FAILURE_RETRY(getpgid(pid))); in Linux_getpgid()
1827 static void Linux_kill(JNIEnv* env, jobject, jint pid, jint sig) { in Linux_kill() argument
1828 throwIfMinusOne(env, "kill", TEMP_FAILURE_RETRY(kill(pid, sig))); in Linux_kill()
2427 static void Linux_setpgid(JNIEnv* env, jobject, jint pid, int pgid) { in Linux_setpgid() argument
2428 throwIfMinusOne(env, "setpgid", TEMP_FAILURE_RETRY(setpgid(pid, pgid))); in Linux_setpgid()
2716 static jint Linux_waitpid(JNIEnv* env, jobject, jint pid, jobject javaStatus, jint options) { in Linux_waitpid() argument
2718 int rc = throwIfMinusOne(env, "waitpid", TEMP_FAILURE_RETRY(waitpid(pid, &status, options))); in Linux_waitpid()
/libcore/ojluni/src/main/java/java/util/prefs/
DXmlSupport.java453 public InputSource resolveEntity(String pid, String sid) in resolveEntity() argument
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java193 assertEquals(Os.getpid(), credentials.pid); in checkUnixDomainSocket()