/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ThumbnailLoadTask.java | 120 final BitmapFactory.Options opts = new BitmapFactory.Options(); in loadBitmap() local 121 opts.inJustDecodeBounds = true; in loadBitmap() 122 opts.inDensity = DisplayMetrics.DENSITY_LOW; in loadBitmap() 124 BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, opts); in loadBitmap() local 125 if (isCancelled() || opts.outWidth == -1 || opts.outHeight == -1) { in loadBitmap() 129 opts.inJustDecodeBounds = false; in loadBitmap() 133 final int wDivider = Math.max(opts.outWidth / mWidth, 1); in loadBitmap() 134 final int hDivider = Math.max(opts.outHeight / mHeight, 1); in loadBitmap() 135 opts.inSampleSize = Math.min(wDivider, hDivider); in loadBitmap() 138 opts.outWidth, opts.outHeight, mWidth, mHeight, opts.inSampleSize); in loadBitmap() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | BitmapUtil.java | 50 final BitmapFactory.Options opts = new BitmapFactory.Options(); in decodeByteArray() local 51 opts.inJustDecodeBounds = true; in decodeByteArray() 52 BitmapFactory.decodeByteArray(src, 0, src.length, opts); in decodeByteArray() 53 if (opts.mCancel || opts.outWidth == -1 || opts.outHeight == -1) { in decodeByteArray() 56 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h); in decodeByteArray() 57 opts.inJustDecodeBounds = false; in decodeByteArray() 58 return BitmapFactory.decodeByteArray(src, 0, src.length, opts); in decodeByteArray()
|
/packages/apps/WallpaperPicker/src/com/android/photos/ |
D | BitmapRegionTileSource.java | 153 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadInBackground() local 154 opts.inPreferredConfig = Bitmap.Config.ARGB_8888; in loadInBackground() 155 opts.inPreferQualityOverSpeed = true; in loadInBackground() 158 opts.inSampleSize = Utils.computeSampleSizeLarger(scale); in loadInBackground() 159 opts.inJustDecodeBounds = false; in loadInBackground() 160 opts.inMutable = true; in loadInBackground() 163 int expectedPixles = (width / opts.inSampleSize) * (height / opts.inSampleSize); in loadInBackground() 167 opts.inBitmap = reusableBitmap; in loadInBackground() 169 mPreview = loadPreviewBitmap(opts); in loadInBackground() 172 opts.inBitmap = null; in loadInBackground() [all …]
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | PhotoDataFactory.java | 95 BitmapFactory.Options opts = new BitmapFactory.Options(); in decodeBitmapDimensions() local 96 opts.inJustDecodeBounds = true; in decodeBitmapDimensions() 97 BitmapFactory.decodeFile(filePath, opts); in decodeBitmapDimensions() 98 if (opts.outWidth > 0 && opts.outHeight > 0) { in decodeBitmapDimensions() 99 width = opts.outWidth; in decodeBitmapDimensions() 100 height = opts.outHeight; in decodeBitmapDimensions()
|
D | FilmstripItemUtils.java | 127 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadImageThumbnailFromStream() local 128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream() 129 opts.inTempStorage = decodeBuffer; in loadImageThumbnailFromStream() 130 Bitmap b = BitmapFactory.decodeStream(stream, null, opts); in loadImageThumbnailFromStream()
|
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
D | QsbContainerView.java | 120 Bundle opts = new Bundle(); in createQsb() local 122 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_WIDTH, size.left); in createQsb() 123 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_MIN_HEIGHT, size.top); in createQsb() 124 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_WIDTH, size.right); in createQsb() 125 opts.putInt(AppWidgetManager.OPTION_APPWIDGET_MAX_HEIGHT, size.bottom); in createQsb() 141 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); in createQsb() 157 .getAppWidgetOptions(widgetId), opts)) { in createQsb() 158 mQsb.updateAppWidgetOptions(opts); in createQsb()
|
/packages/apps/Messaging/tools/ |
D | buglesql | 20 opts='-column -header' 26 opts='-column -header' 30 opts='-line' 43 adb shell su -c sqlite3 $opts data/data/com.android.messaging/databases/bugle_db "$1"
|
D | mmssql | 20 opts='-column -header' 26 opts='-column -header' 30 opts='-line' 43 adb shell su -c sqlite3 $opts data/data/com.android.providers.telephony/databases/mmssms.db "$1"
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | BitmapUtility.java | 34 BitmapFactory.Options opts = new BitmapFactory.Options(); in bitmapFromJpeg() local 35 opts.inSampleSize = 16; // 3264 / 16 = 204. in bitmapFromJpeg() 36 opts.inTempStorage = decodeBuffer; in bitmapFromJpeg() 37 Bitmap b = BitmapFactory.decodeByteArray(data, 0, data.length, opts); in bitmapFromJpeg()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | DynamicShortcuts.java | 387 final BitmapFactory.Options opts = new BitmapFactory.Options(); in decodeStreamForShortcut() local 388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut() 390 final int scaledWidth = sourceWidth / opts.inSampleSize; in decodeStreamForShortcut() 391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut() 401 final int prescaledXOffset = ((scaledWidth - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut() 402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut() 407 ), opts); in decodeStreamForShortcut()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | ForwardingContentProvider.java | 170 Bundle opts) { in openTypedAssetFileDescriptor() argument 172 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts); in openTypedAssetFileDescriptor() 179 Bundle opts, CancellationSignal signal) { in openTypedAssetFileDescriptor() argument 181 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts, signal); in openTypedAssetFileDescriptor()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
D | PictureDecoder.java | 36 final BitmapFactory.Options opts = new BitmapFactory.Options(); in decode() local 37 opts.inSampleSize = downSampleFactor; in decode() 38 final Bitmap pictureBitmap = BitmapFactory.decodeByteArray(data, 0, data.length, opts); in decode()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | LauncherAppsCompatVL.java | 66 Rect sourceBounds, Bundle opts) { in startActivityForProfile() argument 67 mLauncherApps.startMainActivity(component, user, sourceBounds, opts); in startActivityForProfile() 98 Rect sourceBounds, Bundle opts) { in showAppDetailsForProfile() argument 99 mLauncherApps.startAppDetailsActivity(component, user, sourceBounds, opts); in showAppDetailsForProfile()
|
D | LauncherAppsCompat.java | 71 Rect sourceBounds, Bundle opts); in startActivityForProfile() argument 75 Rect sourceBounds, Bundle opts); in showAppDetailsForProfile() argument
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapEmailProvider.java | 129 Bundle opts, T args); in readDataFromPipe() argument 139 String mimeType, Bundle opts, Cursor args) { in readDataFromPipe() argument 182 Bundle opts, Cursor c) { in writeDataToPipe() argument 356 final Bundle opts, final T args, final PipeDataReader<T> func) in openInversePipeHelper() argument 364 func.readDataFromPipe(fds[0], uri, mimeType, opts, args); in openInversePipeHelper()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | VehicleHal.java | 322 SubscribeOptions opts = new SubscribeOptions(); in subscribeProperty() local 323 opts.propId = property; in subscribeProperty() 324 opts.sampleRate = samplingRateHz; in subscribeProperty() 325 opts.flags = flags; in subscribeProperty() 328 mSubscribedProperties.put(property, opts); in subscribeProperty() 331 mHalClient.subscribe(opts); in subscribeProperty()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialogFragment.java | 157 final Bundle opts = new Bundle(); in onClick() local 158 opts.putParcelable(ARG_PROFILE, profile); in onClick() 160 /* from */ wasLockdown, /* to */ shouldLockdown, opts); in onClick()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaDocumentsProvider.java | 864 final BitmapFactory.Options opts = new BitmapFactory.Options(); in openOrCreateImageThumbnailCleared() local 865 opts.inJustDecodeBounds = true; in openOrCreateImageThumbnailCleared() 866 Images.Thumbnails.getThumbnail(resolver, id, Images.Thumbnails.MINI_KIND, opts); in openOrCreateImageThumbnailCleared() 952 final BitmapFactory.Options opts = new BitmapFactory.Options(); in openOrCreateVideoThumbnailCleared() local 953 opts.inJustDecodeBounds = true; in openOrCreateVideoThumbnailCleared() 954 Video.Thumbnails.getThumbnail(resolver, id, Video.Thumbnails.MINI_KIND, opts); in openOrCreateVideoThumbnailCleared()
|
/packages/apps/UnifiedEmail/src/com/android/mail/content/ |
D | ThreadSafeCursorWrapper.java | 102 final int opts = extras.getInt(UIProvider.ConversationCursorCommand.COMMAND_KEY_OPTIONS); in respond() local 103 if ((opts & UIProvider.ConversationCursorCommand.OPTION_MOVE_POSITION) != 0) { in respond()
|
/packages/apps/Launcher3/src/com/android/launcher3/popup/ |
D | SystemShortcut.java | 90 Bundle opts = launcher.getActivityLaunchOptions(view); 91 … InfoDropTarget.startDetailsActivityForInfo(itemInfo, launcher, null, sourceBounds, opts);
|
/packages/apps/KeyChain/src/com/android/keychain/ |
D | KeyChainService.java | 460 BroadcastOptions opts = BroadcastOptions.makeBasic(); in broadcastLegacyStorageChange() local 461 opts.setMaxManifestReceiverApiLevel(Build.VERSION_CODES.N_MR1); in broadcastLegacyStorageChange() 462 sendBroadcastAsUser(intent, UserHandle.of(UserHandle.myUserId()), null, opts.toBundle()); in broadcastLegacyStorageChange()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | InfoDropTarget.java | 67 DropTargetResultCallback callback, Rect sourceBounds, Bundle opts) { in startDetailsActivityForInfo() argument 87 .showAppDetailsForProfile(componentName, info.user, sourceBounds, opts); in startDetailsActivityForInfo()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | WidgetPreviewLoader.java | 432 final BitmapFactory.Options opts = mCachedBitmapFactoryOptions.get(); in readFromDb() local 433 opts.inBitmap = b; in readFromDb() 434 opts.inSampleSize = 1; in readFromDb() 435 Bitmap out = BitmapFactory.decodeByteArray(blob, 0, blob.length, opts); in readFromDb()
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | InstrumentClusterService.java | 329 ClusterActivityInfo opts = attributedResolveInfo.second; in doStartClusterActivity() local 334 intent.putExtra(CarInstrumentClusterManager.KEY_EXTRA_ACTIVITY_STATE, opts.state); in doStartClusterActivity() 339 mContext.startActivity(intent, opts.launchOptions); in doStartClusterActivity()
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
D | ContactResolver.java | 230 final DecodeTask.DecodeOptions opts = new DecodeTask.DecodeOptions( in doInBackground() local 232 final ReusableBitmap result = new DecodeTask(request.contactRequest, opts, null, in doInBackground()
|