Searched refs:opts (Results 1 - 25 of 57) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java380 * @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 DActivityOptions.java201 ActivityOptions opts = new ActivityOptions();
202 opts.mPackageName = context.getPackageName();
203 opts.mAnimationType = ANIM_CUSTOM;
204 opts.mCustomEnterResId = enterResId;
205 opts.mCustomExitResId = exitResId;
206 opts.setOnAnimationStartedListener(handler, listener);
207 return opts;
227 ActivityOptions opts = new ActivityOptions();
228 opts.mPackageName = context.getPackageName();
229 opts
569 ActivityOptions(Bundle opts) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java52 @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 DMainActivity.java112 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 DImageUtils.java107 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/packages/SystemUI/src/com/android/systemui/recents/model/
H A DRecentsTaskLoadPlan.java160 synchronized void executePlan(Options opts, RecentsTaskLoader loader, argument
162 if (DEBUG) Log.d(TAG, "executePlan, # tasks: " + opts.numVisibleTasks +
163 ", # thumbnails: " + opts.numVisibleTaskThumbnails +
164 ", running task id: " + opts.runningTaskId);
187 boolean isRunningTask = (task.key.id == opts.runningTaskId);
188 boolean isVisibleTask = i >= (taskCount - opts.numVisibleTasks);
189 boolean isVisibleThumbnail = i >= (taskCount - opts.numVisibleTaskThumbnails);
192 if (opts.onlyLoadPausedActivities && isRunningTask) {
196 if (opts.loadIcons && (isRunningTask || isVisibleTask)) {
203 if (opts
[all...]
H A DRecentsTaskLoader.java455 RecentsTaskLoadPlan.Options opts) {
456 if (opts == null) {
459 plan.executePlan(opts, this, mLoadQueue);
460 if (!opts.onlyLoadForCache) {
461 mNumVisibleTasksLoaded = opts.numVisibleTasks;
462 mNumVisibleThumbnailsLoaded = opts.numVisibleTaskThumbnails;
454 loadTasks(Context context, RecentsTaskLoadPlan plan, RecentsTaskLoadPlan.Options opts) argument
/frameworks/base/core/java/android/content/pm/
H A DILauncherApps.aidl37 in Bundle opts, in UserHandle user);
39 in Bundle opts, in UserHandle user);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DBitmapsAlphaActivity.java56 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 DBitmapsActivity.java69 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 Dlooper.h63 * The opts may be ALOOPER_PREPARE_ALLOW_NON_CALLBACKS or 0.
65 ALooper* ALooper_prepare(int opts);
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/
H A DExtendedBitmapDrawable.java74 final boolean limitDensity, ExtendedOptions opts) {
77 if (opts == null) {
78 opts = new ExtendedOptions(0);
80 mOpts = opts;
222 return /* opts.stateChanges */ true;
435 int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) {
436 super(placeholder, placeholderWidth, placeholderHeight, fadeOutDurationMs, opts);
438 if (opts.placeholderAnimationDuration == -1) {
442 if (opts.placeholderAnimationDuration == 0) {
445 pulseDuration = opts
73 ExtendedBitmapDrawable(final Resources res, final BitmapCache cache, final boolean limitDensity, ExtendedOptions opts) argument
434 Placeholder(Drawable placeholder, Resources res, int placeholderWidth, int placeholderHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
520 Progress(Drawable progress, Resources res, int progressBarWidth, int progressBarHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
[all...]
H A DCircularBitmapDrawable.java54 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 DTileDrawable.java45 ExtendedOptions opts) {
46 mOpts = opts;
44 TileDrawable(Drawable inner, int innerWidth, int innerHeight, int fadeOutDurationMs, ExtendedOptions opts) argument
/frameworks/base/native/android/
H A Dlooper.cpp40 ALooper* ALooper_prepare(int opts) { argument
41 return Looper_to_ALooper(Looper::prepare(opts).get());
/frameworks/base/core/java/android/provider/
H A DDocumentsProvider.java762 public final AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) argument
765 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) {
766 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE);
769 return super.openTypedAssetFile(uri, mimeTypeFilter, opts);
780 Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal)
783 if (opts != null && opts.containsKey(ContentResolver.EXTRA_SIZE)) {
784 final Point sizeHint = opts.getParcelable(ContentResolver.EXTRA_SIZE);
787 return super.openTypedAssetFile(uri, mimeTypeFilter, opts, signa
779 openTypedAssetFile( Uri uri, String mimeTypeFilter, Bundle opts, CancellationSignal signal) argument
[all...]
H A DDocumentsContract.java842 final BitmapFactory.Options opts = new BitmapFactory.Options();
843 opts.inJustDecodeBounds = true;
845 BitmapFactory.decodeStream(is, null, opts);
847 BitmapFactory.decodeFileDescriptor(fd, null, opts);
850 final int widthSample = opts.outWidth / size.x;
851 final int heightSample = opts.outHeight / size.y;
853 opts.inJustDecodeBounds = false;
854 opts.inSampleSize = Math.min(widthSample, heightSample);
857 bitmap = BitmapFactory.decodeStream(is, null, opts);
864 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, opts);
[all...]
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
H A DTestService.java817 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/packages/SystemUI/src/com/android/systemui/recent/
H A DRecents.java126 ActivityOptions opts = ActivityOptions.makeCustomAnimation(mContext,
129 mContext.startActivityAsUser(intent, opts.toBundle(), new UserHandle(
236 ActivityOptions opts = ActivityOptions.makeThumbnailScaleDownAnimation(
248 startActivitySafely(intent, opts.toBundle());
322 private void startActivitySafely(Intent intent, Bundle opts) { argument
324 mContext.startActivityAsUser(intent, opts, new UserHandle(UserHandle.USER_CURRENT));
/frameworks/base/core/tests/overlaytests/
H A Dtestrunner.py555 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 Dglgen.py254 for opts in TRAMPOLINE_OPTIONS:
255 registry.apiGen(opts)
279 for opts in API_OPTIONS:
280 registry.apiGen(opts)
312 # for opts in SPEC_OPTIONS:
313 # registry.apiGen(opts)
/frameworks/base/core/java/android/service/trust/
H A DTrustAgentService.java104 ConfigurationData(List<PersistableBundle> opts, IBinder t) { argument
105 options = opts;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java317 public void moveTaskToFront(int taskId, ActivityOptions opts) { argument
321 if (opts != null) {
323 opts.toBundle());
472 Bundle opts = new Bundle();
473 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
475 if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, searchWidgetInfo.provider, opts)) {
571 public void startInPlaceAnimationOnFrontMostApplication(ActivityOptions opts) { argument
575 mIam.startInPlaceAnimationOnFrontMostApplication(opts);
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java344 String mimeType, Bundle opts) throws RemoteException, FileNotFoundException {
345 return openTypedAssetFileDescriptor(uri, mimeType, opts, null);
350 String mimeType, Bundle opts, CancellationSignal signal)
361 mPackageName, uri, mimeType, opts, remoteSignal);
343 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) argument
349 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts, CancellationSignal signal) argument
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContentProvider.java131 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

Completed in 639 milliseconds

123