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

/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/native/cmds/dumpstate/
H A Dutils.cpp56 // This matches the /proc/pid/exe link instead of /proc/pid/cmdline.
138 char cmdline[255]; local
144 memset(cmdline, 0, sizeof(cmdline));
146 snprintf(cmdpath, sizeof(cmdpath), "/proc/%d/cmdline", pid);
148 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2));
150 if (cmdline[0]) {
151 helper(pid, cmdline, arg);
156 // if no cmdline,
177 for_each_pid_helper(int pid, const char *cmdline, void *arg) argument
187 for_each_tid_helper(int pid, const char *cmdline, void *arg) argument
[all...]
H A Ddumpstate.cpp189 std::string cmdline; local
201 + std::string(ps->d_name) + "/cmdline", &cmdline);
202 if (cmdline.find(ps_name) == std::string::npos) {
1529 /* read /proc/cmdline before dropping root */
1530 FILE *cmdline = fopen("/proc/cmdline", "re"); local
1531 if (cmdline) {
1532 fgets(cmdline_buf, sizeof(cmdline_buf), cmdline);
1533 fclose(cmdline);
[all...]
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp110 snprintf(procPath, 128, "/proc/%ld/cmdline", pid);
113 static char cmdline[256]; local
114 char *str = fgets(cmdline, sizeof(cmdline) - 1, file);
117 return cmdline;
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp200 char cmdline[32]; local
203 strcpy(cmdline, "unknown");
205 sprintf(proc_path, "/proc/%d/cmdline", pid);
208 int rc = read(fd, cmdline, sizeof(cmdline)-1);
209 cmdline[rc] = 0;
214 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline);
216 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline);
1151 snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
/frameworks/native/cmds/atrace/
H A Datrace.cpp536 static bool setAppCmdlineProperty(const char* cmdline) argument
540 const char* start = cmdline;
/frameworks/base/telephony/java/android/telephony/
H A DTelephonyManager.java1242 * The contents of the /proc/cmdline file
1246 String cmdline = "";
1249 is = new FileInputStream("/proc/cmdline");
1253 cmdline = new String(buffer, 0, count);
1256 Rlog.d(TAG, "No /proc/cmdline exception=" + e);
1265 Rlog.d(TAG, "/proc/cmdline=" + cmdline);
1266 return cmdline;

Completed in 2444 milliseconds