Home
last modified time | relevance | path

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

12345678

/frameworks/base/tools/aapt/
DMain.cpp227 int main(int argc, char* const argv[]) in main() argument
229 char *prog = argv[0]; in main()
243 if (argv[1][0] == 'v') in main()
245 else if (argv[1][0] == 'd') in main()
247 else if (argv[1][0] == 'l') in main()
249 else if (argv[1][0] == 'a') in main()
251 else if (argv[1][0] == 'r') in main()
253 else if (argv[1][0] == 'p') in main()
255 else if (argv[1][0] == 'c') in main()
257 else if (argv[1][0] == 's') in main()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
DAAC_E_SAMPLES.c48 static int parsecmdline(int argc, char **argv,char **input_filename, char **output_filename, AACE… in parsecmdline() argument
65 argv++; in parsecmdline()
68 if (!strcmp(*argv, "-if")) in parsecmdline()
70 argv++; in parsecmdline()
72 *input_filename = *argv; in parsecmdline()
74 else if (!strcmp(*argv, "-of")) in parsecmdline()
76 argv++; in parsecmdline()
78 *output_filename = *argv; in parsecmdline()
80 else if (!strcmp(*argv, "-sr")) in parsecmdline()
82 argv++; in parsecmdline()
[all …]
/frameworks/native/cmds/servicemanager/
Dbctest.c58 int main(int argc, char **argv) in main() argument
67 argv++; in main()
69 if (!strcmp(argv[0],"alt")) { in main()
77 } else if (!strcmp(argv[0],"lookup")) { in main()
83 ptr = svcmgr_lookup(bs, svcmgr, argv[1]); in main()
84 fprintf(stderr,"lookup(%s) = %p\n", argv[1], ptr); in main()
86 argv++; in main()
87 } else if (!strcmp(argv[0],"publish")) { in main()
92 svcmgr_publish(bs, svcmgr, argv[1], &token); in main()
94 argv++; in main()
[all …]
/frameworks/native/cmds/service/
Dservice.cpp58 int main(int argc, char* const argv[]) in main() argument
71 int ic = getopt(argc, argv, "h?"); in main()
91 if (strcmp(argv[optind], "check") == 0) { in main()
94 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
95 aout << "Service " << argv[optind] << in main()
103 else if (strcmp(argv[optind], "list") == 0) { in main()
114 } else if (strcmp(argv[optind], "call") == 0) { in main()
118 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
120 int32_t code = atoi(argv[optind++]); in main()
129 if (strcmp(argv[optind], "i32") == 0) { in main()
[all …]
/frameworks/base/cmds/backup/
Dbackup.cpp29 usage(int argc, const char** argv) in usage() argument
31 const char* p = argv[0]; in usage()
105 main(int argc, const char** argv) in main() argument
110 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main()
111 return perform_list(argv[2]); in main()
113 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main()
114 return perform_print(argv[2], argv[3]); in main()
116 return usage(argc, argv); in main()
/frameworks/compile/libbcc/tools/abcc/
DMain.cpp60 static inline bool ParseArguments(int argc, const char *const *argv, Mode &mode, in ParseArguments() argument
68 if (::strcmp(argv[1], "--fd") == 0) { in ParseArguments()
70 } else if (::strcmp(argv[1], "--file") == 0) { in ParseArguments()
73 ALOGE("Unknown mode '%s'!", argv[1]); in ParseArguments()
78 output = argv[2]; in ParseArguments()
83 if (::strcmp(argv[arg_idx], "--triple") == 0) { in ParseArguments()
89 triple = argv[arg_idx + 1]; in ParseArguments()
93 if (::strcmp(argv[arg_idx], "--android-sysroot") == 0) { in ParseArguments()
99 sysroot = argv[arg_idx + 1]; in ParseArguments()
121 input = argv[arg_idx]; in ParseArguments()
[all …]
/frameworks/rs/driver/linkloader/
Dmain.cpp45 int argc, char **argv);
47 int main(int argc, char **argv) { in main() argument
50 llvm::errs() << "USAGE: " << argv[0] << " [ELFObjectFile] [ARGS]\n"; in main()
55 char const *filename = argv[1]; in main()
67 dump_and_run_file(image, image_size, argc - 1, argv + 1); in main()
144 void dump_and_run_object(Archiver &AR, int argc, char **argv) { in dump_and_run_object() argument
168 ((int (*)(int, char **))main_addr)(argc, argv); in dump_and_run_object()
174 int argc, char **argv) { in dump_and_run_file_from_archive() argument
176 dump_and_run_object<32>(AR, argc, argv); in dump_and_run_file_from_archive()
178 dump_and_run_object<64>(AR, argc, argv); in dump_and_run_file_from_archive()
[all …]
/frameworks/base/tools/aidl/
Doptions.cpp35 parse_options(int argc, const char* const* argv, Options *options) in parse_options() argument
39 if (argc >= 2 && 0 == strcmp(argv[1], "--preprocess")) { in parse_options()
43 options->outputFileName = argv[2]; in parse_options()
45 options->filesToPreprocess.push_back(argv[i]); in parse_options()
57 const char* s = argv[i]; in parse_options()
119 options->inputFileName = argv[i]; in parse_options()
128 options->outputFileName = argv[i]; in parse_options()
146 fprintf(stderr, " %s", argv[i]); in parse_options()
/frameworks/base/cmds/app_process/
Dapp_main.cpp138 int main(int argc, char* const argv[]) in main() argument
160 execv("/system/bin/app_process", argv); in main()
169 mArgV = argv; in main()
173 mArgLen += strlen(argv[i]) + 1; in main()
178 const char* argv0 = argv[0]; in main()
183 argv++; in main()
187 int i = runtime.addVmArguments(argc, argv); in main()
197 const char* arg = argv[i++]; in main()
229 runtime.mArgV = argv + i; in main()
/frameworks/rs/driver/linkloader/android/
Dtest-librsloader.c68 int main(int argc, char **argv) { in main() argument
70 fprintf(stderr, "USAGE: %s [ELF] [ARGS]\n", argv[0]); in main()
74 int fd = open(argv[1], O_RDONLY); in main()
76 fprintf(stderr, "ERROR: Unable to open the file: %s\n", argv[1]); in main()
82 fprintf(stderr, "ERROR: Unable to stat the file: %s\n", argv[1]); in main()
91 fprintf(stderr, "ERROR: Unable to mmap the file: %s\n", argv[1]); in main()
106 int ret = main_stub(argc - 1, argv + 1); in main()
/frameworks/av/media/libstagefright/codecs/amrwbenc/SampleCode/
DAMRWB_E_SAMPLE.c261 int main(int argc, char **argv) // for gcc compiler; in main() argument
289 if (argv [arg] [0] == '+') { in main()
290 if(argv[arg][1] == 'M') in main()
292 switch(argv[arg][2]) in main()
314 printf ("Invalid parameter '%s'.\n", argv [arg]); in main()
317 }else if(argv[arg][1] == 'F') in main()
319 switch(argv[arg][2]) in main()
329 printf ("Invalid parameter '%s'.\n", argv [arg]); in main()
334 }else if(strcmp (argv[arg], "+DTX") == 0) in main()
342 inFileName = argv[arg]; in main()
[all …]
/frameworks/compile/slang/
Dslangdata.py81 def main(argv): argument
82 if len(argv) < 2:
83 print "usage: %s <name>" % argv[0]
86 File2Asm(argv[1])
89 main(sys.argv)
Dslang-data.c5 int main(int argc, char *argv[]) { in main() argument
7 if (argc != 4 || (argc == 2 && strcmp(argv[1], "--help") == 0)) { in main()
8 fprintf(stderr, "Usage: %s PREFIX OUTFILE INFILE\n", argv[0]); in main()
12 char const *prefix = argv[1]; in main()
13 char const *infile_name = argv[3]; in main()
14 char const *outfile_name = argv[2]; in main()
/frameworks/wilhelm/tests/examples/
DslesTestPlayFdPath.cpp191 int main(int argc, char* const argv[]) in main() argument
196 fprintf(stdout, "OpenSL ES test %s: exercises SLPlayItf ", argv[0]); in main()
203 fprintf(stdout, "Usage: \t%s path offsetInBytes [sizeInBytes]\n", argv[0]); in main()
204 fprintf(stdout, "Example: \"%s /sdcard/my.mp3 0 344460\" \n", argv[0]); in main()
221 TestPlayPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), in main()
224 TestPlayPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), (SLAint64)atoi(argv[3])); in main()
DslesTestEqOutputPath.cpp281 int main(int argc, char* const argv[]) in main() argument
283 const char *programName = argv[0]; in main()
297 if (argc >= 2 && !strcmp(argv[1], "--always-on")) { in main()
300 ++argv; in main()
326 TestEQPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), in main()
329 TestEQPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), (SLAint64)atoi(argv[3]), alwaysOn); in main()
332 TestEQPathFromFD(sl, argv[1], alwaysOn); in main()
DslesTestEqFdPath.cpp277 int main(int argc, char* const argv[]) in main() argument
279 const char *programName = argv[0]; in main()
293 if (argc >= 2 && !strcmp(argv[1], "--always-on")) { in main()
296 ++argv; in main()
325 TestEQPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), in main()
328 TestEQPathFromFD(sl, argv[1], (SLAint64)atoi(argv[2]), (SLAint64)atoi(argv[3]), alwaysOn); in main()
331 TestEQPathFromFD(sl, argv[1]); in main()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DDecTestBench.c34 #define DEBUG(argv) printf argv argument
65 int $Sub$$main(char argc, char * argv[]) in $Sub$$main() argument
68 return $Super$$main(argc, argv); // calls the original function in $Sub$$main()
83 int main(int argc, char **argv) in main() argument
115 if ( argc > 1 && strcmp(argv[1], "-T") == 0 ) in main()
127 argv[0])); in main()
146 if ( strncmp(argv[i], "-N", 2) == 0 ) in main()
148 maxNumPics = (u32)atoi(argv[i]+2); in main()
150 else if ( strncmp(argv[i], "-O", 2) == 0 ) in main()
152 strcpy(outFileName, argv[i]+2); in main()
[all …]
DTestBenchMultipleInstance.c25 #define DEBUG(argv) printf argv argument
60 int main(int argc, char **argv) in main() argument
76 if ( argc > 1 && strcmp(argv[1], "-T") == 0 ) in main()
86 argv[0])); in main()
106 if ( strncmp(argv[i], "-N", 2) == 0 ) in main()
108 maxNumPics = (u32)atoi(argv[i]+2); in main()
111 else if ( strncmp(argv[i], "-O", 2) == 0 ) in main()
113 strcpy(outFileName, argv[i]+2); in main()
116 else if ( strcmp(argv[i], "-C") == 0 ) in main()
121 else if ( strcmp(argv[i], "-R") == 0 ) in main()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DRuntimeInit.java183 private static void invokeStaticMain(String className, String[] argv) in invokeStaticMain() argument
218 throw new ZygoteInit.MethodAndArgsCaller(m, argv); in invokeStaticMain()
221 public static final void main(String[] argv) { in main() argument
222 if (argv.length == 2 && argv[1].equals("application")) { in main()
253 public static final void zygoteInit(int targetSdkVersion, String[] argv) in zygoteInit() argument
262 applicationInit(targetSdkVersion, argv); in zygoteInit()
276 public static void wrapperInit(int targetSdkVersion, String[] argv) in wrapperInit() argument
280 applicationInit(targetSdkVersion, argv); in wrapperInit()
283 private static void applicationInit(int targetSdkVersion, String[] argv) in applicationInit() argument
299 args = new Arguments(argv); in applicationInit()
/frameworks/native/opengl/tests/hwc/
DhwcColorEquiv.cpp165 main(int argc, char *argv[]) in main() argument
181 while ((opt = getopt(argc, argv, "vs:e:r:D:?h")) != -1) { in main()
197 if (*argv[optind] == '-') { break; } in main()
200 str += " " + string(argv[optind++]); in main()
219 if (*argv[optind] == '-') { break; } in main()
222 str += " " + string(argv[optind++]); in main()
243 printSyntax(basename(argv[0])); in main()
255 printSyntax(basename(argv[0])); in main()
264 printSyntax(basename(argv[0])); in main()
267 equivFormat = hwcTestGraphicFormatLookup(argv[optind]); in main()
[all …]
/frameworks/native/services/surfaceflinger/tests/screencap/
Dscreencap.cpp31 int main(int argc, char** argv) in main() argument
34 printf("usage: %s path\n", argv[0]); in main()
55 printf("saving file as PNG in %s ...\n", argv[1]); in main()
60 SkImageEncoder::EncodeFile(argv[1], b, in main()
/frameworks/base/tools/obbtool/
Dpbkdf2gen.cpp36 int main(int argc, char* argv[]) in main() argument
39 fprintf(stderr, "Usage: %s <password>\n", argv[0]); in main()
61 if (PKCS5_PBKDF2_HMAC_SHA1(argv[1], strlen(argv[1]), salt, SALT_LEN, in main()
/frameworks/wilhelm/tests/mimeUri/
DslesTestPlayUri2.cpp249 int main(int argc, char* const argv[]) in main() argument
255 argv[0]); in main()
261 fprintf(stdout, "Usage: \n\t%s url1 url2 \n\t%s url\n", argv[0], argv[0]); in main()
262 fprintf(stdout, "Example: \"%s /sdcard/my.mp3 http://blabla/my.wav\" ", argv[0]); in main()
263 fprintf(stdout, "or \"%s file:///sdcard/my.mp3\"\n", argv[0]); in main()
279 TestPlayUri(sl, argv[1], argv[1]); in main()
281 TestPlayUri(sl, argv[1], argv[2]); in main()
/frameworks/compile/libbcc/tools/bcc_strip_attr/
Dbcc_strip_attr.cpp111 int main(int argc, char **argv) { in main() argument
114 PrettyStackTraceProgram X(argc, argv); in main()
118 cl::ParseCommandLineOptions(argc, argv, "strip function attribute pass\n"); in main()
122 std::auto_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context)); in main()
124 errs() << argv[0] << ": error loading file '" in main()
143 errs() << argv[0] << ": stripped module is broken!\n"; in main()
/frameworks/compile/libbcc/tests/data/src/
Dbellard.otccex.c75 main(argc, argv) in main() argument
89 s = *(int *)argv; in main()
94 n = atoi(*(int *)(argv + 4)); in main()
97 base = atoi(*(int *)(argv + 8)); in main()

12345678