/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/logging/logd/ |
D | CommandListener.cpp | 69 static int LogIdCommand(SocketClient* cli, int argc, char** argv, F&& function) { in LogIdCommand() argument 71 if (argc < 2) { in LogIdCommand() 87 int CommandListener::ClearCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand() argument 93 return LogIdCommand(cli, argc, argv, [&](log_id_t id) { in runCommand() 99 static int LogSizeCommand(SocketClient* cli, int argc, char** argv, F&& size_function) { in LogSizeCommand() argument 100 return LogIdCommand(cli, argc, argv, [&](log_id_t log_id) { in LogSizeCommand() 105 int CommandListener::GetBufSizeCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand() argument 106 return LogSizeCommand(cli, argc, argv, [this](log_id_t id) { return buf()->GetSize(id); }); in runCommand() 109 int CommandListener::GetBufSizeReadableCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand() argument 110 return LogSizeCommand(cli, argc, argv, in runCommand() [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/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/fs_mgr/tools/ |
D | dmctl.cpp | 70 TargetParser(int argc, char** argv) : arg_index_(0), argc_(argc), argv_(argv) {} in TargetParser() argument 209 static bool parse_table_args(DmTable* table, int argc, char** argv) { in parse_table_args() argument 212 while (arg_index < argc && argv[arg_index][0] == '-') { in parse_table_args() 223 TargetParser parser(argc - arg_index, argv + arg_index); in parse_table_args() 238 static int DmCreateCmdHandler(int argc, char** argv) { in DmCreateCmdHandler() argument 239 if (argc < 1) { in DmCreateCmdHandler() 246 int ret = parse_table_args(&table, argc, argv); in DmCreateCmdHandler() 260 static int DmDeleteCmdHandler(int argc, char** argv) { in DmDeleteCmdHandler() argument 261 if (argc < 1) { in DmDeleteCmdHandler() 276 static int DmReplaceCmdHandler(int argc, char** argv) { in DmReplaceCmdHandler() argument [all …]
|
/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 | 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()
|
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 92 int HandleFailure(int argc, char** argv) { in HandleFailure() argument 101 int HandleBadPath(int argc, char** argv) { in HandleBadPath() argument 127 int FirmwareTestChildMain(int argc, char** argv) { in FirmwareTestChildMain() argument 128 if (argc < 3) { in FirmwareTestChildMain() 134 return android::init::testname(argc, argv); \ in FirmwareTestChildMain()
|
/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/logging/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/extras/bootctl/ |
D | bootctl.cpp | 163 int argc, char* argv[]) { in do_set_snapshot_merge_status() argument 164 if (argc != 3) { in do_set_snapshot_merge_status() 165 usage(stderr, bootVersion, argc, argv); in do_set_snapshot_merge_status() 172 usage(stderr, bootVersion, argc, argv); in do_set_snapshot_merge_status() 220 static uint32_t parse_slot(BootCtlVersion bootVersion, int pos, int argc, char* argv[]) { in parse_slot() argument 221 if (pos > argc - 1) { in parse_slot() 222 usage(stderr, bootVersion, argc, argv); in parse_slot() 229 usage(stderr, bootVersion, argc, argv); in parse_slot() 236 int main(int argc, char* argv[]) { in main() argument 257 if (argc < 2) { in main() [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/iorap/src/prefetcher/ |
D | main_client.cc | 48 int MainClient(int argc, char** argv) { in MainClient() argument 61 LOG(VERBOSE) << "argparse: argc=" << argc; in MainClient() 63 for (int arg = 1; arg < argc; ++arg) { in MainClient() 65 bool has_arg_next = (arg+1)<argc; in MainClient() 100 LOG(VERBOSE) << "argparse: argc=" << argc; in MainClient() 102 for (int arg = 1; arg < argc; ++arg) { in MainClient() 156 int main(int argc, char** argv) { in main() argument 157 return ::iorap::prefetcher::MainClient(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/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/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/nfc/src/fuzzers/ |
D | fuzz_cmn.cc | 13 int main(int argc, char* argv[]) { in main() argument 17 if (argc >= 2) { in main() 21 if (argc >= 3) { in main() 27 if (0 != LLVMFuzzerInitialize(&argc, &argv)) { in main()
|
/system/teeui/test/example_config/ |
D | test_main.cpp | 21 int main(int argc, char** argv) { in main() argument 22 ::testing::InitGoogleTest(&argc, argv); in main() 23 teeui::test::initRenderTest(argc, argv); in main()
|
/system/bt/gd/ |
D | benchmark.cc | 19 int main(int argc, char** argv) { in main() argument 20 ::benchmark::Initialize(&argc, argv); in main() 21 if (::benchmark::ReportUnrecognizedArguments(argc, argv)) { in main()
|