Lines Matching refs:argv

49         if (strcmp(argv[1], #cmd) == 0) { \
52 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
63 if (strcmp(argv[1], #cmd) == 0) { \
65 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
68 int32_t ret = service->cmd(String16(argv[2])); \
70 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
81 if (strcmp(argv[1], #cmd) == 0) { \
83 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
86 int32_t ret = service->cmd(atoi(argv[2])); \
88 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
99 if (strcmp(argv[1], #cmd) == 0) { \
101 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
106 uid = atoi(argv[3]); \
109 int32_t ret = service->cmd(String16(argv[2]), uid); \
111 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
122 if (strcmp(argv[1], #cmd) == 0) { \
124 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
131 uid = atoi(argv[3]); \
134 int32_t ret = service->cmd(String16(argv[2]), uid, &data, &dataSize); \
136 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
139 fprintf(stderr, "%s: " #cmd ": %s (%d)\n", argv[0], responses[ret], ret); \
152 if (strcmp(argv[1], #cmd) == 0) { \
154 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
160 int32_t ret = service->cmd(String16(argv[2]), data, dataSize); \
162 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
173 if (strcmp(argv[1], #cmd) == 0) { \
175 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
180 int32_t ret = service->cmd(String16(argv[2]), &data, &dataSize); \
182 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \
185 fprintf(stderr, "%s: " #cmd ": %s (%d)\n", argv[0], responses[ret], ret); \
214 int main(int argc, char* argv[]) in main() argument
217 fprintf(stderr, "Usage: %s action [parameter ...]\n", argv[0]); in main()
226 fprintf(stderr, "%s: error: could not connect to keystore service\n", argv[0]); in main()
244 if (strcmp(argv[1], "list") == 0) { in main()
245 return list(service, argc < 3 ? String16("") : String16(argv[2]), in main()
246 argc < 4 ? -1 : atoi(argv[3])); in main()
269 fprintf(stderr, "%s: unknown command: %s\n", argv[0], argv[1]); in main()