Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java210 Options opts = new BitmapFactory.Options(); in testDecodeRegionInputStream() local
214 opts.inSampleSize = SAMPLESIZES[j]; in testDecodeRegionInputStream()
215 opts.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeRegionInputStream()
220 Bitmap wholeImage = BitmapFactory.decodeStream(is2, null, opts); in testDecodeRegionInputStream()
223 compareRegionByRegion(decoder, opts, MSE_MARGIN_WEB_P_CONFIG_RGB_565, in testDecodeRegionInputStream()
226 compareRegionByRegion(decoder, opts, MSE_MARGIN, wholeImage); in testDecodeRegionInputStream()
237 Options opts = new BitmapFactory.Options(); in testDecodeRegionInputStreamInBitmap() local
241 opts.inSampleSize = SAMPLESIZES[j]; in testDecodeRegionInputStreamInBitmap()
242 opts.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeRegionInputStreamInBitmap()
243 opts.inBitmap = null; in testDecodeRegionInputStreamInBitmap()
[all …]
DBitmapColorSpaceTest.java325 BitmapFactory.Options opts = new BitmapFactory.Options(); in reconfigure() local
326 opts.inMutable = true; in reconfigure()
327 opts.inPreferredConfig = config; in reconfigure()
329 Bitmap b = BitmapFactory.decodeStream(in, null, opts); in reconfigure()
352 BitmapFactory.Options opts = new BitmapFactory.Options(); in reuse() local
353 opts.inMutable = true; in reuse()
357 bitmap1 = BitmapFactory.decodeStream(in, null, opts); in reuse()
366 opts.inBitmap = bitmap1; in reuse()
368 Bitmap bitmap2 = BitmapFactory.decodeStream(in, null, opts); in reuse()
475 BitmapFactory.Options opts = new BitmapFactory.Options(); in verifySetPixel() local
[all …]
DBitmapFactoryTest.java352 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDecodeFileDescriptor3() local
353 opts.inPurgeable = purgeable; in testDecodeFileDescriptor3()
354 opts.inInputShareable = purgeable; in testDecodeFileDescriptor3()
368 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
379 b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
692 BitmapFactory.Options opts = new BitmapFactory.Options(); in testParcel() local
693 opts.inScaled = false; in testParcel()
694 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.gif_test, opts); in testParcel()
926 Options opts = new BitmapFactory.Options(); in decodeConfigs() local
927 opts.inScaled = false; in decodeConfigs()
[all …]
DBitmapTest.java2291 BitmapFactory.Options opts = new BitmapFactory.Options(); in testHardwareBitmapNotLeaking() local
2292 opts.inPreferredConfig = Config.HARDWARE; in testHardwareBitmapNotLeaking()
2293 opts.inScaled = false; in testHardwareBitmapNotLeaking()
2296 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); in testHardwareBitmapNotLeaking()
2326 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDrawingHardwareBitmapNotLeaking() local
2327 opts.inPreferredConfig = Config.HARDWARE; in testDrawingHardwareBitmapNotLeaking()
2328 opts.inScaled = false; in testDrawingHardwareBitmapNotLeaking()
2334 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); in testDrawingHardwareBitmapNotLeaking()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsingle_source_script.rscript44 rs_script_call_t opts = {};
45 opts.xStart = 0;
46 opts.xEnd = dimX;
47 opts.yStart = 0;
48 opts.yEnd = dimY / 2;
49 rsForEachWithOptions(foo, &opts, in, out);
54 rs_script_call_t opts = {};
55 opts.xStart = 0;
56 opts.xEnd = dimX;
57 opts.yStart = 0;
[all …]
/cts/apps/CameraITS/tests/scene3/
Dtest_flip_mirror.py100 opts = []
114 opts.append(opt_val)
117 if not (opts[0] == max(opts) or opts[3] == max(opts)):
121 if opts[3] == max(opts):
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java130 final DeviceTestRunOptions opts = new DeviceTestRunOptions(pkgName); in runDeviceTestsAsUser() local
135 opts.setTestClassName(testClassName); in runDeviceTestsAsUser()
138 opts.setTestMethodName(testMethodName); in runDeviceTestsAsUser()
140 opts.setUserId(userId); in runDeviceTestsAsUser()
142 runDeviceTests(opts); in runDeviceTestsAsUser()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DColorSpaceTests.java174 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadAsset() local
175 opts.inPreferredConfig = config; in loadAsset()
177 bitmap = BitmapFactory.decodeStream(in, null, opts); in loadAsset()
/cts/tests/tests/provider/src/android/provider/cts/
DDocumentsContractTest.java406 final Bundle opts = new Bundle(); in testOpenDocumentThumbnail() local
407 opts.putParcelable(ContentResolver.EXTRA_SIZE, size); in testOpenDocumentThumbnail()
410 assertEquals(res, mResolver.openTypedAssetFile(URI_RED, MIME_TYPE, opts, null)); in testOpenDocumentThumbnail()
485 final Bundle opts = new Bundle(); in testGetDocumentThumbnail() local
486 opts.putParcelable(ContentResolver.EXTRA_SIZE, size); in testGetDocumentThumbnail()
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java406 public AssetFileDescriptor openTypedAssetFile(Uri uri, String mimeTypeFilter, Bundle opts) in openTypedAssetFile() argument
417 return super.openTypedAssetFile(uri, mimeTypeFilter, opts); in openTypedAssetFile()
422 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() argument
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java836 final Bundle opts; in triggerImeCommitContent() local
838 opts = null; in triggerImeCommitContent()
840 opts = new Bundle(); in triggerImeCommitContent()
841 opts.putString(ContentInfoArgumentMatcher.EXTRA_KEY, extra); in triggerImeCommitContent()
845 return ic.commitContent(contentInfo, 0, opts); in triggerImeCommitContent()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionBlockingMethodTest.java865 Bundle opts) { in testCommitContent() argument
869 assertEquals(expectedOpt.getInt(expectedOptKey), opts.getInt(expectedOptKey)); in testCommitContent()
897 Bundle opts) { in testCommitContentFailWithTimeout() argument
931 Bundle opts) { in testCommitContentFailFastAfterUnbindInput() argument
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java671 BitmapFactory.Options opts = new BitmapFactory.Options(); in getBitmapUnscaled() local
672 opts.inDensity = opts.inTargetDensity = mResources.getDisplayMetrics().densityDpi; in getBitmapUnscaled()
673 Bitmap bitmap = BitmapFactory.decodeResource(mResources, resId, opts); in getBitmapUnscaled()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStore_Images_ThumbnailsTest.java194 BitmapFactory.Options opts = new BitmapFactory.Options(); in testQueryExternalMiniThumbnails() local
195 opts.inTargetDensity = DisplayMetrics.DENSITY_XHIGH; in testQueryExternalMiniThumbnails()
196 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery,opts); in testQueryExternalMiniThumbnails()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java1018 @Nullable Bundle opts) { in callCommitContent() argument
1022 params.putBundle("opts", opts); in callCommitContent()
DMockIme.java319 final Bundle opts = command.getExtras().getBundle("opts"); in onHandleCommand()
321 inputContentInfo, flags, opts); in onHandleCommand()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java456 String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument