Home
last modified time | relevance | path

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

12

/device/moto/shamu/dataservices/rmnetctl/cli/
Drmnetcli.c258 static int rmnet_api_call(int argc, char *argv[]) in rmnet_api_call() argument
263 if ((!argc) || (!*argv)) { in rmnet_api_call()
268 if (!strcmp(*argv, "help")) { in rmnet_api_call()
280 if (!strcmp(*argv, "assocnetdev")) { in rmnet_api_call()
282 argv[1], &error_number, RMNETCTL_DEVICE_ASSOCIATE); in rmnet_api_call()
283 } else if (!strcmp(*argv, "unassocnetdev")) { in rmnet_api_call()
285 argv[1], &error_number, RMNETCTL_DEVICE_UNASSOCIATE); in rmnet_api_call()
286 } else if (!strcmp(*argv, "getnetdevassoc")) { in rmnet_api_call()
289 argv[1], &register_status, &error_number); in rmnet_api_call()
292 } else if (!strcmp(*argv, "getledf")) { in rmnet_api_call()
[all …]
/device/lge/bullhead/dataservices/rmnetctl/cli/
Drmnetcli.c256 static int rmnet_api_call(int argc, char *argv[]) in rmnet_api_call() argument
261 if ((!argc) || (!*argv)) { in rmnet_api_call()
266 if (!strcmp(*argv, "help")) { in rmnet_api_call()
278 if (!strcmp(*argv, "assocnetdev")) { in rmnet_api_call()
280 argv[1], &error_number, RMNETCTL_DEVICE_ASSOCIATE); in rmnet_api_call()
281 } else if (!strcmp(*argv, "unassocnetdev")) { in rmnet_api_call()
283 argv[1], &error_number, RMNETCTL_DEVICE_UNASSOCIATE); in rmnet_api_call()
284 } else if (!strcmp(*argv, "getnetdevassoc")) { in rmnet_api_call()
287 argv[1], &register_status, &error_number); in rmnet_api_call()
290 } else if (!strcmp(*argv, "getledf")) { in rmnet_api_call()
[all …]
/device/huawei/angler/dataservices/rmnetctl/cli/
Drmnetcli.c256 static int rmnet_api_call(int argc, char *argv[]) in rmnet_api_call() argument
261 if ((!argc) || (!*argv)) { in rmnet_api_call()
266 if (!strcmp(*argv, "help")) { in rmnet_api_call()
278 if (!strcmp(*argv, "assocnetdev")) { in rmnet_api_call()
280 argv[1], &error_number, RMNETCTL_DEVICE_ASSOCIATE); in rmnet_api_call()
281 } else if (!strcmp(*argv, "unassocnetdev")) { in rmnet_api_call()
283 argv[1], &error_number, RMNETCTL_DEVICE_UNASSOCIATE); in rmnet_api_call()
284 } else if (!strcmp(*argv, "getnetdevassoc")) { in rmnet_api_call()
287 argv[1], &register_status, &error_number); in rmnet_api_call()
290 } else if (!strcmp(*argv, "getledf")) { in rmnet_api_call()
[all …]
/device/google/contexthub/util/sensortest/
Dsensortest.cpp93 bool parseArguments(int argc, char **argv) in parseArguments() argument
102 if (!strcmp(argv[currArgumentIndex], "-h")) { in parseArguments()
104 } else if (!strcmp(argv[currArgumentIndex], "-l")) { in parseArguments()
107 } else if (!strcmp(argv[currArgumentIndex], "-e")) { in parseArguments()
113 if ((sensorIndex = findSensorTypeInSensorList(atoi(argv[currArgumentIndex+1]))) < 0) { in parseArguments()
114 printf ("No sensor found with type \"%d\"\n", atoi(argv[currArgumentIndex+1])); in parseArguments()
118 existingSensorConfigIndex = findSensorTypeInConfigList(atoi(argv[currArgumentIndex+1])); in parseArguments()
121 … printf("Replacing previous config for sensor type %d\n", atoi(argv[currArgumentIndex+1])); in parseArguments()
124 .type = atoi(argv[currArgumentIndex+1]), in parseArguments()
125 .rate = atoi(argv[currArgumentIndex+2]), in parseArguments()
[all …]
/device/google/dragon/recovery/updater/
Ddebug_ec.c70 static int cmd_ec_battery(int argc, const char **argv) in cmd_ec_battery() argument
166 static int cmd_ec_bq25892(int argc, const char **argv) in cmd_ec_bq25892() argument
249 static int cmd_ec_bq27742(int argc, const char **argv) in cmd_ec_bq27742() argument
277 static int cmd_ec_chargecontrol(int argc, const char **argv) in cmd_ec_chargecontrol() argument
284 argv[0]); in cmd_ec_chargecontrol()
288 if (!strcasecmp(argv[1], "normal")) { in cmd_ec_chargecontrol()
290 } else if (!strcasecmp(argv[1], "idle")) { in cmd_ec_chargecontrol()
292 } else if (!strcasecmp(argv[1], "discharge")) { in cmd_ec_chargecontrol()
324 static int cmd_ec_console(int argc, const char **argv) in cmd_ec_console() argument
357 static int cmd_ec_gpioget(int argc, const char **argv) in cmd_ec_gpioget() argument
[all …]
Dfwtool.cpp87 static int cmd_flash_fmap(int argc, const char **argv) in cmd_flash_fmap() argument
100 static int cmd_vboot(int argc, const char **argv) in cmd_vboot() argument
122 static int cmd_update(int argc, const char **argv) in cmd_update() argument
128 printf("Updating using images main:%s and ec:%s ...\n", argv[1], argv[2]); in cmd_update()
130 mainv.data = const_cast<char*>(argv[1]); in cmd_update()
132 ecv.data = const_cast<char*>(argv[2]); in cmd_update()
139 static int cmd_vbnv_read(int argc, const char **argv) in cmd_vbnv_read() argument
153 if (vbnv_get_flag(reinterpret_cast<struct flash_device*>(spi), argv[1], &val) == 0) in cmd_vbnv_read()
154 printf("%s = %d\n", argv[1], val); in cmd_vbnv_read()
159 static int cmd_vbnv_write(int argc, const char **argv) in cmd_vbnv_write() argument
[all …]
Drecovery_updater.cpp26 Value* firmware_update(const char *name, State * state, int argc, Expr * argv[]) { in firmware_update() argument
37 if (ReadValueArgs(state, argv, 2, &firmware, &ec) < 0) { in firmware_update()
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c302 int main(int argc, char *argv[]) in main() argument
308 if (argc < 3 && strcmp(argv[1], "download") != 0) { in main()
309 printf("usage: %s <action> <sensor> <data> -d\n", argv[0]); in main()
319 … printf(" -d: if specified, %s will keep draining /dev/nanohub until cancelled.\n", argv[0]); in main()
324 if (strcmp(argv[1], "config") == 0) { in main()
330 if(strcmp(argv[6], "-d") == 0) { in main()
336 if (strcmp(argv[3], "true") == 0) in main()
338 else if (strcmp(argv[3], "false") == 0) { in main()
341 printf("Unsupported data: %s For action: %s\n", argv[3], argv[1]); in main()
345 mConfigCmd.rate = SENSOR_HZ((float)atoi(argv[4])); in main()
[all …]
/device/generic/goldfish/libqemu/
Dtest_guest_2.c48 int main(int argc, char** argv) in main() argument
65 char* p = strrchr(argv[0], '/'); in main()
67 progname = argv[0]; in main()
73 while (argc > 1 && argv[1][0] == '-') { in main()
74 char* arg = argv[1]; in main()
83 argv++; in main()
84 pipeName = argv[1]; in main()
91 argv++; in main()
92 tcpPort = argv[1]; in main()
99 argv++; in main()
[all …]
Dtest_host_1.c142 int main(int argc, char** argv) in main() argument
151 char* p = strrchr(argv[0], '/'); in main()
153 progname = argv[0]; in main()
159 while (argc > 1 && argv[1][0] == '-') { in main()
160 char* arg = argv[1]; in main()
169 argv++; in main()
170 path = argv[1]; in main()
177 argv++; in main()
178 tcpPort = argv[1]; in main()
184 argv++; in main()
/device/google/dragon/audio/hal/dsp/tests/
Dcrossover_test.c38 int main(int argc, char **argv) in main() argument
55 data0 = read_raw(argv[1], &frames); in main()
75 write_raw(argv[3], data0, frames); in main()
76 write_raw(argv[4], data1, frames); in main()
77 write_raw(argv[5], data2, frames); in main()
83 write_raw(argv[2], data0, frames); in main()
Dcrossover2_test.c40 int main(int argc, char **argv) in main() argument
57 data0 = read_raw(argv[1], &frames); in main()
70 write_raw(argv[3], data0, frames); in main()
71 write_raw(argv[4], data1, frames); in main()
72 write_raw(argv[5], data2, frames); in main()
78 write_raw(argv[2], data0, frames); in main()
Dcmpraw.c22 int main(int argc, char **argv) in main() argument
35 data1 = read_raw(argv[1], &frame1); in main()
36 data2 = read_raw(argv[2], &frame2); in main()
Deq2_test.c76 int main(int argc, char **argv) in main() argument
86 test_file(argv[1], argv[2]); in main()
Ddrc_test.c45 int main(int argc, char **argv) in main() argument
90 buf = read_raw(argv[1], &frames); in main()
92 write_raw(argv[2], buf, frames); in main()
Deq_test.c119 int main(int argc, char **argv) in main() argument
131 test_file(argv[1], argv[2]); in main()
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c251 int main(int argc, char **argv) in main() argument
260 const char *appName = argv[0]; in main()
273 if (argv[i][0] == '-') { in main()
274 prev = argv[i]; in main()
275 if (!strcmp(argv[i], "-d")) in main()
277 else if (!strcmp(argv[i], "-e")) in main()
279 else if (!strcmp(argv[i], "-k")) in main()
281 else if (!strcmp(argv[i], "-i")) in main()
284 fatalUsage(appName, "unknown argument", argv[i]); in main()
287 uint64_t tmp = strtoull(argv[i], &end, 16); in main()
[all …]
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c421 int main(int argc, char **argv) in main() argument
427 const char *appName = argv[0]; in main()
447 if (argv[i][0] == '-') { in main()
448 prev = argv[i]; in main()
449 if (!strcmp(argv[i], "-v")) in main()
451 else if (!strcmp(argv[i], "-s")) in main()
453 else if (!strcmp(argv[i], "-t")) in main()
455 else if (!strcmp(argv[i], "-b")) in main()
457 else if (!strcmp(argv[i], "-e")) in main()
459 else if (!strcmp(argv[i], "-m")) in main()
[all …]
/device/google/contexthub/util/nanotool/
Dnanotool.cpp286 static std::unique_ptr<ParsedArgs> ParseArgs(int argc, char **argv) { in ParseArgs() argument
299 int c = getopt_long(argc, argv, "x:s:c:f:v::li:", long_opts, &index); in ParseArgs()
308 fprintf(stderr, "%s: Invalid command '%s'\n", argv[0], optarg); in ParseArgs()
314 if (!ParseSensorArg(args->sensors, optarg, argv[0])) { in ParseArgs()
323 argv[0], args->count); in ParseArgs()
352 fprintf(stderr, "%s: Invalid device index %d\n", argv[0], in ParseArgs()
363 if (!ValidateArgs(args, argv[0])) { in ParseArgs()
401 int main(int argc, char **argv) { in main() argument
406 PrintUsage(argv[0]); in main()
410 std::unique_ptr<ParsedArgs> args = ParseArgs(argc, argv); in main()
[all …]
/device/google/dragon/crash_collector/
Dcrash_collector.cc174 int main(int argc, char** argv) { in main() argument
179 const std::string pid_string = argv[1]; in main()
180 const std::string uid_string = argv[2]; in main()
181 const std::string gid_string = argv[3]; in main()
182 const std::string signal_string = argv[4]; in main()
183 const std::string crash_time = argv[5]; in main()
184 const std::string exec_name = argv[6]; in main()
Dcrash_dispatcher.cc37 int main(int argc, char** argv) { in main() argument
57 std::copy(argv + 1, argv + argc, args.begin() + 1); in main()
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c545 int main(int argc, char **argv) in main() argument
558 const char *appName = argv[0]; in main()
568 if (argv[i][0] == '-') { in main()
569 prev = argv[i]; in main()
570 if (!strcmp(argv[i], "-v")) in main()
572 else if (!strcmp(argv[i], "-r")) in main()
574 else if (!strcmp(argv[i], "-a")) in main()
576 else if (!strcmp(argv[i], "-k")) in main()
578 else if (!strcmp(argv[i], "-n")) in main()
580 else if (!strcmp(argv[i], "-i")) in main()
[all …]
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c474 static int mm_jpeg_test_get_input(int argc, char *argv[], in mm_jpeg_test_get_input() argument
484 while ((c = getopt(argc, argv, "-I:O:W:H:F:BTx:y:Q:q:")) != -1) { in mm_jpeg_test_get_input()
492 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
495 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
502 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
505 out_files[out_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
617 int main(int argc, char* argv[]) in main() argument
628 ret = mm_jpeg_test_get_input(argc, argv, p_test_input); in main()
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c476 static int mm_jpeg_test_get_input(int argc, char *argv[], in mm_jpeg_test_get_input() argument
487 while ((c = getopt(argc, argv, "-I:O:W:H:F:BTx:y:Q:q:")) != -1) { in mm_jpeg_test_get_input()
495 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
498 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
505 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
508 out_files[out_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
620 int main(int argc, char* argv[]) in main() argument
631 ret = mm_jpeg_test_get_input(argc, argv, p_test_input); in main()
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c476 static int mm_jpeg_test_get_input(int argc, char *argv[], in mm_jpeg_test_get_input() argument
487 while ((c = getopt(argc, argv, "-I:O:W:H:F:BTx:y:Q:q:")) != -1) { in mm_jpeg_test_get_input()
495 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
498 in_files[in_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
505 if (argv[idx][0] == '-') { in mm_jpeg_test_get_input()
508 out_files[out_file_cnt++] = argv[idx]; in mm_jpeg_test_get_input()
620 int main(int argc, char* argv[]) in main() argument
631 ret = mm_jpeg_test_get_input(argc, argv, p_test_input); in main()

12