/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 380 * @param opts null-ok; Options that control downsampling and whether the 383 * decoded, or, if opts is non-null, if opts requested only the 384 * size be returned (in opts.outWidth and opts.outHeight) 386 public static Bitmap decodeFile(String pathName, Options opts) { argument 391 bm = decodeStream(stream, null, opts); 425 InputStream is, Rect pad, Options opts) { 427 if (opts == null) { 428 opts 424 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument 459 decodeResource(Resources res, int id, Options opts) argument 513 decodeByteArray(byte[] data, int offset, int length, Options opts) argument 551 setDensityFromOptions(Bitmap outputBitmap, Options opts) argument 596 decodeStream(InputStream is, Rect outPadding, Options opts) argument 630 decodeStreamInternal(InputStream is, Rect outPadding, Options opts) argument 666 decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) argument 707 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument 709 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument 711 nativeDecodeAsset(long nativeAsset, Rect padding, Options opts) argument 712 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | BroadcastOptions.java | 41 BroadcastOptions opts = new BroadcastOptions(); 42 return opts; 49 public BroadcastOptions(Bundle opts) { argument 50 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION);
|
H A D | ActivityOptions.java | 223 ActivityOptions opts = new ActivityOptions(); 224 opts.mPackageName = context.getPackageName(); 225 opts.mAnimationType = ANIM_CUSTOM; 226 opts.mCustomEnterResId = enterResId; 227 opts.mCustomExitResId = exitResId; 228 opts.setOnAnimationStartedListener(handler, listener); 229 return opts; 249 ActivityOptions opts = new ActivityOptions(); 250 opts.mPackageName = context.getPackageName(); 251 opts 627 ActivityOptions(Bundle opts) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 52 @Nullable Rect padding, @Nullable Options opts) { 57 if (opts != null) { 58 density = Density.getEnum(opts.inDensity); 59 if (opts.inPremultiplied) { 102 Rect padding, Options opts) { 103 opts.inBitmap = null; 108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument 109 opts.inBitmap = null; 115 int length, Options opts) { 116 opts 51 nativeDecodeStream(InputStream is, byte[] storage, @Nullable Rect padding, @Nullable Options opts) argument 101 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument 114 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument [all...] |
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
H A D | MainActivity.java | 112 ExtendedOptions opts = new ExtendedOptions( 115 opts.decodeAggregator = mDecodeAggregator; 116 opts.parallaxSpeedMultiplier = NORMAL_PARALLAX_MULTIPLIER; 117 opts.backgroundColor = Color.LTGRAY; 119 mCache, true /* limit density */, opts);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
H A D | ImageUtils.java | 107 final BitmapFactory.Options opts = new BitmapFactory.Options(); 108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); 109 result.bitmap = decodeStream(factory, null, opts); 136 * @param opts null-ok; Options that control downsampling and whether the 139 * decoded, or, if opts is non-null, if opts requested only the 140 * size be returned (in opts.outWidth and opts.outHeight) 143 final BitmapFactory.Options opts) throws FileNotFoundException { 155 final Bitmap originalBitmap = BitmapFactory.decodeStream(is, outPadding, opts); 142 decodeStream(final InputStreamFactory factory, final Rect outPadding, final BitmapFactory.Options opts) argument [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | ILauncherApps.aidl | 37 in Bundle opts, in UserHandle user); 39 in Bundle opts, in UserHandle user);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/ |
H A D | RecentsTaskLoadPlan.java | 197 synchronized void executePlan(Options opts, RecentsTaskLoader loader, argument 199 if (DEBUG) Log.d(TAG, "executePlan, # tasks: " + opts.numVisibleTasks + 200 ", # thumbnails: " + opts.numVisibleTaskThumbnails + 201 ", running task id: " + opts.runningTaskId); 226 boolean isRunningTask = (task.key.id == opts.runningTaskId); 227 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); 228 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); 231 if (opts.onlyLoadPausedActivities && isRunningTask) { 235 if (opts.loadIcons && (isRunningTask || isVisibleTask)) { 242 if (opts [all...] |
H A D | RecentsTaskLoader.java | 473 RecentsTaskLoadPlan.Options opts) { 474 if (opts == null) { 477 plan.executePlan(opts, this, mLoadQueue); 478 if (!opts.onlyLoadForCache) { 479 mNumVisibleTasksLoaded = opts.numVisibleTasks; 480 mNumVisibleThumbnailsLoaded = opts.numVisibleTaskThumbnails; 472 loadTasks(Context context, RecentsTaskLoadPlan plan, RecentsTaskLoadPlan.Options opts) argument
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | BitmapsAlphaActivity.java | 56 BitmapFactory.Options opts = new BitmapFactory.Options(); 57 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; 58 mBitmap3 = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset3, opts);
|
H A D | BitmapsActivity.java | 69 BitmapFactory.Options opts = new BitmapFactory.Options(); 70 opts.inMutable = true; 71 Bitmap bitmap = BitmapFactory.decodeResource(c.getResources(), R.drawable.sunset1, opts);
|
/frameworks/native/include/android/ |
H A D | looper.h | 72 * The opts may be ALOOPER_PREPARE_ALLOW_NON_CALLBACKS or 0. 74 ALooper* ALooper_prepare(int opts);
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
H A D | ExtendedBitmapDrawable.java | 74 final boolean limitDensity, ExtendedOptions opts) { 77 if (opts == null) { 78 opts = new ExtendedOptions(0); 80 mOpts = opts; 235 return /* opts.stateChanges */ true; 453 int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) { 454 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts); 456 if (opts.placeholderAnimationDuration == -1) { 460 if (opts.placeholderAnimationDuration == 0) { 463 pulseDuration = opts 73 ExtendedBitmapDrawable(final Resources res, final BitmapCache cache, final boolean limitDensity, ExtendedOptions opts) argument 452 Placeholder(Drawable placeholder, Resources res, int placeholderWidth, int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) argument 538 Progress(Drawable progress, Resources res, int progressBarWidth, int progressBarHeight, int fadeOutDurationMs, ExtendedOptions opts) argument [all...] |
H A D | CircularBitmapDrawable.java | 54 BitmapCache cache, boolean limitDensity, ExtendedOptions opts) { 55 super(res, cache, limitDensity, opts); 53 CircularBitmapDrawable(Resources res, BitmapCache cache, boolean limitDensity, ExtendedOptions opts) argument
|
H A D | TileDrawable.java | 45 ExtendedOptions opts) { 46 mOpts = opts; 44 TileDrawable(Drawable inner, int innerWidth, int innerHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
|
/frameworks/base/native/android/ |
H A D | looper.cpp | 40 ALooper* ALooper_prepare(int opts) { argument 41 return Looper_to_ALooper(Looper::prepare(opts).get());
|
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsProvider.java | 765 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) argument 768 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { 769 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); 772 return super.openTypedAssetFile(uri, mimeTypeFilter, opts); 783 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) 786 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { 787 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); 790 return super.openTypedAssetFile(uri, mimeTypeFilter, opts, signa 782 openTypedAssetFile( Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) argument [all...] |
H A D | DocumentsContract.java | 873 final BitmapFactory.Options opts = new BitmapFactory.Options(); 874 opts.inJustDecodeBounds = true; 876 BitmapFactory.decodeStream(is, null, opts); 878 BitmapFactory.decodeFileDescriptor(fd, null, opts); 881 final int widthSample = opts.outWidth / size.x; 882 final int heightSample = opts.outHeight / size.y; 884 opts.inJustDecodeBounds = false; 885 opts.inSampleSize = Math.min(widthSample, heightSample); 888 bitmap = BitmapFactory.decodeStream(is, null, opts); 895 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts); [all...] |
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
H A D | TestService.java | 817 BitmapFactory.Options opts = new BitmapFactory.Options(); 818 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; 836 BitmapFactory.Options opts = new BitmapFactory.Options(); 837 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; 856 BitmapFactory.Options opts = new BitmapFactory.Options(); 857 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; 859 R.drawable.stat_sample, opts); 876 BitmapFactory.Options opts = new BitmapFactory.Options(); 877 opts.inScreenDensity = DisplayMetrics.DENSITY_DEVICE; 879 R.drawable.stat_sample, opts); [all...] |
/frameworks/base/core/tests/overlaytests/ |
H A D | testrunner.py | 555 opts, args = opt_parser.parse_args(sys.argv[1:]) 556 if not opts.test_idmap and not opts.test_no_overlay and not opts.test_single_overlay and not opts.test_multiple_overlays: 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 [all...] |
/frameworks/native/opengl/tools/glgen2/ |
H A D | glgen.py | 268 for opts in TRAMPOLINE_OPTIONS: 269 registry.apiGen(opts) 293 for opts in API_OPTIONS: 294 registry.apiGen(opts) 326 # for opts in SPEC_OPTIONS: 327 # registry.apiGen(opts)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/ |
H A D | SystemServicesProxy.java | 376 public void moveTaskToFront(int taskId, ActivityOptions opts) { argument 380 if (opts != null) { 382 opts.toBundle()); 612 Bundle opts = new Bundle(); 613 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, 615 if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, resolvedSearchWidgetInfo.provider, opts)) { 683 public void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) { argument 687 mIam.startInPlaceAnimationOnFrontMostApplication(opts);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
H A D | Recents.java | 759 ActivityOptions opts = getUnknownTransitionActivityOptions(); 760 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, 781 ActivityOptions opts = getThumbnailTransitionActivityOptions(topTask, stack, 783 if (opts != null) { 784 startAlternateRecentsActivity(topTask, opts, false /* fromHome */, 803 ActivityOptions opts = getHomeTransitionActivityOptions(fromSearchHome); 804 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, fromSearchHome, 808 ActivityOptions opts = getUnknownTransitionActivityOptions(); 809 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, 818 ActivityOptions opts, boolea 817 startAlternateRecentsActivity(ActivityManager.RunningTaskInfo topTask, ActivityOptions opts, boolean fromHome, boolean fromSearchHome, boolean fromThumbnail, TaskStackViewLayoutAlgorithm.VisibilityReport vr) argument [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockContentProvider.java | 131 String mimeType, Bundle opts, ICancellationSignal signal) 133 return MockContentProvider.this.openTypedAssetFile(url, mimeType, opts); 249 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { argument 130 openTypedAssetFile(String callingPackage, Uri url, String mimeType, Bundle opts, ICancellationSignal signal) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 185 BitmapFactory.Options opts = new BitmapFactory.Options(); 186 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; 187 opts.inPreferQualityOverSpeed = true; 190 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 191 opts.inJustDecodeBounds = false; 192 mPreview = loadPreviewBitmap(opts);
|