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

123456

/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDecodeUtils.java45 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 decodeUsingPool(JobContext jc, byte[] data, int offset, int length, BitmapFactory.Options options) argument
276 decodeUsingPool(JobContext jc, FileDescriptor fileDescriptor, Options options) argument
300 findCachedBitmap(JobContext jc, byte[] data, int offset, int length, Options options) argument
306 findCachedBitmap(JobContext jc, FileDescriptor fileDescriptor, Options options) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DFileImageRequest.java61 final BitmapFactory.Options options = PoolableImageCache.getBitmapOptionsForPool(
64 options.inJustDecodeBounds = true;
65 BitmapFactory.decodeByteArray(thumbnail, 0, thumbnail.length, options);
68 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options,
71 options.inJustDecodeBounds = false;
82 mDescriptor.updateSourceDimensions(options.outHeight, options.outWidth);
84 mDescriptor.updateSourceDimensions(options.outWidth, options
[all...]
H A DImageRequest.java152 final BitmapFactory.Options options = PoolableImageCache.getBitmapOptionsForPool(
159 options.inJustDecodeBounds = true;
160 BitmapFactory.decodeStream(inputStream, null, options);
163 mDescriptor.updateSourceDimensions(options.outHeight, options.outWidth);
165 mDescriptor.updateSourceDimensions(options.outWidth, options.outHeight);
174 options.outWidth = mDescriptor.sourceWidth;
175 options.outHeight = mDescriptor.sourceHeight;
179 options
[all...]
/packages/apps/DeskClock/src/com/android/alarmclock/
H A DWidgetUtils.java32 public static float getScaleRatio(Context context, Bundle options, int id, int cityCount) { argument
33 if (options == null) {
39 options = widgetManager.getAppWidgetOptions(id);
41 if (options != null) {
42 int minWidth = options.getInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH);
50 ratio = Math.min(ratio, getHeightScaleRatio(context, options, id));
70 private static float getHeightScaleRatio(Context context, Bundle options, int id) { argument
71 if (options == null) {
77 options = widgetManager.getAppWidgetOptions(id);
79 if (options !
[all...]
/packages/services/Car/tools/emulator/
H A DVehicleHalProto_pb2.py27 options=None, variable
31 options=None, variable
35 options=None, variable
39 options=None, variable
43 options=None, variable
47 options=None, variable
51 options=None, variable
55 options=None, variable
59 options=None, variable
63 options variable
67 options=None, variable
71 options=None, variable
85 options=None, variable
89 options=None, variable
93 options=None, variable
97 options=None, variable
101 options=None, variable
105 options=None, variable
109 options=None, variable
113 options=None, variable
117 options=None, variable
121 options=None, variable
163 options=None), variable
170 options=None), variable
177 options=None), variable
184 options=None), variable
191 options=None), variable
198 options=None), variable
205 options=None), variable
212 options=None, variable
233 options=None), variable
240 options=None), variable
247 options=None), variable
254 options=None), variable
261 options=None), variable
268 options=None), variable
275 options=None), variable
282 options=None), variable
289 options=None), variable
296 options=None), variable
303 options=None), variable
310 options=None, variable
331 options=None), variable
338 options=None), variable
345 options=None), variable
352 options=None), variable
359 options=None), variable
366 options=None), variable
373 options=None), variable
380 options=None), variable
387 options=None), variable
394 options=None, variable
415 options=None), variable
422 options=None), variable
429 options=None, variable
450 options=None), variable
457 options=None), variable
464 options=None), variable
471 options=None), variable
478 options=None), variable
485 options=None, variable
[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/Dialer/java/com/android/contacts/common/util/
H A DBitmapUtil.java38 final BitmapFactory.Options options = new BitmapFactory.Options();
41 options.inJustDecodeBounds = true;
42 BitmapFactory.decodeByteArray(bytes, 0, bytes.length, options);
45 return Math.min(options.outWidth, options.outHeight);
81 final BitmapFactory.Options options;
83 options = null;
85 options = new BitmapFactory.Options();
86 options.inSampleSize = sampleSize;
88 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/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DBitmapWorkerOptions.java35 /** TODO support disk cache options */
50 * Builds options for a bitmap worker task.
73 BitmapWorkerOptions options = new BitmapWorkerOptions();
76 options.mIconResource = new ShortcutIconResource();
77 options.mIconResource.packageName = mPackageName;
78 options.mIconResource.resourceName = mResourceName;
88 options.mResourceUri = mResourceUri;
89 options.mWidth = mWidth;
90 options.mHeight = mHeight;
91 options
[all...]
H A DDrawableDownloader.java86 BitmapDrawable findDrawable(BitmapWorkerOptions options) { argument
94 // if specified width/height in options and is smaller than
96 if (options.getHeight() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) {
97 if (options.getHeight() <= d.getIntrinsicHeight()) {
100 } else if (options.getWidth() != BitmapWorkerOptions.MAX_IMAGE_DIMENSION_PX) {
101 if (options.getWidth() <= d.getIntrinsicWidth()) {
110 BitmapDrawable findLargestDrawable(BitmapWorkerOptions options) { argument
218 public final Drawable loadBitmapBlocking(BitmapWorkerOptions options) { argument
219 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
222 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
246 loadBitmap(BitmapWorkerOptions options, final ImageView imageView) argument
279 getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) argument
310 scheduleTask(DrawableLoader task, BitmapWorkerOptions options) argument
[all...]
H A DBitmapWorkerTask.java152 private Bitmap decodeBitmap(InputStream in, BitmapWorkerOptions options) argument
163 if (options.getBitmapConfig() != null) {
164 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
170 float heightScale = (float) bitmapOptions.outHeight / options.getHeight();
171 float widthScale = (float) bitmapOptions.outWidth / options.getWidth();
195 if (options.getWidth() < bitmap.getWidth()
196 || options.getHeight() < bitmap.getHeight()) {
197 result = BitmapUtils.scaleBitmap(bitmap, options.getWidth(), options.getHeight());
216 private Bitmap getBitmapFromHttp(BitmapWorkerOptions options) throw argument
238 getBitmapFromContent(BitmapWorkerOptions options) argument
318 getAccountImage(BitmapWorkerOptions options) argument
[all...]
H A DDrawableLoader.java177 private Drawable decodeBitmap(InputStream in, BitmapWorkerOptions options) argument
188 if (options.getBitmapConfig() != null) {
189 bitmapOptions.inPreferredConfig = options.getBitmapConfig();
198 int height = options.getHeight();
204 int width = options.getWidth();
223 + bitmapOptions.outHeight + "). Max size: (" + options.getWidth() + "x"
224 + options.getHeight() + "). Chosen scale: " + scale + " -> " + scale);
253 options.getContext().getResources(), object);
266 private Drawable getBitmapFromHttp(BitmapWorkerOptions options) throws IOException { argument
267 URL url = new URL(options
284 getBitmapFromContent(BitmapWorkerOptions options) argument
356 getAccountImage(BitmapWorkerOptions options) argument
[all...]
H A DBitmapDownloader.java125 public final Bitmap loadBitmapBlocking(final BitmapWorkerOptions options) { argument
126 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
129 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
131 bitmap = getBitmapFromMemCache(options);
146 return task.doInBackground(options);
154 public void loadBitmap(final BitmapWorkerOptions options, final ImageView imageView) { argument
156 final boolean hasAccountImageUri = UriUtils.isAccountImageUri(options.getResourceUri());
159 AccountImageChangeObserver.getInstance().registerChangeUriIfPresent(options);
161 bitmap = getBitmapFromMemCache(options);
178 task.execute(options);
187 getBitmap(final 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/Launcher3/src/com/android/launcher3/
H A DFolderInfo.java48 public int options; field in class:FolderInfo
107 .put(LauncherSettings.Favorites.OPTIONS, options);
140 return (options & optionFlag) != 0;
149 int oldOptions = options;
151 options |= option;
153 options &= ~option;
155 if (writer != null && oldOptions != options) {
/packages/apps/Contacts/src/com/android/contacts/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/
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/Messaging/tests/src/com/android/messaging/datamodel/media/
H A DImageRequestTest.java60 final ArgumentCaptor<BitmapFactory.Options> options =
63 options.capture(),
66 assertEquals(1, options.getValue().inSampleSize);
73 assertEquals(options.getValue().outWidth, bitmapWidth);
74 assertEquals(options.getValue().outHeight, bitmapHeight);
91 final ArgumentCaptor<BitmapFactory.Options> options =
94 options.capture(),
96 assertNotSame(1, options.getValue().inSampleSize);
/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) {}
59 // reorder options.
65 // Additional features options are stored after the other options and used as setting values of
/packages/apps/TV/src/com/android/tv/util/
H A DBitmapUtils.java114 BitmapFactory.Options options = new BitmapFactory.Options();
115 options.inJustDecodeBounds = true;
116 BitmapFactory.decodeStream(inputStream, null, options);
135 options.inJustDecodeBounds = false;
136 options.inPreferredConfig = Bitmap.Config.RGB_565;
137 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
138 Bitmap bitmap = BitmapFactory.decodeStream(inputStream, null, options);
142 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize);
165 private static int calculateInSampleSize(BitmapFactory.Options options, in argument
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetHostViewLoader.java49 public void onDragStart(DropTarget.DragObject dragObject, DragOptions options) { argument
91 final Bundle options = getDefaultOptionsForWidget(mLauncher, mInfo);
95 mInfo.bindOptions = options;
107 mWidgetLoadingId, pInfo, options)) {
165 Bundle options = new Bundle();
166 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH,
168 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT,
170 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH,
172 options.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT,
174 return options;
[all...]

Completed in 754 milliseconds

123456