Home
last modified time | relevance | path

Searched refs:mOptions (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java49 private BitmapFactory.Options mOptions = new BitmapFactory.Options(); field in AutoThumbnailDrawable
64 mOptions.inTempStorage = sTempStorage; in AutoThumbnailDrawable()
236 mOptions.inJustDecodeBounds = true;
237 BitmapFactory.decodeByteArray(preferred, 0, preferred.length, mOptions);
238 mOptions.inJustDecodeBounds = false;
249 mOptions.outWidth, mOptions.outHeight);
258 mOptions.inSampleSize = preferredSampleSize;
259 mOptions.inBitmap = sBitmapPool.get(
260 mOptions.outWidth / preferredSampleSize,
261 mOptions.outHeight / preferredSampleSize);
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragController.java80 private DragOptions mOptions; field in DragController
163 mOptions = options; in startDrag()
164 if (mOptions.systemDndStartPoint != null) { in startDrag()
165 mMotionDownX = mOptions.systemDndStartPoint.x; in startDrag()
166 mMotionDownY = mOptions.systemDndStartPoint.y; in startDrag()
179 mIsInPreDrag = mOptions.preDragCondition != null in startDrag()
180 && !mOptions.preDragCondition.shouldStartDrag(0); in startDrag()
189 if (mOptions.isAccessibleDrag) { in startDrag()
199 mDragDriver = DragDriver.create(mLauncher, this, mDragObject, mOptions); in startDrag()
220 } else if (mOptions.preDragCondition != null) { in startDrag()
[all …]
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java64 private BitmapFactory.Options mOptions; field in BitmapRegionTileSource
77 mOptions = new BitmapFactory.Options(); in BitmapRegionTileSource()
78 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888; in BitmapRegionTileSource()
79 mOptions.inPreferQualityOverSpeed = true; in BitmapRegionTileSource()
80 mOptions.inTempStorage = new byte[16 * 1024]; in BitmapRegionTileSource()
138 mOptions.inSampleSize = (1 << level); in getTile()
139 mOptions.inBitmap = bitmap; in getTile()
142 bitmap = mDecoder.decodeRegion(mWantRegion, mOptions); in getTile()
144 if (mOptions.inBitmap != bitmap && mOptions.inBitmap != null) { in getTile()
145 mOptions.inBitmap = null; in getTile()
[all …]
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDiff.java79 if (null == dict0.mOptions.mAttributes.get("locale")) return false; in languageDiffers()
80 if (null == dict1.mOptions.mAttributes.get("locale")) return false; in languageDiffers()
81 final String dict0Lang = dict0.mOptions.mAttributes.get("locale").split("_", 3)[0]; in languageDiffers()
82 final String dict1Lang = dict1.mOptions.mAttributes.get("locale").split("_", 3)[0]; in languageDiffers()
88 final HashMap<String, String> options1 = new HashMap<>(dict1.mOptions.mAttributes); in diffHeaders()
89 for (final String optionKey : dict0.mOptions.mAttributes.keySet()) { in diffHeaders()
90 if (!dict0.mOptions.mAttributes.get(optionKey).equals( in diffHeaders()
91 dict1.mOptions.mAttributes.get(optionKey))) { in diffHeaders()
93 + dict0.mOptions.mAttributes.get(optionKey) + " <=> " in diffHeaders()
94 + dict1.mOptions.mAttributes.get(optionKey)); in diffHeaders()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DOptionSelectorController.java65 private final List<T> mOptions; field in OptionSelectorController
81 mOptions = options; in OptionSelectorController()
95 if (!mOptions.contains(option)) { in setSelectedOption()
110 if (!mOptions.contains(option)) { in setAppliedOption()
115 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setAppliedOption()
117 mAdapter.notifyItemChanged(mOptions.indexOf(lastAppliedOption)); in setAppliedOption()
122 int index = mOptions.indexOf(option); in updateActivatedStatus()
160 return mOptions.get(position).getLayoutResId(); in initOptions()
172 CustomizationOption option = mOptions.get(position); in initOptions()
221 return mOptions.size(); in initOptions()
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_and_options.h31 ArgumentsAndOptions() : mIsValid(false), mOptions(), mArguments() {} in ArgumentsAndOptions()
35 : mIsValid(true), mOptions(std::move(options)), mArguments(std::move(arguments)) {} in ArgumentsAndOptions()
42 return mOptions.find(optionName) != mOptions.end(); in hasOption()
46 const auto &it = mOptions.find(optionName); in getOptionValue()
47 ASSERT(it != mOptions.end()); in getOptionValue()
72 const std::unordered_map<std::string, std::string> mOptions; variable
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java300 private BitmapFactory.Options mOptions; field in BitmapRegionTileSource
309 mOptions = new BitmapFactory.Options(); in BitmapRegionTileSource()
310 mOptions.inPreferredConfig = Bitmap.Config.ARGB_8888; in BitmapRegionTileSource()
311 mOptions.inPreferQualityOverSpeed = true; in BitmapRegionTileSource()
312 mOptions.inTempStorage = tempStorage; in BitmapRegionTileSource()
368 mOptions.inSampleSize = (1 << level); in getTile()
369 mOptions.inBitmap = bitmap; in getTile()
372 bitmap = mDecoder.decodeRegion(mWantRegion, mOptions); in getTile()
374 if (mOptions.inBitmap != bitmap && mOptions.inBitmap != null) { in getTile()
375 mOptions.inBitmap = null; in getTile()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java408 private final BitmapFactory.Options mOptions; field in ImageUtils.ImageResizer
455 mOptions = new BitmapFactory.Options(); in ImageResizer()
456 mOptions.inScaled = false; in ImageResizer()
457 mOptions.inDensity = 0; in ImageResizer()
458 mOptions.inTargetDensity = 0; in ImageResizer()
459 mOptions.inSampleSize = 1; in ImageResizer()
460 mOptions.inJustDecodeBounds = false; in ImageResizer()
461 mOptions.inMutable = false; in ImageResizer()
572 mOptions.inJustDecodeBounds = true; in ensureImageSizeSet()
574 BitmapFactory.decodeStream(inputStream, null, mOptions); in ensureImageSizeSet()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/grid/
DLauncherGridOptionsProvider.java59 private List<GridOption> mOptions; field in LauncherGridOptionsProvider
91 if (mOptions != null && !reload) { in fetch()
92 return mOptions; in fetch()
103 mOptions = new ArrayList<>(); in fetch()
117 mOptions.add(new GridOption(title, name, isSet, rows, cols, preview, previewCount, in fetch()
122 mOptions = null; in fetch()
124 return mOptions; in fetch()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DNativeSuggestOptions.java28 private final int[] mOptions; field in NativeSuggestOptions
31 mOptions = new int[OPTIONS_SIZE]; in NativeSuggestOptions()
53 return mOptions; in getOptions()
57 mOptions[key] = value ? 1 : 0; in setBooleanOption()
61 mOptions[key] = value; in setIntegerOption()
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java43 public BitmapFactory.Options mOptions; field in BitmapManager.ThreadStatus
55 s = "thread state = " + s + ", options = " + mOptions; in toString()
86 getOrCreateThreadStatus(t).mOptions = options; in setDecodingOptions()
91 status.mOptions = null; in removeDecodingOptions()
116 if (status.mOptions != null) { in cancelThreadDecoding()
117 status.mOptions.requestCancelDecode(); in cancelThreadDecoding()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
Dsuggest_options.h27 : mOptions(options), mLength(length) {} in SuggestOptions()
69 const int *const mOptions; variable
78 return mOptions[key] != 0; in getBoolOption()
85 return mOptions[key]; in getIntOption()
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DThemeComponentOptionProvider.java38 protected List<T> mOptions; field in ThemeComponentOptionProvider
63 if (mOptions == null || reload) { in fetch()
64 mOptions = new ArrayList<>(); in fetch()
69 callback.onOptionsLoaded(mOptions); in fetch()
DIconOptionsProvider.java106 mOptions.add(option); in loadOptions()
107 option.setLabel(mContext.getString(R.string.icon_component_label, mOptions.size())); in loadOptions()
150 mOptions.add(option); in addDefault()
DFontOptionsProvider.java62 mOptions.add(new FontOption(overlayPackage, label, headlineFont, bodyFont)); in loadOptions()
79 mOptions.add(new FontOption(null, mContext.getString(R.string.default_theme_title), in addDefault()
DShapeOptionsProvider.java77 mOptions.add(new ShapeOption(overlayPackage, label, path, in loadOptions()
90 mOptions.add(new ShapeOption(null, mContext.getString(R.string.default_theme_title), path, in addDefault()
DColorOptionsProvider.java108 mOptions.add(option); in loadOptions()
140 mOptions.add(option); in addDefault()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifParser.java148 private final int mOptions; field in ExifParser
185 return (mOptions & OPTION_IFD_0) != 0; in isIfdRequested()
187 return (mOptions & OPTION_IFD_1) != 0; in isIfdRequested()
189 return (mOptions & OPTION_IFD_EXIF) != 0; in isIfdRequested()
191 return (mOptions & OPTION_IFD_GPS) != 0; in isIfdRequested()
193 return (mOptions & OPTION_IFD_INTEROPERABILITY) != 0; in isIfdRequested()
199 return (mOptions & OPTION_THUMBNAIL) != 0; in isThumbnailRequested()
213 mOptions = options; in ExifParser()
/packages/apps/Camera2/src/com/android/camera/exif/
DExifParser.java147 private final int mOptions; field in ExifParser
184 return (mOptions & OPTION_IFD_0) != 0; in isIfdRequested()
186 return (mOptions & OPTION_IFD_1) != 0; in isIfdRequested()
188 return (mOptions & OPTION_IFD_EXIF) != 0; in isIfdRequested()
190 return (mOptions & OPTION_IFD_GPS) != 0; in isIfdRequested()
192 return (mOptions & OPTION_IFD_INTEROPERABILITY) != 0; in isIfdRequested()
198 return (mOptions & OPTION_THUMBNAIL) != 0; in isThumbnailRequested()
212 mOptions = options; in ExifParser()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifParser.java147 private final int mOptions; field in ExifParser
184 return (mOptions & OPTION_IFD_0) != 0; in isIfdRequested()
186 return (mOptions & OPTION_IFD_1) != 0; in isIfdRequested()
188 return (mOptions & OPTION_IFD_EXIF) != 0; in isIfdRequested()
190 return (mOptions & OPTION_IFD_GPS) != 0; in isIfdRequested()
192 return (mOptions & OPTION_IFD_INTEROPERABILITY) != 0; in isIfdRequested()
198 return (mOptions & OPTION_THUMBNAIL) != 0; in isThumbnailRequested()
212 mOptions = options; in ExifParser()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java491 private final BitmapFactory.Options mOptions; field in PhotoTable.LoadNaturalSiblingTask
496 mOptions = new BitmapFactory.Options(); in LoadNaturalSiblingTask()
497 mOptions.inTempStorage = new byte[32768]; in LoadNaturalSiblingTask()
510 mOptions, table.mLongSide, table.mShortSide); in doInBackground()
513 mOptions, table.mLongSide, table.mShortSide); in doInBackground()
515 return applyFrame(PhotoTable.this, mOptions, decodedPhoto); in doInBackground()
548 private final BitmapFactory.Options mOptions; field in PhotoTable.PhotoLaunchTask
551 mOptions = new BitmapFactory.Options(); in PhotoLaunchTask()
552 mOptions.inTempStorage = new byte[32768]; in PhotoLaunchTask()
559 return applyFrame(PhotoTable.this, mOptions, in doInBackground()
[all …]
DPhotoCarousel.java131 private final BitmapFactory.Options mOptions; field in PhotoCarousel.PhotoLoadTask
134 mOptions = new BitmapFactory.Options(); in PhotoLoadTask()
135 mOptions.inTempStorage = new byte[32768]; in PhotoLoadTask()
144 decodedPhoto = mPhotoSource.next(mOptions, mLongSide, mShortSide); in doInBackground()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictEncoder.java61 dict.mOptions.mAttributes.get(DictionaryHeader.DICTIONARY_LOCALE_KEY)), in writeDictionary()
62 dict.mOptions.mAttributes)) { in writeDictionary()
68 LocaleUtils.constructLocaleFromString(dict.mOptions.mAttributes.get( in writeDictionary()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
DBinaryDictOffdeviceUtilsTests.java115 assertEquals("Wrong version attribute", VERSION, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
117 assertEquals("Wrong locale attribute", LOCALE, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
119 assertEquals("Wrong id attribute", ID, resultDict.mOptions.mAttributes.get( in testGetRawDictWorks()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java43 Options mOptions; field in DecodeUtils.DecodeCanceller
46 mOptions = options; in DecodeCanceller()
51 mOptions.requestCancelDecode(); in onCancel()

12