Home
last modified time | relevance | path

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

12

/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.java327 BitmapFactory.Options opts = new BitmapFactory.Options(); in reconfigure() local
328 opts.inMutable = true; in reconfigure()
329 opts.inPreferredConfig = config; in reconfigure()
331 Bitmap b = BitmapFactory.decodeStream(in, null, opts); in reconfigure()
354 BitmapFactory.Options opts = new BitmapFactory.Options(); in reuse() local
355 opts.inMutable = true; in reuse()
359 bitmap1 = BitmapFactory.decodeStream(in, null, opts); in reuse()
368 opts.inBitmap = bitmap1; in reuse()
370 Bitmap bitmap2 = BitmapFactory.decodeStream(in, null, opts); in reuse()
477 BitmapFactory.Options opts = new BitmapFactory.Options(); in verifySetPixel() local
[all …]
DBitmapFactoryTest.java369 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDecodeFileDescriptor3() local
370 opts.inPurgeable = purgeable; in testDecodeFileDescriptor3()
371 opts.inInputShareable = purgeable; in testDecodeFileDescriptor3()
385 Bitmap b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
396 b = BitmapFactory.decodeFileDescriptor(fd, null, opts); in testDecodeFileDescriptor3()
709 BitmapFactory.Options opts = new BitmapFactory.Options(); in testParcel() local
710 opts.inScaled = false; in testParcel()
711 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.gif_test, opts); in testParcel()
943 Options opts = new BitmapFactory.Options(); in decodeConfigs() local
944 opts.inScaled = false; in decodeConfigs()
[all …]
DBitmapTest.java2277 BitmapFactory.Options opts = new BitmapFactory.Options(); in testHardwareBitmapNotLeaking() local
2278 opts.inPreferredConfig = Config.HARDWARE; in testHardwareBitmapNotLeaking()
2279 opts.inScaled = false; in testHardwareBitmapNotLeaking()
2282 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.robot, opts); in testHardwareBitmapNotLeaking()
2312 BitmapFactory.Options opts = new BitmapFactory.Options(); in testDrawingHardwareBitmapNotLeaking() local
2313 opts.inPreferredConfig = Config.HARDWARE; in testDrawingHardwareBitmapNotLeaking()
2314 opts.inScaled = false; in testDrawingHardwareBitmapNotLeaking()
2320 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.py96 opts = []
111 opts.append(opt_val)
114 if opts[0] != max(opts): # 'nominal' is not best orientation
119 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/security/src/android/security/cts/
DActivityManagerTest.java236 ActivityOptions opts = ActivityOptions.makeRemoteTransition(someRemote);
244 final Bundle optionsBundle = opts.toBundle();
280 ActivityOptions opts = ActivityOptions.makeRemoteTransition(someRemote); in testActivityManager_rejectRemoteTransition() local
286 getInstrumentation().startActivitySync(baseIntent, opts.toBundle()); in testActivityManager_rejectRemoteTransition()
/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/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/webkit/src/android/webkit/cts/
DMockContentProvider.java81 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, Bundle opts, in writeDataToPipe() 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.java548 @NonNull String mimeType, @Nullable Bundle opts, @Nullable String args) { in writeDataToPipe() argument
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputConnectionDefaultMethodTest.java335 public boolean commitContent(InputContentInfo inputContentInfo, int flags, Bundle opts) { in commitContent() argument
336 return mDelegate.commitContent(inputContentInfo, flags, opts); in commitContent()
DInputConnectionEndToEndTest.java2544 Bundle opts) {
2548 args.putBundle("opts", opts);
2560 final Bundle opts = args.getBundle("opts");
2565 assertNotNull(opts);
2566 assertEquals(expectedOpt.getInt(expectedOptKey), opts.getInt(expectedOptKey));
2598 Bundle opts) {
2602 args.putBundle("opts", opts);
2618 final Bundle opts = args.getBundle("opts");
2623 assertNotNull(opts);
2624 assertEquals(expectedOpt.getInt(expectedOptKey), opts.getInt(expectedOptKey));
[all …]
/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/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.java1512 @Nullable Bundle opts) { in callCommitContent() argument
1516 params.putBundle("opts", opts); in callCommitContent()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java456 String documentId, String mimeTypeFilter, Bundle opts, CancellationSignal signal) in openTypedDocument() argument

12