/packages/modules/SdkExtensions/ |
D | gen_sdkinfo.py | 5 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/watchdog/testclient/src/ |
D | main.cpp | 35 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/ |
D | arguments_parser_test.cpp | 71 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/ |
D | dict_toolkit_main.cpp | 22 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/apps/default/ |
D | evs_app.cpp | 122 int main(int argc, char** argv) in main() argument 137 if (strcmp(argv[i], "--test") == 0) { in main() 139 } else if (strcmp(argv[i], "--hw") == 0) { in main() 141 } else if (strcmp(argv[i], "--mock") == 0) { in main() 143 } else if (strcmp(argv[i], "--help") == 0) { in main() 145 } else if (strcmp(argv[i], "--display") == 0) { in main() 146 displayId = std::stoi(argv[++i]); in main() 147 } else if (strcmp(argv[i], "--extmem") == 0) { in main() 154 if (!convertStringToFormat(argv[i + 1], &extMemoryFormat)) { in main() 155 LOG(WARNING) << "Color format string " << argv[i + 1] in main() [all …]
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 80 void logArguments(int argc, char** argv) { in logArguments() argument 83 LOG(VERBOSE) << __func__ << ": argv[" << i << "]=" << (argv[i] ? argv[i] : "null"); in logArguments() 793 int argc, char **argv) { in runCommand() argument 794 logArguments(argc, argv); in runCommand() 805 char* name = argv[1]; in runCommand() 812 char* service = argv[2]; in runCommand() 820 int ai_flags = strtol(argv[3], nullptr, 10); in runCommand() 821 int ai_family = strtol(argv[4], nullptr, 10); in runCommand() 822 int ai_socktype = strtol(argv[5], nullptr, 10); in runCommand() 823 int ai_protocol = strtol(argv[6], nullptr, 10); in runCommand() [all …]
|
D | DnsProxyListener.h | 45 int runCommand(SocketClient* c, int argc, char** argv) override; 74 int runCommand(SocketClient* c, int argc, char** argv) override; 101 int runCommand(SocketClient* c, int argc, char** argv) override; 129 int runCommand(SocketClient* c, int argc, char** argv) override; 153 int runCommand(SocketClient* c, int argc, char** argv) override;
|
/packages/services/Car/evs/manager/1.0/ |
D | service.cpp | 63 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/evs/manager/1.1/ |
D | service.cpp | 64 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/apps/Launcher3/tools/ |
D | print_db.py | 300 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/services/Car/tools/keventreader/server/ |
D | main.cpp | 47 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()
|
D | eventgatherer.cpp | 22 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/services/Car/surround_view/app/ |
D | sv_app.cpp | 181 int main(int argc, char** argv) { in main() argument 187 if (strcmp(argv[i], "--use2d") == 0) { in main() 189 } else if (strcmp(argv[i], "--use3d") == 0) { in main() 193 << argv[i]; in main()
|
/packages/apps/Launcher3/ |
D | fill_screens.py | 80 def main(argv): argument 81 if len(argv) == 1: 90 main(sys.argv)
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/ |
D | dbregtest.cpp | 83 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/ |
D | update-obd2-sensors.py | 283 if len(sys.argv) != 4: 288 load(sys.argv[1]) 289 generateJava(sys.argv[2]) 290 generatePython(sys.argv[3])
|
/packages/modules/DnsResolver/tests/testdata/ |
D | README.md | 32 resolv : logArguments: argv[0]=gethostbyname 33 resolv : logArguments: argv[1]=0 34 resolv : logArguments: argv[2]=www.google.com 35 resolv : logArguments: argv[3]=2
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | arguments_parser.cpp | 92 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/ |
D | perftest.cpp | 17 int main(int argc, char **argv) { in main() argument 22 ::testing::InitGoogleTest(&argc, argv); in main()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | unittest.cpp | 18 int main(int argc, char **argv) { in main() argument 19 ::testing::InitGoogleTest(&argc, argv); in main()
|
/packages/services/Car/computepipe/router/1.0/ |
D | service.cpp | 25 int main(int argc, char** argv) { in main() argument 26 auto status = gSvcInstance.parseArgs(argc - 1, &argv[1]); in main()
|
D | RouterSvc.cpp | 35 Error RouterSvc::parseArgs(int argc, char** argv) { in parseArgs() argument 37 (void)argv; in parseArgs()
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/command_executors/ |
D | makedict_executor.cpp | 26 /* static */ int MakedictExecutor::run(const int argc, char **argv) { in run() argument 28 getArgumentsParser().parseArguments(argc, argv, true /* printErrorMessages */); in run()
|
D | help_executor.h | 29 static int run(const int argc, char **argv);
|
/packages/modules/DnsResolver/tests/ |
D | pbtxt2pb_converter_host.cpp | 66 int main(int argc, char const* const* argv) { in main() argument 73 std::string arg = argv[i]; in main()
|