Home
last modified time | relevance | path

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

1234567

/hardware/broadcom/wlan/bcmdhd/dhdutil/
Ddhdu_linux.c441 main(int argc, char **argv) in main() argument
454 av0 = argv[0]; in main()
456 argv++; in main()
458 if ((status = dhd_option(&argv, &ifname, &help)) == CMD_OPT) { in main()
463 if (*argv && strncmp (*argv, "--wince", strlen(*argv)) == 0) { in main()
465 argv++; in main()
469 if (*argv && strncmp (*argv, "--socket", strlen(*argv)) == 0) { in main()
470 argv++; in main()
474 if (!(*argv)) { in main()
479 if (!dhd_atoip(*argv, &temp)) { in main()
[all …]
Ddhdu.c120 static int dhd_do_msglevel(void *dhd, cmd_t *cmd, char **argv, dbg_msg_t *dbg_msg);
369 char **argv = *pargv; in dhd_option() local
373 while (*argv) { in dhd_option()
375 if (!strcmp(*argv, "-a") || !strcmp(*argv, "-i")) { in dhd_option()
376 char *opt = *argv++; in dhd_option()
377 ifname = *argv; in dhd_option()
387 else if (!strcmp(*argv, "-d")) in dhd_option()
389 else if (!strcmp(*argv, "-u")) in dhd_option()
391 else if (!strcmp(*argv, "-x")) in dhd_option()
395 else if (!strcmp(*argv, "-h")) in dhd_option()
[all …]
Dminiopt.c57 miniopt(miniopt_t *t, char **argv) in miniopt() argument
71 if (*argv == NULL) { in miniopt()
76 p = *argv++; in miniopt()
81 if (*argv == NULL) { in miniopt()
85 p = *argv++; in miniopt()
129 if (*argv == NULL) { in miniopt()
135 valstr = *argv; in miniopt()
136 argv++; in miniopt()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dodsp_api_test.c120 int main(int argc, char *argv[]) { in main() argument
139 while ((c = getopt_long (argc, argv, "s:g:e:d:t:", long_options, NULL)) != -1) { in main()
149 param_id = strtol(argv[optind], NULL, 0); in main()
151 param_val = strtol(argv[optind], NULL, 0); in main()
153 inst_id = strtol(argv[optind], NULL, 0); in main()
155 block_id = strtol(argv[optind], NULL, 0); in main()
169 param_id = strtol(argv[optind], NULL, 0); in main()
171 inst_id = strtol(argv[optind], NULL, 0); in main()
173 block_id = strtol(argv[optind], NULL, 0); in main()
188 inst_id = strtol(argv[optind], NULL, 0); in main()
[all …]
Dtunnel_test.c82 int main(int argc, char *argv[]) { argument
113 …t 1> <tnl mode> <encode fmt> <Source End pt 2> <tnl mode> <encode fmt>... <output path>", argv[0]);
117 instance = strtol(argv[1], NULL, 0);
120 num_of_tunnels = strtol(argv[2], NULL, 0);
123 timer_signal = strtof(argv[3], NULL);
137 if (strncmp(argv[i], "-f", sizeof(char)*2) == 0) {
139 snprintf(filename_str_format, sizeof(filename_str_format), "%s", argv[i+1]);
140 …pecify a output file name %s, argc i = %d, argv[%d] = %s", filename_str_format, i, i+1, argv[i+1]);
144 if (strncmp(argv[i], "-p", sizeof(char)*2) == 0) {
146 snprintf(filepath, sizeof(filepath), "%s", argv[i+1]);
[all …]
/hardware/ril/rild/
Drild.c59 (const struct RIL_Env *, int, char **), RIL_SOCKET_TYPE socketType, int argc, char **argv);
87 static int make_argv(char * args, char ** argv) { in make_argv() argument
94 argv[count] = tok; in make_argv()
101 int main(int argc, char **argv) { in main() argument
130 if (0 == strcmp(argv[i], "-l") && (argc - i > 1)) { in main()
131 rilLibPath = argv[i + 1]; in main()
133 } else if (0 == strcmp(argv[i], "--")) { in main()
137 } else if (0 == strcmp(argv[i], "-c") && (argc - i > 1)) { in main()
138 clientId = argv[i+1]; in main()
141 usage(argv[0]); in main()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Damix.c51 int main(int argc, char **argv) in main() argument
71 ctl = get_ctl(mixer, argv[1]); in main()
73 argv += 2; in main()
81 if (isdigit(argv[0][0])) in main()
82 r = mixer_ctl_set_value(ctl, argc, argv); in main()
84 r = mixer_ctl_select(ctl, argv[0]); in main()
/hardware/google/pixel/perfstatsd/
Dmain.cpp37 void help(char **argv) { in help() argument
38 std::string usage = argv[0]; in help()
114 int main(int argc, char **argv) { in main() argument
115 android::base::InitLogging(argv, android::base::LogdLogger(android::base::SYSTEM)); in main()
118 while ((c = getopt(argc, argv, "sdo:h")) != -1) { in main()
127 std::string key(argv[2]); in main()
128 std::string value(argv[3]); in main()
136 help(argv); in main()
/hardware/interfaces/wifi/1.3/default/tests/
Dmain.cpp22 int main(int argc, char** argv) { in main() argument
23 ::testing::InitGoogleTest(&argc, argv); in main()
24 ::testing::InitGoogleMock(&argc, argv); in main()
26 android::base::InitLogging(argv, android::base::StderrLogger); in main()
/hardware/google/pixel/misc_writer/
Dmisc_writer_main.cpp52 int main(int argc, char** argv) { in main() argument
74 while ((arg = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) { in main()
77 return Usage(argv[0]); in main()
85 return Usage(argv[0]); in main()
91 return Usage(argv[0]); in main()
101 return Usage(argv[0]); in main()
/hardware/interfaces/wifi/1.0/vts/functional/
DVtsHalWifiV1_0TargetTest.cpp40 int main(int argc, char** argv) { in main() argument
42 ::testing::InitGoogleTest(&argc, argv); in main()
43 gEnv->init(&argc, argv); in main()
44 int status = gEnv->initFromOptions(argc, argv); in main()
Dwifi_hidl_test_utils.h81 int initFromOptions(int argc, char** argv) { in initFromOptions() argument
87 while ((c = getopt_long(argc, argv, "NS", options, NULL)) >= 0) { in initFromOptions()
96 usage(argv[0], argv[optind]); in initFromOptions()
102 usage(argv[0], argv[optind]); in initFromOptions()
/hardware/interfaces/wifi/1.1/vts/functional/
DVtsHalWifiV1_1TargetTest.cpp40 int main(int argc, char** argv) { in main() argument
42 ::testing::InitGoogleTest(&argc, argv); in main()
43 gEnv->init(&argc, argv); in main()
44 int status = gEnv->initFromOptions(argc, argv); in main()
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dmain.c725 int main(int argc, char *argv[]) in main() argument
761 if(strcmp(argv[i], "-h") == 0 in main()
762 || strcmp(argv[i], "--help") == 0) { in main()
763 print_help(argv[0]); in main()
766 } else if(strcmp(argv[i], "-o") == 0 in main()
767 || strcmp(argv[i], "--output") == 0) { in main()
773 argv[i], output_filename_datetimestamp(end)); in main()
781 } else if(strcmp(argv[i], "-i") == 0 in main()
782 || strcmp(argv[i], "--input") == 0) { in main()
784 strncpy(input_filename, argv[i], sizeof(input_filename)); in main()
[all …]
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
Dvenc_test.cpp1641 void parseArgs(int argc, char** argv) in parseArgs() argument
1646 usage(argv[0]); in parseArgs()
1648 else if (strcmp("PREVIEW", argv[1]) == 0 || in parseArgs()
1649 strcmp("preview", argv[1]) == 0) in parseArgs()
1654 usage(argv[0]); in parseArgs()
1657 else if (strcmp("DISPLAY", argv[1]) == 0 || in parseArgs()
1658 strcmp("display", argv[1]) == 0) in parseArgs()
1663 usage(argv[0]); in parseArgs()
1665 m_sProfile.cInFileName = argv[5]; in parseArgs()
1668 else if (strcmp("LIVE", argv[1]) == 0 || in parseArgs()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DHidParserExample.cpp106 int main(int argc, char* argv[]) { in main() argument
111 printUsage(argv[0]); in main()
115 if (strcmp(argv[1], "parse") == 0) { in main()
117 } else if (strcmp(argv[1], "parse_filter") == 0) { in main()
119 } else if (strcmp(argv[1], "digest") == 0) { in main()
123 printUsage(argv[0]); in main()
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/test/
Dvenc_test.cpp1669 void parseArgs(int argc, char** argv) in parseArgs() argument
1674 usage(argv[0]); in parseArgs()
1675 } else if (strcmp("PREVIEW", argv[1]) == 0 || in parseArgs()
1676 strcmp("preview", argv[1]) == 0) { in parseArgs()
1680 usage(argv[0]); in parseArgs()
1682 } else if (strcmp("DISPLAY", argv[1]) == 0 || in parseArgs()
1683 strcmp("display", argv[1]) == 0) { in parseArgs()
1687 usage(argv[0]); in parseArgs()
1690 m_sProfile.cInFileName = argv[5]; in parseArgs()
1692 } else if (strcmp("LIVE", argv[1]) == 0 || in parseArgs()
[all …]
/hardware/interfaces/wifi/supplicant/1.1/vts/functional/
DVtsHalWifiSupplicantV1_1TargetTest.cpp48 int main(int argc, char** argv) { in main() argument
50 ::testing::InitGoogleTest(&argc, argv); in main()
51 gEnv->init(&argc, argv); in main()
52 int status = gEnv->initFromOptions(argc, argv); in main()
/hardware/interfaces/wifi/supplicant/1.2/vts/functional/
DVtsHalWifiSupplicantV1_2TargetTest.cpp50 int main(int argc, char** argv) { in main() argument
52 ::testing::InitGoogleTest(&argc, argv); in main()
53 gEnv->init(&argc, argv); in main()
54 int status = gEnv->initFromOptions(argc, argv); in main()
/hardware/interfaces/gnss/1.1/vts/functional/
DVtsHalGnssV1_1TargetTest.cpp22 int main(int argc, char** argv) { in main() argument
24 ::testing::InitGoogleTest(&argc, argv); in main()
25 GnssHidlEnvironment::Instance()->init(&argc, argv); in main()
/hardware/interfaces/gnss/2.0/vts/functional/
DVtsHalGnssV2_0TargetTest.cpp22 int main(int argc, char** argv) { in main() argument
24 ::testing::InitGoogleTest(&argc, argv); in main()
25 GnssHidlEnvironment::Instance()->init(&argc, argv); in main()
/hardware/interfaces/wifi/supplicant/1.0/vts/functional/
Dsupplicant_hidl_test_utils.h100 int initFromOptions(int argc, char** argv) { in initFromOptions() argument
105 while ((c = getopt_long(argc, argv, "P", options, NULL)) >= 0) { in initFromOptions()
111 usage(argv[0], argv[optind]); in initFromOptions()
117 usage(argv[0], argv[optind]); in initFromOptions()
/hardware/interfaces/wifi/1.2/vts/functional/
DVtsHalWifiV1_2TargetTest.cpp41 int main(int argc, char** argv) { in main() argument
43 ::testing::InitGoogleTest(&argc, argv); in main()
44 gEnv->init(&argc, argv); in main()
/hardware/google/apf/
Dapf_run.c183 int main(int argc, char* argv[]) { in main() argument
195 while ((opt = getopt_long_only(argc, argv, "h", long_options, NULL)) != -1) { in main()
203 "for more information\n", basename(argv[0])); in main()
208 "for more information\n", basename(argv[0])); in main()
217 "for more information\n", basename(argv[0])); in main()
223 "for more information\n", basename(argv[0])); in main()
249 print_usage(argv[0]); in main()
253 print_usage(argv[0]); in main()
/hardware/interfaces/light/utils/
Dmain.cpp38 int parseArgs(int argc, char* argv[], unsigned int* color) { in parseArgs() argument
47 *color = strtoul(argv[1], &col_ptr, 0); in parseArgs()
49 error("Failed to convert " + std::string(argv[1]) + " to number"); in parseArgs()
99 int main(int argc, char* argv[]) { in main() argument
101 int result = parseArgs(argc, argv, &inputColor); in main()

1234567