Home
last modified time | relevance | path

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

12345678910>>...12

/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/google/pixel/misc_writer/
Dmisc_writer_main.cpp67 int main(int argc, char** argv) { in main() argument
108 while ((arg = getopt_long(argc, argv, "", OPTIONS, &option_index)) != -1) { in main()
111 return Usage(argv[0]); in main()
119 return Usage(argv[0]); in main()
126 return Usage(argv[0]); in main()
130 return Usage(argv[0]); in main()
134 return Usage(argv[0]); in main()
142 return Usage(argv[0]); in main()
146 return Usage(argv[0]); in main()
150 return Usage(argv[0]); in main()
[all …]
/hardware/broadcom/wlan/bcmdhd/halutil/
Dhalutil.cpp1974 static void setupTwtRequest(char *argv[]) { in setupTwtRequest() argument
1984 argv++; in setupTwtRequest()
1986 argv++; in setupTwtRequest()
1988 argv++; in setupTwtRequest()
1990 while ((param = *argv++) != NULL) { in setupTwtRequest()
1991 val_p = *argv++; in setupTwtRequest()
2048 static void TeardownTwt(char *argv[]) { in TeardownTwt() argument
2058 argv++; in TeardownTwt()
2060 argv++; in TeardownTwt()
2062 argv++; in TeardownTwt()
[all …]
/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/google/gfxstream/third-party/astc-encoder/Source/
Dastcenccli_toplevel.cpp412 char **argv, in parse_commandline_options() argument
424 if (!strcmp(modes[i].opt, argv[1])) in parse_commandline_options()
434 printf("ERROR: Unrecognized operation '%s'\n", argv[1]); in parse_commandline_options()
456 char **argv, in init_astcenc_config() argument
490 int dimensions = sscanf(argv[4], "%ux%u%nx%u%n", in init_astcenc_config()
493 if (!(((dimensions == 2) && !argv[4][cnt2D]) || ((dimensions == 3) && !argv[4][cnt3D]))) in init_astcenc_config()
495 printf("ERROR: Block size '%s' is invalid\n", argv[4]); in init_astcenc_config()
506 if (!strcmp(argv[5], "-fastest")) in init_astcenc_config()
510 else if (!strcmp(argv[5], "-fast")) in init_astcenc_config()
514 else if (!strcmp(argv[5], "-medium")) in init_astcenc_config()
[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/aidl/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/gfxstream/codegen/generic-apigen/
Dgetopt.c13 int getopt(int argc, char* const argv[], const char* ostr) { in getopt() argument
20 const char* arg = argv[optind]; in getopt()
46 (void)fprintf(stderr, "%s: illegal option -- %c\n", argv[0], optopt); in getopt()
62 optarg = (char *)argv[optind++]; in getopt()
72 argv[0], optopt); in getopt()
Dmain.cpp41 int main(int argc, char *argv[]) in main() argument
50 while((c = getopt(argc, argv, "TE:D:i:hW:")) != -1) { in main()
59 usage(argv[0]); in main()
75 usage(argv[0]); in main()
81 fprintf(stderr, "Usage: %s [options] <base name> \n", argv[0]); in main()
93 std::string baseName = std::string(argv[optind]); in main()
/hardware/google/aemu/base/include/aemu/base/
DProcessControl.h35 std::vector<std::string> argv; member
41 std::vector<std::string> makeArgvStrings(int argc, const char** argv);
43 ProcessLaunchParameters createLaunchParametersForCurrentProcess(int argc, const char** argv);
44 std::string createEscapedLaunchString(int argc, const char* const* argv);
59 void initializeEmulatorRestartParameters(int argc, char** argv, const char* paramFolder);
/hardware/interfaces/automotive/can/1.0/tools/
Dcanhalctrl.cpp119 static int main(int argc, char* argv[]) { in main() argument
128 std::string cmd(argv[0]); in main()
129 argv++; in main()
139 const std::string busName(argv[0]); in main()
140 const std::string typeStr(argv[1]); in main()
141 const std::string interface(argv[2]); in main()
151 if (argc == 4 && !android::base::ParseUint(argv[3], &bitrate)) { in main()
165 return down(argv[0]); in main()
175 int main(int argc, char* argv[]) { in main() argument
177 return ::android::hardware::automotive::can::main(--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/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-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/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/google/gfxstream/third-party/fuchsia/magma/
Dregen.py70 if (len(sys.argv) != 4):
74 with open(sys.argv[1], 'r') as file:
75 with open(sys.argv[2], 'w') as dest_in:
76 with open(sys.argv[3], 'w') as dest_attrib:
/hardware/google/gfxstream/common/detector/shaders/
Dgenerate_shader_embed.cpp39 int main(int argc, char** argv) { in main() argument
45 const std::string input_glsl_filename = argv[1]; in main()
46 const std::string input_spirv_filename = argv[2]; in main()
47 const std::string input_spirv_varname = argv[3]; in main()
48 const std::string output_embed_filename = argv[4]; 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()
/hardware/google/pixel/power-libperfmgr/libperfmgr/tools/
DConfigVerifier.cc104 int main(int argc, char* argv[]) { in main() argument
105 android::base::InitLogging(argv, android::base::StdioLogger); in main()
128 int c = getopt_long(argc, argv, "c:ei:d:hv", opts, &option_index); in main()
150 printUsage(argv[0]); in main()
160 printUsage(argv[0]); in main()
/hardware/google/camera/common/hal/tests/
Dgoogle_camera_hal_tests.cc19 int main(int argc, char** argv) { in main() argument
20 ::testing::InitGoogleTest(&argc, argv); in main()

12345678910>>...12