Searched refs:argv (Results 1 - 25 of 178) sorted by relevance

12345678

/frameworks/base/libs/usb/tests/accessorytest/
H A Daccessory.c33 int main(int argc, char* argv[]) argument
43 argv += 1;
44 while (*argv) {
45 if (strcmp(*argv, "-ic") == 0) {
46 argv++;
47 if (*argv)
48 input_card = atoi(*argv);
49 } else if (strcmp(*argv, "-id") == 0) {
50 argv++;
51 if (*argv)
[all...]
/frameworks/base/tools/aapt/
H A DMain.cpp260 int main(int argc, char* const argv[]) argument
262 char *prog = argv[0];
276 if (argv[1][0] == 'v')
278 else if (argv[1][0] == 'd')
280 else if (argv[1][0] == 'l')
282 else if (argv[1][0] == 'a')
284 else if (argv[1][0] == 'r')
286 else if (argv[1][0] == 'p')
288 else if (argv[1][0] == 'c')
290 else if (argv[
[all...]
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
H A Djit.cpp31 int main(int argc, char** argv) argument
H A Dpass-function.c72 int main(int argc, char** argv) argument
H A Dpass-struct.c27 int main(int argc, char* argv[]) argument
/frameworks/base/cmds/idmap/
H A Didmap.cpp211 int main(int argc, char **argv) argument
218 strncat(buf, argv[i], sizeof(buf) - 1);
221 ALOGD("%s:%d: uid=%d gid=%d argv=%s\n", __FILE__, __LINE__, getuid(), getgid(), buf);
225 if (argc == 2 && !strcmp(argv[1], "--help")) {
230 if (argc == 5 && !strcmp(argv[1], "--fd")) {
231 return maybe_create_fd(argv[2], argv[3], argv[4]);
234 if (argc == 5 && !strcmp(argv[1], "--path")) {
235 return maybe_create_path(argv[
[all...]
/frameworks/rs/api/
H A DGenerator.cpp156 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, bool* forVerification, argument
159 if (argv[i][0] == '-') {
160 if (argv[i][1] == 'v') {
164 *maxApiLevel = strtol(argv[i], &end, 10);
166 cerr << "Error. Can't parse the version number" << argv[i] << "\n"; local
173 } else if (argv[i][1] == 'H') {
176 cerr << "Unrecognized flag %s\n" << argv[i] << "\n"; local
180 specFileNames->push_back(argv[i]);
190 int main(int argc, char* argv[]) { argument
195 if (!parseCommandLine(argc, argv,
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbctest.c59 int main(int argc, char **argv) argument
72 argv++;
74 if (!strcmp(argv[0],"alt")) {
82 } else if (!strcmp(argv[0],"lookup")) {
87 handle = svcmgr_lookup(bs, svcmgr, argv[1]);
88 fprintf(stderr,"lookup(%s) = %x\n", argv[1], handle);
90 argv++;
91 } else if (!strcmp(argv[0],"publish")) {
96 svcmgr_publish(bs, svcmgr, argv[1], &token);
98 argv
[all...]
/frameworks/base/cmds/backup/
H A Dbackup.cpp28 static int usage(int /* argc */, const char** argv) argument
30 const char* p = argv[0];
101 int main(int argc, const char** argv) argument
106 if (argc == 3 && 0 == strcmp(argv[1], "list")) {
107 return perform_list(argv[2]);
109 if (argc == 4 && 0 == strcmp(argv[1], "print")) {
110 return perform_print(argv[2], argv[3]);
112 return usage(argc, argv);
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c48 static int parsecmdline(int argc, char **argv,char **input_filename, char **output_filename, AACENC_PARAM *param) argument
65 argv++;
68 if (!strcmp(*argv, "-if"))
70 argv++;
72 *input_filename = *argv;
74 else if (!strcmp(*argv, "-of"))
76 argv++;
78 *output_filename = *argv;
80 else if (!strcmp(*argv, "-sr"))
82 argv
133 main(int argc, char **argv) argument
[all...]
/frameworks/native/cmds/installd/
H A Dotapreopt_chroot.cpp81 const char* argv[1 + 9 + 1]; local
83 argv[0] = "/system/bin/otapreopt";
85 argv[i] = arg[i];
87 argv[10] = nullptr;
89 execv(argv[0], (char * const *)argv);
97 int main(const int argc, char *argv[]) { argument
98 return android::installd::otapreopt_chroot(argc, argv);
/frameworks/base/tools/aapt2/
H A DMain.cpp30 int main(int argc, char** argv) { argument
32 argv += 1;
37 args.push_back(argv[i]);
40 aapt::StringPiece command(argv[0]);
/frameworks/native/cmds/service/
H A Dservice.cpp69 int main(int argc, char* const argv[]) argument
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[optin
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/test/
H A Damrnbdec_test.cpp51 int main(int argc, char *argv[]) { argument
54 fprintf(stderr, "Usage %s <input file> <output file>\n", argv[0]);
59 FILE* fpInput = fopen(argv[1], "rb");
61 fprintf(stderr, "Could not open %s\n", argv[1]);
79 SNDFILE *handle = sf_open(argv[2], SFM_WRITE, &sfInfo);
81 fprintf(stderr, "Could not create %s\n", argv[2]);
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
H A Dmp3dec_test.cpp45 int main(int argc, const char **argv) { argument
48 fprintf(stderr, "Usage %s <input file> <output file>\n", argv[0]);
67 bool success = mp3Reader.init(argv[1]);
69 fprintf(stderr, "Encountered error reading %s\n", argv[1]);
80 SNDFILE *handle = sf_open(argv[2], SFM_WRITE, &sfInfo);
82 fprintf(stderr, "Encountered error writing %s\n", argv[2]);
/frameworks/av/services/mediacodec/
H A Dmain_codecservice.cpp35 int main(int argc __unused, char** argv) argument
41 strcpy(argv[0], "media.codec");
/frameworks/av/services/mediaextractor/
H A Dmain_extractorservice.cpp37 int main(int argc __unused, char** argv) argument
49 strcpy(argv[0], "media.extractor");
/frameworks/base/cmds/app_process/
H A Dapp_main.cpp43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { argument
46 mArgs.add(String8(argv[i]));
118 static size_t computeArgBlockSize(int argc, char* const argv[]) { argument
129 // the start of the argument block (argv[0]) with the new name of
132 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]);
133 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]);
134 end += strlen(argv[argc - 1]) + 1;
186 int main(int argc, char* const argv[]) argument
197 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv));
[all...]
/frameworks/av/camera/cameraserver/
H A Dmain_cameraserver.cpp25 int main(int argc __unused, char** argv __unused)
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp37 int main(int argc, char* argv[]) argument
40 fprintf(stderr, "Usage: %s <password>\n", argv[0]);
62 if (PKCS5_PBKDF2_HMAC_SHA1(argv[1], strlen(argv[1]), salt, SALT_LEN,
/frameworks/native/cmds/cmd/
H A Dcmd.cpp48 int main(int argc, char* const argv[]) argument
67 if ((argc == 2) && (strcmp(argv[1], "-l") == 0)) {
83 args.add(String16(argv[i]));
85 String16 cmd = String16(argv[1]);
88 aerr << "Can't find service: " << argv[1] << endl;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/test/
H A Damrnb_enc_test.cpp174 int main(int argc, char *argv[]) { argument
186 if (argv[arg][0] == '+') {
187 if (argv[arg][1] == 'M') {
188 switch (argv[arg][2]) {
207 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]);
213 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]);
219 inFileName = argv[arg];
222 outFileName = argv[arg];
226 fprintf(stderr, "Invalid parameter '%s'.\n", argv[arg]);
/frameworks/base/packages/Keyguard/scripts/
H A Dnew_merge.py83 def main(argv):
85 if len(argv) > 1:
86 if argv[1] == '--help' or argv[1] == '-h':
87 print ('Usage: %s [<commit>]' % argv[0])
91 elif argv[1] == '--reverse':
95 print ("**** Pulling file list from: %s" % argv[1])
96 pipe = Popen(['git', 'diff', '--name-only', argv[1]], stdout=PIPE).stdout
165 main(sys.argv)
/frameworks/av/media/libstagefright/codecs/amrwb/test/
H A Damrwbdec_test.cpp52 int main(int argc, char *argv[]) { argument
55 fprintf(stderr, "Usage %s <input file> <output file>\n", argv[0]);
60 FILE* fpInput = fopen(argv[1], "rb");
62 fprintf(stderr, "Could not open %s\n", argv[1]);
82 SNDFILE *handle = sf_open(argv[2], SFM_WRITE, &sfInfo);
84 fprintf(stderr, "Could not create %s\n", argv[2]);
/frameworks/compile/libbcc/tools/bcc_strip_attr/
H A Dbcc_strip_attr.cpp110 int main(int argc, char **argv) { argument
113 PrettyStackTraceProgram X(argc, argv);
117 cl::ParseCommandLineOptions(argc, argv, "strip function attribute pass\n");
121 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context));
123 errs() << argv[0] << ": error loading file '"
142 errs() << argv[0] << ": stripped module is broken!\n";

Completed in 660 milliseconds

12345678