Searched refs:options (Results 1 - 25 of 82) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDecodeUtils.java46 public DecodeCanceller(Options options) { argument
47 mOptions = options;
57 public static void setOptionsMutable(Options options) { argument
58 if (ApiHelper.HAS_OPTIONS_IN_MUTABLE) options.inMutable = true;
61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { argument
62 if (options == null) options = new Options();
63 jc.setCancelListener(new DecodeCanceller(options));
64 setOptionsMutable(options);
66 BitmapFactory.decodeFileDescriptor(fd, null, options));
69 decodeBounds(JobContext jc, FileDescriptor fd, Options options) argument
78 decode(JobContext jc, byte[] bytes, Options options) argument
82 decode(JobContext jc, byte[] bytes, int offset, int length, Options options) argument
91 decodeBounds(JobContext jc, byte[] bytes, int offset, int length, Options options) argument
100 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument
115 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument
169 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument
250 decodeUsingPool(JobContext jc, byte[] data, int offset, int length, BitmapFactory.Options options) argument
277 decodeUsingPool(JobContext jc, FileDescriptor fileDescriptor, Options options) argument
301 findCachedBitmap(JobContext jc, byte[] data, int offset, int length, Options options) argument
307 findCachedBitmap(JobContext jc, FileDescriptor fileDescriptor, Options options) argument
[all...]
H A DImageCacheRequest.java61 BitmapFactory.Options options = new BitmapFactory.Options();
62 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
66 buffer.data, buffer.offset, buffer.length, options);
69 buffer.data, buffer.offset, buffer.length, options);
/packages/apps/DeskClock/src/com/android/alarmclock/
H A DWidgetUtils.java43 public static float getScaleRatio(Context context, Bundle options, int id) { argument
44 if (options == null) {
50 options = widgetManager.getAppWidgetOptions(id);
52 if (options != null) {
53 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH);
62 int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT);
65 ratio = Math.min(ratio, getHeightScaleRatio(context, options, id));
73 private static float getHeightScaleRatio(Context context, Bundle options, int id) { argument
74 if (options == null) {
80 options
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DTileImageViewAdapter.java116 BitmapFactory.Options options = new BitmapFactory.Options();
117 options.inPreferredConfig = Config.ARGB_8888;
118 options.inPreferQualityOverSpeed = true;
119 options.inSampleSize = (1 << level);
120 options.inBitmap = bitmap;
125 bitmap = regionDecoder.decodeRegion(wantRegion, options);
128 if (options.inBitmap != bitmap && options.inBitmap != null) {
129 GalleryBitmapPool.getInstance().put(options.inBitmap);
130 options
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DBitmapUtil.java41 final BitmapFactory.Options options = new BitmapFactory.Options();
44 options.inJustDecodeBounds = true;
45 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
48 return Math.min(options.outWidth, options.outHeight);
82 final BitmapFactory.Options options;
84 options = null;
86 options = new BitmapFactory.Options();
87 options.inSampleSize = sampleSize;
89 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DUriImage.java128 BitmapFactory.Options options = new BitmapFactory.Options();
129 options.inJustDecodeBounds = true;
131 input.getFileDescriptor(), options);
132 return options;
139 BitmapFactory.Options options = snifBitmapOptions();
140 return (options != null && options.outMimeType != null)
141 ? options.outMimeType
146 BitmapFactory.Options options = snifBitmapOptions();
147 return (options !
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DBinaryDictUtils.java40 final DictionaryOptions options = new DictionaryOptions(new HashMap<String, String>());
41 options.mAttributes.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, "en_US");
42 options.mAttributes.put(DictionaryHeader.DICTIONARY_ID_KEY, id);
43 options.mAttributes.put(DictionaryHeader.DICTIONARY_VERSION_KEY, version);
45 options.mAttributes.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY,
47 options.mAttributes.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY,
50 return options;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DBitmapWorkerOptions.java40 /** TODO support disk cache options */
55 * Builds options for a bitmap worker task.
78 BitmapWorkerOptions options = new BitmapWorkerOptions();
81 options.mIconResource = new ShortcutIconResource();
82 options.mIconResource.packageName = mPackageName;
83 options.mIconResource.resourceName = mResourceName;
93 options.mResourceUri = mResourceUri;
94 options.mWidth = mWidth;
95 options.mHeight = mHeight;
96 options
[all...]
H A DDrawableDownloader.java91 BitmapDrawable findDrawable(BitmapWorkerOptions options) { argument
99 // if specified width/height in options and is smaller than
101 if (options.getHeight() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) {
102 if (options.getHeight() <= d.getIntrinsicHeight()) {
105 } else if (options.getWidth() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) {
106 if (options.getWidth() <= d.getIntrinsicWidth()) {
114 BitmapDrawable findLargestDrawable(BitmapWorkerOptions options) { argument
223 public final Drawable loadBitmapBlocking(BitmapWorkerOptions options) { argument
224 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
227 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
251 loadBitmap(BitmapWorkerOptions options, final ImageView imageView) argument
284 getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) argument
315 scheduleTask(DrawableLoader task, BitmapWorkerOptions options) argument
[all...]
H A DBitmapWorkerTask.java199 private Bitmap decodeBitmap(InputStream in, BitmapWorkerOptions options) argument
210 if (options.getBitmapConfig() != null) {
211 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
219 int height = options.getHeight();
227 int width = options.getWidth();
237 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x"
238 + options.getHeight() + "). Chosen scale: " + scale + " -> "
249 return scaleBitmapIfNecessary(options,
263 private Bitmap getBitmapFromHttp(BitmapWorkerOptions options) throws IOException { argument
264 URL url = new URL(options
281 getBitmapFromContent(BitmapWorkerOptions options) argument
352 getAccountImage(BitmapWorkerOptions options) argument
[all...]
H A DDrawableLoader.java184 private Drawable decodeBitmap(InputStream in, BitmapWorkerOptions options) argument
195 if (options.getBitmapConfig() != null) {
196 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
205 int height = options.getHeight();
211 int width = options.getWidth();
230 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x"
231 + options.getHeight() + "). Chosen scale: " + scale + " -> " + scale);
260 options.getContext().getResources(), object);
273 private Drawable getBitmapFromHttp(BitmapWorkerOptions options) throws IOException { argument
274 URL url = new URL(options
291 getBitmapFromContent(BitmapWorkerOptions options) argument
358 getAccountImage(BitmapWorkerOptions options) argument
[all...]
H A DBitmapDownloader.java131 public final Bitmap loadBitmapBlocking(BitmapWorkerOptions options) { argument
132 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
135 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
137 bitmap = getBitmapFromMemCache(options);
152 return task.doInBackground(options);
160 public void loadBitmap(BitmapWorkerOptions options, final ImageView imageView) { argument
162 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
165 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
167 bitmap = getBitmapFromMemCache(options);
184 task.execute(options);
193 getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) argument
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java129 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { argument
143 image = load(imageData, options, longSide, shortSide);
153 options, longSide, shortSide);
159 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { argument
168 options.inJustDecodeBounds = true;
169 options.inSampleSize = 1;
170 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options);
171 int rawLongSide = Math.max(options.outWidth, options.outHeight);
172 int rawShortSide = Math.min(options
283 naturalNext(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument
297 naturalPrevious(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/service/
H A DAuthenticatorService.java57 String authTokenType, String[] requiredFeatures, Bundle options)
68 if (options != null && options.containsKey(OPTIONS_PASSWORD)
69 && options.containsKey(OPTIONS_USERNAME)) {
70 final Account account = new Account(options.getString(OPTIONS_USERNAME),
73 account, options.getString(OPTIONS_PASSWORD), null);
77 boolean syncContacts = options.getBoolean(OPTIONS_CONTACTS_SYNC_ENABLED, false);
85 boolean syncCalendar = options.getBoolean(OPTIONS_CALENDAR_SYNC_ENABLED, false);
94 if (options.containsKey(OPTIONS_EMAIL_SYNC_ENABLED) &&
95 options
56 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument
121 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
[all...]
H A DEasTestAuthenticatorService.java49 String authTokenType, String[] requiredFeatures, Bundle options)
54 if (options != null && options.containsKey(OPTIONS_PASSWORD)
55 && options.containsKey(OPTIONS_USERNAME)) {
56 final Account account = new Account(options.getString(OPTIONS_USERNAME),
59 account, options.getString(OPTIONS_PASSWORD), null);
80 Bundle options) {
48 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument
79 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DResourceTexture.java41 BitmapFactory.Options options = new BitmapFactory.Options();
42 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
44 mContext.getResources(), mResId, options);
/packages/apps/Gallery/src/com/android/camera/
H A DUtil.java102 public static int computeSampleSize(BitmapFactory.Options options, argument
104 int initialSize = computeInitialSampleSize(options, minSideLength,
120 private static int computeInitialSampleSize(BitmapFactory.Options options, argument
122 double w = options.outWidth;
123 double h = options.outHeight;
280 BitmapFactory.Options options = null;
282 options = createNativeAllocOptions();
285 options);
295 BitmapFactory.Options options = null;
297 options
303 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
[all...]
H A DBitmapManager.java55 s = "thread state = " + s + ", options = " + mOptions;
85 BitmapFactory.Options options) {
86 getOrCreateThreadStatus(t).mOptions = options;
139 BitmapFactory.Options options, boolean isVideo) {
178 BitmapFactory.Options options) {
179 if (options.mCancel) {
189 setDecodingOptions(thread, options);
190 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options);
84 setDecodingOptions(Thread t, BitmapFactory.Options options) argument
138 getThumbnail(ContentResolver cr, long origId, int kind, BitmapFactory.Options options, boolean isVideo) argument
177 decodeFileDescriptor(FileDescriptor fd, BitmapFactory.Options options) argument
/packages/apps/Browser/src/com/android/browser/
H A DWallpaperHandler.java101 BitmapFactory.Options options = new BitmapFactory.Options();
102 options.inJustDecodeBounds = true;
106 new BufferedInputStream(inputstream), null, options);
112 int bmWidth = options.outWidth;
113 int bmHeight = options.outHeight;
121 options.inJustDecodeBounds = false;
122 options.inSampleSize = scale;
132 null, options);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
H A Dsuggest_options.h26 SuggestOptions(const int *const options, const int length) argument
27 : mOptions(options), mLength(length) {}
53 // reorder options.
58 // Additional features options are stored after the other options and used as setting values of
/packages/apps/Mms/src/com/android/mms/util/
H A DThumbnailManager.java329 BitmapFactory.Options options = new BitmapFactory.Options();
330 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
332 data.mOffset, data.mData.length - data.mOffset, options);
384 int length, Options options) {
385 if (options == null) {
386 options = new Options();
389 BitmapFactory.decodeByteArray(bytes, offset, length, options));
436 BitmapFactory.Options options = new BitmapFactory.Options();
437 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
439 return requestDecode(uri, options, THUMBNAIL_TARGET_SIZ
383 requestDecode(byte[] bytes, int offset, int length, Options options) argument
451 requestDecode(final Uri uri, Options options, int targetSize) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DIconUtilities.java49 final BitmapFactory.Options options = new BitmapFactory.Options();
50 options.inPreferredConfig = Bitmap.Config.ARGB_8888;
53 resource, options);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountPromptUtils.java96 Bundle options = new Bundle();
97 options.putCharSequence(KEY_INTRO_MESSAGE, activity.getString(R.string.no_account_prompt));
98 options.putBoolean(KEY_ALLOW_SKIP_ACCOUNT_SETUP, true);
99 AccountManager.get(activity).addAccount(GoogleAccountType.ACCOUNT_TYPE, null, null, options,
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DMakeKeyboardText.java60 final Options options = new Options(args);
63 resources.writeToJava(options.mJava);
/packages/apps/Camera2/src/com/android/camera/session/
H A DPlaceholderManager.java63 BitmapFactory.Options options = new BitmapFactory.Options();
64 options.inJustDecodeBounds = true;
65 BitmapFactory.decodeByteArray(placeholder, 0, placeholder.length, options);
66 int width = options.outWidth;
67 int height = options.outHeight;

Completed in 582 milliseconds

1234