/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 436 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/ |
D | ActivityOptions.java | 380 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local 381 opts.mPackageName = context.getPackageName(); in makeCustomAnimation() 382 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation() 383 opts.mCustomEnterResId = enterResId; in makeCustomAnimation() 384 opts.mCustomExitResId = exitResId; in makeCustomAnimation() 385 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation() 386 return opts; in makeCustomAnimation() 406 ActivityOptions opts = new ActivityOptions(); in makeCustomInPlaceAnimation() local 407 opts.mPackageName = context.getPackageName(); in makeCustomInPlaceAnimation() 408 opts.mAnimationType = ANIM_CUSTOM_IN_PLACE; in makeCustomInPlaceAnimation() [all …]
|
D | BroadcastOptions.java | 70 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/ |
D | CommandLineOptionsTests.cpp | 43 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/ |
D | BitmapFactory_Delegate.java | 52 @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/ |
D | ActivityOptionsTest.java | 46 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.setTaskOverlay(true, true); in testMerge_NoClobber() 55 opts.setSplitScreenCreateMode(SPLIT_SCREEN_CREATE_MODE_BOTTOM_OR_RIGHT); in testMerge_NoClobber() [all …]
|
D | PendingRemoteAnimationRegistryTest.java | 63 ActivityOptions opts = ActivityOptions.makeBasic(); in testOverrideActivityOptions() local 64 opts = mRegistry.overrideOptionsIfNeeded("com.android.test", opts); in testOverrideActivityOptions() 65 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions() 71 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testOverrideActivityOptions_null() local 72 assertNotNull(opts); in testOverrideActivityOptions_null() 73 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testOverrideActivityOptions_null() 93 final ActivityOptions opts = mRegistry.overrideOptionsIfNeeded("com.android.test", null); in testTimeout_overridenEntry() local 94 assertEquals(mAdapter, opts.getRemoteAnimationAdapter()); in testTimeout_overridenEntry()
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 65 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 117 testContext.setRenderOffscreen(opts.renderOffscreen); in run() 124 std::unique_ptr<TestScene> scene(info.createScene(opts)); in run() 143 if (opts.renderOffscreen) { in run() 157 if (opts.renderAhead) { in run() 160 proxy->setRenderAheadDepth(opts.renderAhead); in run() [all …]
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
D | ImageUtils.java | 107 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/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/ |
D | RecentsTaskLoadPlan.java | 92 public void preloadPlan(PreloadOptions opts, RecentsTaskLoader loader, int runningTaskId, in preloadPlan() argument 128 String title = opts.loadTitles in preloadPlan() 131 String titleDescription = opts.loadTitles in preloadPlan() 170 public void executePlan(Options opts, RecentsTaskLoader loader) { in executePlan() argument 180 boolean isRunningTask = (task.key.id == opts.runningTaskId); in executePlan() 181 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); in executePlan() 182 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); in executePlan() 185 if (opts.onlyLoadPausedActivities && isRunningTask) { in executePlan() 189 if (opts.loadIcons && (isRunningTask || isVisibleTask)) { in executePlan() 195 if (opts.loadThumbnails && isVisibleThumbnail) { in executePlan()
|
D | RecentsTaskLoader.java | 165 public synchronized void loadTasks(RecentsTaskLoadPlan plan, Options opts) { in loadTasks() argument 166 if (opts == null) { in loadTasks() 169 if (opts.onlyLoadForCache && opts.loadThumbnails) { in loadTasks() 177 plan.executePlan(opts, this); in loadTasks() 179 if (!opts.onlyLoadForCache) { in loadTasks() 180 mNumVisibleTasksLoaded = opts.numVisibleTasks; in loadTasks()
|
/frameworks/base/startop/scripts/app_startup/ |
D | query_compiler_filter.py | 200 opts = parse_options() 201 app_startup_runner._debug = opts.debug 204 _debug_print("parsed options: ", opts) 207 package_dumpsys = remote_dumpsys_package(opts.package, opts.simulate) 213 filter = find_first_compiler_filter(dexopt_state, opts.package, opts.instruction_set) 220 …print("ERROR: Could not find any compiler-filter for package %s, isa %s" %(opts.package, opts.inst…
|
D | app_startup_runner.py | 296 opts = parse_options() 297 _debug = opts.debug 300 _debug_print("parsed options: ", opts) 301 need_trace = not not set(opts.readaheads).intersection(set(_TRACING_READAHEADS)) 302 if need_trace and not opts.inodes: 306 output_file = opts.output and open(opts.output, 'w') or sys.stdout 308 combos = lambda: generate_run_combinations(RunCommandArgs, vars(opts)) 314 …exec = execute_run_combos(grouped_combos(), opts.simulate, opts.inodes, opts.timeout, opts.loop_co…
|
/frameworks/compile/slang/tests/P_foreach_options/ |
D | foreach_options.rscript | 10 rs_script_call_t opts = {0}; 11 opts.xStart=0; 12 opts.xEnd = 100;
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | single_source_script.rscript | 95 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/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | MainActivity.java | 112 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/supportlibsrc_gen/com/android/rs/unittest/ |
D | single_source_script.rscript | 97 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/opt/bitmap/src/com/android/bitmap/drawable/ |
D | ExtendedBitmapDrawable.java | 74 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/ |
D | TestService.java | 817 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/cmds/idmap2/ |
D | static-checks.sh | 88 local opts 90 opts="$(getopt -o cfh --long check,fix,help -- "$@")" 94 eval set -- "$opts"
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | ActivityOptionsCompat.java | 85 public static ActivityOptions setFreezeRecentTasksList(ActivityOptions opts) { 86 opts.setFreezeRecentTasksReordering(); 87 return opts;
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 250 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/av/media/libstagefright/ |
D | MediaTrack.cpp | 105 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/ |
D | healing.rscript | 138 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/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapsAlphaActivity.java | 56 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()
|