Home
last modified time | relevance | path

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

1234

/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java436 static void validate(Options opts) { in validate() argument
437 if (opts == null) return; in validate()
439 if (opts.inBitmap != null) { in validate()
440 if (opts.inBitmap.getConfig() == Bitmap.Config.HARDWARE) { in validate()
444 if (opts.inBitmap.isRecycled()) { in validate()
450 if (opts.inMutable && opts.inPreferredConfig == Bitmap.Config.HARDWARE) { in validate()
455 if (opts.inPreferredColorSpace != null) { in validate()
456 if (!(opts.inPreferredColorSpace instanceof ColorSpace.Rgb)) { in validate()
460 if (((ColorSpace.Rgb) opts.inPreferredColorSpace).getTransferParameters() == null) { in validate()
470 static long nativeInBitmap(Options opts) { in nativeInBitmap() argument
[all …]
/frameworks/base/core/java/android/app/
DActivityOptions.java417 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local
418 opts.mPackageName = context.getPackageName(); in makeCustomAnimation()
419 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation()
420 opts.mCustomEnterResId = enterResId; in makeCustomAnimation()
421 opts.mCustomExitResId = exitResId; in makeCustomAnimation()
422 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation()
423 return opts; in makeCustomAnimation()
452 ActivityOptions opts = makeCustomAnimation(context, enterResId, exitResId, handler, in makeCustomAnimation() local
454 opts.setOnAnimationFinishedListener(handler, finishedListener); in makeCustomAnimation()
455 return opts; in makeCustomAnimation()
[all …]
DBroadcastOptions.java70 BroadcastOptions opts = new BroadcastOptions(); in makeBasic() local
71 return opts; in makeBasic()
78 public BroadcastOptions(Bundle opts) { in BroadcastOptions() argument
79 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION); in BroadcastOptions()
80 mMinManifestReceiverApiLevel = opts.getInt(KEY_MIN_MANIFEST_RECEIVER_API_LEVEL, 0); in BroadcastOptions()
81 mMaxManifestReceiverApiLevel = opts.getInt(KEY_MAX_MANIFEST_RECEIVER_API_LEVEL, in BroadcastOptions()
83 mDontSendToRestrictedApps = opts.getBoolean(KEY_DONT_SEND_TO_RESTRICTED_APPS, false); in BroadcastOptions()
84 mAllowBackgroundActivityStarts = opts.getBoolean(KEY_ALLOW_BACKGROUND_ACTIVITY_STARTS, in BroadcastOptions()
/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/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java52 @Nullable Rect padding, @Nullable Options opts, long inBitmapHandle, in nativeDecodeStream() argument
58 if (opts != null) { in nativeDecodeStream()
59 density = Density.getEnum(opts.inDensity); in nativeDecodeStream()
60 if (opts.inPremultiplied) { in nativeDecodeStream()
63 opts.inScaled = false; in nativeDecodeStream()
104 Rect padding, Options opts, long inBitmapHandle, long colorSpaceHandle) { in nativeDecodeFileDescriptor() argument
105 if (opts != null) { in nativeDecodeFileDescriptor()
106 opts.inBitmap = null; in nativeDecodeFileDescriptor()
112 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts, in nativeDecodeAsset() argument
114 if (opts != null) { in nativeDecodeAsset()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityOptionsTest.java46 ActivityOptions opts = ActivityOptions.makeBasic(); in testMerge_NoClobber() local
47 opts.setLaunchDisplayId(Integer.MAX_VALUE); in testMerge_NoClobber()
48 opts.setLaunchActivityType(ACTIVITY_TYPE_STANDARD); in testMerge_NoClobber()
49 opts.setLaunchWindowingMode(WINDOWING_MODE_FULLSCREEN); in testMerge_NoClobber()
50 opts.setAvoidMoveToFront(); in testMerge_NoClobber()
51 opts.setLaunchTaskId(Integer.MAX_VALUE); in testMerge_NoClobber()
52 opts.setLockTaskEnabled(true); in testMerge_NoClobber()
53 opts.setRotationAnimationHint(ROTATION_ANIMATION_ROTATE); in testMerge_NoClobber()
54 opts.setTaskAlwaysOnTop(true); in testMerge_NoClobber()
55 opts.setTaskOverlay(true, true); in testMerge_NoClobber()
[all …]
DPendingRemoteAnimationRegistryTest.java69 ActivityOptions opts = ActivityOptions.makeBasic(); in testOverrideActivityOptions() local
70 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideActivityOptions()
71 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions()
77 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testOverrideActivityOptions_null() local
78 assertNotNull(opts); in testOverrideActivityOptions_null()
79 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions_null()
98 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testTimeout_overridenEntry() local
99 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testTimeout_overridenEntry()
/frameworks/base/libs/hwui/tests/macrobench/
DTestSceneRunner.cpp65 void outputBenchmarkReport(const TestScene::Info& info, const TestScene::Options& opts, in outputBenchmarkReport() argument
86 report.iterations = static_cast<int64_t>(opts.count); in outputBenchmarkReport()
89 report.counters["items_per_second"] = opts.count / durationInS; in outputBenchmarkReport()
96 if (!opts.renderOffscreen) { in outputBenchmarkReport()
110 void run(const TestScene::Info& info, const TestScene::Options& opts, in run() argument
114 testContext.setRenderOffscreen(opts.renderOffscreen); in run()
122 std::unique_ptr<TestScene> scene(info.createScene(opts)); in run()
141 if (opts.renderOffscreen) { in run()
155 if (opts.renderAhead) { in run()
158 proxy->setRenderAheadDepth(opts.renderAhead); in run()
[all …]
/frameworks/base/startop/scripts/app_startup/
Dapp_startup_runner.py341 def coerce_to_list(opts: dict):
348 for key in opts:
349 val = opts[key]
356 opts = parse_options()
357 _debug = opts.debug
362 cmd_utils.SIMULATE = opts.simulate
364 print_utils.debug_print("parsed options: ", opts)
366 output_file = opts.output and open(opts.output, 'w') or sys.stdout
370 coerce_to_list(vars(opts)),
371 opts.loop_count)
[all …]
Dquery_compiler_filter.py206 opts = parse_options()
207 cmd_utils._debug = opts.debug
210 print_utils.debug_print("parsed options: ", opts)
213 package_dumpsys = remote_dumpsys_package(opts.package, opts.simulate)
219 filter = find_first_compiler_filter(dexopt_state, opts.package, opts.instruction_set)
226 …print("ERROR: Could not find any compiler-filter for package %s, isa %s" %(opts.package, opts.inst…
/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/startop/scripts/iorap/
Dcompiler_device.py64 opts = parse_options() variable
65 if opts.debug:
66 print_utils.DEBUG = opts.debug
67 print_utils.debug_print(opts)
68 sys.exit(main(**(vars(opts))))
Danalyze_prefetch_file.py153 opts = parse_options(argv[1:])
154 if opts.debug:
155 print_utils.DEBUG = opts.debug
156 print_utils.debug_print(opts)
158 prefetch_file = open_iorap_prefetch_file(opts.input)
160 if opts.raw:
163 print_stats_summary(prefetch_file, opts.upper_percent)
/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/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/shared/src/com/android/systemui/shared/system/
DActivityOptionsCompat.java85 public static ActivityOptions setFreezeRecentTasksList(ActivityOptions opts) {
86 opts.setFreezeRecentTasksReordering();
87 return opts;
/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/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);

1234