Home
last modified time | relevance | path

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

12

/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/services/Car/evs/manager/
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/apps/Launcher3/
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)
Dfill_screens.py80 def main(argv): argument
81 if len(argv) == 1:
90 main(sys.argv)
/packages/services/Car/evs/app/
Devs_app.cpp69 int main(int argc, char** argv) in main() argument
78 if (strcmp(argv[i], "--test") == 0) { in main()
80 } else if (strcmp(argv[i], "--hw") == 0) { in main()
82 } else if (strcmp(argv[i], "--mock") == 0) { 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/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()
Deventgatherer.h30 EventGatherer(int argc, const char** argv);
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp83 int main(int argc, char* argv[]) in main() argument
104 usage(argv[0]); in main()
109 string progname(argv[0]); in main()
119 cmdline << argv[c] << " "; in main()
/packages/services/Car/tools/
Dupdate-obd2-sensors.py283 if len(sys.argv) != 4:
288 load(sys.argv[1])
289 generateJava(sys.argv[2])
290 generatePython(sys.argv[3])
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_parser.cpp92 const ArgumentsAndOptions ArgumentsParser::parseArguments(const int argc, char **argv, in parseArguments() argument
111 const std::string arg = argv[i]; in parseArguments()
131 optionValue = argv[i]; in parseArguments()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dperftest.cpp17 int main(int argc, char **argv) { in main() argument
22 ::testing::InitGoogleTest(&argc, argv); in main()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dunittest.cpp18 int main(int argc, char **argv) { in main() argument
19 ::testing::InitGoogleTest(&argc, argv); in main()
/packages/inputmethods/LatinIME/native/dicttoolkit/src/command_executors/
Dmakedict_executor.cpp26 /* static */ int MakedictExecutor::run(const int argc, char **argv) { in run() argument
28 getArgumentsParser().parseArguments(argc, argv, true /* printErrorMessages */); in run()
Dhelp_executor.h29 static int run(const int argc, char **argv);
Ddiff_executor.h30 static int run(const int argc, char **argv);
Dinfo_executor.h30 static int run(const int argc, char **argv);
Dheader_executor.h30 static int run(const int argc, char **argv);
Dmakedict_executor.h30 static int run(const int argc, char **argv);
Dhelp_executor.cpp34 /* static */ int HelpExecutor::run(const int argc, char **argv) { in run() argument
Dheader_executor.cpp26 /* static */ int HeaderExecutor::run(const int argc, char **argv) { in run() argument
Ddiff_executor.cpp26 /* static */ int DiffExecutor::run(const int argc, char **argv) { in run() argument
Dinfo_executor.cpp29 /* static */ int InfoExecutor::run(const int argc, char **argv) { in run() argument
/packages/apps/Car/Dialer/tests/
Dcheckresources.py5 process = subprocess.Popen(['lint', '--check', 'UnusedResources', sys.argv[1]],

12