Lines Matching refs:cmd
50 #define SINGLE_ARG_INT_RETURN(cmd) \ argument
52 if (strcmp(argv[1], #cmd) == 0) { \
54 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
58 service->cmd(String16(argv[2]), &ret); \
63 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
69 #define SINGLE_INT_ARG_INT_RETURN(cmd) \ argument
71 if (strcmp(argv[1], #cmd) == 0) { \
73 fprintf(stderr, "Usage: %s " #cmd " <name>\n", argv[0]); \
77 service->cmd(atoi(argv[2]), &ret); \
82 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
88 #define SINGLE_ARG_PLUS_UID_INT_RETURN(cmd) \ argument
90 if (strcmp(argv[1], #cmd) == 0) { \
92 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
101 service->cmd(String16(argv[2]), uid, &ret); \
106 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
112 #define SINGLE_ARG_PLUS_UID_DATA_RETURN(cmd) \ argument
114 if (strcmp(argv[1], #cmd) == 0) { \
116 fprintf(stderr, "Usage: %s " #cmd " <name> <uid>\n", argv[0]); \
125 ::android::binder::Status ret = service->cmd(String16(argv[2]), uid, &data); \
137 #define STRING_ARG_DATA_STDIN_INT_RETURN(cmd) \ argument
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); \
153 printf(#cmd ": %s (%d)\n", responses[ret], ret); \
159 #define SINGLE_ARG_DATA_RETURN(cmd) \ argument
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); \