/packages/apps/Gallery2/src/com/android/photos/drawables/ |
D | AutoThumbnailDrawable.java | 49 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/Gallery2/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 64 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/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | LauncherDragController.java | 75 mOptions = options; in startDrag() 76 if (mOptions.simulatedDndStartPoint != null) { in startDrag() 77 mLastTouch.x = mMotionDown.x = mOptions.simulatedDndStartPoint.x; in startDrag() 78 mLastTouch.y = mMotionDown.y = mOptions.simulatedDndStartPoint.y; in startDrag() 92 mIsInPreDrag = mOptions.preDragCondition != null in startDrag() 93 && !mOptions.preDragCondition.shouldStartDrag(0); in startDrag() 123 mDragDriver = DragDriver.create(this, mOptions, mFlingToDeleteHelper::recordMotionEvent); in startDrag() 124 if (!mOptions.isAccessibleDrag) { in startDrag() 145 } else if (mOptions.preDragCondition != null) { in startDrag() 146 mOptions.preDragCondition.onPreDragStart(mDragObject); in startDrag() [all …]
|
D | DragController.java | 70 protected DragOptions mOptions; field in DragController 206 if (mOptions.preDragCondition != null) { in callOnDragStart() 207 mOptions.preDragCondition.onPreDragEnd(mDragObject, true /* dragStarted*/); in callOnDragStart() 212 listener.onDragStart(mDragObject, mOptions); in callOnDragStart() 236 return mDragDriver != null || (mOptions != null && mOptions.isAccessibleDrag); in isDragging() 321 if (mIsInPreDrag && mOptions.preDragCondition != null) { in callOnDragEnd() 322 mOptions.preDragCondition.onPreDragEnd(mDragObject, false /* dragStarted*/); in callOnDragEnd() 325 mOptions = null; in callOnDragEnd() 389 if (mOptions != null && mOptions.isAccessibleDrag) { in onControllerInterceptTouchEvent() 439 if (mIsInPreDrag && mOptions.preDragCondition != null in handleMoveEvent() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/widget/ |
D | OptionSelectorController.java | 81 private final List<T> mOptions; field in OptionSelectorController 97 mOptions = options; in OptionSelectorController() 114 if (!mOptions.contains(option)) { in setSelectedOption() 121 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setSelectedOption() 123 mAdapter.notifyItemChanged(mOptions.indexOf(lastSelectedOption)); in setSelectedOption() 132 return mOptions.contains(option); in containsOption() 141 if (!mOptions.contains(option)) { in setAppliedOption() 146 mAdapter.notifyItemChanged(mOptions.indexOf(option)); in setAppliedOption() 148 mAdapter.notifyItemChanged(mOptions.indexOf(lastAppliedOption)); in setAppliedOption() 153 int index = mOptions.indexOf(option); in updateActivatedStatus() [all …]
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | Diff.java | 79 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/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | arguments_and_options.h | 31 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/ThemePicker/src/com/android/customization/model/grid/ |
D | LauncherGridOptionsProvider.java | 55 private List<GridOption> mOptions; field in LauncherGridOptionsProvider 76 if (mOptions != null && !reload) { in fetch() 77 return mOptions; in fetch() 84 mOptions = new ArrayList<>(); in fetch() 92 mOptions.add(new GridOption(title, name, isSet, rows, cols, in fetch() 96 mOptions = null; in fetch() 98 return mOptions; in fetch()
|
/packages/apps/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 300 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/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | NativeSuggestOptions.java | 28 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/Messaging/src/com/android/messaging/util/ |
D | ImageUtils.java | 408 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/Gallery/src/com/android/camera/ |
D | BitmapManager.java | 43 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/ |
D | suggest_options.h | 27 : 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/ |
D | ThemeComponentOptionProvider.java | 38 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()
|
D | IconOptionsProvider.java | 106 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()
|
D | FontOptionsProvider.java | 62 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()
|
D | ShapeOptionsProvider.java | 78 mOptions.add(new ShapeOption(overlayPackage, label, path, in loadOptions() 91 mOptions.add(new ShapeOption(null, mContext.getString(R.string.default_theme_title), path, in addDefault()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifParser.java | 147 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/Messaging/src/com/android/messaging/util/exif/ |
D | ExifParser.java | 148 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/ |
D | ExifParser.java | 147 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/ |
D | PhotoTable.java | 491 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 …]
|
D | PhotoCarousel.java | 131 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/ |
D | Ver4DictEncoder.java | 61 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/ |
D | BinaryDictOffdeviceUtilsTests.java | 115 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/ |
D | DecodeUtils.java | 43 Options mOptions; field in DecodeUtils.DecodeCanceller 46 mOptions = options; in DecodeCanceller() 51 mOptions.requestCancelDecode(); in onCancel()
|