Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 119) sorted by relevance

12345

/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java446 static void validate(Options opts) { in validate() argument
447 if (opts == null) return; in validate()
449 if (opts.inBitmap != null) { in validate()
450 if (opts.inBitmap.getConfig() == Bitmap.Config.HARDWARE) { in validate()
454 if (opts.inBitmap.isRecycled()) { in validate()
460 if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) { in validate()
465 if (opts.inPreferredColorSpace != null) { in validate()
466 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) { in validate()
470 if (!opts.inPreferredColorSpace.equals(ColorSpace.get(ColorSpace.Named.BT2020_HLG)) in validate()
471 && !opts.inPreferredColorSpace.equals( in validate()
[all …]
/frameworks/base/core/java/android/app/
DActivityOptions.java606 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local
607 opts.mPackageName = context.getPackageName(); in makeCustomAnimation()
608 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation()
609 opts.mCustomEnterResId = enterResId; in makeCustomAnimation()
610 opts.mCustomExitResId = exitResId; in makeCustomAnimation()
611 opts.mCustomBackgroundColor = backgroundColor; in makeCustomAnimation()
612 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation()
613 return opts; in makeCustomAnimation()
643 ActivityOptions opts = makeCustomAnimation(context, enterResId, exitResId, backgroundColor, in makeCustomAnimation() local
645 opts.setOnAnimationFinishedListener(handler, finishedListener); in makeCustomAnimation()
[all …]
DBroadcastOptions.java313 BroadcastOptions opts = new BroadcastOptions(); in makeBasic() local
314 return opts; in makeBasic()
326 public BroadcastOptions(@NonNull Bundle opts) { in BroadcastOptions() argument
327 super(opts); in BroadcastOptions()
329 mFlags = opts.getInt(KEY_FLAGS, 0); in BroadcastOptions()
330 if (opts.containsKey(KEY_TEMPORARY_APP_ALLOWLIST_DURATION)) { in BroadcastOptions()
331 mTemporaryAppAllowlistDuration = opts.getLong(KEY_TEMPORARY_APP_ALLOWLIST_DURATION); in BroadcastOptions()
332 mTemporaryAppAllowlistType = opts.getInt(KEY_TEMPORARY_APP_ALLOWLIST_TYPE); in BroadcastOptions()
333 mTemporaryAppAllowlistReasonCode = opts.getInt(KEY_TEMPORARY_APP_ALLOWLIST_REASON_CODE, in BroadcastOptions()
335 mTemporaryAppAllowlistReason = opts.getString(KEY_TEMPORARY_APP_ALLOWLIST_REASON); in BroadcastOptions()
[all …]
DComponentOptions.java64 ComponentOptions(Bundle opts) { in ComponentOptions() argument
67 opts.setDefusable(true); in ComponentOptions()
70 opts.getInt(KEY_PENDING_INTENT_BACKGROUND_ACTIVITY_ALLOWED, in ComponentOptions()
73 opts.getBoolean( in ComponentOptions()
/frameworks/base/cmds/idmap2/tests/
DCommandLineOptionsTests.cpp43 CommandLineOptions opts = in TEST() local
46 auto success = opts.Parse({"--foo", "--bar"}); in TEST()
52 success = opts.Parse({"--foo"}); in TEST()
61 CommandLineOptions opts = CommandLineOptions("test") in TEST() local
64 auto success = opts.Parse({"--foo", "FOO", "--bar", "BAR"}); in TEST()
69 success = opts.Parse({"--foo"}); in TEST()
75 CommandLineOptions opts = CommandLineOptions("test").MandatoryOption("--foo", "", &foo); in TEST() local
76 auto success = opts.Parse({"--foo", "FIRST", "--foo", "SECOND"}); in TEST()
83 CommandLineOptions opts = CommandLineOptions("test").MandatoryOption("--foo", "", &args); in TEST() local
84 auto success = opts.Parse({"--foo", "FOO", "--foo", "BAR"}); in TEST()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DPendingRemoteAnimationRegistryTest.java71 ActivityOptions opts = ActivityOptions.makeBasic(); in testOverrideActivityOptions() local
72 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideActivityOptions()
73 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions()
79 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testOverrideActivityOptions_null() local
80 assertNotNull(opts); in testOverrideActivityOptions_null()
81 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions_null()
87 ActivityOptions opts = ActivityOptions.makeBasic(); in testOverrideLaunchCookie() local
88 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideLaunchCookie()
89 assertNotNull(opts); in testOverrideLaunchCookie()
90 assertEquals(mLaunchCookie, opts.getLaunchCookie()); in testOverrideLaunchCookie()
[all …]
DActivityOptionsTest.java82 ActivityOptions opts = ActivityOptions.makeBasic(); in testMerge_NoClobber() local
83 opts.setLaunchDisplayId(Integer.MAX_VALUE); in testMerge_NoClobber()
84 opts.setLaunchActivityType(ACTIVITY_TYPE_STANDARD); in testMerge_NoClobber()
85 opts.setLaunchWindowingMode(WINDOWING_MODE_FULLSCREEN); in testMerge_NoClobber()
86 opts.setAvoidMoveToFront(); in testMerge_NoClobber()
87 opts.setLaunchTaskId(Integer.MAX_VALUE); in testMerge_NoClobber()
88 opts.setLockTaskEnabled(true); in testMerge_NoClobber()
89 opts.setRotationAnimationHint(ROTATION_ANIMATION_ROTATE); in testMerge_NoClobber()
90 opts.setTaskAlwaysOnTop(true); in testMerge_NoClobber()
91 opts.setTaskOverlay(true, true); in testMerge_NoClobber()
[all …]
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp81 void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options& opts, in outputBenchmarkReport() argument
85 report.repetitions = opts.repeatCount; in outputBenchmarkReport()
88 report.iterations = static_cast<int64_t>(opts.frameCount); in outputBenchmarkReport()
91 report.counters["FPS"] = opts.frameCount / durationInS; in outputBenchmarkReport()
92 if (opts.reportGpuMemoryUsage) { in outputBenchmarkReport()
101 static void doRun(const TestScene::Info& info, const TestScene::Options& opts, int repetitionIndex, in doRun() argument
103 if (opts.reportGpuMemoryUsage) { in doRun()
108 testContext.setRenderOffscreen(opts.renderOffscreen); in doRun()
116 std::unique_ptr<TestScene> scene(info.createScene(opts)); in doRun()
135 if (opts.renderOffscreen) { in doRun()
[all …]
/frameworks/libs/binary_translation/program_runner/
Dmain.cc55 Options opts{}; in ParseArgs() local
74 opts.print_help_and_exit = false; in ParseArgs()
75 return opts; in ParseArgs()
93 berberis::Options opts = berberis::ParseArgs(argc, argv); in main() local
95 if (opts.print_help_and_exit) { in main()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java107 final BitmapFactory.Options opts = new BitmapFactory.Options(); in createLocalBitmap() local
108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
109 result.bitmap = decodeStream(factory, null, opts); in createLocalBitmap()
143 final BitmapFactory.Options opts) throws FileNotFoundException { in decodeStream() argument
155 final Bitmap originalBitmap = BitmapFactory.decodeStream(is, outPadding, opts); in decodeStream()
157 if (is != null && originalBitmap == null && !opts.inJustDecodeBounds) { in decodeStream()
198 final BitmapFactory.Options opts = new BitmapFactory.Options(); in getImageBounds() local
199 opts.inJustDecodeBounds = true; in getImageBounds()
200 decodeStream(factory, null, opts); in getImageBounds()
202 return new Point(opts.outWidth, opts.outHeight); in getImageBounds()
/frameworks/base/libs/hwui/tests/unit/
Dmain.cpp75 Options opts; in parseOptions() local
92 opts.renderer = parseRenderer(optarg); in parseOptions()
96 return opts; in parseOptions()
119 auto opts = parseOptions(argc, argv); in main() local
120 Properties::overrideRenderPipelineType(opts.renderer); in main()
/frameworks/compile/slang/tests/P_foreach_options/
Dforeach_options.rscript10 rs_script_call_t opts = {0};
11 opts.xStart=0;
12 opts.xEnd = 100;
/frameworks/base/tools/lint/fix/
Dsoong_lint_fix.py210 def __init__(self, opts): argument
211 super().__init__(check=opts.check, lint_module=opts.lint_module)
212 self._opts = opts
270 opts = SoongLintFixOptions() variable
271 opts.parse_args()
272 SoongLintFix(opts).run()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DMainActivity.java112 ExtendedOptions opts = new ExtendedOptions( in getView() local
115 opts.decodeAggregator = mDecodeAggregator; in getView()
116 opts.parallaxSpeedMultiplier = NORMAL_PARALLAX_MULTIPLIER; in getView()
117 opts.backgroundColor = Color.LTGRAY; in getView()
119 mCache, true /* limit density */, opts); in getView()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dsingle_source_script.rscript95 rs_script_call_t opts = {0};
96 opts.xStart = 0;
97 opts.xEnd = dimX;
98 opts.yStart = 0;
99 opts.yEnd = dimY / 2;
100 rsForEachWithOptions(foo, &opts, out, out);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dsingle_source_script.rscript97 rs_script_call_t opts = {0};
98 opts.xStart = 0;
99 opts.xEnd = dimX;
100 opts.yStart = 0;
101 opts.yEnd = dimY / 2;
102 rsForEachWithOptions(foo, &opts, out, out);
/frameworks/base/cmds/idmap2/
Dstatic-checks.sh89 local opts
91 opts="$(getopt -o cfh --long check,fix,help -- "$@")"
95 eval set -- "$opts"
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
DExtendedBitmapDrawable.java74 final boolean limitDensity, ExtendedOptions opts) { in ExtendedBitmapDrawable() argument
77 if (opts == null) { in ExtendedBitmapDrawable()
78 opts = new ExtendedOptions(0); in ExtendedBitmapDrawable()
80 mOpts = opts; in ExtendedBitmapDrawable()
453 int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) { in Placeholder() argument
454 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts); in Placeholder()
456 if (opts.placeholderAnimationDuration == -1) { in Placeholder()
460 if (opts.placeholderAnimationDuration == 0) { in Placeholder()
463 pulseDuration = opts.placeholderAnimationDuration; in Placeholder()
540 ExtendedOptions opts) { in Progress() argument
[all …]
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DTestService.java817 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun() local
818 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; in onRun()
836 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun() local
837 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; in onRun()
856 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun() local
857 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; in onRun()
859 R.drawable.stat_sample, opts); in onRun()
876 BitmapFactory.Options opts = new BitmapFactory.Options(); in onRun() local
877 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; in onRun()
879 R.drawable.stat_sample, opts); in onRun()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSmartActionsReceiver.java56 ActivityOptions opts = ActivityOptions.makeBasic(); in onReceive() local
57 opts.setPendingIntentBackgroundActivityStartMode( in onReceive()
60 pendingIntent.send(context, 0, fillIn, null, null, null, opts.toBundle()); in onReceive()
/frameworks/native/opengl/tools/glgen2/
Dglgen.py250 for opts in TRAMPOLINE_OPTIONS:
251 registry.apiGen(opts)
268 for opts in API_OPTIONS:
269 registry.apiGen(opts)
296 for opts in API_OPTIONS:
297 registry.apiGen(opts)
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/
DBitmapsAlphaActivity.java56 BitmapFactory.Options opts = new BitmapFactory.Options(); in BitmapsView() local
57 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; in BitmapsView()
58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts); in BitmapsView()
/frameworks/av/media/libstagefright/
DMediaTrack.cpp105 uint32_t opts = 0; in read() local
108 opts |= CMediaTrackReadOptions::NONBLOCKING; in read()
114 opts |= SEEK; in read()
115 opts |= (uint32_t) seekMode; in read()
118 media_status_t ret = wrapper->read(wrapper->data, &buf, opts, seekPosition); in read()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dhealing.rscript138 rs_script_call_t opts = {0};
139 opts.xStart = 1;
140 opts.xEnd = width - 1;
141 opts.yStart = 1;
142 opts.yEnd = height - 1;
143 rsForEachWithOptions(laplacian, &opts, laplace);
/frameworks/base/cmds/idmap2/idmap2/
DDump.cpp44 const CommandLineOptions opts = in Dump() local
48 const auto opts_ok = opts.Parse(args); in Dump()

12345