/system/core/fs_mgr/ |
D | fs_mgr_boot_config.cpp | 29 …:vector<std::pair<std::string, std::string>> fs_mgr_parse_boot_config(const std::string& cmdline) { in fs_mgr_parse_boot_config() argument 37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_boot_config() 38 (cmdline[found] == quote)) { in fs_mgr_parse_boot_config() 40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_boot_config() 44 auto source = cmdline.substr(base, found - base); in fs_mgr_parse_boot_config() 56 if (found == cmdline.npos) break; in fs_mgr_parse_boot_config() 63 bool fs_mgr_get_boot_config_from_kernel(const std::string& cmdline, const std::string& android_key, in fs_mgr_get_boot_config_from_kernel() argument 68 for (const auto& [key, value] : fs_mgr_parse_boot_config(cmdline)) { in fs_mgr_get_boot_config_from_kernel() 82 std::string cmdline; in fs_mgr_get_boot_config_from_kernel_cmdline() local 83 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) return false; in fs_mgr_get_boot_config_from_kernel_cmdline() [all …]
|
D | fs_mgr_priv_boot_config.h | 25 …::vector<std::pair<std::string, std::string>> fs_mgr_parse_boot_config(const std::string& cmdline); 27 bool fs_mgr_get_boot_config_from_kernel(const std::string& cmdline, const std::string& key,
|
/system/core/init/ |
D | reboot_utils.cpp | 38 std::string cmdline; in SetFatalRebootTarget() local 39 android::base::ReadFileToString("/proc/cmdline", &cmdline); in SetFatalRebootTarget() 40 cmdline = android::base::Trim(cmdline); in SetFatalRebootTarget() 43 auto start_pos = cmdline.find(kRebootTargetString); in SetFatalRebootTarget() 49 auto end_pos = cmdline.find(' ', start_pos); in SetFatalRebootTarget() 53 init_fatal_reboot_target = cmdline.substr(start_pos, size); in SetFatalRebootTarget()
|
D | bootchart.cpp | 118 std::string cmdline; in log_processes() local 119 android::base::ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline); in log_processes() 120 const char* full_name = cmdline.c_str(); // So we stop at the first NUL. in log_processes() 125 if (!cmdline.empty()) { in log_processes()
|
D | first_stage_init.cpp | 95 std::string cmdline; in ForceNormalBoot() local 96 android::base::ReadFileToString("/proc/cmdline", &cmdline); in ForceNormalBoot() 97 return cmdline.find("androidboot.force_normal_boot=1") != std::string::npos; in ForceNormalBoot()
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 37 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline) { in bootimg_set_cmdline() argument 38 if (cmdline.size() >= sizeof(h->cmdline)) die("command line too large: %zu", cmdline.size()); in bootimg_set_cmdline() 39 strcpy(reinterpret_cast<char*>(h->cmdline), cmdline.c_str()); in bootimg_set_cmdline()
|
D | bootimg_utils.h | 41 void bootimg_set_cmdline(boot_img_hdr_v2* h, const std::string& cmdline);
|
/system/core/libcutils/ |
D | trace-dev.inc | 62 static bool atrace_is_cmdline_match(const char* cmdline) 72 if (strcmp(value, "*") == 0 || strcmp(value, cmdline) == 0) { 88 FILE * file = fopen("/proc/self/cmdline", "re"); 90 char cmdline[4096]; 91 if (fgets(cmdline, sizeof(cmdline), file)) { 92 result = atrace_is_cmdline_match(cmdline); 94 ALOGE("Error reading cmdline: %s (%d)", strerror(errno), errno); 98 ALOGE("Error opening /proc/self/cmdline: %s (%d)", strerror(errno),
|
/system/core/libmemtrack/ |
D | memtrack_test.cpp | 70 std::string cmdline; in main() local 72 getprocname(pid, &cmdline); in main() 90 cmdline.c_str()); in main()
|
/system/core/logd/ |
D | auditctl.cpp | 24 static void usage(const char* cmdline) { in usage() argument 25 fprintf(stderr, "Usage: %s [-r rate]\n", cmdline); in usage()
|
/system/core/libmeminfo/tools/ |
D | librank.cpp | 86 std::string cmdline; in ProcessRecord() local 87 if (!::android::base::ReadFileToString(fname, &cmdline)) { in ProcessRecord() 96 cmdline_ = cmdline.c_str(); in ProcessRecord() 107 const std::string& cmdline() const { return cmdline_; } in cmdline() function 346 printf(" %s [%d]\n", p.cmdline().c_str(), p.pid()); in main()
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | shell.te | 36 # cmdline utils. 43 # Allow shell binaries to exec the perfetto cmdline util and have that
|
/system/core/mkbootimg/ |
D | unpack_bootimg.py | 63 cmdline = unpack('512s', args.boot_img.read(512)) 64 print('command line args: %s' % cmdline)
|
/system/core/fastboot/device/ |
D | utility.cpp | 195 std::string cmdline; in GetDeviceLockStatus() local 197 if (!android::base::ReadFileToString("/proc/cmdline", &cmdline)) { in GetDeviceLockStatus() 200 return cmdline.find("androidboot.verifiedbootstate=orange") == std::string::npos; in GetDeviceLockStatus()
|
/system/libufdt/tests/ |
D | verifyDTBO.sh | 31 overlay_idx=$(adb shell cat /proc/cmdline | grep -o "androidboot.dtbo_idx=[^ ]*" | cut -d "=" -f 2)
|
/system/sepolicy/private/ |
D | traceur_app.te | 15 # To exec the perfetto cmdline client and pass it the trace config on
|
D | shell.te | 36 # cmdline utils. 43 # Allow shell binaries to exec the perfetto cmdline util and have that
|
D | statsd.te | 8 # Allow to exec the perfetto cmdline client and pass it the trace config on
|
D | heapprofd.te | 24 # Necessary for /proc/[pid]/cmdline access & sending signals. 31 # When scanning /proc/[pid]/cmdline to find matching processes for by-name
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | traceur_app.te | 15 # To exec the perfetto cmdline client and pass it the trace config on
|
D | shell.te | 36 # cmdline utils. 43 # Allow shell binaries to exec the perfetto cmdline util and have that
|
D | statsd.te | 8 # Allow to exec the perfetto cmdline client and pass it the trace config on
|
D | heapprofd.te | 24 # Necessary for /proc/[pid]/cmdline access & sending signals. 31 # When scanning /proc/[pid]/cmdline to find matching processes for by-name
|
/system/core/mkbootimg/include/bootimg/ |
D | bootimg.h | 68 uint8_t cmdline[BOOT_ARGS_SIZE]; member
|
/system/extras/tests/workloads/ |
D | pwrtest.sh | 186 cmdline="$1" 187 echo Running $cmdline 188 (adb shell "cd $devdir && nohup $cmdline > test.out") &
|