/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | DecodeUtils.java | 46 public DecodeCanceller(Options options) { in DecodeCanceller() argument 47 mOptions = options; in DecodeCanceller() 57 public static void setOptionsMutable(Options options) { in setOptionsMutable() argument 58 if (ApiHelper.HAS_OPTIONS_IN_MUTABLE) options.inMutable = true; in setOptionsMutable() 61 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { in decode() argument 62 if (options == null) options = new Options(); in decode() 63 jc.setCancelListener(new DecodeCanceller(options)); in decode() 64 setOptionsMutable(options); in decode() 66 BitmapFactory.decodeFileDescriptor(fd, null, options)); in decode() 70 Options options) { in decodeBounds() argument [all …]
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoSource.java | 127 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { in next() argument 141 image = load(imageData, options, longSide, shortSide); in next() 151 options, longSide, shortSide); in next() 157 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { in load() argument 166 options.inJustDecodeBounds = true; in load() 167 options.inSampleSize = 1; in load() 168 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options); in load() 169 int rawLongSide = Math.max(options.outWidth, options.outHeight); in load() 170 int rawShortSide = Math.min(options.outWidth, options.outHeight); in load() 182 options.inSampleSize *= 2; in load() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 102 public static int computeSampleSize(BitmapFactory.Options options, in computeSampleSize() argument 104 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() 120 private static int computeInitialSampleSize(BitmapFactory.Options options, in computeInitialSampleSize() argument 122 double w = options.outWidth; in computeInitialSampleSize() 123 double h = options.outHeight; in computeInitialSampleSize() 280 BitmapFactory.Options options = null; in makeBitmap() local 282 options = createNativeAllocOptions(); in makeBitmap() 285 options); in makeBitmap() 295 BitmapFactory.Options options = null; in makeBitmap() local 297 options = createNativeAllocOptions(); in makeBitmap() [all …]
|
D | BitmapManager.java | 85 BitmapFactory.Options options) { in setDecodingOptions() argument 86 getOrCreateThreadStatus(t).mOptions = options; in setDecodingOptions() 139 BitmapFactory.Options options, boolean isVideo) { in getThumbnail() argument 178 BitmapFactory.Options options) { in decodeFileDescriptor() argument 179 if (options.mCancel) { in decodeFileDescriptor() 189 setDecodingOptions(thread, options); in decodeFileDescriptor() 190 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, options); in decodeFileDescriptor()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 219 public Bitmap decodeImage(int id, BitmapFactory.Options options) { in decodeImage() argument 220 return BitmapFactory.decodeResource(mContext.getResources(), id, options); in decodeImage() 268 private Bitmap loadRegionBitmap(Uri uri, BitmapFactory.Options options, Rect bounds) { in loadRegionBitmap() argument 278 return decoder.decodeRegion(bounds, options); in loadRegionBitmap() 389 BitmapFactory.Options options = new BitmapFactory.Options(); in getScaleOneImageForPreset() local 390 options.inMutable = true; in getScaleOneImageForPreset() 399 options.inSampleSize = sampleSize; in getScaleOneImageForPreset() 402 Bitmap bmp = loadRegionBitmap(mUri, options, bounds); in getScaleOneImageForPreset() 420 BitmapFactory.Options options = new BitmapFactory.Options(); in loadMutableBitmap() local 421 return loadMutableBitmap(context, sourceUri, options); in loadMutableBitmap() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictInputOutput.java | 371 private static int getCharGroupMaximumSize(final CharGroup group, final FormatOptions options) { in getCharGroupMaximumSize() argument 372 int size = getGroupHeaderSize(group, options); in getCharGroupMaximumSize() 392 private static void setNodeMaximumSize(final Node node, final FormatOptions options) { in setNodeMaximumSize() argument 395 final int groupSize = getCharGroupMaximumSize(g, options); in setNodeMaximumSize() 399 if (options.mSupportsDynamicUpdate) { in setNodeMaximumSize() 415 public static boolean isMovedGroup(final int flags, final FormatOptions options) { in isMovedGroup() argument 416 return options.mSupportsDynamicUpdate in isMovedGroup() 431 public static boolean supportsDynamicUpdate(final FormatOptions options) { in supportsDynamicUpdate() argument 432 return options.mVersion >= FormatSpec.FIRST_VERSION_WITH_DYNAMIC_UPDATE in supportsDynamicUpdate() 433 && options.mSupportsDynamicUpdate; in supportsDynamicUpdate() [all …]
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | ThumbnailManager.java | 329 BitmapFactory.Options options = new BitmapFactory.Options(); in getBitmap() local 330 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in getBitmap() 332 data.mOffset, data.mData.length - data.mOffset, options); in getBitmap() 384 int length, Options options) { in requestDecode() argument 385 if (options == null) { in requestDecode() 386 options = new Options(); in requestDecode() 389 BitmapFactory.decodeByteArray(bytes, offset, length, options)); in requestDecode() 436 BitmapFactory.Options options = new BitmapFactory.Options(); in onDecodeOriginal() local 437 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in onDecodeOriginal() 439 return requestDecode(uri, options, THUMBNAIL_TARGET_SIZE); in onDecodeOriginal() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageViewAdapter.java | 116 BitmapFactory.Options options = new BitmapFactory.Options(); in getTile() local 117 options.inPreferredConfig = Config.ARGB_8888; in getTile() 118 options.inPreferQualityOverSpeed = true; in getTile() 119 options.inSampleSize = (1 << level); in getTile() 120 options.inBitmap = bitmap; in getTile() 125 bitmap = regionDecoder.decodeRegion(wantRegion, options); in getTile() 128 if (options.inBitmap != bitmap && options.inBitmap != null) { in getTile() 129 GalleryBitmapPool.getInstance().put(options.inBitmap); in getTile() 130 options.inBitmap = null; in getTile() 155 BitmapFactory.Options options = new BitmapFactory.Options(); in getTileWithoutReusingBitmap() local [all …]
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | UriImage.java | 128 BitmapFactory.Options options = new BitmapFactory.Options(); in snifBitmapOptions() local 129 options.inJustDecodeBounds = true; in snifBitmapOptions() 131 input.getFileDescriptor(), options); in snifBitmapOptions() local 132 return options; in snifBitmapOptions() 139 BitmapFactory.Options options = snifBitmapOptions(); in getMimeType() local 140 return (options != null && options.outMimeType != null) in getMimeType() 141 ? options.outMimeType in getMimeType() 146 BitmapFactory.Options options = snifBitmapOptions(); in getHeight() local 147 return (options != null) ? options.outHeight : 0; in getHeight() 151 BitmapFactory.Options options = snifBitmapOptions(); in getWidth() local [all …]
|
D | BaseImage.java | 144 BitmapFactory.Options options = new BitmapFactory.Options(); in setupDimension() local 145 options.inJustDecodeBounds = true; in setupDimension() 147 input.getFileDescriptor(), options); in setupDimension() local 148 mWidth = options.outWidth; in setupDimension() 149 mHeight = options.outHeight; in setupDimension()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropLoader.java | 123 BitmapFactory.Options options = new BitmapFactory.Options(); in getConstrainedBitmap() local 124 options.inJustDecodeBounds = true; in getConstrainedBitmap() 125 BitmapFactory.decodeStream(is, null, options); in getConstrainedBitmap() 126 int w = options.outWidth; in getConstrainedBitmap() 127 int h = options.outHeight; in getConstrainedBitmap() 135 options = new BitmapFactory.Options(); in getConstrainedBitmap() 139 options.inSampleSize = 1; in getConstrainedBitmap() 143 options.inSampleSize <<= shifts; in getConstrainedBitmap() 147 if (options.inSampleSize <= 0 || in getConstrainedBitmap() 148 0 >= (int) (Math.min(w, h) / options.inSampleSize)) { in getConstrainedBitmap() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | EasAuthenticatorService.java | 59 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument 64 if (options != null && options.containsKey(OPTIONS_PASSWORD) in addAccount() 65 && options.containsKey(OPTIONS_USERNAME)) { in addAccount() 66 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() 69 account, options.getString(OPTIONS_PASSWORD), null); in addAccount() 74 if (options.containsKey(OPTIONS_CONTACTS_SYNC_ENABLED) && in addAccount() 75 options.getBoolean(OPTIONS_CONTACTS_SYNC_ENABLED)) { in addAccount() 84 if (options.containsKey(OPTIONS_CALENDAR_SYNC_ENABLED) && in addAccount() 85 options.getBoolean(OPTIONS_CALENDAR_SYNC_ENABLED)) { in addAccount() 94 if (options.containsKey(OPTIONS_EMAIL_SYNC_ENABLED) && in addAccount() [all …]
|
D | PopImapAuthenticatorService.java | 57 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument 62 if (options != null && options.containsKey(OPTIONS_PASSWORD) in addAccount() 63 && options.containsKey(OPTIONS_USERNAME)) { in addAccount() 64 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() 67 account, options.getString(OPTIONS_PASSWORD), null); in addAccount() 71 if (options.containsKey(OPTIONS_EMAIL_SYNC_ENABLED) && in addAccount() 72 options.getBoolean(OPTIONS_EMAIL_SYNC_ENABLED)) { in addAccount() 81 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME)); in addAccount() 99 Bundle options) { in confirmCredentials() argument
|
D | EasTestAuthenticatorService.java | 49 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() argument 54 if (options != null && options.containsKey(OPTIONS_PASSWORD) in addAccount() 55 && options.containsKey(OPTIONS_USERNAME)) { in addAccount() 56 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() 59 account, options.getString(OPTIONS_PASSWORD), null); in addAccount() 79 Bundle options) { in confirmCredentials() argument
|
D | MailService.java | 736 Bundle options = new Bundle(); in setupAccountManagerAccount() local 740 options.putString(EasAuthenticatorService.OPTIONS_USERNAME, account.mEmailAddress); in setupAccountManagerAccount() 741 options.putString(EasAuthenticatorService.OPTIONS_PASSWORD, hostAuthRecv.mPassword); in setupAccountManagerAccount() 742 options.putBoolean(EasAuthenticatorService.OPTIONS_CONTACTS_SYNC_ENABLED, contacts); in setupAccountManagerAccount() 743 options.putBoolean(EasAuthenticatorService.OPTIONS_CALENDAR_SYNC_ENABLED, calendar); in setupAccountManagerAccount() 744 options.putBoolean(EasAuthenticatorService.OPTIONS_EMAIL_SYNC_ENABLED, email); in setupAccountManagerAccount() 748 AccountManager.get(context).addAccount(accountType, null, null, options, null, callback, in setupAccountManagerAccount()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | WidgetUtils.java | 41 public static float getScaleRatio(Context context, Bundle options, int id) { in getScaleRatio() argument 43 if (options == null) { in getScaleRatio() 44 options = widgetManager.getAppWidgetOptions(id); in getScaleRatio() 46 if (options != null) { in getScaleRatio() 47 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH); in getScaleRatio() 60 public static float getHeightScaleRatio(Context context, Bundle options, int id) { in getHeightScaleRatio() argument 62 if (options == null) { in getHeightScaleRatio() 63 options = widgetManager.getAppWidgetOptions(id); in getHeightScaleRatio() 65 if (options != null) { in getHeightScaleRatio() 66 int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT); in getHeightScaleRatio() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 175 public static int computeSampleSize(BitmapFactory.Options options, in computeSampleSize() argument 177 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() 193 private static int computeInitialSampleSize(BitmapFactory.Options options, in computeInitialSampleSize() argument 195 double w = options.outWidth; in computeInitialSampleSize() 196 double h = options.outHeight; in computeInitialSampleSize() 220 BitmapFactory.Options options = new BitmapFactory.Options(); in makeBitmap() local 221 options.inJustDecodeBounds = true; in makeBitmap() 223 options); in makeBitmap() 224 if (options.mCancel || options.outWidth == -1 in makeBitmap() 225 || options.outHeight == -1) { in makeBitmap() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 216 public static int computeSampleSize(BitmapFactory.Options options, in computeSampleSize() argument 218 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() 234 private static int computeInitialSampleSize(BitmapFactory.Options options, in computeInitialSampleSize() argument 236 double w = options.outWidth; in computeInitialSampleSize() 237 double h = options.outHeight; in computeInitialSampleSize() 261 BitmapFactory.Options options = new BitmapFactory.Options(); in makeBitmap() local 262 options.inJustDecodeBounds = true; in makeBitmap() 264 options); in makeBitmap() 265 if (options.mCancel || options.outWidth == -1 in makeBitmap() 266 || options.outHeight == -1) { in makeBitmap() [all …]
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | Util.java | 217 public static int computeSampleSize(BitmapFactory.Options options, in computeSampleSize() argument 219 int initialSize = computeInitialSampleSize(options, minSideLength, in computeSampleSize() 235 private static int computeInitialSampleSize(BitmapFactory.Options options, in computeInitialSampleSize() argument 237 double w = options.outWidth; in computeInitialSampleSize() 238 double h = options.outHeight; in computeInitialSampleSize() 262 BitmapFactory.Options options = new BitmapFactory.Options(); in makeBitmap() local 263 options.inJustDecodeBounds = true; in makeBitmap() 265 options); in makeBitmap() 266 if (options.mCancel || options.outWidth == -1 in makeBitmap() 267 || options.outHeight == -1) { in makeBitmap() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | BitmapUtil.java | 33 final BitmapFactory.Options options = new BitmapFactory.Options(); in getSmallerExtentFromBytes() local 36 options.inJustDecodeBounds = true; in getSmallerExtentFromBytes() 37 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); in getSmallerExtentFromBytes() 40 return Math.min(options.outWidth, options.outHeight); in getSmallerExtentFromBytes() 74 final BitmapFactory.Options options; in decodeBitmapFromBytes() local 76 options = null; in decodeBitmapFromBytes() 78 options = new BitmapFactory.Options(); in decodeBitmapFromBytes() 79 options.inSampleSize = sampleSize; in decodeBitmapFromBytes() 81 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); in decodeBitmapFromBytes()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | ImageFilterRS.java | 177 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadScaledResourceAlpha() local 178 options.inPreferredConfig = Bitmap.Config.ALPHA_8; in loadScaledResourceAlpha() 179 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha() 182 resource, options); in loadScaledResourceAlpha() 190 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadScaledResourceAlpha() local 191 options.inPreferredConfig = Bitmap.Config.ALPHA_8; in loadScaledResourceAlpha() 192 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha() 195 resource, options); in loadScaledResourceAlpha() 209 final BitmapFactory.Options options = new BitmapFactory.Options(); in loadResource() local 210 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadResource() [all …]
|
/packages/apps/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 67 BitmapFactory.Options options = new BitmapFactory.Options(); in getTile() local 68 options.inPreferredConfig = Bitmap.Config.ARGB_8888; in getTile() 69 options.inPreferQualityOverSpeed = true; in getTile() 70 options.inSampleSize = (1 << level); in getTile() 71 options.inBitmap = bitmap; in getTile() 75 bitmap = mDecoder.decodeRegion(wantRegion, options); in getTile() 77 if (options.inBitmap != bitmap && options.inBitmap != null) { in getTile() 78 options.inBitmap = null; in getTile()
|
/packages/apps/Browser/src/com/android/browser/ |
D | WallpaperHandler.java | 101 BitmapFactory.Options options = new BitmapFactory.Options(); in run() local 102 options.inJustDecodeBounds = true; in run() 106 new BufferedInputStream(inputstream), null, options); in run() 112 int bmWidth = options.outWidth; in run() 113 int bmHeight = options.outHeight; in run() 121 options.inJustDecodeBounds = false; in run() 122 options.inSampleSize = scale; in run() 132 null, options); in run()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
D | ContactsUtils.java | 134 BitmapFactory.Options options) { in loadContactPhoto() argument 140 return BitmapFactory.decodeByteArray(data, 0, data.length, options); in loadContactPhoto() 152 BitmapFactory.Options options) { in loadPlaceholderPhoto() argument 157 placeholderImageResource, options); in loadPlaceholderPhoto() 161 BitmapFactory.Options options) { in loadContactPhoto() argument 174 photoData.length, options); in loadContactPhoto()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppsCustomizePagedView.java | 561 Bundle options = null; in getDefaultOptionsForWidget() local 571 options = new Bundle(); in getDefaultOptionsForWidget() 572 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, in getDefaultOptionsForWidget() 574 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, in getDefaultOptionsForWidget() 576 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH, in getDefaultOptionsForWidget() 578 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, in getDefaultOptionsForWidget() 581 return options; in getDefaultOptionsForWidget() 586 final Bundle options = getDefaultOptionsForWidget(mLauncher, info); in preloadWidget() local 589 info.bindOptions = options; in preloadWidget() 600 if (options == null) { in preloadWidget() [all …]
|