Searched defs:opts (Results 1 - 15 of 15) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java47 /*package*/ static Bitmap finishDecode(Bitmap bm, Rect outPadding, Options opts) { argument
48 if (bm == null || opts == null) {
52 final int density = opts.inDensity;
58 final int targetDensity = opts.inTargetDensity;
59 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) {
66 if (opts.inScaled && isNinePatch == false) {
89 Rect padding, Options opts) {
90 return nativeDecodeStream(is, storage, padding, opts, false, 1.f);
95 Rect padding, Options opts, boolean applyScale, float scale) {
101 if (opts !
88 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
94 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts, boolean applyScale, float scale) argument
140 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
147 nativeDecodeAsset(int asset, Rect padding, Options opts) argument
153 nativeDecodeAsset(int asset, Rect padding, Options opts, boolean applyScale, float scale) argument
160 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/ex/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java95 final BitmapFactory.Options opts = new BitmapFactory.Options();
99 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
101 final Bitmap decodedBitmap = decodeStream(inputStream, 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)
142 public static Bitmap decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts) { argument
157 BitmapFactory.decodeByteArray(bitmapBytes, 0, bitmapBytes.length, opts);
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DImageUtils.java100 final BitmapFactory.Options opts = new BitmapFactory.Options();
106 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize);
108 final Bitmap decodedBitmap = decodeStream(inputStream, null, opts);
143 * @param opts null-ok; Options that control downsampling and whether the
146 * decoded, or, if opts is non-null, if opts requested only the
147 * size be returned (in opts.outWidth and opts.outHeight)
149 public static Bitmap decodeStream(InputStream is, Rect outPadding, BitmapFactory.Options opts) { argument
169 final Bitmap originalBitmap = BitmapFactory.decodeStream(byteStream, outPadding, opts);
[all...]
/frameworks/base/native/android/
H A Dlooper.cpp32 ALooper* ALooper_prepare(int opts) { argument
33 return Looper::prepare(opts).get();
/frameworks/base/test-runner/src/android/test/mock/
H A DMockIContentProvider.java103 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
H A DMockContentProvider.java124 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
126 return MockContentProvider.this.openTypedAssetFile(url, mimeType, opts);
232 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) { argument
/frameworks/base/core/java/android/app/
H A DActivityOptions.java154 ActivityOptions opts = new ActivityOptions();
155 opts.mPackageName = context.getPackageName();
156 opts.mAnimationType = ANIM_CUSTOM;
157 opts.mCustomEnterResId = enterResId;
158 opts.mCustomExitResId = exitResId;
159 opts.setListener(handler, listener);
160 return opts;
209 ActivityOptions opts = new ActivityOptions();
210 opts.mPackageName = source.getContext().getPackageName();
211 opts
309 ActivityOptions(Bundle opts) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java209 String mimeType, Bundle opts)
212 return mContentProvider.openTypedAssetFile(uri, mimeType, opts);
208 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) argument
H A DContentProviderNative.java280 Bundle opts = data.readBundle();
283 fd = openTypedAssetFile(url, mimeType, opts);
604 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
613 data.writeBundle(opts);
H A DIContentProvider.java59 public AssetFileDescriptor openTypedAssetFile(Uri url, String mimeType, Bundle opts) argument
H A DContentProvider.java265 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeType, Bundle opts) argument
268 return ContentProvider.this.openTypedAssetFile(uri, mimeType, opts);
916 * @param opts Additional options from the client. The definitions of
933 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) argument
963 * @param opts Options supplied by caller.
967 Bundle opts, T args);
979 * @param opts Options supplied by caller.
988 final Bundle opts, final T args, final PipeDataWriter<T> func)
996 func.writeDataToPipe(fds[1], uri, mimeType, opts, args);
966 writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, T args) argument
987 openPipeHelper(final Uri uri, final String mimeType, final Bundle opts, final T args, final PipeDataWriter<T> func) argument
H A DContentResolver.java697 * @param opts Additional provider-dependent options.
707 String mimeType, Bundle opts) throws FileNotFoundException {
717 fd = unstableProvider.openTypedAssetFile(uri, mimeType, opts);
731 fd = stableProvider.openTypedAssetFile(uri, mimeType, opts);
706 openTypedAssetFileDescriptor(Uri uri, String mimeType, Bundle opts) argument
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java291 * @param opts null-ok; Options that control downsampling and whether the
294 * decoded, or, if opts is non-null, if opts requested only the
295 * size be returned (in opts.outWidth and opts.outHeight)
297 public static Bitmap decodeFile(String pathName, Options opts) { argument
302 bm = decodeStream(stream, null, opts);
336 InputStream is, Rect pad, Options opts) {
338 if (opts == null) {
339 opts
335 decodeResourceStream(Resources res, TypedValue value, InputStream is, Rect pad, Options opts) argument
370 decodeResource(Resources res, int id, Options opts) argument
424 decodeByteArray(byte[] data, int offset, int length, Options opts) argument
467 decodeStream(InputStream is, Rect outPadding, Options opts) argument
545 finishDecode(Bitmap bm, Rect outPadding, Options opts) argument
618 decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) argument
649 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) argument
651 nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts, boolean applyScale, float scale) argument
653 nativeDecodeFileDescriptor(FileDescriptor fd, Rect padding, Options opts) argument
655 nativeDecodeAsset(int asset, Rect padding, Options opts) argument
656 nativeDecodeAsset(int asset, Rect padding, Options opts, boolean applyScale, float scale) argument
658 nativeDecodeByteArray(byte[] data, int offset, int length, Options opts) argument
[all...]
/frameworks/native/libs/utils/
H A DLooper.cpp139 sp<Looper> Looper::prepare(int opts) { argument
140 bool allowNonCallbacks = opts & ALOOPER_PREPARE_ALLOW_NON_CALLBACKS;
/frameworks/base/graphics/java/android/graphics/drawable/
H A DDrawable.java761 InputStream is, String srcName, BitmapFactory.Options opts) {
782 if (opts == null) opts = new BitmapFactory.Options();
783 opts.inScreenDensity = res != null
785 Bitmap bm = BitmapFactory.decodeResourceStream(res, value, is, pad, opts);
760 createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts) argument

Completed in 2772 milliseconds