Lines Matching refs:argv
69 int main(int argc, char* const argv[]) in main() argument
75 int ic = getopt(argc, argv, "h?"); in main()
104 if (strcmp(argv[optind], "check") == 0) { in main()
107 sp<IBinder> service = sm->checkService(String16(argv[optind])); in main()
108 aout << "Service " << argv[optind] << in main()
116 else if (strcmp(argv[optind], "list") == 0) { in main()
127 } else if (strcmp(argv[optind], "call") == 0) { in main()
131 sp<IBinder> service = sm->checkService(String16(argv[optind++])); in main()
133 int32_t code = atoi(argv[optind++]); in main()
142 if (strcmp(argv[optind], "i32") == 0) { in main()
150 data.writeInt32(atoi(argv[optind++])); in main()
151 } else if (strcmp(argv[optind], "i64") == 0) { in main()
159 data.writeInt64(atoll(argv[optind++])); in main()
160 } else if (strcmp(argv[optind], "s16") == 0) { in main()
168 data.writeString16(String16(argv[optind++])); in main()
169 } else if (strcmp(argv[optind], "f") == 0) { in main()
177 data.writeFloat(atof(argv[optind++])); in main()
178 } else if (strcmp(argv[optind], "d") == 0) { in main()
186 data.writeDouble(atof(argv[optind++])); in main()
187 } else if (strcmp(argv[optind], "null") == 0) { in main()
190 } else if (strcmp(argv[optind], "intent") == 0) { in main()
206 char* key = strtok_r(argv[optind], "=", &context1); in main()
270 aerr << "service: unknown option " << argv[optind] << endl; in main()
280 aerr << "service: Service " << argv[serviceArg] in main()
294 aerr << "service: Unknown command " << argv[optind] << endl; in main()