Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/app/
DActivityOptions.java223 ActivityOptions opts = new ActivityOptions(); in makeCustomAnimation() local
224 opts.mPackageName = context.getPackageName(); in makeCustomAnimation()
225 opts.mAnimationType = ANIM_CUSTOM; in makeCustomAnimation()
226 opts.mCustomEnterResId = enterResId; in makeCustomAnimation()
227 opts.mCustomExitResId = exitResId; in makeCustomAnimation()
228 opts.setOnAnimationStartedListener(handler, listener); in makeCustomAnimation()
229 return opts; in makeCustomAnimation()
249 ActivityOptions opts = new ActivityOptions(); in makeCustomInPlaceAnimation() local
250 opts.mPackageName = context.getPackageName(); in makeCustomInPlaceAnimation()
251 opts.mAnimationType = ANIM_CUSTOM_IN_PLACE; in makeCustomInPlaceAnimation()
[all …]
DBroadcastOptions.java41 BroadcastOptions opts = new BroadcastOptions(); in makeBasic() local
42 return opts; in makeBasic()
49 public BroadcastOptions(Bundle opts) { in BroadcastOptions() argument
50 mTemporaryAppWhitelistDuration = opts.getLong(KEY_TEMPORARY_APP_WHITELIST_DURATION); in BroadcastOptions()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java386 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/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java52 @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/
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/packages/SystemUI/src/com/android/systemui/recents/model/
DRecentsTaskLoadPlan.java197 synchronized void executePlan(Options opts, RecentsTaskLoader loader, in executePlan() argument
199 if (DEBUG) Log.d(TAG, "executePlan, # tasks: " + opts.numVisibleTasks + in executePlan()
200 ", # thumbnails: " + opts.numVisibleTaskThumbnails + in executePlan()
201 ", running task id: " + opts.runningTaskId); in executePlan()
226 boolean isRunningTask = (task.key.id == opts.runningTaskId); in executePlan()
227 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks); in executePlan()
228 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails); in executePlan()
231 if (opts.onlyLoadPausedActivities && isRunningTask) { in executePlan()
235 if (opts.loadIcons && (isRunningTask || isVisibleTask)) { in executePlan()
242 if (opts.loadThumbnails && (isRunningTask || isVisibleThumbnail)) { in executePlan()
DRecentsTaskLoader.java473 RecentsTaskLoadPlan.Options opts) { in loadTasks() argument
474 if (opts == null) { in loadTasks()
477 plan.executePlan(opts, this, mLoadQueue); in loadTasks()
478 if (!opts.onlyLoadForCache) { in loadTasks()
479 mNumVisibleTasksLoaded = opts.numVisibleTasks; in loadTasks()
480 mNumVisibleThumbnailsLoaded = opts.numVisibleTaskThumbnails; in loadTasks()
/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/base/core/tests/overlaytests/
Dtestrunner.py555 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/
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 …]
DTileDrawable.java45 ExtendedOptions opts) { in TileDrawable() argument
46 mOpts = opts; in TileDrawable()
/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/core/java/android/provider/
DDocumentsProvider.java765 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile() argument
768 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { in openTypedAssetFile()
769 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFile()
772 return super.openTypedAssetFile(uri, mimeTypeFilter, opts); in openTypedAssetFile()
783 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedAssetFile() argument
786 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) { in openTypedAssetFile()
787 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFile()
790 return super.openTypedAssetFile(uri, mimeTypeFilter, opts, signal); in openTypedAssetFile()
DDocumentsContract.java870 final BitmapFactory.Options opts = new BitmapFactory.Options(); in getDocumentThumbnail() local
871 opts.inJustDecodeBounds = true; in getDocumentThumbnail()
873 BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail()
875 BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail()
878 final int widthSample = opts.outWidth / size.x; in getDocumentThumbnail()
879 final int heightSample = opts.outHeight / size.y; in getDocumentThumbnail()
881 opts.inJustDecodeBounds = false; in getDocumentThumbnail()
882 opts.inSampleSize = Math.min(widthSample, heightSample); in getDocumentThumbnail()
885 bitmap = BitmapFactory.decodeStream(is, null, opts); in getDocumentThumbnail()
892 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts); in getDocumentThumbnail()
/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()
DBitmapsActivity.java69 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/content/pm/
DILauncherApps.aidl37 in Bundle opts, in UserHandle user); in startActivityAsUser() argument
39 in Bundle opts, in UserHandle user); in showAppDetailsAsUser() argument
DLauncherApps.java218 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/native/android/
Dlooper.cpp40 ALooper* ALooper_prepare(int opts) { in ALooper_prepare() argument
41 return Looper_to_ALooper(Looper::prepare(opts).get()); in ALooper_prepare()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecents.java760 ActivityOptions opts = getUnknownTransitionActivityOptions(); in startRecentsActivity() local
761 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, in startRecentsActivity()
782 ActivityOptions opts = getThumbnailTransitionActivityOptions(topTask, stack, in startRecentsActivity() local
784 if (opts != null) { in startRecentsActivity()
785 startAlternateRecentsActivity(topTask, opts, false /* fromHome */, in startRecentsActivity()
804 ActivityOptions opts = getHomeTransitionActivityOptions(fromSearchHome); in startRecentsActivity() local
805 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, fromSearchHome, in startRecentsActivity()
809 ActivityOptions opts = getUnknownTransitionActivityOptions(); in startRecentsActivity() local
810 startAlternateRecentsActivity(topTask, opts, true /* fromHome */, in startRecentsActivity()
819 ActivityOptions opts, boolean fromHome, boolean fromSearchHome, boolean fromThumbnail, in startAlternateRecentsActivity() argument
[all …]
/frameworks/native/opengl/tools/glgen2/
Dglgen.py268 for opts in TRAMPOLINE_OPTIONS:
269 registry.apiGen(opts)
293 for opts in API_OPTIONS:
294 registry.apiGen(opts)
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java185 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/packages/SystemUI/src/com/android/systemui/recents/misc/
DSystemServicesProxy.java382 public void moveTaskToFront(int taskId, ActivityOptions opts) { in moveTaskToFront() argument
386 if (opts != null) { in moveTaskToFront()
388 opts.toBundle()); in moveTaskToFront()
618 Bundle opts = new Bundle(); in bindSearchAppWidget() local
619 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY, in bindSearchAppWidget()
621 … if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, resolvedSearchWidgetInfo.provider, opts)) { in bindSearchAppWidget()
689 public void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) { in startInPlaceAnimationOnFrontMostApplication() argument
693 mIam.startInPlaceAnimationOnFrontMostApplication(opts); in startInPlaceAnimationOnFrontMostApplication()
/frameworks/base/test-runner/src/android/test/mock/
DMockContentProvider.java131 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
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawable.java1057 InputStream is, String srcName, BitmapFactory.Options opts) { in createFromResourceStream() argument
1077 if (opts == null) opts = new BitmapFactory.Options(); in createFromResourceStream()
1078 opts.inScreenDensity = res != null in createFromResourceStream()
1080 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts); in createFromResourceStream()

123