Home
last modified time | relevance | path

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

/frameworks/native/cmds/dumpstate/
Dutils.cpp306 char cmdline[255]; in __for_each_pid() local
312 memset(cmdline, 0, sizeof(cmdline)); in __for_each_pid()
316 TEMP_FAILURE_RETRY(read(fd, cmdline, sizeof(cmdline) - 2)); in __for_each_pid()
318 if (cmdline[0]) { in __for_each_pid()
319 helper(pid, cmdline, arg); in __for_each_pid()
327 TEMP_FAILURE_RETRY(read(fd, cmdline + 1, sizeof(cmdline) - 4)); in __for_each_pid()
329 if (cmdline[1]) { in __for_each_pid()
330 cmdline[0] = '['; in __for_each_pid()
331 size_t len = strcspn(cmdline, "\f\b\r\n"); in __for_each_pid()
332 cmdline[len] = ']'; in __for_each_pid()
[all …]
DDumpstateUtil.cpp358 std::string cmdline; in GetPidByName() local
369 android::base::ReadFileToString("/proc/" + std::string(ps->d_name) + "/cmdline", &cmdline); in GetPidByName()
370 if (cmdline.find(ps_name) == std::string::npos) { in GetPidByName()
Ddumpstate.cpp1756 FILE *cmdline = fopen("/proc/cmdline", "re"); in main() local
1757 if (cmdline) { in main()
1758 fgets(cmdline_buf, sizeof(cmdline_buf), cmdline); in main()
1759 fclose(cmdline); in main()
/frameworks/base/tools/preload2/src/com/android/preload/
DDeviceUtils.java65 public static void doShell(IDevice device, String cmdline, long timeout, TimeUnit unit) { in doShell() argument
66 doShell(device, cmdline, new NullShellOutputReceiver(), timeout, unit); in doShell()
72 public static String doShellReturnString(IDevice device, String cmdline, long timeout, in doShellReturnString() argument
75 doShell(device, cmdline, rec, timeout, unit); in doShellReturnString()
82 public static void doShell(IDevice device, String cmdline, IShellOutputReceiver receiver, in doShell() argument
85 device.executeShellCommand(cmdline, receiver, timeout, unit); in doShell()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp216 char cmdline[32]; in android_os_Process_setProcessGroup() local
219 strcpy(cmdline, "unknown"); in android_os_Process_setProcessGroup()
224 int rc = read(fd, cmdline, sizeof(cmdline)-1); in android_os_Process_setProcessGroup()
225 cmdline[rc] = 0; in android_os_Process_setProcessGroup()
230 ALOGD("setProcessGroup: vvv pid %d (%s)", pid, cmdline); in android_os_Process_setProcessGroup()
232 ALOGD("setProcessGroup: ^^^ pid %d (%s)", pid, cmdline); in android_os_Process_setProcessGroup()
/frameworks/native/cmds/lshal/
DListCommand.cpp52 std::string cmdline; in getCmdline() local
56 ifs >> cmdline; in getCmdline()
57 return cmdline; in getCmdline()
/frameworks/native/cmds/flatland/
DREADME.txt37 cmdline: flatland
/frameworks/native/cmds/atrace/
Datrace.cpp603 static bool setAppCmdlineProperty(char* cmdline) in setAppCmdlineProperty() argument
606 char* start = cmdline; in setAppCmdlineProperty()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java1423 String cmdline = ""; in getProcCmdLine() local
1430 cmdline = new String(buffer, 0, count); in getProcCmdLine()
1442 Rlog.d(TAG, "/proc/cmdline=" + cmdline); in getProcCmdLine()
1443 return cmdline; in getProcCmdLine()
/frameworks/compile/mclinker/tools/mcld/
DOptions.td428 HelpText<"Only search lib dirs explicitly specified on cmdline">;