/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 386 public static Bitmap decodeFile(String pathName, Options opts) { in decodeFile() argument 391 bm = decodeStream(stream, null, opts); in decodeFile() 425 InputStream is, Rect pad, Options opts) { in decodeResourceStream() argument 427 if (opts == null) { in decodeResourceStream() 428 opts = new Options(); in decodeResourceStream() 431 if (opts.inDensity == 0 && value != null) { in decodeResourceStream() 434 opts.inDensity = DisplayMetrics.DENSITY_DEFAULT; in decodeResourceStream() 436 opts.inDensity = density; in decodeResourceStream() 440 if (opts.inTargetDensity == 0 && res != null) { in decodeResourceStream() 441 opts.inTargetDensity = res.getDisplayMetrics().densityDpi; in decodeResourceStream() [all …]
|
/frameworks/base/core/java/android/app/ |
D | ActivityOptions.java | 201 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local 202 opts.mPackageName = context.getPackageName(); in makeCustomAnimation() 203 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation() 204 opts.mCustomEnterResId = enterResId; in makeCustomAnimation() 205 opts.mCustomExitResId = exitResId; in makeCustomAnimation() 206 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation() 207 return opts; in makeCustomAnimation() 227 ActivityOptions opts = new ActivityOptions(); in makeCustomInPlaceAnimation() local 228 opts.mPackageName = context.getPackageName(); in makeCustomInPlaceAnimation() 229 opts.mAnimationType = ANIM_CUSTOM_IN_PLACE; in makeCustomInPlaceAnimation() [all …]
|
/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() 102 Rect padding, Options opts) { in nativeDecodeFileDescriptor() argument 103 opts.inBitmap = null; in nativeDecodeFileDescriptor() 108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { in nativeDecodeAsset() argument 109 opts.inBitmap = null; in nativeDecodeAsset() 115 int length, Options opts) { in nativeDecodeByteArray() argument 116 opts.inBitmap = null; in nativeDecodeByteArray()
|
/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/model/ |
D | RecentsTaskLoadPlan.java | 160 synchronized void executePlan(Options opts, RecentsTaskLoader loader, in executePlan() argument 162 if (DEBUG) Log.d(TAG, "executePlan, # tasks: " + opts.numVisibleTasks + in executePlan() 163 ", # thumbnails: " + opts.numVisibleTaskThumbnails + in executePlan() 164 ", running task id: " + opts.runningTaskId); in executePlan() 187 boolean isRunningTask = (task.key.id == opts.runningTaskId); in executePlan() 188 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); in executePlan() 189 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); in executePlan() 192 if (opts.onlyLoadPausedActivities && isRunningTask) { in executePlan() 196 if (opts.loadIcons && (isRunningTask || isVisibleTask)) { in executePlan() 203 if (opts.loadThumbnails && (isRunningTask || isVisibleThumbnail)) { in executePlan()
|
D | RecentsTaskLoader.java | 455 RecentsTaskLoadPlan.Options opts) { in loadTasks() argument 456 if (opts == null) { in loadTasks() 459 plan.executePlan(opts, this, mLoadQueue); in loadTasks() 460 if (!opts.onlyLoadForCache) { in loadTasks() 461 mNumVisibleTasksLoaded = opts.numVisibleTasks; in loadTasks() 462 mNumVisibleThumbnailsLoaded = opts.numVisibleTaskThumbnails; in loadTasks()
|
/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() 435 int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) { in Placeholder() argument 436 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts); in Placeholder() 438 if (opts.placeholderAnimationDuration == -1) { in Placeholder() 442 if (opts.placeholderAnimationDuration == 0) { in Placeholder() 445 pulseDuration = opts.placeholderAnimationDuration; in Placeholder() 522 ExtendedOptions opts) { in Progress() argument [all …]
|
D | TileDrawable.java | 45 ExtendedOptions opts) { in TileDrawable() argument 46 mOpts = opts; in TileDrawable()
|
/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/core/java/android/provider/ |
D | DocumentsProvider.java | 762 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile() argument 765 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { in openTypedAssetFile() 766 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFile() 769 return super.openTypedAssetFile(uri, mimeTypeFilter, opts); in openTypedAssetFile() 780 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedAssetFile() argument 783 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { in openTypedAssetFile() 784 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFile() 787 return super.openTypedAssetFile(uri, mimeTypeFilter, opts, signal); in openTypedAssetFile()
|
D | DocumentsContract.java | 842 final BitmapFactory.Options opts = new BitmapFactory.Options(); in getDocumentThumbnail() local 843 opts.inJustDecodeBounds = true; in getDocumentThumbnail() 845 BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail() 847 BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail() 850 final int widthSample = opts.outWidth / size.x; in getDocumentThumbnail() 851 final int heightSample = opts.outHeight / size.y; in getDocumentThumbnail() 853 opts.inJustDecodeBounds = false; in getDocumentThumbnail() 854 opts.inSampleSize = Math.min(widthSample, heightSample); in getDocumentThumbnail() 857 bitmap = BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail() 864 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail()
|
/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/packages/SystemUI/src/com/android/systemui/recent/ |
D | Recents.java | 126 ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext, in toggleRecents() local 129 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle( in toggleRecents() 236 ActivityOptions opts = ActivityOptions.makeThumbnailScaleDownAnimation( in toggleRecents() local 248 startActivitySafely(intent, opts.toBundle()); in toggleRecents() 322 private void startActivitySafely(Intent intent, Bundle opts) { in startActivitySafely() argument 324 mContext.startActivityAsUser(intent, opts, new UserHandle(UserHandle.USER_CURRENT)); in startActivitySafely()
|
/frameworks/base/core/java/android/content/pm/ |
D | ILauncherApps.aidl | 37 in Bundle opts, in UserHandle user); in startActivityAsUser() argument 39 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() argument
|
D | LauncherApps.java | 218 Bundle opts) { in startMainActivity() argument 223 mService.startActivityAsUser(component, sourceBounds, opts, user); in startMainActivity() 239 Rect sourceBounds, Bundle opts) { in startAppDetailsActivity() argument 241 mService.showAppDetailsAsUser(component, sourceBounds, opts, user); in startAppDetailsActivity()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
D | SystemServicesProxy.java | 317 public void moveTaskToFront(int taskId, ActivityOptions opts) { in moveTaskToFront() argument 321 if (opts != null) { in moveTaskToFront() 323 opts.toBundle()); in moveTaskToFront() 472 Bundle opts = new Bundle(); in bindSearchAppWidget() local 473 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, in bindSearchAppWidget() 475 if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, searchWidgetInfo.provider, opts)) { in bindSearchAppWidget() 571 public void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) { in startInPlaceAnimationOnFrontMostApplication() argument 575 mIam.startInPlaceAnimationOnFrontMostApplication(opts); in startInPlaceAnimationOnFrontMostApplication()
|
/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()
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 254 for opts in TRAMPOLINE_OPTIONS: 255 registry.apiGen(opts) 279 for opts in API_OPTIONS: 280 registry.apiGen(opts)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | AlternateRecentsComponent.java | 640 ActivityOptions opts = getThumbnailTransitionActivityOptions(topTask, stack, in startRecentsActivity() local 642 if (opts != null) { in startRecentsActivity() 643 startAlternateRecentsActivity(topTask, opts, false /* fromHome */, in startRecentsActivity() 676 ActivityOptions opts = getHomeTransitionActivityOptions(fromSearchHome); in startRecentsActivity() local 677 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, fromSearchHome, in startRecentsActivity() 681 ActivityOptions opts = getUnknownTransitionActivityOptions(); in startRecentsActivity() local 682 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, in startRecentsActivity() 691 ActivityOptions opts, boolean fromHome, boolean fromSearchHome, boolean fromThumbnail, in startAlternateRecentsActivity() argument 709 if (opts != null) { in startAlternateRecentsActivity() 710 mContext.startActivityAsUser(intent, opts.toBundle(), UserHandle.CURRENT); in startAlternateRecentsActivity()
|
/frameworks/base/core/java/android/content/ |
D | ContentProviderClient.java | 344 String mimeType, Bundle opts) throws RemoteException, FileNotFoundException { in openTypedAssetFileDescriptor() argument 345 return openTypedAssetFileDescriptor(uri, mimeType, opts, null); in openTypedAssetFileDescriptor() 350 String mimeType, Bundle opts, CancellationSignal signal) in openTypedAssetFileDescriptor() argument 361 mPackageName, uri, mimeType, opts, remoteSignal); in openTypedAssetFileDescriptor()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 185 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadInBackground() local 186 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadInBackground() 187 opts.inPreferQualityOverSpeed = true; in loadInBackground() 190 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in loadInBackground() 191 opts.inJustDecodeBounds = false; in loadInBackground() 192 mPreview = loadPreviewBitmap(opts); in loadInBackground()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContentProvider.java | 131 String mimeType, Bundle opts, ICancellationSignal signal) in openTypedAssetFile() argument 133 return MockContentProvider.this.openTypedAssetFile(url, mimeType, opts); in openTypedAssetFile() 249 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { in openTypedAssetFile() argument
|