Lines Matching refs:argv
43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument
46 mArgs.add(String8(argv[i])); in setClassNameAndArgs()
120 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument
134 uintptr_t start = reinterpret_cast<uintptr_t>(argv[0]); in computeArgBlockSize()
135 uintptr_t end = reinterpret_cast<uintptr_t>(argv[argc - 1]); in computeArgBlockSize()
136 end += strlen(argv[argc - 1]) + 1; in computeArgBlockSize()
173 int main(int argc, char* const argv[]) in main() argument
179 argv_String.append(argv[i]); in main()
185 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main()
189 argv++; in main()
223 runtime.addOption(strdup(argv[i])); in main()
227 ALOGV("app_process main add known option '%s'", argv[i]); in main()
235 if (strcmp(argv[i], spaced_commands[j]) == 0) { in main()
237 ALOGV("app_process main found known command '%s'", argv[i]); in main()
241 if (argv[i][0] != '-') { in main()
244 if (argv[i][1] == '-' && argv[i][2] == 0) { in main()
249 runtime.addOption(strdup(argv[i])); in main()
253 ALOGV("app_process main add option '%s'", argv[i]); in main()
265 const char* arg = argv[i++]; in main()
292 runtime.setClassNameAndArgs(className, argc - i, argv + i); in main()
296 char* const* argv_new = argv + i; in main()
327 args.add(String8(argv[i])); in main()