| /external/skia/bench/ |
| benchmain.cpp | 181 static bool parse_bool_arg(char * const* argv, char* const* stop, bool* var) { 182 if (argv < stop) { 183 *var = atoi(*argv) != 0; 342 int tool_main(int argc, char** argv); 343 int tool_main(int argc, char** argv) { 390 char* const* stop = argv + argc; 391 for (++argv; argv < stop; ++argv) { 392 if (strcmp(*argv, "-o") == 0) [all...] |
| /external/ipsec-tools/ |
| setup.c | 402 void setup(int argc, char **argv) 408 set_globals(argv[2]); 420 add_isakmp_handler(myaddrs[0].sock, argv[1]); 422 add_isakmp_handler(myaddrs[1].sock, argv[1]); 444 if (argc == 7 && !strcmp(argv[3], "udppsk")) { 445 set_pre_shared_key(remoteconf, argv[4], argv[5]); 448 set_port(targets[0], atoi(argv[6])); 450 } else if (argc == 9 && !strcmp(argv[3], "udprsa")) { 451 set_certificates(remoteconf, argv[4], argv[5], argv[6], argv[7]) [all...] |
| /dalvik/vm/ |
| Init.cpp | 772 * argv[0] does not contain the name of the program. 781 static int processOptions(int argc, const char* const argv[], 788 ALOGV(" %d: '%s'", i, argv[i]); 805 if (strcmp(argv[i], "-help") == 0) { 809 } else if (strcmp(argv[i], "-version") == 0) { 813 } else if (strcmp(argv[i], "-showversion") == 0) { 817 } else if (strcmp(argv[i], "-classpath") == 0 || 818 strcmp(argv[i], "-cp") == 0) 826 gDvm.classPathStr = strdup(argv[++i]); 828 } else if (strncmp(argv[i], "-Xbootclasspath:" [all...] |
| /external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/xvmc/tests/ |
| xvmc_bench.c | 62 void ParseArgs(int argc, char **argv, struct Config *config); 64 void ParseArgs(int argc, char **argv, struct Config *config) 79 if (!strcmp(argv[i], "-iw")) 81 if (sscanf(argv[++i], "%u", &config->input_width) != 1) 84 else if (!strcmp(argv[i], "-ih")) 86 if (sscanf(argv[++i], "%u", &config->input_height) != 1) 89 else if (!strcmp(argv[i], "-ow")) 91 if (sscanf(argv[++i], "%u", &config->output_width) != 1) 94 else if (!strcmp(argv[i], "-oh")) 96 if (sscanf(argv[++i], "%u", &config->output_height) != 1 [all...] |
| /external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
| xvmc_bench.c | 62 void ParseArgs(int argc, char **argv, struct Config *config); 64 void ParseArgs(int argc, char **argv, struct Config *config) 79 if (!strcmp(argv[i], "-iw")) 81 if (sscanf(argv[++i], "%u", &config->input_width) != 1) 84 else if (!strcmp(argv[i], "-ih")) 86 if (sscanf(argv[++i], "%u", &config->input_height) != 1) 89 else if (!strcmp(argv[i], "-ow")) 91 if (sscanf(argv[++i], "%u", &config->output_width) != 1) 94 else if (!strcmp(argv[i], "-oh")) 96 if (sscanf(argv[++i], "%u", &config->output_height) != 1 [all...] |
| /frameworks/native/cmds/service/ |
| service.cpp | 69 int main(int argc, char* const argv[]) 82 int ic = getopt(argc, argv, "h?"); 102 if (strcmp(argv[optind], "check") == 0) { 105 sp<IBinder> service = sm->checkService(String16(argv[optind])); 106 aout << "Service " << argv[optind] << 114 else if (strcmp(argv[optind], "list") == 0) { 125 } else if (strcmp(argv[optind], "call") == 0) { 129 sp<IBinder> service = sm->checkService(String16(argv[optind++])); 131 int32_t code = atoi(argv[optind++]); 140 if (strcmp(argv[optind], "i32") == 0) [all...] |
| /external/chromium_org/third_party/sqlite/src/src/ |
| test4.c | 46 const char *argv[100]; /* result columns */ member in struct:Thread 126 const char **argv /* Text of each argument */ 133 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], 137 i = parse_thread_id(interp, argv[1]); 140 Tcl_AppendResult(interp, "thread ", argv[1], " is already running", 0); 145 threadset[i].zFilename = sqlite3_mprintf("%s", argv[2]); 175 const char **argv /* Text of each argument */ 180 Tcl_AppendResult(interp, "wrong # args: should be \"", argv[0], 184 i = parse_thread_id(interp, argv[1]); 219 const char **argv /* Text of each argument * [all...] |
| test_func.c | 39 static void randStr(sqlite3_context *context, int argc, sqlite3_value **argv){ 53 iMin = sqlite3_value_int(argv[0]); 56 iMax = sqlite3_value_int(argv[1]); 96 sqlite3_value **argv 103 if( sqlite3_value_type(argv[0])==SQLITE_NULL ) return; 104 len = sqlite3_value_bytes(argv[0]); 112 memcpy(zVal, sqlite3_value_text(argv[0]), len); 119 sqlite3_value **argv 126 if( sqlite3_value_type(argv[0])==SQLITE_NULL ) return; 127 len = sqlite3_value_bytes16(argv[0]); [all...] |
| /external/bzip2/ |
| dlltest.c | 69 int main(int argc,char *argv[])
84 while(++argv,--argc){
85 if(**argv =='-' || **argv=='/'){
88 for(p=*argv+1;*p;p++){
103 fn_r = *argv;
104 argc--;argv++;
109 fn_w = *argv;
110 argc--;argv++;
|
| /external/chromium/chrome/browser/ |
| shell_integration_linux.cc | 44 bool LaunchXdgUtility(const std::vector<std::string>& argv) { 58 if (!base::LaunchApp(argv, no_stdin, false, &handle)) { 91 std::vector<std::string> argv; 92 argv.push_back("xdg-icon-resource"); 93 argv.push_back("install"); 97 argv.push_back("--mode"); 98 argv.push_back("user"); 100 argv.push_back("--size"); 101 argv.push_back(base::IntToString(shortcut_info.favicon.width())); 103 argv.push_back(temp_file_path.value()) 251 std::vector<std::string> argv; local 265 std::vector<std::string> argv; local 283 std::vector<std::string> argv; local [all...] |
| /external/chromium_org/chromeos/system/ |
| name_value_pairs_parser.cc | 24 bool GetToolOutput(int argc, const char* argv[], std::string& output) { 27 if (!base::PathExists(base::FilePath(argv[0]))) { 28 LOG(WARNING) << "Tool for statistics not found: " << argv[0]; 34 args.push_back(argv[argn]); 36 LOG(WARNING) << "Error executing " << argv[0]; 110 const char* argv[], 113 if (!GetToolOutput(argc, argv, output_string)) 136 const char* argv[], 141 if (!GetToolOutput(argc, argv, output_string))
|
| /external/chromium_org/sandbox/win/src/ |
| unload_dll_test.cc | 14 // Loads and or unloads a DLL passed in the second parameter of argv. 15 // The first parameter of argv is 'L' = load, 'U' = unload or 'B' for both. 16 SBOX_TESTS_COMMAND int UseOneDLL(int argc, wchar_t **argv) { 21 wchar_t option = (argv[0])[0]; 23 HMODULE module1 = ::LoadLibraryW(argv[1]); 28 HMODULE module2 = ::GetModuleHandleW(argv[1]); 34 // Opens an event passed as the first parameter of argv. 35 SBOX_TESTS_COMMAND int SimpleOpenEvent(int argc, wchar_t **argv) { 39 base::win::ScopedHandle event_open(::OpenEvent(SYNCHRONIZE, FALSE, argv[0]));
|
| /external/chromium_org/third_party/WebKit/Source/devtools/scripts/ |
| generate_devtools_grd.py | 67 def parse_args(argv): 68 images_position = argv.index('--images') 69 output_position = argv.index('--output') 70 source_files = argv[:images_position] 71 image_dirs = argv[images_position + 1:output_position] 72 return ParsedArgs(source_files, image_dirs, argv[output_position + 1]) 92 def main(argv): 93 parsed_args = parse_args(argv[1:]) 121 sys.exit(main(sys.argv))
|
| inline_js_imports.py | 43 def main(argv): 45 if len(argv) < 3: 46 print('usage: %s input_file imports_dir output_file no_minify' % argv[0]) 49 input_file_name = argv[1] 50 imports_dir = argv[2] 51 output_file_name = argv[3] 52 no_minify = len(argv) > 4 and argv[4] 91 sys.exit(main(sys.argv))
|
| /external/chromium_org/third_party/libxml/src/ |
| testC14N.c | 126 int main(int argc, char **argv) { 140 usage(argv[0]); 141 } else if(strcmp(argv[1], "--with-comments") == 0) { 142 ret = test_c14n(argv[2], 1, XML_C14N_1_0, (argc > 3) ? argv[3] : NULL, NULL); 143 } else if(strcmp(argv[1], "--without-comments") == 0) { 144 ret = test_c14n(argv[2], 0, XML_C14N_1_0, (argc > 3) ? argv[3] : NULL, NULL); 145 } else if(strcmp(argv[1], "--1-1-with-comments") == 0) { 146 ret = test_c14n(argv[2], 1, XML_C14N_1_1, (argc > 3) ? argv[3] : NULL, NULL) [all...] |
| /external/chromium_org/third_party/openssl/openssl/apps/ |
| genrsa.c | 89 int MAIN(int argc, char **argv) 127 argv++; 132 if (strcmp(*argv,"-out") == 0) 135 outfile= *(++argv); 137 else if (strcmp(*argv,"-3") == 0) 139 else if (strcmp(*argv,"-F4") == 0 || strcmp(*argv,"-f4") == 0) 142 else if (strcmp(*argv,"-engine") == 0) 145 engine= *(++argv); 148 else if (strcmp(*argv,"-rand") == 0 [all...] |
| /external/chromium_org/third_party/yasm/source/patched-yasm/frontends/tasm/ |
| tasm-options.c | 45 parse_cmdline(int argc, char **argv, opt_option *options, size_t nopts, 56 argv++; 58 if (argv[0][0] == '/' && argv[0][1]) { /* opt */ 61 char *cmd = &argv[0][1]; 66 param = &argv[0][1+len]; 76 argv++; 88 argv[0]); 93 if (not_an_option_handler(argv[0]))
|
| /external/dropbear/ |
| dropbearconvert.c | 56 int dropbearconvert_main(int argc, char ** argv) { 58 int main(int argc, char ** argv) { 77 if (argv[1][0] == 'd') { 79 } else if (argv[1][0] == 'o') { 87 if (argv[2][0] == 'd') { 89 } else if (argv[2][0] == 'o') { 99 infile = argv[3]; 100 outfile = argv[4]; 105 printhelp(argv[0]);
|
| /external/iproute2/tc/ |
| q_prio.c | 31 static int prio_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 40 if (strcmp(*argv, "bands") == 0) { 44 if (get_integer(&opt.bands, *argv, 10)) { 48 } else if (strcmp(*argv, "priomap") == 0) { 54 } else if (strcmp(*argv, "multiqueue") == 0) { 56 } else if (strcmp(*argv, "help") == 0) { 62 fprintf(stderr, "What is \"%s\"?\n", *argv); 66 if (get_unsigned(&band, *argv, 10)) { 80 argc--; argv++;
|
| q_rr.c | 32 static int rr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) 41 if (strcmp(*argv, "bands") == 0) { 45 if (get_integer(&opt.bands, *argv, 10)) { 49 } else if (strcmp(*argv, "priomap") == 0) { 55 } else if (strcmp(*argv, "help") == 0) { 58 } else if (strcmp(*argv, "multiqueue") == 0) { 63 fprintf(stderr, "What is \"%s\"?\n", *argv); 67 if (get_unsigned(&band, *argv, 10)) { 81 argc--; argv++;
|
| /external/llvm/utils/ |
| profile.pl | 27 while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { 36 die "-o option requires a filename argument!" if (!scalar(@ARGV)); 37 $ProgramOpts .= " -llvmprof-output $ARGV[0]"; 38 $ProfileFile = $ARGV[0]; 59 die "Must specify LLVM bitcode file as first argument!" if (@ARGV == 0); 61 my $BytecodeFile = $ARGV[0]; 63 shift @ARGV; 72 "$BytecodeFile.inst $ProgramOpts " . (join ' ', @ARGV);
|
| /external/openfst/src/bin/ |
| fstcompile.cc | 37 int main(int argc, char **argv) { 44 usage += argv[0]; 48 SET_FLAGS(usage.c_str(), &argc, &argv, true); 56 if (argc > 1 && strcmp(argv[1], "-") != 0) { 57 source = argv[1]; 58 istrm = new fst::ifstream(argv[1]); 60 LOG(ERROR) << argv[0] << ": Open failed, file = " << argv[1]; local 84 string dest = argc > 2 ? argv[2] : "";
|
| fstdraw.cc | 45 int main(int argc, char **argv) { 51 usage += argv[0]; 55 SET_FLAGS(usage.c_str(), &argc, &argv, true); 61 string in_name = (argc > 1 && strcmp(argv[1], "-") != 0) ? argv[1] : ""; 69 dest = argv[2]; 70 ostrm = new fst::ofstream(argv[2]); 72 LOG(ERROR) << argv[0] << ": Open failed, file = " << argv[2]; local
|
| /external/openfst/src/extensions/far/ |
| farcompilestrings.cc | 55 int main(int argc, char **argv) { 60 usage += argv[0]; 64 SET_FLAGS(usage.c_str(), &argc, &argv, true); 68 in_fnames.push_back(strcmp(argv[i], "") != 0 ? argv[i] : ""); 70 in_fnames.push_back(argc == 2 && strcmp(argv[1], "-") != 0 ? argv[1] : ""); 73 argc > 2 && strcmp(argv[argc - 1], "-") != 0 ? argv[argc - 1] : "";
|
| /external/openssl/apps/ |
| genrsa.c | 89 int MAIN(int argc, char **argv) 127 argv++; 132 if (strcmp(*argv,"-out") == 0) 135 outfile= *(++argv); 137 else if (strcmp(*argv,"-3") == 0) 139 else if (strcmp(*argv,"-F4") == 0 || strcmp(*argv,"-f4") == 0) 142 else if (strcmp(*argv,"-engine") == 0) 145 engine= *(++argv); 148 else if (strcmp(*argv,"-rand") == 0 [all...] |