Home
last modified time | relevance | path

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

12345678910>>...18

/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/libs/binary_translation/backend/
Dgen_lir.py58 def main(argv): argument
79 mode = argv[1]
82 while argv[lir_def_files_end].endswith('lir_instructions.json'):
85 while argv[arch_def_files_end].endswith('machine_ir_intrinsic_binding.json'):
90 argv[lir_def_files_begin:lir_def_files_end],
91 argv[lir_def_files_end:arch_def_files_end],
92 argv[arch_def_files_end:])
93 gen_lir_lib.gen_code_2_cc(argv[2], arch, insns)
94 gen_lir_lib.gen_machine_info_h(argv[3], arch, insns)
95 gen_lir_lib.gen_machine_opcode_h(argv[4], arch, insns)
[all …]
/frameworks/libs/binary_translation/guest_abi/arm/
Dguest_arguments_test.cc32 padding[AlignUp(offsetof(GuestArgumentBuffer, argv), sizeof(uint32_t)) / sizeof(uint32_t) + in TEST()
34 } arguments = {{.argv = {0x55555555}}}; in TEST()
35 arguments.buffer.argv[1] = 0x3fd55555; in TEST()
36 arguments.buffer.argv[2] = 0x9999999a; in TEST()
37 arguments.buffer.argv[3] = 0x3fc99999; in TEST()
38 arguments.buffer.argv[4] = 0x92492492; in TEST()
39 arguments.buffer.argv[5] = 0x3fc24924; in TEST()
40 arguments.buffer.argv[6] = 0x745d1746; in TEST()
41 arguments.buffer.argv[7] = 0x3fb745d1; in TEST()
62 padding[AlignUp(offsetof(GuestArgumentBuffer, argv), sizeof(uint32_t)) / sizeof(uint32_t) + in TEST()
[all …]
/frameworks/av/media/libaudioclient/tests/
Dtest_create_utils.cpp70 int main(int argc, char** argv, test_func_t testFunc) { in main() argument
77 fprintf(stderr, "Usage: %s [-i input_params.txt] [-o output_params.txt]\n", argv[0]); in main()
81 argv++; in main()
82 while (*argv) { in main()
83 if (strcmp(*argv, "-i") == 0) { in main()
84 argv++; in main()
85 if (*argv) { in main()
86 inputFile = fopen(*argv, "r"); in main()
94 if (strcmp(*argv, "-o") == 0) { in main()
95 argv++; in main()
[all …]
/frameworks/libs/binary_translation/code_gen_lib/
Dcode_gen_lib_riscv64_test.cc133 ASSERT_EQ(1234u, buf->argv[0]); in DummyRunner2()
156 ASSERT_EQ(buf->argv[0], 0U); in Run10UInt8()
157 ASSERT_EQ(buf->argv[1], 0xffU); in Run10UInt8()
158 ASSERT_EQ(buf->argv[2], 2U); in Run10UInt8()
159 ASSERT_EQ(buf->argv[3], 3U); in Run10UInt8()
160 ASSERT_EQ(buf->argv[4], 4U); in Run10UInt8()
161 ASSERT_EQ(buf->argv[5], 5U); in Run10UInt8()
162 ASSERT_EQ(buf->argv[6], 6U); in Run10UInt8()
163 ASSERT_EQ(buf->argv[7], 0xf9U); in Run10UInt8()
166 buf->argv[0] = 0xf6; in Run10UInt8()
[all …]
/frameworks/native/cmds/service/
Dservice.cpp49 int main(int argc, char* const argv[]) in main() argument
55 char* prog_name = basename(argv[0]); in main()
58 int ic = getopt(argc, argv, "h?"); in main()
90 if (strcmp(argv[optind], "check") == 0) { in main()
93 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
94 aout << "Service " << argv[optind] << in main()
102 else if (strcmp(argv[optind], "list") == 0) { in main()
113 } else if (strcmp(argv[optind], "call") == 0) { in main()
117 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
119 int32_t code = atoi(argv[optind++]); in main()
[all …]
/frameworks/proto_logging/stats/stats_log_api_gen/
Dmain.cpp77 static int run(int argc, char const* const* argv) { in run() argument
96 if (0 == strcmp("--help", argv[index])) { in run()
99 } else if (0 == strcmp("--cpp", argv[index])) { in run()
105 cppFilename = argv[index]; in run()
106 } else if (0 == strcmp("--header", argv[index])) { in run()
112 headerFilename = argv[index]; in run()
113 } else if (0 == strcmp("--java", argv[index])) { in run()
119 javaFilename = argv[index]; in run()
120 } else if (0 == strcmp("--rust", argv[index])) { in run()
126 rustFilename = 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/libs/binary_translation/program_runner/
Dmain.cc52 Options ParseArgs(int argc, char* argv[]) { in ParseArgs() argument
58 int c = getopt(argc, argv, "+h:"); in ParseArgs()
82 int main(int argc, char* argv[], char* envp[]) { in main() argument
93 berberis::Options opts = berberis::ParseArgs(argc, argv); in main()
96 berberis::Usage(argv[0]); in main()
106 const_cast<const char**>(argv + optind), in main()
/frameworks/av/media/module/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/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/av/media/module/codecs/amrwb/dec/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/tests/HEVC/
DHEVCUtilsTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int HEVCUtilsTestEnvironment::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/module/esds/tests/
DESDSTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int ESDSTestEnvironment::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/module/id3/test/
DID3TestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int ID3TestEnvironment::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/xmlparser/test/
DXMLParserTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int XMLParserTestEnvironment::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/module/foundation/tests/OpusHeader/
DOpusHeaderTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int OpusHeaderTestEnvironment::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/module/foundation/tests/AVCUtils/
DAVCUtilsTestEnvironment.h31 int initFromOptions(int argc, char **argv);
41 int AVCUtilsTestEnvironment::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/module/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()

12345678910>>...18