/system/bt/tools/hci/ |
D | main.c | 11 typedef int (*handler_t)(int argc, char** argv); 27 static int help(int argc, char** argv); 28 static int set_discoverable(int argc, char** argv); 29 static int set_name(int argc, char** argv); 30 static int set_pcm_loopback(int argc, char** argv); 31 static int set_sco_route(int argc, char** argv); 54 static int help(int argc, char** argv) { in help() argument 55 if (!argc) { in help() 70 static int set_discoverable(int argc, char** argv) { in set_discoverable() argument 71 if (argc != 1) { in set_discoverable() [all …]
|
/system/netd/server/ |
D | NdcDispatcher.cpp | 148 int NdcDispatcher::dispatchCommand(int argc, char** argv) { in dispatchCommand() argument 149 if (argc >= CMD_ARGS_MAX) { in dispatchCommand() 155 if (c->runCommand(&mNdc, argc, argv)) { in dispatchCommand() 167 int NdcDispatcher::InterfaceCmd::runCommand(NdcClient* cli, int argc, char** argv) const { in runCommand() argument 168 if (argc < 2) { in runCommand() 192 if (argc < 3) { in runCommand() 218 if (argc < 4) { in runCommand() 250 for (int i = index; i < argc; i++) { in runCommand() 295 if (argc != 4) { in runCommand() 312 if (argc != 4) { in runCommand() [all …]
|
D | NdcDispatcher.h | 52 virtual int runCommand(NdcClient* c, int argc, char** argv) const = 0; 74 int dispatchCommand(int argc, char** argv); 84 int runCommand(NdcClient* cli, int argc, char** argv) const; 91 int runCommand(NdcClient* cli, int argc, char** argv) const; 98 int runCommand(NdcClient* cli, int argc, char** argv) const; 105 int runCommand(NdcClient* cli, int argc, char** argv) const; 112 int runCommand(NdcClient* cli, int argc, char** argv) const; 124 int runCommand(NdcClient* cli, int argc, char** argv) const; 131 int runCommand(NdcClient* cli, int argc, char** argv) const; 144 int runCommand(NdcClient* cli, int argc, char** argv) const; [all …]
|
/system/core/toolbox/ |
D | start.cpp | 63 static int StartStop(int argc, char** argv, bool start) { in StartStop() argument 69 if (argc == 1) { in StartStop() 73 if (argc == 2 && argv[1] == "--help"s) { in StartStop() 82 for (int i = 1; i < argc; ++i) { in StartStop() 88 extern "C" int start_main(int argc, char** argv) { in start_main() argument 89 return StartStop(argc, argv, true); in start_main() 92 extern "C" int stop_main(int argc, char** argv) { in stop_main() argument 93 return StartStop(argc, argv, false); in stop_main()
|
D | toolbox.c | 28 int main(int argc, char** argv) { in main() argument 40 return tools[i].func(argc, argv); in main() 48 int toolbox_main(int argc, char** argv) { in toolbox_main() argument 50 if (argc > 1) { in toolbox_main() 51 return main(argc - 1, argv + 1); in toolbox_main()
|
/system/core/adb/client/ |
D | commandline.cpp | 678 static int adb_shell(int argc, const char** argv) { in adb_shell() argument 700 while ((opt = getopt(argc, const_cast<char**>(argv), "+e:ntTx")) != -1) { in adb_shell() 734 bool is_interactive = (optind == argc); in adb_shell() 774 if (optind < argc) { in adb_shell() 776 command = android::base::Join(std::vector<const char*>(argv + optind, argv + argc), ' '); in adb_shell() 784 static int adb_abb(int argc, const char** argv) { in adb_abb() argument 803 std::vector<const char*> args(argv + optind, argv + argc); in adb_abb() 813 static int adb_shell_noinput(int argc, const char** argv) { in adb_shell_noinput() argument 819 return adb_shell(argc, argv); in adb_shell_noinput() 1020 static int ppp(int argc, const char** argv) { in ppp() argument [all …]
|
D | adb_install.h | 21 int install_app(int argc, const char** argv); 22 int install_multiple_app(int argc, const char** argv); 23 int install_multi_package(int argc, const char** argv); 24 int uninstall_app(int argc, const char** argv);
|
/system/bt/main/ |
D | bte_init_cpp_logging.cc | 32 int argc = 1; in init_cpp_logging() local 36 argv[argc] = loggingV->c_str(); in init_cpp_logging() 37 argc++; in init_cpp_logging() 41 argv[argc] = loggingVModule->c_str(); in init_cpp_logging() 42 argc++; in init_cpp_logging() 46 base::CommandLine::Init(argc, argv); in init_cpp_logging()
|
/system/core/init/ |
D | main.cpp | 51 int main(int argc, char** argv) { in main() argument 58 return ueventd_main(argc, argv); in main() 61 if (argc > 1) { in main() 66 return SubcontextMain(argc, argv, &function_map); in main() 74 return SecondStageMain(argc, argv); in main() 78 return FirstStageMain(argc, argv); in main()
|
D | firmware_handler_test.cpp | 63 int HandleChange(int argc, char** argv) { in HandleChange() argument 81 int HandleAbort(int argc, char** argv) { in HandleAbort() argument 90 int HandleFailure(int argc, char** argv) { in HandleFailure() argument 99 int HandleBadPath(int argc, char** argv) { in HandleBadPath() argument 108 int FirmwareTestChildMain(int argc, char** argv) { in FirmwareTestChildMain() argument 109 if (argc < 3) { in FirmwareTestChildMain() 115 return android::init::testname(argc, argv); \ in FirmwareTestChildMain()
|
D | subcontext_benchmark.cpp | 62 int main(int argc, char** argv) { in main() argument 63 if (argc > 1 && !strcmp(basename(argv[1]), "subcontext")) { in main() 65 return android::init::SubcontextMain(argc, argv, &test_function_map); in main() 68 ::benchmark::Initialize(&argc, argv); in main() 69 if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; in main()
|
/system/libufdt/utils/src/ |
D | mkdtimg.c | 24 extern int handle_command_help(int argc, char *argv[], int arg_start); 26 extern int handle_command_dump(int argc, char *argv[], int arg_start); 28 extern int handle_command_create(int argc, char *argv[], int arg_start); 30 extern int handle_command_cfg_create(int argc, char *argv[], int arg_start); 36 int (*handler)(int argc, char *argv[], int arg_start); 92 int handle_command_help(int argc, char *argv[], int arg_start) { in handle_command_help() argument 95 if (argc - arg_start < 1) { in handle_command_help() 116 int main(int argc, char *argv[]) { in main() argument 117 if (argc <= 1) { in main() 129 return info->handler(argc, argv, 2); in main()
|
D | mkdtimg_create.c | 26 static int calculate_args_entry_count(int argc, char *argv[], int arg_start) { in calculate_args_entry_count() argument 30 for (i = arg_start; i < argc; i++) { in calculate_args_entry_count() 56 static int output_img_with_args(FILE *img_fp, int argc, char *argv[], int arg_start) { in output_img_with_args() argument 57 int entry_count = calculate_args_entry_count(argc, argv, arg_start); in output_img_with_args() 62 for (i = arg_start; i < argc; i++) { in output_img_with_args() 118 int handle_command_create(int argc, char *argv[], int arg_start) { in handle_command_create() argument 122 if (argc - arg_start < 1) { in handle_command_create() 137 ret = output_img_with_args(img_fp, argc, argv, arg_start + 1); in handle_command_create()
|
/system/core/fs_mgr/tools/ |
D | dmctl.cpp | 68 TargetParser(int argc, char** argv) : arg_index_(0), argc_(argc), argv_(argv) {} in TargetParser() argument 202 static bool parse_table_args(DmTable* table, int argc, char** argv) { in parse_table_args() argument 205 while (arg_index < argc && argv[arg_index][0] == '-') { in parse_table_args() 216 TargetParser parser(argc - arg_index, argv + arg_index); in parse_table_args() 231 static int DmCreateCmdHandler(int argc, char** argv) { in DmCreateCmdHandler() argument 232 if (argc < 1) { in DmCreateCmdHandler() 239 int ret = parse_table_args(&table, argc, argv); in DmCreateCmdHandler() 252 static int DmDeleteCmdHandler(int argc, char** argv) { in DmDeleteCmdHandler() argument 253 if (argc < 1) { in DmDeleteCmdHandler() 268 static int DmReplaceCmdHandler(int argc, char** argv) { in DmReplaceCmdHandler() argument [all …]
|
/system/security/keystore/ |
D | keystore_cli.cpp | 53 if (argc < 3) { \ 72 if (argc < 3) { \ 91 if (argc < 3) { \ 96 if (argc > 3) { \ 115 if (argc < 3) { \ 121 if (argc > 3) { \ 140 if (argc < 3) { \ 162 if (argc < 3) { \ 195 int main(int argc, char* argv[]) in main() argument 197 if (argc < 2) { in main() [all …]
|
/system/extras/bootctl/ |
D | bootctl.cpp | 170 int argc, char *argv[]) { in do_set_snapshot_merge_status() argument 171 if (argc != 3) { in do_set_snapshot_merge_status() 172 usage(stderr, bootVersion, argc, argv); in do_set_snapshot_merge_status() 179 usage(stderr, bootVersion, argc, argv); in do_set_snapshot_merge_status() 228 static uint32_t parse_slot(BootCtlVersion bootVersion, int pos, int argc, char *argv[]) in parse_slot() argument 230 if (pos > argc - 1) { in parse_slot() 231 usage(stderr, bootVersion, argc, argv); in parse_slot() 238 usage(stderr, bootVersion, argc, argv); in parse_slot() 245 int main(int argc, char *argv[]) in main() argument 261 if (argc < 2) { in main() [all …]
|
/system/core/logwrapper/ |
D | logwrapper.cpp | 49 int main(int argc, char* argv[]) { in main() argument 57 while ((ch = getopt(argc, argv, "adk")) != -1) { in main() 74 argc -= optind; in main() 77 if (argc < 1) { in main() 81 rc = logwrap_fork_execvp(argc, &argv[0], &status, true, log_target, abbreviated, nullptr); in main()
|
/system/core/logd/ |
D | CommandListener.cpp | 66 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 74 if (argc < 2) { in runCommand() 89 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 92 if (argc < 2) { in runCommand() 110 int CommandListener::SetBufSizeCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 118 if (argc < 3) { in runCommand() 139 int CommandListener::GetBufSizeUsedCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 142 if (argc < 2) { in runCommand() 182 int CommandListener::GetStatisticsCmd::runCommand(SocketClient* cli, int argc, in runCommand() argument 192 if (argc > 1) { in runCommand() [all …]
|
/system/tools/sysprop/ |
D | JavaMain.cpp | 48 Result<void> ParseArgs(int argc, char* argv[], Arguments* args) { in ParseArgs() argument 55 int opt = getopt_long_only(argc, argv, "", long_options, nullptr); in ParseArgs() 76 if (optind >= argc) { in ParseArgs() 80 if (optind + 1 < argc) { in ParseArgs() 92 int main(int argc, char* argv[]) { in main() argument 95 if (auto res = ParseArgs(argc, argv, &args); !res.ok()) { in main()
|
D | CppMain.cpp | 50 Result<Arguments> ParseArgs(int argc, char* argv[]) { in ParseArgs() argument 60 int opt = getopt_long_only(argc, argv, "", long_options, nullptr); in ParseArgs() 81 if (optind >= argc) { in ParseArgs() 85 if (optind + 1 < argc) { in ParseArgs() 101 int main(int argc, char* argv[]) { in main() argument 103 if (auto res = ParseArgs(argc, argv); res.ok()) { in main()
|
/system/core/libsparse/ |
D | simg2img.cpp | 36 int main(int argc, char* argv[]) { in main() argument 42 if (argc < 3) { in main() 47 out = open(argv[argc - 1], O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0664); in main() 49 fprintf(stderr, "Cannot open output file %s\n", argv[argc - 1]); in main() 53 for (i = 1; i < argc - 1; i++) { in main()
|
/system/extras/simpleperf/ |
D | gtest_main.cpp | 72 int main(int argc, char** argv) { in main() argument 76 return RunSimpleperfCmd(argc, argv) ? 0 : 1; in main() 82 for (int i = 1; i < argc; ++i) { in main() 83 if (strcmp(argv[i], "-t") == 0 && i + 1 < argc) { in main() 87 if (i + 1 < argc) { in main() 107 testing::InitGoogleTest(&argc, argv); in main()
|
/system/core/trusty/utils/trusty-ut-ctrl/ |
D | ut-ctrl.c | 60 static void parse_options(int argc, char** argv) { in parse_options() argument 65 c = getopt_long(argc, argv, _sopts, _lopts, &oidx); in parse_options() 88 if (optind < argc) { in parse_options() 138 int main(int argc, char** argv) { in main() argument 141 if (argc <= 1) { in main() 145 parse_options(argc, argv); in main()
|
/system/extras/partition_tools/ |
D | lpdump_host.cc | 17 int LpdumpMain(int argc, char* argv[]); 19 int main(int argc, char* argv[]) { in main() argument 20 return LpdumpMain(argc, argv); in main()
|
/system/tools/aidl/ |
D | options.cpp | 175 int argc = args.size(); in From() local 176 if (argc >= 1 && args.at(0) == "aidl-cpp") { in From() 179 const char* argv[argc + 1]; in From() 180 for (int i = 0; i < argc; i++) { in From() 183 argv[argc] = nullptr; in From() 185 return Options(argc, argv, lang); in From() 188 Options::Options(int argc, const char* const argv[], Options::Language default_lang) in Options() argument 219 const int c = getopt_long(argc, const_cast<char* const*>(argv), in Options() 359 if (argc - optind <= 0) { in Options() 365 if (argc - optind >= 1) { in Options() [all …]
|