Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 117) sorted by relevance

12345

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexoptOptionsTests.java45 DexoptOptions opt = new DexoptOptions(mPackageName, mCompilerFilter, /*flags*/ 0); in testCreateDexoptOptionsEmpty() local
46 assertEquals(mPackageName, opt.getPackageName()); in testCreateDexoptOptionsEmpty()
47 assertEquals(mCompilerFilter, opt.getCompilerFilter()); in testCreateDexoptOptionsEmpty()
48 assertEquals(null, opt.getSplitName()); in testCreateDexoptOptionsEmpty()
49 assertFalse(opt.isBootComplete()); in testCreateDexoptOptionsEmpty()
50 assertFalse(opt.isCheckForProfileUpdates()); in testCreateDexoptOptionsEmpty()
51 assertFalse(opt.isDexoptOnlySecondaryDex()); in testCreateDexoptOptionsEmpty()
52 assertFalse(opt.isDexoptOnlySharedDex()); in testCreateDexoptOptionsEmpty()
53 assertFalse(opt.isDowngrade()); in testCreateDexoptOptionsEmpty()
54 assertFalse(opt.isForce()); in testCreateDexoptOptionsEmpty()
[all …]
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
DRequestSync.java154 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/
DCommandLineOptions.cpp83 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse() argument
84 return opt.count != Option::COUNT_OPTIONAL && opt.count != Option::COUNT_OPTIONAL_ONCE_OR_MORE; in Parse()
88 [](const Option& opt) -> std::string { return opt.name; }); in Parse() argument
99 for (const Option& opt : options_) { in Parse() local
100 if (opt.name == arg) { in Parse()
103 if (opt.argument) { in Parse()
108 return Error("%s: missing argument\n%s", opt.name.c_str(), stream.str().c_str()); in Parse()
111 opt.action(argv[i]); in Parse()
112 mandatory_opts.erase(opt.name); in Parse()
126 for (const auto& opt : mandatory_opts) { in Parse() local
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicBlend.java43 private void blend(int id, Allocation ain, Allocation aout, Script.LaunchOptions opt) { in blend() argument
50 forEach(id, ain, aout, null, opt); in blend()
70 public void forEachClear(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachClear() argument
71 blend(0, ain, aout, opt); in forEachClear()
101 public void forEachSrc(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrc() argument
135 public void forEachDst(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachDst() argument
165 public void forEachSrcOver(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachSrcOver() argument
166 blend(3, ain, aout, opt); in forEachSrcOver()
195 public void forEachDstOver(Allocation ain, Allocation aout, Script.LaunchOptions opt) { in forEachDstOver() argument
196 blend(4, ain, aout, opt); in forEachDstOver()
[all …]
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DViewfinderProcessor.java190 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/
DAm.java154 String opt; in runInstrument() local
155 while ((opt=nextOption()) != null) { in runInstrument()
156 if (opt.equals("-p")) { in runInstrument()
158 } else if (opt.equals("-w")) { in runInstrument()
160 } else if (opt.equals("-r")) { in runInstrument()
162 } else if (opt.equals("-m")) { in runInstrument()
164 } else if (opt.equals("-f")) { in runInstrument()
168 } else if (opt.equals("-e")) { in runInstrument()
172 } else if (opt.equals("--no_window_animation") in runInstrument()
173 || opt.equals("--no-window-animation")) { in runInstrument()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerShellCommand.java142 String opt; in runJob() local
143 while ((opt = getNextOption()) != null) { in runJob()
144 switch (opt) { in runJob()
161 pw.println("Error: unknown option '" + opt + "'"); in runJob()
199 String opt; in timeout() local
200 while ((opt = getNextOption()) != null) { in timeout()
201 switch (opt) { in timeout()
208 pw.println("Error: unknown option '" + opt + "'"); in timeout()
234 String opt; in cancelJob() local
235 while ((opt = getNextOption()) != null) { in cancelJob()
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorShellCommand.java54 String opt; in runSuggestTelephonyTimeZone() local
55 while ((opt = getNextArg()) != null) { in runSuggestTelephonyTimeZone()
56 if ("--suggestion".equals(opt)) { in runSuggestTelephonyTimeZone()
59 pw.println("Error: Unknown option: " + opt); in runSuggestTelephonyTimeZone()
80 String opt; in runSuggestManualTimeZone() local
81 while ((opt = getNextArg()) != null) { in runSuggestManualTimeZone()
82 if ("--suggestion".equals(opt)) { in runSuggestManualTimeZone()
85 pw.println("Error: Unknown option: " + opt); in runSuggestManualTimeZone()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerShellCommand.java340 public boolean handleOption(String opt, ShellCommand cmd) { in makeIntent()
341 if (opt.equals("-D")) { in makeIntent()
343 } else if (opt.equals("-N")) { in makeIntent()
345 } else if (opt.equals("-W")) { in makeIntent()
347 } else if (opt.equals("-P")) { in makeIntent()
350 } else if (opt.equals("--start-profiler")) { in makeIntent()
353 } else if (opt.equals("--sampling")) { in makeIntent()
355 } else if (opt.equals("--streaming")) { in makeIntent()
357 } else if (opt.equals("--attach-agent")) { in makeIntent()
365 } else if (opt.equals("--attach-agent-bind")) { in makeIntent()
[all …]
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerShellCommand.java128 String opt; in runList() local
129 while ((opt = getNextOption()) != null) { in runList()
130 switch (opt) { in runList()
135 err.println("Error: Unknown option: " + opt); in runList()
202 String opt; in runEnableDisable() local
203 while ((opt = getNextOption()) != null) { in runEnableDisable()
204 switch (opt) { in runEnableDisable()
209 err.println("Error: Unknown option: " + opt); in runEnableDisable()
223 String opt; in runEnableExclusive() local
224 while ((opt = getNextOption()) != null) { in runEnableExclusive()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/text/
DOptimizingLineBreaker.java59 Node[] opt = new Node[numBreaks]; in computeBreaks() local
60 opt[0] = new Node(-1, 0, 0, 0, false); in computeBreaks()
61 opt[numBreaks - 1] = new Node(-1, 0, 0, 0, false); in computeBreaks()
75 int lines = opt[pos].mPrevCount; in computeBreaks()
85 finalBreak, p.penalty) + opt[pos].mDemerits; in computeBreaks()
88 bestBreak = new Node(pos, opt[pos].mPrevCount + 1, demerits, in computeBreaks()
92 bestBreak.mPrevCount = opt[pos].mPrevCount + 1; in computeBreaks()
106 opt[i] = bestBreak; in computeBreaks()
113 int lines = opt[lastBreak].mPrevCount; in computeBreaks()
116 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
[all …]
/frameworks/compile/mclinker/tools/mcld/
DMain.cpp75 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/
Dllvm-rs-as.cpp40 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>
Drs_cc_options.cpp56 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()
136 for (llvm::opt::ArgList::const_iterator it = Args.begin(), ie = Args.end(); in ParseArguments()
138 const llvm::opt::Arg *A = *it; in ParseArguments()
139 if (A->getOption().getKind() == llvm::opt::Option::InputClass) in ParseArguments()
[all …]
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp74 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/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java335 String opt; in runGetModuleInfo() local
336 while ((opt = getNextOption()) != null) { in runGetModuleInfo()
337 switch (opt) { in runGetModuleInfo()
344 pw.println("Error: Unknown option: " + opt); in runGetModuleInfo()
372 String opt; in runLogVisibility() local
373 while ((opt = getNextOption()) != null) { in runLogVisibility()
374 switch (opt) { in runLogVisibility()
382 pw.println("Error: Unknown option: " + opt); in runLogVisibility()
658 String opt; in runListInstrumentation() local
659 while ((opt = getNextArg()) != null) { in runListInstrumentation()
[all …]
/frameworks/compile/libbcc/tools/bcc_compat/
DMain.cpp48 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/
Dbuild_test_apk.sh64 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/
Dtest.cpp90 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/
Dmain.cpp88 int opt; in main() local
90 while ((opt = getopt(argc, argv, "hs:")) != -1) { in main()
91 switch (opt) { in main()
/frameworks/native/cmds/surfacereplayer/replayer/
DMain.cpp67 int opt = 0; in main() local
68 while ((opt = getopt(argc, argv, "mt:s:nlh?")) != -1) { in main()
69 switch (opt) { in main()
/frameworks/base/core/java/android/app/timezonedetector/
DManualTimeZoneSuggestion.java136 String opt; in parseCommandLineArg() local
137 while ((opt = cmd.getNextArg()) != null) { in parseCommandLineArg()
138 switch (opt) { in parseCommandLineArg()
144 throw new IllegalArgumentException("Unknown option: " + opt); in parseCommandLineArg()
/frameworks/base/cmds/dpm/src/com/android/commands/dpm/
DDpm.java165 String opt; in parseArgs() local
166 while ((opt = nextOption()) != null) { in parseArgs()
167 if ("--user".equals(opt)) { in parseArgs()
182 } else if (canHaveName && "--name".equals(opt)) { in parseArgs()
185 throw new IllegalArgumentException("Unknown option: " + opt); in parseArgs()
/frameworks/opt/net/voip/
DAndroid.bp16 name: "opt-net-voip-srcs",
25 name: "opt-net-voip-htmls",
34 srcs: [":opt-net-voip-srcs"],
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreManagerShellCommand.java142 String opt; in parseOptions() local
143 while ((opt = getNextOption()) != null) { in parseOptions()
144 switch (opt) { in parseOptions()
168 pw.println("Error: unknown option '" + opt + "'"); in parseOptions()

12345