Home
last modified time | relevance | path

Searched refs:wallpaperManager (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CustomizationApp/src/com/android/cts/customizationapp/
DCustomizationTest.java38 final WallpaperManager wallpaperManager = WallpaperManager.getInstance(mContext); in testSetWallpaper_disallowed() local
46 wallpaperManager.setBitmap(referenceWallpaper); in testSetWallpaper_disallowed()
52 wallpaperManager.setStream(BitmapUtils.bitmapToInputStream(referenceWallpaper)); in testSetWallpaper_disallowed()
58 wallpaperManager.setResource(R.raw.wallpaper); in testSetWallpaper_disallowed()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCustomizationRestrictionsTest.java103 final WallpaperManager wallpaperManager = WallpaperManager.getInstance(mContext); in testDisallowSetWallpaper_allowed() local
119 wallpaperManager.setBitmap(BitmapUtils.generateRandomBitmap(97, 73)); in testDisallowSetWallpaper_allowed()
127 wallpaperManager.setStream(BitmapUtils.bitmapToInputStream(wallpaperForStream)); in testDisallowSetWallpaper_allowed()
134 wallpaperManager.setResource(R.raw.wallpaper); in testDisallowSetWallpaper_allowed()
139 wallpaperManager.setBitmap(originalWallpaperCopy); in testDisallowSetWallpaper_allowed()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java557 WallpaperManager wallpaperManager = WallpaperManager.getInstance(getContext()); in testWallpaperApisNoPermission() local
559 wallpaperManager.isWallpaperSupported()); in testWallpaperApisNoPermission()
560 assertThrows(SecurityException.class, () -> wallpaperManager.getFastDrawable()); in testWallpaperApisNoPermission()
561 assertThrows(SecurityException.class, () -> wallpaperManager.peekFastDrawable()); in testWallpaperApisNoPermission()
563 () -> wallpaperManager.getWallpaperFile(WallpaperManager.FLAG_SYSTEM)); in testWallpaperApisNoPermission()
569 WallpaperManager wallpaperManager = WallpaperManager.getInstance(getContext()); in testWallpaperApisReadExternalStorage() local
570 wallpaperManager.getFastDrawable(); in testWallpaperApisReadExternalStorage()
571 wallpaperManager.peekFastDrawable(); in testWallpaperApisReadExternalStorage()
572 wallpaperManager.getWallpaperFile(WallpaperManager.FLAG_SYSTEM); in testWallpaperApisReadExternalStorage()
579 WallpaperManager wallpaperManager = WallpaperManager.getInstance(getContext()); in testWallpaperApisManageExternalStorageAppOp() local
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBitmapUtils.java143 WallpaperManager wallpaperManager = WallpaperManager.getInstance(context); in getWallpaperBitmap() local
145 Class<?> wmClass = wallpaperManager.getClass(); in getWallpaperBitmap()
147 return (Bitmap) methodGetBitmap.invoke(wallpaperManager, null); in getWallpaperBitmap()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt861 val wallpaperManager = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant
864 wallpaperManager.isWallpaperSupported()) in nativeNoteOp()
866 wallpaperManager.getWallpaperFile(FLAG_SYSTEM) in nativeNoteOp()
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java941 final WallpaperManager wallpaperManager = WallpaperManager.getInstance(getContext()); in isWallpaperSupported() local
942 return wallpaperManager != null && wallpaperManager.isWallpaperSupported(); in isWallpaperSupported()