Home
last modified time | relevance | path

Searched refs:argv (Results 1 – 25 of 82) sorted by relevance

1234

/packages/modules/adb/client/
Dcommandline.cpp679 static int adb_shell(int argc, const char** argv) { in adb_shell() argument
694 argv[0] = "adb shell"; // So getopt(3) error messages start "adb shell". in adb_shell()
697 __argv = const_cast<char**>(argv); in adb_shell()
701 while ((opt = getopt(argc, const_cast<char**>(argv), "+e:ntTx")) != -1) { in adb_shell()
777 command = android::base::Join(std::vector<const char*>(argv + optind, argv + argc), ' '); in adb_shell()
785 static int adb_abb(int argc, const char** argv) { in adb_abb() argument
804 std::vector<const char*> args(argv + optind, argv + argc); in adb_abb()
814 static int adb_shell_noinput(int argc, const char** argv) { in adb_shell_noinput() argument
820 return adb_shell(argc, argv); in adb_shell_noinput()
1021 static int ppp(int argc, const char** argv) { in ppp() argument
[all …]
Dadb_install.cpp83 static int pm_command(int argc, const char** argv) { in pm_command() argument
87 cmd += " " + escape_arg(*argv++); in pm_command()
93 static int uninstall_app_streamed(int argc, const char** argv) { in uninstall_app_streamed() argument
98 if (strcmp(*argv, "-k") == 0) { in uninstall_app_streamed()
109 cmd += " " + escape_arg(*argv++); in uninstall_app_streamed()
115 static int uninstall_app_legacy(int argc, const char** argv) { in uninstall_app_legacy() argument
119 if (!strcmp(argv[i], "-k")) { in uninstall_app_legacy()
133 return pm_command(argc, argv); in uninstall_app_legacy()
136 int uninstall_app(int argc, const char** argv) { in uninstall_app() argument
138 return uninstall_app_legacy(argc, argv); in uninstall_app()
[all …]
Dadb_install.h21 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);
Dbugreport.cpp201 int Bugreport::DoIt(int argc, const char** argv) { in DoIt() argument
243 } else if (!strcmp(argv[1], "--stream")) { in DoIt()
252 if (directory_exists(argv[1])) { in DoIt()
253 dest_dir = argv[1]; in DoIt()
255 dest_file = argv[1]; in DoIt()
Dmain.cpp240 int main(int argc, char* argv[], char* envp[]) { in main() argument
241 __adb_argv = const_cast<const char**>(argv); in main()
243 adb_trace_init(argv); in main()
244 return adb_commandline(argc - 1, const_cast<const char**>(argv + 1)); in main()
/packages/modules/common/tools/
Dgen_sdkinfo.py5 argv = sys.argv[1:] variable
6 if not len(argv) == 4 or sorted([argv[0], argv[2]]) != ['-o', '-v']:
10 for i in range(len(argv)):
11 if sys.argv[i] == '-o':
12 filename = sys.argv[i+1]
13 if sys.argv[i] == '-v':
14 version = int(sys.argv[i+1])
/packages/services/Car/cpp/evs/apps/default/
Devs_app.cpp125 int main(int argc, char** argv) in main() argument
141 if (strcmp(argv[i], "--test") == 0) { in main()
143 } else if (strcmp(argv[i], "--hw") == 0) { in main()
145 } else if (strcmp(argv[i], "--mock") == 0) { in main()
147 } else if (strcmp(argv[i], "--help") == 0) { in main()
149 } else if (strcmp(argv[i], "--display") == 0) { in main()
150 displayId = std::stoi(argv[++i]); in main()
151 } else if (strcmp(argv[i], "--extmem") == 0) { in main()
158 if (!convertStringToFormat(argv[i + 1], &extMemoryFormat)) { in main()
159 LOG(WARNING) << "Color format string " << argv[i + 1] in main()
[all …]
/packages/services/Car/cpp/watchdog/testclient/src/
Dmain.cpp35 Result<CommandParam> checkArgument(int argc, char** argv) { in checkArgument() argument
40 if (strcmp(argv[1], "critical") && strcmp(argv[1], "moderate") && strcmp(argv[1], "normal")) { in checkArgument()
43 param.timeout = argv[1]; in checkArgument()
44 std::string strValue = argv[2]; in checkArgument()
48 strValue = argv[3]; in checkArgument()
55 if (!strcmp(argv[i], "--forcedkill")) { in checkArgument()
57 } else if (!strcmp(argv[i], "--verbose")) { in checkArgument()
74 int main(int argc, char** argv) { in main() argument
81 auto param = checkArgument(argc, argv); in main()
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
Darguments_parser_test.cpp71 int initArgv(char *mutableCommandLine, char **argv) { in initArgv() argument
74 argv[0] = mutableCommandLine; in initArgv()
79 argv[argc] = mutableCommandLine + i; in initArgv()
86 argv[argc] = nullptr; in initArgv()
104 char *argv[128] = {}; in TEST() local
105 const int argc = initArgv(kMutableCommandLine, argv); in TEST()
108 argc, argv, false /* printErrorMessages */); in TEST()
116 char *argv[128] = {}; in TEST() local
117 const int argc = initArgv(kArgumentBuffer, argv); in TEST()
120 argc, argv, false /* printErrorMessages */); in TEST()
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/
Ddict_toolkit_main.cpp22 void usage(int argc, char **argv) { in usage() argument
23 fprintf(stderr, "Usage: %s <command> [arguments]\n", argc > 0 ? argv[0] : "dicttoolkit"); in usage()
26 int main(int argc, char **argv) { in main() argument
28 usage(argc, argv); in main()
32 const CommandType commandType = CommandUtils::getCommandType(argv[1]); in main()
34 CommandUtils::printCommandUnknownMessage(argv[0], argv[1]); in main()
38 return executor(argc - 1, argv + 1); in main()
/packages/modules/NeuralNetworks/runtime/test/
DTestMain.cpp103 void checkArgs(int argc, char** argv, int nextArg) { in checkArgs() argument
105 std::cerr << "Unexpected argument: " << argv[nextArg] << std::endl; in checkArgs()
112 int main(int argc, char** argv) { in main() argument
113 testing::InitGoogleTest(&argc, argv); in main()
116 if ((argc > 1) && std::isdigit(argv[1][0])) { in main()
117 allowedPasses = std::stoull(argv[1]); in main()
118 checkArgs(argc, argv, 2); in main()
120 checkArgs(argc, argv, 1); in main()
DSupportLibraryTestMain.cpp24 int main(int argc, char** argv) { in main() argument
25 testing::InitGoogleTest(&argc, argv); in main()
30 SUPPORT_LIBRARY_NAME = argv[1]; in main()
/packages/modules/DnsResolver/
DDnsProxyListener.cpp82 void logArguments(int argc, char** argv) { in logArguments() argument
85 LOG(VERBOSE) << __func__ << ": argv[" << i << "]=" << (argv[i] ? argv[i] : "null"); in logArguments()
809 int DnsProxyListener::GetAddrInfoCmd::runCommand(SocketClient* cli, int argc, char** argv) { in runCommand() argument
810 logArguments(argc, argv); in runCommand()
821 const std::string name = argv[1]; in runCommand()
822 const std::string service = argv[2]; in runCommand()
823 int ai_flags = strtol(argv[3], nullptr, 10); in runCommand()
824 int ai_family = strtol(argv[4], nullptr, 10); in runCommand()
825 int ai_socktype = strtol(argv[5], nullptr, 10); in runCommand()
826 int ai_protocol = strtol(argv[6], nullptr, 10); in runCommand()
[all …]
DDnsProxyListener.h62 int runCommand(SocketClient* c, int argc, char** argv) override;
89 int runCommand(SocketClient* c, int argc, char** argv) override;
115 int runCommand(SocketClient* c, int argc, char** argv) override;
142 int runCommand(SocketClient* c, int argc, char** argv) override;
165 int runCommand(SocketClient* c, int argc, char** argv) override;
/packages/services/Car/cpp/evs/manager/1.0/
Dservice.cpp63 int main(int argc, char** argv) { in main() argument
70 if (strcmp(argv[i], "--mock") == 0) { in main()
72 } else if (strcmp(argv[i], "--target") == 0) { in main()
77 evsHardwareServiceName = argv[i]; in main()
79 } else if (strcmp(argv[i], "--help") == 0) { in main()
82 printf("Ignoring unrecognized command line arg '%s'\n", argv[i]); in main()
/packages/services/Car/cpp/evs/manager/1.1/
Dservice.cpp64 int main(int argc, char** argv) { in main() argument
75 if (strcmp(argv[i], "--mock") == 0) { in main()
77 } else if (strcmp(argv[i], "--target") == 0) { in main()
82 evsHardwareServiceName = argv[i]; in main()
84 } else if (strcmp(argv[i], "--help") == 0) { in main()
87 printf("Ignoring unrecognized command line arg '%s'\n", argv[i]); in main()
/packages/modules/Virtualization/tests/init/
Dmain.cc103 int main(int argc, const char* argv[]) { in main() argument
107 LOG(INFO) << "Command line: " << Join(std::vector(argv, argv + argc), " "); in main()
120 LOG(INFO) << "Executing test binary " << argv[1] << "..."; in main()
121 execv(argv[1], (char**)(argv + 1)); in main()
/packages/apps/Launcher3/tools/
Dprint_db.py300 def main(argv): argument
301 if len(argv) == 1 or (len(argv) == 2 and updateDeviceClassConstants(argv[1])):
306 elif len(argv) == 2 or (len(argv) == 3 and updateDeviceClassConstants(argv[2])):
308 process_file(argv[1])
313 main(sys.argv)
/packages/modules/Virtualization/tests/
Dvsock_guest.cc31 int main(int argc, const char *argv[]) { in main() argument
35 if (argc != 4 || !ParseUint(argv[1], &cid) || !ParseUint(argv[2], &port)) { in main()
36 LOG(ERROR) << "Usage: " << argv[0] << " <cid> <port> <msg>"; in main()
39 std::string msg(argv[3]); in main()
/packages/services/Car/tools/keventreader/server/
Dmain.cpp47 int main(int argc, const char** argv) { in main() argument
48 if (argc < 2 || argv[1] == nullptr || argv[1][0] == 0) { in main()
52 EventGatherer gatherer(argc, argv); in main()
Deventgatherer.cpp22 EventGatherer::EventGatherer(int argc, const char** argv) { in EventGatherer() argument
24 auto dev = std::make_unique<InputSource>(argv[i]); in EventGatherer()
26 ALOGD("opened input source file %s", argv[i]); in EventGatherer()
30 ALOGW("failed to open input source file %s", argv[i]); in EventGatherer()
/packages/modules/SdkExtensions/gen_sdk/
Dgen_sdk.py40 def ParseArgs(argv): argument
67 return parser.parse_args(argv)
131 def main(argv): argument
132 args = ParseArgs(argv)
153 main(sys.argv[1:])
/packages/modules/adb/daemon/
Dabb.cpp52 std::vector<std::string_view> argv; in parseCmdArgs() local
62 argv.emplace_back(args.substr(base, found - base)); in parseCmdArgs()
67 return argv; in parseCmdArgs()
84 int main(int argc, char* const argv[]) { in main() argument
/packages/apps/Launcher3/
Dfill_screens.py80 def main(argv): argument
81 if len(argv) == 1:
90 main(sys.argv)
/packages/modules/Gki/
Dextract_img_from_apex.py64 def main(argv): argument
74 argv, __doc__,
91 main(sys.argv[1:])

1234