Lines Matching refs:argv

52         if (strcmp(argv[1], #cmd) == 0) { \
54 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
58 service->cmd(String16(argv[2]), &ret); \
60 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
71 if (strcmp(argv[1], #cmd) == 0) { \
73 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
77 service->cmd(atoi(argv[2]), &ret); \
79 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
90 if (strcmp(argv[1], #cmd) == 0) { \
92 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
97 uid = atoi(argv[3]); \
101 service->cmd(String16(argv[2]), uid, &ret); \
103 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
114 if (strcmp(argv[1], #cmd) == 0) { \
116 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
122 uid = atoi(argv[3]); \
125 ::android::binder::Status ret = service->cmd(String16(argv[2]), uid, &data); \
139 if (strcmp(argv[1], #cmd) == 0) { \
141 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
148 service->cmd(String16(argv[2]), data, dataSize, &ret); \
150 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
161 if (strcmp(argv[1], #cmd) == 0) { \
163 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
167 ::android::binder::Status ret = service->cmd(String16(argv[2]), &data); \
195 int main(int argc, char* argv[]) in main() argument
198 fprintf(stderr, "Usage: %s action [parameter ...]\n", argv[0]); in main()
207 fprintf(stderr, "%s: error: could not connect to keystore service\n", argv[0]); in main()
225 if (strcmp(argv[1], "list") == 0) { in main()
226 return list(service, argc < 3 ? String16("") : String16(argv[2]), in main()
227 argc < 4 ? -1 : atoi(argv[3])); in main()
246 fprintf(stderr, "%s: unknown command: %s\n", argv[0], argv[1]); in main()