Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/tools/aapt/
DMain.cpp276 int main(int argc, char* const argv[]) in main() argument
278 char *prog = argv[0]; in main()
292 if (argv[1][0] == 'v') in main()
294 else if (argv[1][0] == 'd') in main()
296 else if (argv[1][0] == 'l') in main()
298 else if (argv[1][0] == 'a') in main()
300 else if (argv[1][0] == 'r') in main()
302 else if (argv[1][0] == 'p') in main()
304 else if (argv[1][0] == 'c') in main()
306 else if (argv[1][0] == 's') in main()
[all …]
/frameworks/base/libs/usb/tests/accessorytest/
Daccessory.c33 int main(int argc, char* argv[]) in main() argument
43 argv += 1; in main()
44 while (*argv) { in main()
45 if (strcmp(*argv, "-ic") == 0) { in main()
46 argv++; in main()
47 if (*argv) in main()
48 input_card = atoi(*argv); in main()
49 } else if (strcmp(*argv, "-id") == 0) { in main()
50 argv++; in main()
51 if (*argv) in main()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp75 int main(int argc, char **argv, test_func_t testFunc) in main() argument
83 fprintf(stderr, "Usage: %s [-i input_params.txt] [-o output_params.txt]\n", argv[0]); in main()
87 argv++; in main()
88 while (*argv) { in main()
89 if (strcmp(*argv, "-i") == 0) { in main()
90 argv++; in main()
91 if (*argv) { in main()
92 inputFile = fopen(*argv, "r"); in main()
100 if (strcmp(*argv, "-o") == 0) { in main()
101 argv++; in main()
[all …]
/frameworks/native/cmds/service/
Dservice.cpp74 int main(int argc, char* const argv[]) in main() argument
80 int ic = getopt(argc, argv, "h?"); in main()
109 if (strcmp(argv[optind], "check") == 0) { in main()
112 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
113 aout << "Service " << argv[optind] << in main()
121 else if (strcmp(argv[optind], "list") == 0) { in main()
132 } else if (strcmp(argv[optind], "call") == 0) { in main()
136 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
138 int32_t code = atoi(argv[optind++]); in main()
147 if (strcmp(argv[optind], "i32") == 0) { in main()
[all …]
/frameworks/base/tools/stats_log_api_gen/
Dmain.cpp62 static int run(int argc, char const* const* argv) { in run() argument
78 if (0 == strcmp("--help", argv[index])) { in run()
81 } else if (0 == strcmp("--cpp", argv[index])) { in run()
87 cppFilename = argv[index]; in run()
88 } else if (0 == strcmp("--header", argv[index])) { in run()
94 headerFilename = argv[index]; in run()
95 } else if (0 == strcmp("--java", argv[index])) { in run()
101 javaFilename = argv[index]; in run()
102 } else if (0 == strcmp("--module", argv[index])) { in run()
108 moduleName = argv[index]; in run()
[all …]
/frameworks/native/cmds/installd/
Dotapreopt_parameters.cpp59 bool OTAPreoptParameters::ReadArguments(int argc, const char** argv) { in ReadArguments() argument
63 const char* target_slot_arg = argv[1]; in ReadArguments()
76 if (argv[2] == nullptr) { in ReadArguments()
81 if (std::string("dexopt").compare(argv[2]) == 0) { in ReadArguments()
98 return ReadArgumentsPostV1(2, argv, false); in ReadArguments()
100 return ReadArgumentsV1(argv); in ReadArguments()
105 if (!ParseUInt(argv[2], &version)) { in ReadArguments()
106 LOG(ERROR) << "Could not parse version: " << argv[2]; in ReadArguments()
110 return ReadArgumentsPostV1(version, argv, true); in ReadArguments()
143 bool OTAPreoptParameters::ReadArgumentsV1(const char** argv) { in ReadArgumentsV1() argument
[all …]
/frameworks/base/cmds/app_process/
Dapp_main.cpp43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument
46 mArgs.add(String8(argv[i])); in setClassNameAndArgs()
120 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument
134 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize()
135 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize()
136 end += strlen(argv[argc - 1]) + 1; in computeArgBlockSize()
173 int main(int argc, char* const argv[]) in main() argument
179 argv_String.append(argv[i]); in main()
185 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main()
189 argv++; in main()
[all …]
/frameworks/rs/script_api/
DGenerator.cpp157 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, in parseCommandLine() argument
160 if (argv[i][0] == '-') { in parseCommandLine()
161 if (argv[i][1] == 'v') { in parseCommandLine()
165 *maxApiLevel = strtol(argv[i], &end, 10); in parseCommandLine()
167 cerr << "Error. Can't parse the version number" << argv[i] << "\n"; in parseCommandLine()
175 cerr << "Unrecognized flag %s\n" << argv[i] << "\n"; in parseCommandLine()
179 specFileNames->push_back(argv[i]); in parseCommandLine()
189 int main(int argc, char* argv[]) { in main() argument
193 if (!parseCommandLine(argc, argv, &maxApiLevel, &specFileNames)) { in main()
/frameworks/base/cmds/backup/
Dbackup.cpp28 static int usage(int /* argc */, const char** argv) in usage() argument
30 const char* p = argv[0]; in usage()
101 int main(int argc, const char** argv) in main() argument
106 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main()
107 return perform_list(argv[2]); in main()
109 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main()
110 return perform_print(argv[2], argv[3]); in main()
112 return usage(argc, argv); in main()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test_fixture.cpp58 int main(int argc, char* const argv[]) { in main() argument
60 if (strcmp(argv[1], "--crash") == 0) { in main()
67 if (strcmp(argv[1], "--exit") == 0) { in main()
69 return atoi(argv[2]); in main()
77 if (strcmp(argv[1], "--pid") == 0) { in main()
81 } else if (strcmp(argv[1], "--uid") == 0) { in main()
89 if (strcmp(argv[index], "--sleep") == 0) { in main()
90 int napTime = atoi(argv[index + 1]); in main()
/frameworks/base/startop/scripts/app_startup/
Dquery_compiler_filter_test.py66 def replace_argv(argv): argument
68 old_argv = sys.argv
69 sys.argv = [sys.argv[0]] + argv
73 sys.argv = old_argv
75 def exec_main(argv): argument
82 with replace_argv(argv):
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/test/
Dm4v_h263_enc_test.cpp46 int main(int argc, char *argv[]) { in main() argument
50 "<height> <frame rate> <bitrate in kbps>\n", argv[0]); in main()
61 if (strcmp(argv[3], "mpeg4") == 0) { in main()
63 } else if (strcmp(argv[3], "h263") == 0) { in main()
66 fprintf(stderr, "Unsupported mode %s\n", argv[3]); in main()
73 width = atoi(argv[4]); in main()
74 height = atoi(argv[5]); in main()
88 frameRate = atoi(argv[6]); in main()
96 bitrate = atoi(argv[7]); in main()
111 FILE *fpInput = fopen(argv[1], "rb"); in main()
[all …]
DMpeg4H263EncoderTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int Mpeg4H263EncoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
67 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/ml/nn/runtime/test/
DTestMain.cpp109 void checkArgs(int argc, char** argv, int nextArg) { in checkArgs() argument
111 std::cerr << "Unexpected argument: " << argv[nextArg] << std::endl; in checkArgs()
118 int main(int argc, char** argv) { in main() argument
119 testing::InitGoogleTest(&argc, argv); in main()
122 if ((argc > 1) && std::isdigit(argv[1][0])) { in main()
123 allowedPasses = std::stoull(argv[1]); in main()
124 checkArgs(argc, argv, 2); in main()
126 checkArgs(argc, argv, 1); in main()
/frameworks/native/cmds/dumpstate/
Dmain.cpp29 bool ShouldStartServiceAndWait(int argc, char* argv[]) { in ShouldStartServiceAndWait() argument
33 while ((c = getopt(argc, argv, "dho:svqzpLPBRSV:w")) != -1 && !do_wait) { in ShouldStartServiceAndWait()
52 int main(int argc, char* argv[]) { in main() argument
53 if (ShouldStartServiceAndWait(argc, argv)) { in main()
66 return run_main(argc, argv); in main()
/frameworks/base/core/java/com/android/internal/os/
DWrapperInit.java152 private static Runnable wrapperInit(int targetSdkVersion, String[] argv) { in wrapperInit() argument
160 if (argv != null && argv.length > 2 && argv[0].equals("-cp")) { in wrapperInit()
161 classLoader = ZygoteInit.createPathClassLoader(argv[1], targetSdkVersion); in wrapperInit()
167 String removedArgs[] = new String[argv.length - 2]; in wrapperInit()
168 System.arraycopy(argv, 2, removedArgs, 0, argv.length - 2); in wrapperInit()
169 argv = removedArgs; in wrapperInit()
174 argv, classLoader); in wrapperInit()
/frameworks/av/media/libstagefright/tests/extractorFactory/
DExtractorFactoryTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int ExtractorFactoryTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/tests/writer/
DWriterTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int WriterTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/extractors/tests/
DExtractorUnitTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int ExtractorUnitTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/
DAmrnbDecTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int AmrnbDecTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/codecs/amrwbenc/test/
DAmrwbEncTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int AmrwbEncTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/test/
DMpeg4H263DecoderTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int Mpeg4H263DecoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
67 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/flac/dec/test/
DFlacDecoderTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int FlacDecoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
67 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/codecs/amrwb/test/
DAmrwbDecTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int AmrwbDecTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
DMp3DecoderTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int Mp3DecoderTestEnvironment::initFromOptions(int argc, char **argv) { in initFromOptions() argument
46 int c = getopt_long(argc, argv, "P:", options, &index); in initFromOptions()
66 argv[optind ?: 1], argv[0]); in initFromOptions()

12345678910>>...14