/system/vold/ |
Process.cpp | 66 void Process::getProcessName(int pid, char *buffer, size_t max) { 68 snprintf(buffer, max, "/proc/%d/cmdline", pid); 79 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint) { 80 return checkFileDescriptorSymLinks(pid, mountPoint, NULL, 0); 83 int Process::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { 88 snprintf(path, sizeof(path), "/proc/%d/fd", pid); 124 int Process::checkFileMaps(int pid, const char *mountPoint) { 125 return checkFileMaps(pid, mountPoint, NULL, 0); 128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { 132 snprintf(buffer, sizeof(buffer), "/proc/%d/maps", pid); 191 int pid = getPid(de->d_name); local [all...] |
/tools/loganalysis/src/com/android/loganalysis/item/ |
ProcrankItem.java | 37 public static final String PID = "PID"; 73 * @param pid The PID from the output 80 public void addProcrankLine(int pid, String processName, int vss, int rss, int pss, int uss) { 81 mProcrankLines.put(pid, new ProcrankValue(processName, vss, rss, pss, uss)); 92 * Get the process name for a given PID. 94 public String getProcessName(int pid) { 95 if (!mProcrankLines.containsKey(pid)) { 99 return mProcrankLines.get(pid).mProcessName [all...] |
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/ |
Obd2CommandTest.java | 49 void checkLiveFrameIntCommand(int pid, String responseBytes, int expectedResponse) { 50 String[] commandToSend = new String[] {String.format("01%02X\r", pid)}; 53 new String[] {String.format("41 %02X %s", pid, responseBytes), OBD2_PROMPT}; 65 Obd2Command.getLiveFrameCommand(Obd2Command.getIntegerCommand(pid)); 71 assertTrue("live frame command " + pid + " caused an exception: " + e, false); 77 void checkLiveFrameFloatCommand(int pid, String responseBytes, float expectedResponse) { 78 String[] commandToSend = new String[] {String.format("01%02X\r", pid)}; 81 new String[] {String.format("41 %02X %s", pid, responseBytes), OBD2_PROMPT}; 93 Obd2Command.getLiveFrameCommand(Obd2Command.getFloatCommand(pid)); 99 assertTrue("live frame command " + pid + " caused an exception: " + e, false) [all...] |
/bionic/libc/kernel/uapi/linux/ |
if_pppol2tp.h | 27 __kernel_pid_t pid; member in struct:pppol2tp_addr 36 __kernel_pid_t pid; member in struct:pppol2tpin6_addr 45 __kernel_pid_t pid; member in struct:pppol2tpv3_addr 54 __kernel_pid_t pid; member in struct:pppol2tpv3in6_addr
|
/cts/tests/tests/security/jni/ |
android_security_cts_SeccompTest.cpp | 36 int pid = fork(); local 37 if (pid == 0) { 43 int ret = waitpid(pid, &status, 0); 44 if (ret != pid) {
|
/development/ndk/platforms/android-21/include/linux/ |
if_pppol2tp.h | 24 __kernel_pid_t pid; member in struct:pppol2tp_addr 32 __kernel_pid_t pid; member in struct:pppol2tpin6_addr 41 __kernel_pid_t pid; member in struct:pppol2tpv3_addr 50 __kernel_pid_t pid; member in struct:pppol2tpv3in6_addr
|
/external/autotest/client/site_tests/security_ptraceRestrictions/src/ |
sleeper.c | 31 long pid; local 42 pid = strtol(argv[1], NULL, 10); 43 if (pid != -2) { 44 if (prctl(PR_SET_PTRACER, pid, 0, 0, 0)) {
|
/external/elfutils/tests/ |
deleted.c | 38 pid_t pid = fork (); local 39 assert (pid != -1); 40 if (pid == 0) 56 printf ("%d\n", pid);
|
/external/kernel-headers/original/uapi/linux/ |
if_pppol2tp.h | 27 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tp_addr 41 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpin6_addr 55 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3_addr 66 __kernel_pid_t pid; /* pid that owns the fd. member in struct:pppol2tpv3in6_addr
|
/external/libcap/progs/ |
getpcaps.c | 17 "usage: getcaps <pid> [<pid> ...]\n\n" 35 int pid; local 38 pid = atoi(argv[0]); 40 cap_d = cap_get_pid(pid); 43 " (%s)\n", pid, strerror(errno));
|
/external/linux-kselftest/tools/testing/selftests/powerpc/pmu/ebb/ |
fork_cleanup_test.c | 45 pid_t pid; local 65 pid = fork(); 66 if (pid == 0) 70 FAIL_IF(wait_for_child(pid));
|
/external/ltp/lib/ |
tst_process_state.c | 33 pid_t pid, const char state) 37 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid); 50 int tst_process_state_wait2(pid_t pid, const char state) 54 snprintf(proc_path, sizeof(proc_path), "/proc/%i/stat", pid);
|
/external/ltp/testcases/kernel/controllers/cgroup_fj/ |
cgroup_fj_proc.c | 45 pid_t pid; local 67 pid = fork(); 68 if (pid == -1) 70 else if (pid == 0) {
|
/external/ltp/testcases/kernel/input/ |
input02.c | 46 int pid; local 53 pid = tst_fork(); 57 switch (pid) { 72 SAFE_WAITPID(NULL, pid, NULL, 0);
|
input04.c | 44 int pid; local 51 pid = tst_fork(); 53 switch (pid) { 69 SAFE_WAITPID(NULL, pid, NULL, 0);
|
/external/ltp/testcases/kernel/ipc/ipc_stress/ |
signal_test_02.c | 105 pid_t pid = getpid(); /* Process ID (of this process) */ local 138 kill(pid, SIGILL); 139 kill(pid, SIGALRM); 140 kill(pid, SIGIOT); 179 kill(pid, SIGILL); 180 kill(pid, SIGALRM); 181 kill(pid, SIGIOT); 182 kill(pid, SIGFPE); 183 kill(pid, SIGTERM); 184 kill(pid, SIGINT) [all...] |
/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
ht_utils.h | 17 int get_current_cpu(pid_t pid);
|
/external/ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ |
ht_utils.h | 17 int get_current_cpu(pid_t pid);
|
/external/ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/ |
ht_utils.h | 19 int get_current_cpu(pid_t pid);
|
/external/ltp/testcases/kernel/syscalls/getppid/ |
getppid02.c | 59 pid_t pid, ppid; local 69 pid = FORK_OR_VFORK(); 70 if (pid == -1) 73 if (pid == 0) { 80 printf("return value and parent's pid "
|
/external/ltp/testcases/kernel/syscalls/getsid/ |
getsid01.c | 76 pid_t pid, c_pid, c_sid; local 101 if ((pid = FORK_OR_VFORK()) == -1) { 105 if (pid == 0) { /* child */ 133 waitpid(pid, NULL, 0);
|
/external/ltp/testcases/kernel/syscalls/vhangup/ |
vhangup01.c | 43 pid_t pid; local 53 if ((pid = FORK_OR_VFORK()) < 0) { 55 } else if (pid > 0) { 56 tst_record_childstatus(NULL, pid);
|
vhangup02.c | 62 pid_t pid, pid1; local 75 if ((pid = FORK_OR_VFORK()) < 0) { 77 } else if (pid > 0) { /* parent */ 78 waitpid(pid, &status, 0);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
1-1.c | 61 pid_t pid; local 75 pid = fork(); 77 if (pid < 0) { 81 if (pid == 0) {
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
1-1.c | 23 static int pid; variable 27 pid = getpid(); 58 if (pid != ppid) { 59 printf("Test FAILED: Pids are different %i != %i\n", pid, ppid);
|