Searched refs:cmdline (Results 1 - 10 of 10) sorted by relevance

/frameworks/native/cmds/lshal/libprocpartition/
H A Dprocpartition.cpp49 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 Ddump_utils.cpp25 // 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 DDeviceUtils.java65 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 Dprocrank.proto61 optional string cmdline = 10;
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp278 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 DDumpstateUtil.cpp374 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 Ddumpstate.cpp2082 /* 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 Dandroid_util_Process.cpp216 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 Datrace.cpp486 // 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 DTelephonyManager.java1666 * 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;

Completed in 118 milliseconds