/frameworks/native/cmds/lshal/libprocpartition/ |
H A D | procpartition.cpp | 49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content, 82 const auto& cmdline = getCmdline(pid); local 83 if (cmdline == "system_server") { 86 if (cmdline.empty() || cmdline.front() != '/') { 89 return getPartitionFromRealpath(cmdline);
|
/frameworks/native/libs/dumputils/ |
H A D | dump_utils.cpp | 25 // This matches the /proc/pid/exe link instead of /proc/pid/cmdline. 107 std::string cmdline; local 108 if (!android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), 109 &cmdline)) { 113 return (cmdline.find(kZygotePrefix) == 0);
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
H A D | DeviceUtils.java | 65 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { argument 66 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); 72 public static String doShellReturnString(IDevice device, String cmdline, long timeout, argument 75 doShell(device, cmdline, rec, timeout, unit); 82 public static void doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, argument 85 device.executeShellCommand(cmdline, receiver, timeout, unit);
|
/frameworks/base/core/proto/android/os/ |
H A D | procrank.proto | 61 optional string cmdline = 10;
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.cpp | 278 char cmdline[255]; local 284 memset(cmdline, 0, sizeof(cmdline)); 286 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/cmdline", pid); 288 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2)); 290 if (cmdline[0]) { 291 helper(pid, cmdline, arg); 296 // if no cmdline, a kernel thread has comm 299 TEMP_FAILURE_RETRY(read(fd, cmdline 317 for_each_pid_helper(int pid, const char *cmdline, void *arg) argument 331 for_each_tid_helper(int pid, const char *cmdline, void *arg) argument [all...] |
H A D | DumpstateUtil.cpp | 374 std::string cmdline; local 385 android::base::ReadFileToString("/proc/" + std::string(ps->d_name) + "/cmdline", &cmdline); 386 if (cmdline.find(ps_name) == std::string::npos) {
|
H A D | dumpstate.cpp | 2082 /* read /proc/cmdline before dropping root */ 2083 FILE *cmdline = fopen("/proc/cmdline", "re"); local 2084 if (cmdline) { 2085 fgets(cmdline_buf, sizeof(cmdline_buf), cmdline); 2086 fclose(cmdline);
|
/frameworks/base/core/jni/ |
H A D | android_util_Process.cpp | 216 char cmdline[32]; local 219 strcpy(cmdline, "unknown"); 221 sprintf(proc_path, "/proc/%d/cmdline", pid); 224 int rc = read(fd, cmdline, sizeof(cmdline)-1); 225 cmdline[rc] = 0; 230 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline); 232 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline); 1158 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
|
/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 486 // Set the default size of cmdline hashtable 628 static bool setAppCmdlineProperty(char* cmdline) argument 631 char* start = cmdline;
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | TelephonyManager.java | 1666 * The contents of the /proc/cmdline file 1670 String cmdline = ""; 1673 is = new FileInputStream("/proc/cmdline"); 1677 cmdline = new String(buffer, 0, count); 1680 Rlog.d(TAG, "No /proc/cmdline exception=" + e); 1689 Rlog.d(TAG, "/proc/cmdline=" + cmdline); 1690 return cmdline;
|