Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRegionDecoderTest.java212 Options opts = new BitmapFactory.Options(); in testDecodeRegionInputStream() local
216 opts.inSampleSize = SAMPLESIZES[j]; in testDecodeRegionInputStream()
217 opts.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeRegionInputStream()
222 Bitmap wholeImage = BitmapFactory.decodeStream(is2, null, opts); in testDecodeRegionInputStream()
225 compareRegionByRegion(decoder, opts, MSE_MARGIN_WEB_P_CONFIG_RGB_565, in testDecodeRegionInputStream()
228 compareRegionByRegion(decoder, opts, MSE_MARGIN, wholeImage); in testDecodeRegionInputStream()
239 Options opts = new BitmapFactory.Options(); in testDecodeRegionInputStreamInBitmap() local
243 opts.inSampleSize = SAMPLESIZES[j]; in testDecodeRegionInputStreamInBitmap()
244 opts.inPreferredConfig = COLOR_CONFIGS[k]; in testDecodeRegionInputStreamInBitmap()
245 opts.inBitmap = null; in testDecodeRegionInputStreamInBitmap()
[all …]
DBitmapColorSpaceTest.java329 BitmapFactory.Options opts = new BitmapFactory.Options(); in reconfigure() local
330 opts.inMutable = true; in reconfigure()
331 opts.inPreferredConfig = config; in reconfigure()
333 Bitmap b = BitmapFactory.decodeStream(in, null, opts); in reconfigure()
356 BitmapFactory.Options opts = new BitmapFactory.Options(); in reuse() local
357 opts.inMutable = true; in reuse()
361 bitmap1 = BitmapFactory.decodeStream(in, null, opts); in reuse()
370 opts.inBitmap = bitmap1; in reuse()
372 Bitmap bitmap2 = BitmapFactory.decodeStream(in, null, opts); in reuse()
482 BitmapFactory.Options opts = new BitmapFactory.Options(); in verifySetPixel() local
[all …]
DBitmapFactoryTest.java370 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDecodeFileDescriptor3() local
371 opts.inPurgeable = purgeable; in testDecodeFileDescriptor3()
372 opts.inInputShareable = purgeable; in testDecodeFileDescriptor3()
386 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
397 b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
711 BitmapFactory.Options opts = new BitmapFactory.Options(); in testParcel() local
712 opts.inScaled = false; in testParcel()
713 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.gif_test, opts); in testParcel()
952 Options opts = new BitmapFactory.Options(); in decodeConfigs() local
953 opts.inScaled = false; in decodeConfigs()
[all …]
DBitmapTest.java2386 BitmapFactory.Options opts = new BitmapFactory.Options(); in testHardwareBitmapNotLeaking() local
2387 opts.inPreferredConfig = Config.HARDWARE; in testHardwareBitmapNotLeaking()
2388 opts.inScaled = false; in testHardwareBitmapNotLeaking()
2391 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); in testHardwareBitmapNotLeaking()
2423 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDrawingHardwareBitmapNotLeaking() local
2424 opts.inPreferredConfig = Config.HARDWARE; in testDrawingHardwareBitmapNotLeaking()
2425 opts.inScaled = false; in testDrawingHardwareBitmapNotLeaking()
2431 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.py97 opts = []
112 opts.append(opt_val)
115 if opts[0] != max(opts): # 'nominal' is not best orientation
120 if opts[3] != max(opts): # allow 'rotated' < ANDROID15
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLaunchIntoPipHostActivity.java75 final ActivityOptions opts = ActivityOptions.makeLaunchIntoPip(params); in startLaunchIntoPipContainerActivity() local
76 startActivity(intent, opts.toBundle()); in startLaunchIntoPipContainerActivity()
/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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DInputConnectionSplitter.java230 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { in commitContent() argument
231 mForNotify.commitContent(inputContentInfo, flags, opts); in commitContent()
232 return super.commitContent(inputContentInfo, flags, opts); in commitContent()
DNoOpInputConnection.java166 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { in commitContent() argument
/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/inputmethod/util/src/android/view/inputmethod/cts/util/
DNoOpInputConnection.java166 int flags, @Nullable Bundle opts) { in commitContent() argument
DHandlerInputConnection.java187 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { in commitContent() argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DColorSpaceTests.java343 BitmapFactory.Options opts = new BitmapFactory.Options(); in loadAsset() local
344 opts.inPreferredConfig = config; in loadAsset()
346 bitmap = BitmapFactory.decodeStream(in, null, opts); in loadAsset()
/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
DContentProviderTest.java550 @NonNull String mimeType, @Nullable Bundle opts, @Nullable String args) { in writeDataToPipe() argument
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionDefaultMethodTest.java332 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { in commitContent() argument
333 return mDelegate.commitContent(inputContentInfo, flags, opts); in commitContent()
DInputConnectionEndToEndTest.java2541 Bundle opts) {
2545 args.putBundle("opts", opts);
2557 final Bundle opts = args.getBundle("opts");
2562 assertNotNull(opts);
2563 assertEquals(expectedOpt.getInt(expectedOptKey), opts.getInt(expectedOptKey));
2595 Bundle opts) {
2599 args.putBundle("opts", opts);
2615 final Bundle opts = args.getBundle("opts");
2620 assertNotNull(opts);
2621 assertEquals(expectedOpt.getInt(expectedOptKey), opts.getInt(expectedOptKey));
[all …]
/cts/tests/tests/security/src/android/security/cts/
DActivityManagerTest.java233 ActivityOptions opts = ActivityOptions.makeRemoteTransition(someRemote);
239 getInstrumentation().startActivitySync(baseIntent, opts.toBundle());
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java845 final Bundle opts; in triggerImeCommitContent() local
847 opts = null; in triggerImeCommitContent()
849 opts = new Bundle(); in triggerImeCommitContent()
850 opts.putString(ContentInfoArgumentMatcher.EXTRA_KEY, extra); in triggerImeCommitContent()
854 return ic.commitContent(contentInfo, 0, opts); in triggerImeCommitContent()
/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/mediaprovider/modern/src/android/provider/cts/media/modern/
DMediaStore_Images_ThumbnailsTest.java191 BitmapFactory.Options opts = new BitmapFactory.Options(); in testQueryExternalMiniThumbnails() local
192 opts.inTargetDensity = DisplayMetrics.DENSITY_XHIGH; in testQueryExternalMiniThumbnails()
193 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery, opts); in testQueryExternalMiniThumbnails()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStore_Images_ThumbnailsTest.java189 BitmapFactory.Options opts = new BitmapFactory.Options(); in testQueryExternalMiniThumbnails() local
190 opts.inTargetDensity = DisplayMetrics.DENSITY_XHIGH; in testQueryExternalMiniThumbnails()
191 Bitmap src = BitmapFactory.decodeResource(mContext.getResources(), R.raw.scenery, opts); in testQueryExternalMiniThumbnails()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockImeSession.java1548 @Nullable Bundle opts) { in callCommitContent() argument
1552 params.putBundle("opts", opts); in callCommitContent()

12