Home | History | Annotate | Download | only in service

Lines Matching refs:optind

88     if (optind >= argc) {
91 if (strcmp(argv[optind], "check") == 0) {
92 optind++;
93 if (optind < argc) {
94 sp<IBinder> service = sm->checkService(String16(argv[optind]));
95 aout << "Service " << argv[optind] <<
103 else if (strcmp(argv[optind], "list") == 0) {
114 } else if (strcmp(argv[optind], "call") == 0) {
115 optind++;
116 if (optind+1 < argc) {
117 int serviceArg = optind;
118 sp<IBinder> service = sm->checkService(String16(argv[optind++]));
120 int32_t code = atoi(argv[optind++]);
128 while (optind < argc) {
129 if (strcmp(argv[optind], "i32") == 0) {
130 optind++;
131 if (optind >= argc) {
137 data.writeInt32(atoi(argv[optind++]));
138 } else if (strcmp(argv[optind], "s16") == 0) {
139 optind++;
140 if (optind >= argc) {
146 data.writeString16(String16(argv[optind++]));
147 } else if (strcmp(argv[optind], "null") == 0) {
148 optind++;
150 } else if (strcmp(argv[optind], "intent") == 0) {
162 optind++;
164 while (optind < argc)
166 char* key = strtok_r(argv[optind], "=", &context1);
205 optind++;
230 aerr << "service: unknown option " << argv[optind] << endl;
245 if (optind < argc) {
254 aerr << "service: Unknown command " << argv[optind] << endl;