Searched defs:options (Results 1 - 21 of 21) sorted by relevance

/packages/apps/DeskClock/src/com/android/alarmclock/
H A DWidgetUtils.java42 public static float getScaleRatio(Context context, Bundle options, int id) { argument
43 if (options == null) {
49 options = widgetManager.getAppWidgetOptions(id);
51 if (options != null) {
52 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH);
61 int minHeight = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT);
64 ratio = Math.min(ratio, getHeightScaleRatio(context, options, id));
72 private static float getHeightScaleRatio(Context context, Bundle options, int id) { argument
73 if (options == null) {
79 options
[all...]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
H A DTestAuthenticator.java63 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/Email/src/com/android/email/service/
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);
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 DEasAuthenticatorService.java59 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 DPopImapAuthenticatorService.java57 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/Gallery2/tests/src/com/android/gallery3d/exif/
H A DExifParserTest.java99 private void parseOneIfd(int ifd, int options) throws Exception { argument
103 ExifParser parser = ExifParser.parse(getImageInputStream(), options, mInterface);
/packages/apps/Gallery/src/com/android/camera/
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
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...]
/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...]
/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/experimental/LoaderApp/src/com/android/loaderapp/util/
H A DContactsUtils.java130 * @param options the decoding options, can be set to null
134 BitmapFactory.Options options) {
140 return BitmapFactory.decodeByteArray(data, 0, data.length, options);
148 * @param options the decoding options, can be set to null
152 BitmapFactory.Options options) {
157 placeholderImageResource, options);
161 BitmapFactory.Options options) {
174 photoData.length, options);
133 loadContactPhoto(Cursor cursor, int bitmapColumnIndex, BitmapFactory.Options options) argument
151 loadPlaceholderPhoto(int placeholderImageResource, Context context, BitmapFactory.Options options) argument
160 loadContactPhoto(Context context, long photoId, BitmapFactory.Options options) argument
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java127 public Bitmap next(BitmapFactory.Options options, int longSide, int shortSide) { argument
141 image = load(imageData, options, longSide, shortSide);
151 options, longSide, shortSide);
157 public Bitmap load(ImageData data, BitmapFactory.Options options, int longSide, int shortSide) { argument
166 options.inJustDecodeBounds = true;
167 options.inSampleSize = 1;
168 image = BitmapFactory.decodeStream(new BufferedInputStream(bis), null, options);
169 int rawLongSide = Math.max(options.outWidth, options.outHeight);
170 int rawShortSide = Math.min(options
273 naturalNext(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument
287 naturalPrevious(Bitmap current, BitmapFactory.Options options, int longSide, int shortSide) argument
[all...]
H A DPhotoTable.java454 private static View applyFrame(final PhotoTable table, final BitmapFactory.Options options, argument
461 int photoWidth = options.outWidth;
462 int photoHeight = options.outHeight;
463 if (decodedPhoto == null || options.outWidth <= 0 || options.outHeight <= 0) {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DExifParser.java31 * {@link #parse(InputStream, int)} with given options.
201 private ExifParser(InputStream inputStream, int options, ExifInterface iRef) argument
212 mOptions = options;
234 * Parses the the given InputStream with the given options
239 protected static ExifParser parse(InputStream inputStream, int options, ExifInterface iRef) argument
241 return new ExifParser(inputStream, options, iRef);
245 * Parses the the given InputStream with default options; that is, every IFD
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DImageLoader.java219 public Bitmap decodeImage(int id, BitmapFactory.Options options) { argument
220 return BitmapFactory.decodeResource(mContext.getResources(), id, options);
268 private Bitmap loadRegionBitmap(Uri uri, BitmapFactory.Options options, Rect bounds) { argument
278 return decoder.decodeRegion(bounds, options);
389 BitmapFactory.Options options = new BitmapFactory.Options();
390 options.inMutable = true;
399 options.inSampleSize = sampleSize;
402 Bitmap bmp = loadRegionBitmap(mUri, options, bounds);
420 BitmapFactory.Options options = new BitmapFactory.Options();
421 return loadMutableBitmap(context, sourceUri, options);
424 loadMutableBitmap(Context context, Uri sourceUri, BitmapFactory.Options options) argument
439 decodeUriWithBackouts(Context context, Uri sourceUri, BitmapFactory.Options options) argument
486 decodeResourceWithBackouts(Resources res, BitmapFactory.Options options, int id) argument
[all...]
/packages/apps/LegacyCamera/src/com/android/camera/
H A DUtil.java175 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/experimental/LoaderApp/src/com/android/loaderapp/
H A DContactHeaderWidget.java679 private Bitmap loadPlaceholderPhoto(BitmapFactory.Options options) { argument
684 mNoPhotoResource, options);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DFusionDictionary.java335 public FusionDictionary(final Node root, final DictionaryOptions options) { argument
337 mOptions = options;
H A DBinaryDictInputOutput.java368 * @param options file format options.
371 private static int getCharGroupMaximumSize(final CharGroup group, final FormatOptions options) { argument
372 int size = getGroupHeaderSize(group, options);
390 * @param options file format options.
392 private static void setNodeMaximumSize(final Node node, final FormatOptions options) { argument
395 final int groupSize = getCharGroupMaximumSize(g, options);
399 if (options.mSupportsDynamicUpdate) {
415 public static boolean isMovedGroup(final int flags, final FormatOptions options) { argument
431 supportsDynamicUpdate(final FormatOptions options) argument
442 getGroupHeaderSize(final CharGroup group, final FormatOptions options) argument
1226 readChildrenAddress(final FusionDictionaryBufferInterface buffer, final int optionFlags, final FormatOptions options) argument
1263 readCharGroup(final FusionDictionaryBufferInterface buffer, final int originalGroupAddress, final FormatOptions options) argument
1413 getWordAtAddressWithParentAddress( final FusionDictionaryBufferInterface buffer, final int headerSize, final int address, final FormatOptions options) argument
1447 getWordAtAddressWithoutParentAddress( final FusionDictionaryBufferInterface buffer, final int headerSize, final int address, final FormatOptions options) argument
1504 readNode(final FusionDictionaryBufferInterface buffer, final int headerSize, final Map<Integer, Node> reverseNodeMap, final Map<Integer, CharGroup> reverseGroupMap, final FormatOptions options) argument
1642 populateOptions(final FusionDictionaryBufferInterface buffer, final int headerSize, final HashMap<String, String> options) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java216 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/apps/Gallery2/src/com/android/camera/
H A DUtil.java218 public static int computeSampleSize(BitmapFactory.Options options, argument
220 int initialSize = computeInitialSampleSize(options, minSideLength,
236 private static int computeInitialSampleSize(BitmapFactory.Options options, argument
238 double w = options.outWidth;
239 double h = options.outHeight;
263 BitmapFactory.Options options = new BitmapFactory.Options();
264 options.inJustDecodeBounds = true;
266 options);
267 if (options.mCancel || options
[all...]

Completed in 479 milliseconds