/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 397 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile() argument 402 bm = decodeStream(stream, null, opts); in decodeFile() 436 InputStream is, Rect pad, Options opts) { in decodeResourceStream() argument 438 if (opts == null) { in decodeResourceStream() 439 opts = new Options(); in decodeResourceStream() 442 if (opts.inDensity == 0 && value != null) { in decodeResourceStream() 445 opts.inDensity = DisplayMetrics.DENSITY_DEFAULT; in decodeResourceStream() 447 opts.inDensity = density; in decodeResourceStream() 451 if (opts.inTargetDensity == 0 && res != null) { in decodeResourceStream() 452 opts.inTargetDensity = res.getDisplayMetrics().densityDpi; in decodeResourceStream() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ActivityOptions.java | 289 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local 290 opts.mPackageName = context.getPackageName(); in makeCustomAnimation() 291 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation() 292 opts.mCustomEnterResId = enterResId; in makeCustomAnimation() 293 opts.mCustomExitResId = exitResId; in makeCustomAnimation() 294 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation() 295 return opts; in makeCustomAnimation() 315 ActivityOptions opts = new ActivityOptions(); in makeCustomInPlaceAnimation() local 316 opts.mPackageName = context.getPackageName(); in makeCustomInPlaceAnimation() 317 opts.mAnimationType = ANIM_CUSTOM_IN_PLACE; in makeCustomInPlaceAnimation() [all …]
|
D | BroadcastOptions.java | 55 BroadcastOptions opts = new BroadcastOptions(); in makeBasic() local 56 return opts; in makeBasic() 63 public BroadcastOptions(Bundle opts) { in BroadcastOptions() argument 64 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION); in BroadcastOptions() 65 mMinManifestReceiverApiLevel = opts.getInt(KEY_MIN_MANIFEST_RECEIVER_API_LEVEL, 0); in BroadcastOptions() 66 mMaxManifestReceiverApiLevel = opts.getInt(KEY_MAX_MANIFEST_RECEIVER_API_LEVEL, in BroadcastOptions()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 52 @Nullable Rect padding, @Nullable Options opts) { in nativeDecodeStream() argument 57 if (opts != null) { in nativeDecodeStream() 58 density = Density.getEnum(opts.inDensity); in nativeDecodeStream() 59 if (opts.inPremultiplied) { in nativeDecodeStream() 62 opts.inScaled = false; in nativeDecodeStream() 103 Rect padding, Options opts) { in nativeDecodeFileDescriptor() argument 104 opts.inBitmap = null; in nativeDecodeFileDescriptor() 109 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { in nativeDecodeAsset() argument 110 opts.inBitmap = null; in nativeDecodeAsset() 116 int length, Options opts) { in nativeDecodeByteArray() argument [all …]
|
/frameworks/support/v13/java/android/support/v13/view/inputmethod/ |
D | InputConnectionCompat.java | 39 @NonNull InputContentInfoCompat inputContentInfo, int flags, @Nullable Bundle opts); in commitContent() argument 66 @Nullable Bundle opts) { in commitContent() argument 72 params.putParcelable(COMMIT_CONTENT_OPTS_KEY, opts); in commitContent() 118 final Bundle opts = data.getParcelable(COMMIT_CONTENT_OPTS_KEY); 121 result = onCommitContentListener.onCommitContent(inputContentInfo, flags, opts); 136 @Nullable Bundle opts) { 138 inputContentInfo.unwrap(), flags, opts); 152 Bundle opts) { 155 return listener.onCommitContent(inputContentInfoCompat, flags, opts); 183 int flags, @Nullable Bundle opts) { [all …]
|
/frameworks/support/v13/api25/android/support/v13/view/inputmethod/ |
D | InputConnectionCompatApi25.java | 28 Bundle opts) { in commitContent() argument 29 return ic.commitContent((InputContentInfo)inputContentInfo, flags, opts); in commitContent() 33 boolean onCommitContent(Object inputContentInfo, int flags, Bundle opts); in onCommitContent() argument 41 Bundle opts) { in createWrapper() 42 if (onCommitContentListener.onCommitContent(inputContentInfo, flags, opts)) { in createWrapper() 45 return super.commitContent(inputContentInfo, flags, opts); in createWrapper()
|
/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/src/com/android/systemui/recents/tv/ |
D | RecentsTvImpl.java | 71 ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext, -1, -1); in startRecentsActivity() local 72 startRecentsActivity(runningTask, opts, false /* fromHome */, false /* fromThumbnail*/); in startRecentsActivity() 81 ActivityOptions opts = getThumbnailTransitionActivityOptionsForTV(runningTask, in startRecentsActivity() local 83 if (opts != null) { in startRecentsActivity() 84 … startRecentsActivity(runningTask, opts, false /* fromHome */, true /* fromThumbnail */); in startRecentsActivity() 98 ActivityOptions opts, boolean fromHome, boolean fromThumbnail) { in startRecentsActivity() argument 113 if (opts != null) { in startRecentsActivity() 114 mContext.startActivityAsUser(intent, opts.toBundle(), UserHandle.CURRENT); in startRecentsActivity()
|
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
D | single_source_script.rs | 79 rs_script_call_t opts = {0}; 80 opts.xStart = 0; 81 opts.xEnd = dimX; 82 opts.yStart = 0; 83 opts.yEnd = dimY / 2; 84 rsForEachWithOptions(foo, &opts, out, out);
|
/frameworks/base/libs/hwui/tests/macrobench/ |
D | TestSceneRunner.cpp | 65 void run(const TestScene::Info& info, const TestScene::Options& opts) { in run() argument 69 std::unique_ptr<TestScene> scene(info.createScene(opts)); in run() 104 ModifiedMovingAverage<double> avgMs(opts.reportFrametimeWeight); in run() 106 for (int i = 0; i < opts.count; i++) { in run() 115 if (opts.reportFrametimeWeight) { in run()
|
/frameworks/compile/slang/tests/P_foreach_options/ |
D | foreach_options.rs | 10 rs_script_call_t opts = {0}; 11 opts.xStart=0; 12 opts.xEnd = 100;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/views/ |
D | RecentsTvTransitionHelper.java | 52 final ActivityOptions opts = ActivityOptions.makeBasic(); in launchTaskFromRecents() local 54 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds); in launchTaskFromRecents() 82 startTaskActivity(stack, task, taskView, opts, animStartedListener); in launchTaskFromRecents() 86 startTaskActivity(stack, task, taskView, opts, animStartedListener); in launchTaskFromRecents() 91 … ActivityOptions opts,final ActivityOptions.OnAnimationStartedListener animStartedListener) { in startTaskActivity() argument 93 if (ssp.startActivityFromRecents(mContext, task.key, task.title, opts)) { in startTaskActivity()
|
/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/base/core/tests/overlaytests/ |
D | testrunner.py | 555 opts, args = opt_parser.parse_args(sys.argv[1:]) variable 556 …if not opts.test_idmap and not opts.test_no_overlay and not opts.test_single_overlay and not opts.… 557 opts.test_idmap = True 558 opts.test_no_overlay = True 559 opts.test_single_overlay = True 560 opts.test_multiple_overlays = True 565 if opts.quiet_mode: 568 printer = VerbosePrinter(opts.use_color) 578 if opts.do_build: 590 if opts.test_idmap: [all …]
|
/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/minikin/libs/minikin/ |
D | unicode_emoji_h_gen.py | 99 opts, _ = opt_parser.parse_args() variable 101 emoji_list = _read_emoji_data(opts.input) 103 with open(opts.output, 'w') as header_file:
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
D | RecentsTaskLoadPlan.java | 218 public synchronized void executePlan(Options opts, RecentsTaskLoader loader, in executePlan() argument 230 boolean isRunningTask = (task.key.id == opts.runningTaskId); in executePlan() 231 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); in executePlan() 232 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); in executePlan() 235 if (opts.onlyLoadPausedActivities && isRunningTask) { in executePlan() 239 if (opts.loadIcons && (isRunningTask || isVisibleTask)) { in executePlan() 245 if (opts.loadThumbnails && (isRunningTask || isVisibleThumbnail)) { in executePlan()
|
/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()
|
D | BitmapsActivity.java | 69 BitmapFactory.Options opts = new BitmapFactory.Options(); in BitmapsView() local 70 opts.inMutable = true; in BitmapsView() 71 … Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts); in BitmapsView()
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsProvider.java | 547 String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument 933 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile() argument 935 return openTypedAssetFileImpl(uri, mimeTypeFilter, opts, null); in openTypedAssetFile() 947 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedAssetFile() argument 949 return openTypedAssetFileImpl(uri, mimeTypeFilter, opts, signal); in openTypedAssetFile() 1005 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedAssetFileImpl() argument 1009 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { in openTypedAssetFileImpl() 1010 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFileImpl() 1024 return openTypedDocument(documentId, mimeTypeFilter, opts, signal); in openTypedAssetFileImpl()
|
D | DocumentsContract.java | 1006 final BitmapFactory.Options opts = new BitmapFactory.Options(); in getDocumentThumbnail() local 1007 opts.inJustDecodeBounds = true; in getDocumentThumbnail() 1009 BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail() 1011 BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail() 1014 final int widthSample = opts.outWidth / size.x; in getDocumentThumbnail() 1015 final int heightSample = opts.outHeight / size.y; in getDocumentThumbnail() 1017 opts.inJustDecodeBounds = false; in getDocumentThumbnail() 1018 opts.inSampleSize = Math.min(widthSample, heightSample); in getDocumentThumbnail() 1021 bitmap = BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail() 1028 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | RecentsTransitionHelper.java | 104 final ActivityOptions opts = ActivityOptions.makeBasic(); in launchTaskFromRecents() local 106 opts.setLaunchBounds(bounds.isEmpty() ? null : bounds); in launchTaskFromRecents() 152 startTaskActivity(stack, task, taskView, opts, transitionFuture, animStartedListener); in launchTaskFromRecents() 160 startTaskActivity(stack, task, taskView, opts, transitionFuture, in launchTaskFromRecents() 167 startTaskActivity(stack, task, taskView, opts, transitionFuture, in launchTaskFromRecents() 199 ActivityOptions opts, IAppTransitionAnimationSpecsFuture transitionFuture, 202 if (ssp.startActivityFromRecents(mContext, task.key, task.title, opts)) {
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 244 for opts in TRAMPOLINE_OPTIONS: 245 registry.apiGen(opts) 269 for opts in API_OPTIONS: 270 registry.apiGen(opts)
|
/frameworks/base/native/android/ |
D | looper.cpp | 40 ALooper* ALooper_prepare(int opts) { in ALooper_prepare() argument 41 return Looper_to_ALooper(Looper::prepare(opts).get()); in ALooper_prepare()
|