/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | BitmapUtil.java | 33 final BitmapFactory.Options options = new BitmapFactory.Options(); 36 options.inJustDecodeBounds = true; 37 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); 40 return Math.min(options.outWidth, options.outHeight); 74 final BitmapFactory.Options options; 76 options = null; 78 options = new BitmapFactory.Options(); 79 options.inSampleSize = sampleSize; 81 return BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options); [all...] |
H A D | AccountPromptUtils.java | 96 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/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DecodeUtils.java | 45 public DecodeCanceller(Options options) { argument 46 mOptions = options; 56 public static void setOptionsMutable(Options options) { argument 57 if (ApiHelper.HAS_OPTIONS_IN_MUTABLE) options.inMutable = true; 60 public static Bitmap decode(JobContext jc, FileDescriptor fd, Options options) { argument 61 if (options == null) options = new Options(); 62 jc.setCancelListener(new DecodeCanceller(options)); 63 setOptionsMutable(options); 65 BitmapFactory.decodeFileDescriptor(fd, null, options)); 68 decodeBounds(JobContext jc, FileDescriptor fd, Options options) argument 77 decode(JobContext jc, byte[] bytes, Options options) argument 81 decode(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 90 decodeBounds(JobContext jc, byte[] bytes, int offset, int length, Options options) argument 99 decodeThumbnail( JobContext jc, String filePath, Options options, int targetSize, int type) argument 114 decodeThumbnail( JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) argument 168 decodeIfBigEnough(JobContext jc, byte[] data, Options options, int targetSize) argument 249 decode(JobContext jc, byte[] data, int offset, int length, BitmapFactory.Options options, BitmapPool pool) argument 280 decode(JobContext jc, FileDescriptor fileDescriptor, Options options, BitmapPool pool) argument 308 findCachedBitmap(BitmapPool pool, JobContext jc, byte[] data, int offset, int length, Options options) argument 315 findCachedBitmap(BitmapPool pool, JobContext jc, FileDescriptor fileDescriptor, Options options) argument [all...] |
H A D | ImageCacheRequest.java | 59 BitmapFactory.Options options = new BitmapFactory.Options(); 60 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 64 buffer.data, buffer.offset, buffer.length, options, 68 buffer.data, buffer.offset, buffer.length, options,
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | WidgetUtils.java | 41 public static float getScaleRatio(Context context, Bundle options, int id) { argument 43 if (options == null) { 44 options = widgetManager.getAppWidgetOptions(id); 46 if (options != null) { 47 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH); 60 public static float getHeightScaleRatio(Context context, Bundle options, int id) { argument 62 if (options == null) { 63 options = widgetManager.getAppWidgetOptions(id); 65 if (options != null) { 66 int minHeight = options [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 113 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { argument 128 image = load(imageData, options, longSide, shortSide); 137 options, longSide, shortSide); 143 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { argument 152 options.inJustDecodeBounds = true; 153 options.inSampleSize = 1; 154 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options); 155 int rawLongSide = Math.max(options.outWidth, options.outHeight); 156 int rawShortSide = Math.min(options [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | EasAuthenticatorService.java | 59 String authTokenType, String[] requiredFeatures, Bundle options) 64 if (options != null && options.containsKey(OPTIONS_PASSWORD) 65 && options.containsKey(OPTIONS_USERNAME)) { 66 final Account account = new Account(options.getString(OPTIONS_USERNAME), 69 account, options.getString(OPTIONS_PASSWORD), null); 74 if (options.containsKey(OPTIONS_CONTACTS_SYNC_ENABLED) && 75 options.getBoolean(OPTIONS_CONTACTS_SYNC_ENABLED)) { 84 if (options.containsKey(OPTIONS_CALENDAR_SYNC_ENABLED) && 85 options 58 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 120 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument [all...] |
H A D | EasTestAuthenticatorService.java | 49 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); 79 Bundle options) { 48 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 78 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
|
H A D | PopImapAuthenticatorService.java | 57 String authTokenType, String[] requiredFeatures, Bundle options) 62 if (options != null && options.containsKey(OPTIONS_PASSWORD) 63 && options.containsKey(OPTIONS_USERNAME)) { 64 final Account account = new Account(options.getString(OPTIONS_USERNAME), 67 account, options.getString(OPTIONS_PASSWORD), null); 71 if (options.containsKey(OPTIONS_EMAIL_SYNC_ENABLED) && 72 options.getBoolean(OPTIONS_EMAIL_SYNC_ENABLED)) { 81 b.putString(AccountManager.KEY_ACCOUNT_NAME, options.getString(OPTIONS_USERNAME)); 99 Bundle options) { 56 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 98 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | UriImage.java | 128 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...] |
H A D | BaseImage.java | 144 BitmapFactory.Options options = new BitmapFactory.Options(); 145 options.inJustDecodeBounds = true; 147 input.getFileDescriptor(), options); 148 mWidth = options.outWidth; 149 mHeight = options.outHeight;
|
H A D | Image.java | 153 BitmapFactory.Options options = new BitmapFactory.Options(); 154 options.inDither = false; 155 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 157 Images.Thumbnails.MINI_KIND, options, false);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | ResourceTexture.java | 40 BitmapFactory.Options options = new BitmapFactory.Options(); 41 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 43 mContext.getResources(), mResId, options);
|
H A D | TileImageViewAdapter.java | 119 BitmapFactory.Options options = new BitmapFactory.Options(); 120 options.inPreferredConfig = Config.ARGB_8888; 121 options.inPreferQualityOverSpeed = true; 122 options.inSampleSize = (1 << level); 123 options.inBitmap = bitmap; 128 bitmap = regionDecoder.decodeRegion(wantRegion, options); 131 if (options.inBitmap != bitmap && options.inBitmap != null) { 132 if (pool != null) pool.recycle(options.inBitmap); 133 options [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | Util.java | 102 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 D | BitmapManager.java | 55 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 D | WallpaperHandler.java | 101 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/apps/Mms/src/com/android/mms/util/ |
H A D | ThumbnailManager.java | 327 BitmapFactory.Options options = new BitmapFactory.Options(); 328 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 330 data.mOffset, data.mData.length - data.mOffset, options); 382 int length, Options options) { 383 if (options == null) { 384 options = new Options(); 387 BitmapFactory.decodeByteArray(bytes, offset, length, options)); 434 BitmapFactory.Options options = new BitmapFactory.Options(); 435 options.inPreferredConfig = Bitmap.Config.ARGB_8888; 437 return requestDecode(uri, options, THUMBNAIL_TARGET_SIZ 381 requestDecode(byte[] bytes, int offset, int length, Options options) argument 449 requestDecode(final Uri uri, Options options, int targetSize) argument [all...] |
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/ |
H A D | LabelText.java | 60 final Options options = new Options(args); 63 resources.writeToJava(options.mJava);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 175 public static int computeSampleSize(BitmapFactory.Options options, argument 177 int initialSize = computeInitialSampleSize(options, minSideLength, 193 private static int computeInitialSampleSize(BitmapFactory.Options options, argument 195 double w = options.outWidth; 196 double h = options.outHeight; 220 BitmapFactory.Options options = new BitmapFactory.Options(); 221 options.inJustDecodeBounds = true; 223 options); 224 if (options.mCancel || options [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | BinaryDictInputOutput.java | 354 * @param options file format options. 357 private static int getCharGroupMaximumSize(final CharGroup group, final FormatOptions options) { argument 358 int size = getGroupHeaderSize(group, options); 376 * @param options file format options. 378 private static void setNodeMaximumSize(final Node node, final FormatOptions options) { argument 381 final int groupSize = getCharGroupMaximumSize(g, options); 385 if (options.mSupportsDynamicUpdate) { 401 public static boolean isMovedGroup(final int flags, final FormatOptions options) { argument 408 supportsDynamicUpdate(final FormatOptions options) argument 419 getGroupHeaderSize(final CharGroup group, final FormatOptions options) argument 1197 readChildrenAddress(final FusionDictionaryBufferInterface buffer, final int optionFlags, final FormatOptions options) argument 1234 readCharGroup(final FusionDictionaryBufferInterface buffer, final int originalGroupAddress, final FormatOptions options) argument 1376 getWordAtAddressWithParentAddress( final FusionDictionaryBufferInterface buffer, final int headerSize, final int address, final FormatOptions options) argument 1408 getWordAtAddressWithoutParentAddress( final FusionDictionaryBufferInterface buffer, final int headerSize, final int address, final FormatOptions options) argument 1465 readNode(final FusionDictionaryBufferInterface buffer, final int headerSize, final Map<Integer, Node> reverseNodeMap, final Map<Integer, CharGroup> reverseGroupMap, final FormatOptions options) argument 1601 populateOptions(final FusionDictionaryBufferInterface buffer, final int headerSize, final HashMap<String, String> options) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | AppWidgetPickActivity.java | 156 Bundle options = null; 158 options = intent.getExtras().getBundle( 161 mAppWidgetManager.bindAppWidgetId(mAppWidgetId, intent.getComponent(), options);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
H A D | TestAuthenticator.java | 63 String authTokenType, String[] requiredFeatures, Bundle options) { 95 AccountAuthenticatorResponse response, Account account, Bundle options) { 62 addAccount(AccountAuthenticatorResponse response, String accountType, String authTokenType, String[] requiredFeatures, Bundle options) argument 94 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | Util.java | 216 public static int computeSampleSize(BitmapFactory.Options options, argument 218 int initialSize = computeInitialSampleSize(options, minSideLength, 234 private static int computeInitialSampleSize(BitmapFactory.Options options, argument 236 double w = options.outWidth; 237 double h = options.outHeight; 261 BitmapFactory.Options options = new BitmapFactory.Options(); 262 options.inJustDecodeBounds = true; 264 options); 265 if (options.mCancel || options [all...] |
/packages/providers/ContactsProvider/ |
H A D | Android.mk | 18 # would dilute the coverage results. These options do not affect regular 25 # would dilute the coverage results. These options do not affect regular
|