Home
last modified time | relevance | path

Searched refs:opts (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/Camera2/src/com/android/camera/data/
DPhotoDataFactory.java95 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()
DFilmstripItemUtils.java128 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadImageThumbnailFromStream() local
129 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
130 opts.inTempStorage = decodeBuffer; in loadImageThumbnailFromStream()
131 Bitmap b = BitmapFactory.decodeStream(stream, null, opts); in loadImageThumbnailFromStream()
/packages/apps/Messaging/tools/
Dbuglesql20 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"
Dmmssql20 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/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/util/test/
DMockContentProviderWrapper.kt45 opts: Bundle?, in openTypedAssetFile()
48 return provider.openTypedAssetFile(uri, mimetype, opts, cancellationSignal) in openTypedAssetFile()
55 opts: Bundle?, in openTypedAssetFile()
57 return provider.openTypedAssetFile(uri, mimeType, opts) in openTypedAssetFile()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/glide/
DPickerThumbnailFetcher.java68 final Bundle opts = new Bundle(); in loadData() local
69 opts.putParcelable(ContentResolver.EXTRA_SIZE, new Point(mWidth, mHeight)); in loadData()
70 opts.putBoolean(CloudMediaProviderContract.EXTRA_PREVIEW_THUMBNAIL, true); in loadData()
73 opts.putBoolean(CloudMediaProviderContract.EXTRA_MEDIASTORE_THUMB, true); in loadData()
84 opts, in loadData()
/packages/apps/DevCamera/src/com/android/devcamera/
DBitmapUtility.java34 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/providers/MediaProvider/src/com/android/providers/media/
DAsyncPickerFileOpener.java164 final Bundle opts = request.getOpts(); in openAssetFileAsync() local
165 final boolean wantsThumb = (opts != null) && opts.containsKey(ContentResolver.EXTRA_SIZE) in openAssetFileAsync()
168 if (opts != null) { in openAssetFileAsync()
169 opts.remove(MediaStore.EXTRA_MODE); in openAssetFileAsync()
178 request.getUri(), request.getMimeType(), opts, cancellationSignal, in openAssetFileAsync()
DPickerUriResolver.java156 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts, in openTypedAssetFile() argument
176 return openThumbnailFromProvider(resolver, uri, mimeTypeFilter, opts, signal); in openTypedAssetFile()
183 return resolver.openTypedAssetFile(uri, mimeTypeFilter, opts, signal); in openTypedAssetFile()
608 String mimeTypeFilter, Bundle opts, in openThumbnailFromProvider() argument
610 Bundle newOpts = opts == null ? new Bundle() : (Bundle) opts.clone(); in openThumbnailFromProvider()
DMediaDocumentsProvider.java1061 final Bundle opts = new Bundle(); in openFile() local
1062 opts.putInt(MediaStore.EXTRA_MEDIA_CAPABILITIES_UID, callingUid); in openFile()
1063 opts.putString(MediaStore.EXTRA_MODE, mode); in openFile()
1066 opts); in openFile()
1500 final Bundle opts = new Bundle(); in openOrCreateImageThumbnailCleared() local
1501 opts.putParcelable(EXTRA_SIZE, size); in openOrCreateImageThumbnailCleared()
1504 return getContext().getContentResolver().openTypedAssetFile(uri, "image/*", opts, signal); in openOrCreateImageThumbnailCleared()
1537 final Bundle opts = new Bundle(); in openOrCreateVideoThumbnailCleared() local
1538 opts.putParcelable(EXTRA_SIZE, size); in openOrCreateVideoThumbnailCleared()
1541 return getContext().getContentResolver().openTypedAssetFile(uri, "image/*", opts, signal); in openOrCreateVideoThumbnailCleared()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DPictureDecoder.java36 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/Contacts/tests/src/com/android/contacts/test/mocks/
DForwardingContentProvider.java172 Bundle opts) { in openTypedAssetFileDescriptor() argument
174 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts); in openTypedAssetFileDescriptor()
181 Bundle opts, CancellationSignal signal) { in openTypedAssetFileDescriptor() argument
183 return mClient.openTypedAssetFileDescriptor(uri, mimeType, opts, signal); in openTypedAssetFileDescriptor()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java387 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/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerProvider.java96 final Bundle opts = new Bundle(); in onOpenPreview() local
97 opts.putParcelable(ContentResolver.EXTRA_SIZE, size); in onOpenPreview()
108 return mMediaProvider.openTypedAssetFile(fromMediaId(mediaId), mimeTypeFilter, opts); in onOpenPreview()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java205 Bundle opts = createBindOptions(); in createQsb() local
223 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); in createQsb()
241 .getAppWidgetOptions(widgetId), opts)) { in createQsb()
242 mQsb.updateAppWidgetOptions(opts); in createQsb()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPackageManagerHelper.java119 Rect sourceBounds, Bundle opts) { in startDetailsActivityForInfo() argument
123 appInfo.getTargetComponent().getPackageName(), Process.myUserHandle()), opts); in startDetailsActivityForInfo() local
139 info.user, sourceBounds, opts); in startDetailsActivityForInfo()
/packages/providers/MediaProvider/apex/framework/java/android/provider/
DOpenAssetFileRequest.java42 @Nullable Bundle opts, @NonNull IOpenAssetFileCallback callback, in OpenAssetFileRequest() argument
46 mOpts = opts; in OpenAssetFileRequest()
DCloudMediaProvider.java840 @NonNull String mimeTypeFilter, @Nullable Bundle opts) throws FileNotFoundException { in openTypedAssetFile() argument
841 return openTypedAssetFile(uri, mimeTypeFilter, opts, null); in openTypedAssetFile()
853 @NonNull Uri uri, @NonNull String mimeTypeFilter, @Nullable Bundle opts, in openTypedAssetFile() argument
862 if (opts != null) { in openTypedAssetFile()
863 bundle.putBoolean(EXTRA_MEDIASTORE_THUMB, opts.getBoolean(EXTRA_MEDIASTORE_THUMB)); in openTypedAssetFile()
865 if (opts.containsKey(CloudMediaProviderContract.EXTRA_PREVIEW_THUMBNAIL)) { in openTypedAssetFile()
870 previewSize = opts.getParcelable(ContentResolver.EXTRA_SIZE); in openTypedAssetFile()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java136 final Bundle opts = new Bundle(); in onClick() local
137 opts.putParcelable(ARG_PROFILE, profile); in onClick()
139 /* from */ wasLockdown, /* to */ shouldLockdown, opts); in onClick()
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapEmailProvider.java128 ParcelFileDescriptor input, Uri uri, String mimeType, Bundle opts, T args); in readDataFromPipe() argument
138 ParcelFileDescriptor input, Uri uri, String mimeType, Bundle opts, Cursor args) { in readDataFromPipe() argument
181 ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, Cursor c) { in writeDataToPipe() argument
374 final Bundle opts, in openInversePipeHelper() argument
385 func.readDataFromPipe(fds[0], uri, mimeType, opts, args); in openInversePipeHelper()
/packages/modules/Bluetooth/system/stack/mmc/daemon/
Dservice.cc122 dbus::Bus::Options opts; in Init() local
123 opts.bus_type = dbus::Bus::SYSTEM; in Init()
124 bus_ = new dbus::Bus(std::move(opts)); in Init()
/packages/modules/adb/daemon/
Dmain.cpp325 static struct option opts[] = { in main() local
335 int c = getopt_long(argc, argv, "", opts, &option_index); in main()
/packages/apps/QuickSearchBox/tests/naughty/src/com/android/quicksearchbox/tests/naughty/
DNaughtySuggestionProvider.java59 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) { in openTypedAssetFile() argument
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java839 SubscribeOptions opts = new SubscribeOptions(); in createVhalSubscribeOptionsLocked() local
840 opts.propId = property; in createVhalSubscribeOptionsLocked()
841 opts.sampleRate = samplingRateHz; in createVhalSubscribeOptionsLocked()
842 opts.enableVariableUpdateRate = enableVariableUpdateRate; in createVhalSubscribeOptionsLocked()
843 opts.resolution = resolution; in createVhalSubscribeOptionsLocked()
846 opts.areaIds = filteredAreaIds; in createVhalSubscribeOptionsLocked()
847 if (opts.areaIds.length == 0) { in createVhalSubscribeOptionsLocked()
860 VehiclePropertyIds.toString(opts.propId), filteredAreaIds[j], in createVhalSubscribeOptionsLocked()
865 subscribeOptionsList.add(opts); in createVhalSubscribeOptionsLocked()
/packages/modules/Bluetooth/framework/tests/bumble/src/android/bluetooth/opp/
DTestImageProvider.kt51 opts: Bundle?, in openTypedAssetFile()

123