Searched refs:cmdline (Results 1 - 7 of 7) sorted by last modified time

/frameworks/native/cmds/atrace/
H A Datrace.cpp535 static bool setAppCmdlineProperty(const char* cmdline) argument
539 const char* start = cmdline;
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp1219 /* read /proc/cmdline before dropping root */
1220 FILE *cmdline = fopen("/proc/cmdline", "re"); local
1221 if (cmdline) {
1222 fgets(cmdline_buf, sizeof(cmdline_buf), cmdline);
1223 fclose(cmdline);
H A Dutils.cpp54 // This matches the /proc/pid/exe link instead of /proc/pid/cmdline.
136 char cmdline[255]; local
142 memset(cmdline, 0, sizeof(cmdline));
144 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/cmdline", pid);
146 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2));
148 if (cmdline[0]) {
149 helper(pid, cmdline, arg);
154 // if no cmdline,
175 for_each_pid_helper(int pid, const char *cmdline, void *arg) argument
185 for_each_tid_helper(int pid, const char *cmdline, void *arg) argument
[all...]
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp104 snprintf(procPath, 128, "/proc/%ld/cmdline", pid);
107 static char cmdline[256]; local
108 char *str = fgets(cmdline, sizeof(cmdline) - 1, file);
111 return cmdline;
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java1195 * The contents of the /proc/cmdline file
1199 String cmdline = "";
1202 is = new FileInputStream("/proc/cmdline");
1206 cmdline = new String(buffer, 0, count);
1209 Rlog.d(TAG, "No /proc/cmdline exception=" + e);
1218 Rlog.d(TAG, "/proc/cmdline=" + cmdline);
1219 return cmdline;
/frameworks/base/tools/preload2/src/com/android/preload/
H A DDeviceUtils.java48 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { argument
49 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit);
55 public static String doShellReturnString(IDevice device, String cmdline, long timeout, argument
58 doShell(device, cmdline, rec, timeout, unit);
65 public static void doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, argument
68 device.executeShellCommand(cmdline, receiver, timeout, unit);
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp198 char cmdline[32]; local
201 strcpy(cmdline, "unknown");
203 sprintf(proc_path, "/proc/%d/cmdline", pid);
206 int rc = read(fd, cmdline, sizeof(cmdline)-1);
207 cmdline[rc] = 0;
212 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
214 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
1132 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);

Completed in 190 milliseconds