/frameworks/base/tools/aapt/ |
D | Main.cpp | 276 int main(int argc, char* const argv[]) in main() argument 287 if (argc < 2) { in main() 315 argc -= 2; in main() 321 while (argc && argv[0][0] == '-') { in main() 334 argc--; in main() 336 if (!argc) { in main() 347 argc--; in main() 349 if (!argc) { in main() 379 argc--; in main() 381 if (!argc) { in main() [all …]
|
/frameworks/base/cmds/app_process/ |
D | app_main.cpp | 43 void setClassNameAndArgs(const String8& className, int argc, char * const *argv) { in setClassNameAndArgs() argument 45 for (int i = 0; i < argc; ++i) { in setClassNameAndArgs() 120 static size_t computeArgBlockSize(int argc, char* const argv[]) { in computeArgBlockSize() argument 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 177 for (int i = 0; i < argc; ++i) { in main() 185 AppRuntime runtime(argv[0], computeArgBlockSize(argc, argv)); in main() 188 argc--; in main() 221 for (i = 0; i < argc; i++) { in main() [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | bctest.c | 59 int main(int argc, char **argv) in main() argument 71 argc--; in main() 73 while (argc > 0) { in main() 83 if (argc < 2) { in main() 89 argc--; in main() 92 if (argc < 2) { in main() 97 argc--; in main() 103 argc--; in main()
|
/frameworks/native/cmds/service/ |
D | service.cpp | 69 int main(int argc, char* const argv[]) in main() argument 75 int ic = getopt(argc, argv, "h?"); in main() 101 if (optind >= argc) { in main() 106 if (optind < argc) { in main() 129 if (optind+1 < argc) { in main() 141 while (optind < argc) { in main() 144 if (optind >= argc) { in main() 153 if (optind >= argc) { in main() 162 if (optind >= argc) { in main() 171 if (optind >= argc) { in main() [all …]
|
/frameworks/native/cmds/dumpstate/ |
D | main.cpp | 29 bool ShouldStartServiceAndWait(int argc, char* argv[]) { in ShouldStartServiceAndWait() argument 33 while ((c = getopt(argc, argv, "wdho:svqzpPBRSV:")) != -1 && !do_wait) { in ShouldStartServiceAndWait() 52 int main(int argc, char* argv[]) { in main() argument 53 if (ShouldStartServiceAndWait(argc, argv)) { in main() 66 return run_main(argc, argv); in main()
|
/frameworks/ml/nn/runtime/test/ |
D | TestMain.cpp | 94 void checkArgs(int argc, char** argv, int nextArg) { in checkArgs() argument 95 if (nextArg != argc) { in checkArgs() 101 int main(int argc, char** argv) { in main() argument 102 ::testing::InitGoogleTest(&argc, argv); in main() 104 if ((argc > 1) && std::isdigit(argv[1][0])) { in main() 106 checkArgs(argc, argv, 2); in main() 108 checkArgs(argc, argv, 1); in main()
|
/frameworks/base/cmds/idmap/ |
D | idmap.cpp | 238 int main(int argc, char **argv) in main() argument 244 for (int i = 0; i < argc; ++i) { in main() 252 if (argc == 2 && !strcmp(argv[1], "--help")) { in main() 257 if (argc == 5 && !strcmp(argv[1], "--fd")) { in main() 261 if (argc == 5 && !strcmp(argv[1], "--path")) { in main() 265 if (argc == 5 && !strcmp(argv[1], "--verify")) { in main() 269 if (argc >= 6 && !strcmp(argv[1], "--scan")) { in main() 271 for (int i = 5; i < argc; i++) { in main() 277 if (argc == 3 && !strcmp(argv[1], "--inspect")) { in main()
|
/frameworks/av/media/libeffects/factory/test/ |
D | DumpConfig.cpp | 22 int main(int argc, char* argv[]) { in main() argument 26 if (argc == 2 && strcmp(argv[1], "--legacy") == 0) { in main() 29 } else if ((argc == 2 || argc == 3) && strcmp(argv[1], "--xml") == 0) { in main() 31 if (argc == 3) { in main()
|
/frameworks/rs/script_api/ |
D | Generator.cpp | 157 static bool parseCommandLine(int argc, char* argv[], unsigned int* maxApiLevel, in parseCommandLine() argument 159 for (int i = 1; i < argc; i++) { in parseCommandLine() 163 if (i < argc) { in parseCommandLine() 189 int main(int argc, char* argv[]) { in main() argument 193 if (!parseCommandLine(argc, argv, &maxApiLevel, &specFileNames)) { in main()
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test_fixture.cpp | 58 int main(int argc, char* const argv[]) { in main() argument 59 if (argc == 2) { in main() 66 if (argc == 3) { in main() 73 if (argc > 1) { in main() 88 if (argc > index + 1) { in main()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 101 int main(int argc, const char** argv) in main() argument 103 if (argc <= 1) { in main() 106 if (argc == 3 && 0 == strcmp(argv[1], "list")) { in main() 109 if (argc == 4 && 0 == strcmp(argv[1], "print")) { in main() 112 return usage(argc, argv); in main()
|
/frameworks/base/tools/aapt2/ |
D | Main.cpp | 155 int MainImpl(int argc, char** argv) { in MainImpl() argument 156 if (argc < 1) { in MainImpl() 162 for (int i = 1; i < argc; i++) { in MainImpl() 180 int main(int argc, char** argv) { in main() argument 182 LPWSTR* wide_argv = CommandLineToArgvW(GetCommandLineW(), &argc); in main() 186 for (int i = 0; i < argc; i++) { in main() 197 for (int i = 0; i < argc; i++) { in main() 202 return MainImpl(argc, argv); in main()
|
/frameworks/base/libs/androidfw/tests/ |
D | CommonHelpers.cpp | 29 void InitializeTest(int* argc, char** argv) { in InitializeTest() argument 33 for (int i = 1; i < *argc; i++) { in InitializeTest() 37 for (int j = i; j != *argc; j++) { in InitializeTest() 40 --(*argc); in InitializeTest()
|
D | TestMain.cpp | 21 int main(int argc, char** argv) { in main() argument 22 ::testing::InitGoogleTest(&argc, argv); in main() 23 ::android::InitializeTest(&argc, argv); in main()
|
D | BenchMain.cpp | 23 int main(int argc, char** argv) { in main() argument 24 ::benchmark::Initialize(&argc, argv); in main() 25 ::android::InitializeTest(&argc, argv); in main()
|
/frameworks/base/tools/split-select/ |
D | Main.cpp | 240 static int main(int argc, char** argv) { in main() argument 242 argc--; in main() 249 while (argc > 0) { in main() 252 argc--; in main() 254 if (argc < 1) { in main() 261 argc--; in main() 263 if (argc < 1) { in main() 270 argc--; in main() 272 if (argc < 1) { in main() 294 argc--; in main() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | libsurfaceflinger_unittest_main.cpp | 44 int main(int argc, char **argv) { in main() argument 45 ::testing::InitGoogleTest(&argc, argv); in main() 53 for (int i = 1; i < argc; i++) { in main()
|
/frameworks/rs/tests/cpp_api/latency/ |
D | latency.cpp | 6 int main(int argc, char** argv) in main() argument 13 if (argc >= 2) { in main() 23 if (argc >= 3) { in main() 31 if (argc >= 4) { in main() 37 if (argc >= 5) { in main()
|
/frameworks/opt/gamesdk/samples/tuningfork/tfvalidate/ |
D | main.cpp | 42 int main(int argc, char **argv) { in main() argument 51 while ((opt=getopt(argc, argv, "+a:NFd")) != -1){ in main() 71 if (optind < argc) { in main() 72 for (int i=optind; i<argc; ++i) { in main()
|
/frameworks/native/cmds/cmd/ |
D | main.cpp | 21 int main(int argc, char* const argv[]) { in main() argument 25 arguments.reserve(argc - 1); in main() 27 for (int i = 1; i < argc; ++i) { in main()
|
/frameworks/native/cmds/installd/ |
D | otapreopt_chroot.cpp | 116 static int otapreopt_chroot(const int argc, char **arg) { in otapreopt_chroot() argument 119 if(argc < 3) { in otapreopt_chroot() 242 cmd.reserve(argc); in otapreopt_chroot() 246 for (size_t i = 2; i < static_cast<size_t>(argc); ++i) { in otapreopt_chroot() 270 int main(const int argc, char *argv[]) { in main() argument 271 return android::installd::otapreopt_chroot(argc, argv); in main()
|
/frameworks/av/media/codec2/hidl/1.0/vts/functional/master/ |
D | VtsHalMediaC2V1_0TargetMasterTest.cpp | 92 int main(int argc, char** argv) { in main() argument 94 ::testing::InitGoogleTest(&argc, argv); in main() 95 gEnv->init(&argc, argv); in main() 96 int status = gEnv->initFromOptions(argc, argv); in main()
|
/frameworks/native/cmds/bugreportz/ |
D | main.cpp | 44 int main(int argc, char* argv[]) { in main() argument 46 if (argc > 1) { in main() 49 while ((c = getopt(argc, argv, "hpv")) != -1) { in main()
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_info.cc | 43 bool ParseOptions(int argc, char* argv[], Options* options) { in ParseOptions() argument 44 for (int i = 1; i < argc; ++i) { in ParseOptions() 52 if (i >= argc) { in ParseOptions() 162 int main(int argc, char* argv[]) { in main() argument 169 if (!ParseOptions(argc, argv, &options)) in main()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | main.cpp | 55 int main(int argc, char* argv[]) { in main() argument 72 testing::InitGoogleTest(&argc, argv); in main() 73 testing::InitGoogleMock(&argc, argv); in main()
|