/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexoptOptionsTests.java | 48 DexoptOptions opt = new DexoptOptions(mPackageName, mCompilerFilter, /*flags*/ 0); in testCreateDexoptOptionsEmpty() local 49 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsEmpty() 50 assertEquals(mCompilerFilter, opt.getCompilerFilter()); in testCreateDexoptOptionsEmpty() 51 assertEquals(null, opt.getSplitName()); in testCreateDexoptOptionsEmpty() 52 assertFalse(opt.isBootComplete()); in testCreateDexoptOptionsEmpty() 53 assertFalse(opt.isCheckForProfileUpdates()); in testCreateDexoptOptionsEmpty() 54 assertFalse(opt.isDexoptOnlySecondaryDex()); in testCreateDexoptOptionsEmpty() 55 assertFalse(opt.isDowngrade()); in testCreateDexoptOptionsEmpty() 56 assertFalse(opt.isForce()); in testCreateDexoptOptionsEmpty() 57 assertFalse(opt.isDexoptIdleBackgroundJob()); in testCreateDexoptOptionsEmpty() [all …]
|
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/ |
D | RequestSync.java | 154 String opt; in parseArgs() local 155 while ((opt=nextOption()) != null) { in parseArgs() 156 if (opt.equals("-h") || opt.equals("--help")) { in parseArgs() 159 } else if (opt.equals("-n") || opt.equals("--account-name")) { in parseArgs() 161 } else if (opt.equals("-t") || opt.equals("--account-type")) { in parseArgs() 163 } else if (opt.equals("-a") || opt.equals("--authority")) { in parseArgs() 165 } else if (opt.equals("--is") || opt.equals("--ignore-settings")) { in parseArgs() 167 } else if (opt.equals("--ib") || opt.equals("--ignore-backoff")) { in parseArgs() 169 } else if (opt.equals("--dd") || opt.equals("--discard-deletions")) { in parseArgs() 171 } else if (opt.equals("--nr") || opt.equals("--no-retry")) { in parseArgs() [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | CommandLineOptions.cpp | 85 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse() argument 86 return opt.count != Option::COUNT_OPTIONAL && opt.count != Option::COUNT_OPTIONAL_ONCE_OR_MORE; in Parse() 90 [](const Option& opt) -> std::string { return opt.name; }); in Parse() argument 101 for (const Option& opt : options_) { in Parse() local 102 if (opt.name == arg) { in Parse() 105 if (opt.argument) { in Parse() 110 return Error("%s: missing argument\n%s", opt.name.c_str(), stream.str().c_str()); in Parse() 113 opt.action(argv[i]); in Parse() 114 mandatory_opts.erase(opt.name); in Parse() 128 for (const auto& opt : mandatory_opts) { in Parse() local [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicBlend.java | 48 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) { in blend() argument 55 forEach(id, ain, aout, null, opt); in blend() 75 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachClear() argument 76 blend(0, ain, aout, opt); in forEachClear() 106 public void forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrc() argument 107 blend(1, ain, aout, opt); in forEachSrc() 140 public void forEachDst(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachDst() argument 170 public void forEachSrcOver(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrcOver() argument 171 blend(3, ain, aout, opt); in forEachSrcOver() 200 public void forEachDstOver(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachDstOver() argument [all …]
|
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/ |
D | ViewfinderProcessor.java | 190 Script.LaunchOptions opt = new Script.LaunchOptions(); in run() local 191 opt.setX(2, mBlurAllocation.getType().getX() - 2); in run() 192 opt.setY(2, mBlurAllocation.getType().getY() - 2); in run() 193 mScriptCanny.forEach_blur_uchar(mBlurAllocation, opt); in run() 195 opt.setX(3, mBlurAllocation.getType().getX() - 3); in run() 196 opt.setY(3, mBlurAllocation.getType().getY() - 3); in run() 197 mScriptCanny.forEach_edge(mEdgeAllocation, opt); in run() 199 opt.setX(4, mBlurAllocation.getType().getX() - 4); in run() 200 opt.setY(4, mBlurAllocation.getType().getY() - 4); in run() 201 mScriptCanny.forEach_thin(mBlurAllocation, opt); in run() [all …]
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Am.java | 159 String opt; in runInstrument() local 160 while ((opt=nextOption()) != null) { in runInstrument() 161 if (opt.equals("-p")) { in runInstrument() 163 } else if (opt.equals("-w")) { in runInstrument() 165 } else if (opt.equals("-r")) { in runInstrument() 167 } else if (opt.equals("-m")) { in runInstrument() 169 } else if (opt.equals("-f")) { in runInstrument() 173 } else if (opt.equals("-e")) { in runInstrument() 177 } else if (opt.equals("--no_window_animation") in runInstrument() 178 || opt.equals("--no-window-animation")) { in runInstrument() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobSchedulerShellCommand.java | 185 String opt; in runJob() local 186 while ((opt = getNextOption()) != null) { in runJob() 187 switch (opt) { in runJob() 209 pw.println("Error: unknown option '" + opt + "'"); in runJob() 253 String opt; in timeout() local 254 while ((opt = getNextOption()) != null) { in timeout() 255 switch (opt) { in timeout() 267 pw.println("Error: unknown option '" + opt + "'"); in timeout() 296 String opt; in cancelJob() local 297 while ((opt = getNextOption()) != null) { in cancelJob() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerServiceShellCommand.java | 170 String opt; in runList() local 171 while ((opt = getNextOption()) != null) { in runList() 172 switch (opt) { in runList() 181 pw.println("Invalid option: " + opt); in runList() 260 String opt; in runReportPackageAllowlistProblems() local 261 while ((opt = getNextOption()) != null) { in runReportPackageAllowlistProblems() 262 switch (opt) { in runReportPackageAllowlistProblems() 274 pw.println("Invalid option: " + opt); in runReportPackageAllowlistProblems() 308 String opt; in runSetSystemUserModeEmulation() local 309 while ((opt = getNextOption()) != null) { in runSetSystemUserModeEmulation() [all …]
|
D | PackageManagerShellCommand.java | 444 String opt; in runGetModuleInfo() local 445 while ((opt = getNextOption()) != null) { in runGetModuleInfo() 446 switch (opt) { in runGetModuleInfo() 453 pw.println("Error: Unknown option: " + opt); in runGetModuleInfo() 481 String opt; in runLogVisibility() local 482 while ((opt = getNextOption()) != null) { in runLogVisibility() 483 switch (opt) { in runLogVisibility() 491 pw.println("Error: Unknown option: " + opt); in runLogVisibility() 609 String opt; in runRollbackApp() local 611 while ((opt = getNextOption()) != null) { in runRollbackApp() [all …]
|
/frameworks/native/libs/ftl/ |
D | optional_test.cpp | 53 Optional opt = std::optional("test"s); in TEST() local 54 static_assert(std::is_same_v<decltype(opt), Optional<std::string>>); in TEST() 56 ASSERT_TRUE(opt); in TEST() 57 EXPECT_EQ(opt.value(), "test"s); in TEST() 72 Optional opt = 'x'; in TEST() local 73 EXPECT_EQ('z', opt.transform([](char& c) { in TEST() 78 EXPECT_EQ('y', opt); in TEST() 94 Optional opt = "food"s; in TEST() local 95 EXPECT_EQ(ftl::unit, opt.transform(ftl::unit_fn([](std::string& str) { str.pop_back(); }))); in TEST() 96 EXPECT_EQ(opt, "foo"s); in TEST() [all …]
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | AppHibernationShellCommand.java | 54 String opt; in runSetState() local 57 while ((opt = getNextOption()) != null) { in runSetState() 58 switch (opt) { in runSetState() 66 getErrPrintWriter().println("Error: Unknown option: " + opt); in runSetState() 92 String opt; in runGetState() local 95 while ((opt = getNextOption()) != null) { in runGetState() 96 switch (opt) { in runGetState() 104 getErrPrintWriter().println("Error: Unknown option: " + opt); in runGetState()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerShellCommand.java | 455 String opt; in runCapabilities() local 456 while ((opt = getNextOption()) != null) { in runCapabilities() 457 if (opt.equals("--protobuf")) { in runCapabilities() 460 err.println("Error: Unknown option: " + opt); in runCapabilities() 544 public boolean handleOption(String opt, ShellCommand cmd) { in makeIntent() 545 if (opt.equals("-D")) { in makeIntent() 547 } else if (opt.equals("--suspend")) { in makeIntent() 549 } else if (opt.equals("-N")) { in makeIntent() 551 } else if (opt.equals("-W")) { in makeIntent() 553 } else if (opt.equals("-P")) { in makeIntent() [all …]
|
/frameworks/opt/net/wifi/ |
D | MOVED.txt | 4 - frameworks/opt/net/wifi/service/apex -> packages/modules/Wifi/apex 5 - frameworks/opt/net/wifi/service/java -> packages/modules/Wifi/service/java 6 - frameworks/opt/net/wifi/service/res -> packages/modules/Wifi/service/ServiceWifiResources/res 7 - frameworks/opt/net/wifi/tests/ -> packages/modules/Wifi/service/tests 9 What remains in frameworks/opt/net/wifi are Wifi libraries that
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerShellCommand.java | 164 String opt; in runList() local 165 while ((opt = getNextOption()) != null) { in runList() 166 switch (opt) { in runList() 171 err.println("Error: Unknown option: " + opt); in runList() 238 String opt; in runEnableDisable() local 239 while ((opt = getNextOption()) != null) { in runEnableDisable() 240 switch (opt) { in runEnableDisable() 245 err.println("Error: Unknown option: " + opt); in runEnableDisable() 277 String opt; in runFabricate() local 279 while ((opt = getNextOption()) != null) { in runFabricate() [all …]
|
/frameworks/compile/mclinker/tools/mcld/ |
D | Main.cpp | 75 class OptTable : public llvm::opt::OptTable { 81 static const llvm::opt::OptTable::Info InfoTable[]; 101 bool TranslateArguments(llvm::opt::InputArgList& args); 125 const llvm::opt::OptTable::Info Driver::OptTable::InfoTable[] = { 129 llvm::opt::Option::KIND ## Class, PARAM, FLAGS, kOpt_ ## GROUP, \ 136 : llvm::opt::OptTable(InfoTable) { } in OptTable() 258 bool Driver::TranslateArguments(llvm::opt::InputArgList& args) { in TranslateArguments() 264 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Color)) { in TranslateArguments() 281 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_Verbose)) { in TranslateArguments() 293 if (llvm::opt::Arg* arg = args.getLastArg(kOpt_ErrorLimit)) { in TranslateArguments() [all …]
|
/frameworks/compile/slang/ |
D | rs_cc_options.cpp | 56 static const llvm::opt::OptTable::Info RSCCInfoTable[] = { 61 PREFIX, NAME, HELPTEXT, METAVAR, OPT_##ID, llvm::opt::Option::KIND##Class, \ 72 class RSCCOptTable : public llvm::opt::OptTable { 81 llvm::opt::OptTable *createRSCCOptTable() { return new RSCCOptTable(); } in createRSCCOptTable() 109 std::unique_ptr<llvm::opt::OptTable> OptParser(createRSCCOptTable()); in ParseArguments() 112 llvm::opt::InputArgList Args = in ParseArguments() 122 for (llvm::opt::arg_iterator it = Args.filtered_begin(OPT_UNKNOWN), in ParseArguments() 141 for (llvm::opt::ArgList::const_iterator it = Args.begin(), ie = Args.end(); in ParseArguments() 143 const llvm::opt::Arg *A = *it; in ParseArguments() 144 if (A->getOption().getKind() == llvm::opt::Option::InputClass) in ParseArguments() [all …]
|
D | llvm-rs-as.cpp | 40 static cl::opt<std::string> 43 static cl::opt<std::string> 47 static cl::opt<bool> 50 static cl::opt<bool> 53 static cl::opt<uint32_t> 58 static cl::opt<bool> 61 static cl::opt<bool>
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsShellCommand.java | 89 String opt; in getUserId() local 90 while ((opt = getNextOption()) != null) { in getUserId() 91 if ("-u".equals(opt) || "--user".equals(opt)) { in getUserId() 94 getErrPrintWriter().println("Error: unknown option: " + opt); in getUserId()
|
/frameworks/compile/libbcc/tools/bcc/ |
D | Main.cpp | 74 llvm::cl::opt<std::string> 79 llvm::cl::opt<std::string> 83 llvm::cl::opt<std::string> 89 llvm::cl::opt<std::string> 94 llvm::cl::opt<bool> 98 llvm::cl::opt<std::string> 109 llvm::cl::opt<bool> 113 llvm::cl::opt<bool> 117 llvm::cl::opt<bool> 122 llvm::cl::opt<std::string> [all …]
|
/frameworks/native/cmds/idlcli/ |
D | IdlCli.h | 40 auto opt = *args.pop<std::string>(); in doArgs() local 41 if (opt == "--") { in doArgs() 43 } else if (opt == "-n") { in doArgs() 51 std::cerr << "Invalid Option '" << opt << "'!" << std::endl; in doArgs()
|
/frameworks/native/services/surfaceflinger/Utils/ |
D | Dumper.h | 60 void dump(std::string_view name, const std::optional<T>& opt) { in dump() argument 61 if (opt) { in dump() 62 dump(name, *opt); in dump() 70 void dump(std::string_view name, const ftl::Optional<T>& opt) { in dump() argument 71 dump(name, static_cast<const std::optional<T>&>(opt)); in dump()
|
/frameworks/compile/libbcc/tools/bcc_compat/ |
D | Main.cpp | 48 llvm::cl::opt<std::string> 52 llvm::cl::opt<std::string> 56 llvm::cl::opt<std::string> 70 llvm::cl::opt<bool> 74 llvm::cl::opt<char> 79 llvm::cl::opt<bool> 88 llvm::cl::opt<std::string> 94 llvm::cl::opt<bool>
|
/frameworks/compile/libbcc/tests/debuginfo/ |
D | build_test_apk.sh | 64 opt="$1" 65 case "$opt" in 109 echo "ERROR: Unknown option '$opt', use --help for list of valid ones." 114 PARAMETERS="$opt" 116 PARAMETERS="$PARAMETERS $opt"
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | test.cpp | 90 JNIEnv *_env, jobject _this, jlong _b, jlong opt) { in Java_com_android_benchmark_synthetic_TestInterface_nMemTestBandwidth() argument 92 return b->runMemoryBandwidthTest(opt); in Java_com_android_benchmark_synthetic_TestInterface_nMemTestBandwidth() 96 JNIEnv *_env, jobject _this, jlong _b, jlong opt) { in Java_com_android_benchmark_synthetic_TestInterface_nGFlopsTest() argument 98 return b->runGFlopsTest(opt); in Java_com_android_benchmark_synthetic_TestInterface_nGFlopsTest() 102 JNIEnv *_env, jobject _this, jlong _b, jlong opt) { in Java_com_android_benchmark_synthetic_TestInterface_nMemTestLatency() argument 104 return b->runMemoryLatencyTest(opt); in Java_com_android_benchmark_synthetic_TestInterface_nMemTestLatency()
|
/frameworks/base/cmds/incident_helper/src/ |
D | main.cpp | 88 int opt; in main() local 90 while ((opt = getopt(argc, argv, "hs:")) != -1) { in main() 91 switch (opt) { in main()
|