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

1234567

/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/av/camera/tests/
H A Dmain.cpp20 int main(int argc, char **argv) { argument
22 ::testing::InitGoogleTest(&argc, argv);
/frameworks/base/tools/aapt/
H A DMain.cpp247 int main(int argc, char* const argv[]) argument
249 char *prog = argv[0];
263 if (argv[1][0] == 'v')
265 else if (argv[1][0] == 'd')
267 else if (argv[1][0] == 'l')
269 else if (argv[1][0] == 'a')
271 else if (argv[1][0] == 'r')
273 else if (argv[1][0] == 'p')
275 else if (argv[1][0] == 'c')
277 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.cpp206 int main(int argc, char **argv) argument
213 strncat(buf, argv[i], sizeof(buf) - 1);
216 ALOGD("%s:%d: uid=%d gid=%d argv=%s\n", __FILE__, __LINE__, getuid(), getgid(), buf);
220 if (argc == 2 && !strcmp(argv[1], "--help")) {
225 if (argc == 5 && !strcmp(argv[1], "--fd")) {
226 return maybe_create_fd(argv[2], argv[3], argv[4]);
229 if (argc == 5 && !strcmp(argv[1], "--path")) {
230 return maybe_create_path(argv[
[all...]
/frameworks/webview/chromium/tools/
H A Djar_check.py58 def main(argv):
59 if len(argv) != 3:
60 print >>sys.stderr, 'Usage: %s jar_file whitelist_file' % argv[0]
62 invalid_files = JarCheck(argv[1], argv[2])
74 sys.exit(main(sys.argv))
H A Dgenerate_local_manifest.py44 if len(sys.argv) < 3:
48 android_build_top = sys.argv[1]
49 path_to_exclude = sys.argv[2]
52 if len(sys.argv) >= 4:
53 manifest_filename = sys.argv[3]
/frameworks/native/cmds/servicemanager/
H A Dbctest.c58 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.cpp29 usage(int argc, const char** argv) argument
31 const char* p = argv[0];
105 main(int argc, const char** argv) argument
110 if (argc == 3 && 0 == strcmp(argv[1], "list")) {
111 return perform_list(argv[2]);
113 if (argc == 4 && 0 == strcmp(argv[1], "print")) {
114 return perform_print(argv[2], argv[3]);
116 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/base/tools/aidl/
H A Doptions.cpp35 parse_options(int argc, const char* const* argv, Options *options) argument
39 if (argc >= 2 && 0 == strcmp(argv[1], "--preprocess")) {
43 options->outputFileName = argv[2];
45 options->filesToPreprocess.push_back(argv[i]);
57 const char* s = argv[i];
119 options->inputFileName = argv[i];
128 options->outputFileName = argv[i];
146 fprintf(stderr, " %s", argv[i]);
H A Doptions.h34 int parse_options(int argc, const char* const* argv, Options *options);
/frameworks/rs/cpu_ref/linkloader/android/
H A Dtest-librsloader.c68 int main(int argc, char **argv) { argument
70 fprintf(stderr, "USAGE: %s [ELF] [ARGS]\n", argv[0]);
74 int fd = open(argv[1], O_RDONLY);
76 fprintf(stderr, "ERROR: Unable to open the file: %s\n", argv[1]);
82 fprintf(stderr, "ERROR: Unable to stat the file: %s\n", argv[1]);
91 fprintf(stderr, "ERROR: Unable to mmap the file: %s\n", argv[1]);
106 int ret = main_stub(argc - 1, argv + 1);
/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/base/cmds/app_process/
H A Dapp_main.cpp42 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { argument
45 mArgs.add(String8(argv[i]));
120 static size_t computeArgBlockSize(int argc, char* const argv[]) { argument
131 // the start of the argument block (argv[0]) with the new name of
134 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]);
135 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]);
136 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/base/libs/common_time/
H A Dmain.cpp30 int main(int argc, char *argv[]) { argument
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp36 int main(int argc, char* argv[]) argument
39 fprintf(stderr, "Usage: %s <password>\n", argv[0]);
61 if (PKCS5_PBKDF2_HMAC_SHA1(argv[1], strlen(argv[1]), salt, SALT_LEN,
/frameworks/native/services/surfaceflinger/tests/screencap/
H A Dscreencap.cpp31 int main(int argc, char** argv) argument
34 printf("usage: %s path\n", argv[0]);
55 printf("saving file as PNG in %s ...\n", argv[1]);
60 SkImageEncoder::EncodeFile(argv[1], b,
/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/opt/net/wifi/service/tools/halutil/
H A Dhalutil.cpp950 void readTestOptions(int argc, char *argv[]){ argument
954 if (strcmp(argv[j], "-max_ap") == 0 && isdigit(argv[j+1][0])) {
955 stest_max_ap = atoi(argv[++j]);
957 } else if (strcmp(argv[j], "-base_period") == 0 && isdigit(argv[j+1][0])) {
958 stest_base_period = atoi(argv[++j]);
960 } else if (strcmp(argv[j], "-threshold") == 0 && isdigit(argv[j+1][0])) {
961 stest_threshold = atoi(argv[
1192 main(int argc, char *argv[]) argument
[all...]
/frameworks/compile/libbcc/tools/bcc_strip_attr/
H A Dbcc_strip_attr.cpp106 int main(int argc, char **argv) { argument
109 PrettyStackTraceProgram X(argc, argv);
113 cl::ParseCommandLineOptions(argc, argv, "strip function attribute pass\n");
117 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context));
119 errs() << argv[0] << ": error loading file '"
138 errs() << argv[0] << ": stripped module is broken!\n";
/frameworks/rs/cpu_ref/linkloader/
H A Dmain.cpp43 int argc, char **argv);
45 int main(int argc, char **argv) { argument
48 llvm::errs() << "USAGE: " << argv[0] << " [ELFObjectFile] [ARGS]\n";
53 char const *filename = argv[1];
65 dump_and_run_file(image, image_size, argc - 1, argv + 1);
142 void dump_and_run_object(Archiver &AR, int argc, char **argv) { argument
166 ((int (*)(int, char **))main_addr)(argc, argv);
172 int argc, char **argv) {
174 dump_and_run_object<32>(AR, argc, argv);
176 dump_and_run_object<64>(AR, argc, argv);
171 dump_and_run_file_from_archive(bool is32bit, Archiver &AR, int argc, char **argv) argument
180 dump_and_run_file(unsigned char const *image, size_t size, int argc, char **argv) argument
[all...]
/frameworks/av/drm/drmserver/
H A Dmain_drmserver.cpp29 int main(int argc, char** argv) argument

Completed in 774 milliseconds

1234567