Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/data/repository/
DWallpaperRepositoryImplTest.kt48 private val wallpaperManager: WallpaperManager = mock() constant in com.android.systemui.wallpapers.data.repository.WallpaperRepositoryImplTest
56 wallpaperManager, in <lambda>()
63 whenever(wallpaperManager.isWallpaperSupported).thenReturn(true) in setUp()
75 whenever(wallpaperManager.getWallpaperInfoForUser(any())).thenReturn(null) in wallpaperInfo_nullInfo()
90 whenever(wallpaperManager.getWallpaperInfoForUser(any())).thenReturn(UNSUPPORTED_WP) in wallpaperInfo_hasInfoFromManager()
103 whenever(wallpaperManager.getWallpaperInfoForUser(USER_WITH_SUPPORTED_WP.id)) in wallpaperInfo_initialValueIsFetched()
122 whenever(wallpaperManager.getWallpaperInfoForUser(user3.id)).thenReturn(user3Wp) in wallpaperInfo_updatesOnUserChanged()
126 whenever(wallpaperManager.getWallpaperInfoForUser(user4.id)).thenReturn(user4Wp) in wallpaperInfo_updatesOnUserChanged()
150 whenever(wallpaperManager.getWallpaperInfoForUser(user3.id)).thenReturn(user3Wp) in wallpaperInfo_doesNotUpdateOnUserChanging()
154 whenever(wallpaperManager.getWallpaperInfoForUser(user4.id)).thenReturn(user4Wp) in wallpaperInfo_doesNotUpdateOnUserChanging()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DWallpaperControllerTest.kt52 @Mock private lateinit var wallpaperManager: WallpaperManager variable in com.android.systemui.util.WallpaperControllerTest
68 wallaperController = WallpaperController(wallpaperManager, wallpaperRepository) in setup()
77 verify(wallpaperManager).setWallpaperZoomOut(any(), eq(0.5f)) in setNotificationShadeZoom_updatesWallpaperManagerZoom()
84 verify(wallpaperManager).setWallpaperZoomOut(any(), eq(0.5f)) in setUnfoldTransitionZoom_updatesWallpaperManagerZoom()
93 verify(wallpaperManager, never()).setWallpaperZoomOut(any(), anyFloat()) in setUnfoldTransitionZoom_defaultUnfoldTransitionIsDisabled_doesNotUpdateWallpaperZoom()
99 clearInvocations(wallpaperManager) in setUnfoldTransitionZoomAndNotificationShadeZoom_updatesWithMaximumZoom()
103 verify(wallpaperManager).setWallpaperZoomOut(any(), eq(0.7f)) in setUnfoldTransitionZoomAndNotificationShadeZoom_updatesWithMaximumZoom()
109 clearInvocations(wallpaperManager) in setNotificationShadeZoomAndThenUnfoldTransition_updatesWithMaximumZoom()
113 verify(wallpaperManager).setWallpaperZoomOut(any(), eq(0.7f)) in setNotificationShadeZoomAndThenUnfoldTransition_updatesWithMaximumZoom()
120 verify(wallpaperManager, times(0)).setWallpaperZoomOut(any(), anyFloat()) in setNotificationZoom_invalidWindow_doesNotSetZoom()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/regionsampling/
DRegionSamplerTest.kt41 @Mock private lateinit var wallpaperManager: WallpaperManager variable in com.android.systemui.shared.regionsampling.RegionSamplerTest
68 wallpaperManager, in setUp()
81 wallpaperManager, in setUp()
108 verify(wallpaperManager, never()) in testEmptyView_returnsEarly()
120 clearInvocations(wallpaperManager) in testLayoutChange_notifiesListener()
135 verify(wallpaperManager) in testLayoutChange_notifiesListener()
139 verify(wallpaperManager) in testLayoutChange_notifiesListener()
150 verify(wallpaperManager) in testColorsChanged_triggersCallback()
163 verify(wallpaperManager) in testRegionDarkness()
183 verify(wallpaperManager) in testForegroundColor()
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java62 WallpaperManager wallpaperManager) { in ColorExtractor() argument
76 if (wallpaperManager.isWallpaperSupported()) { in ColorExtractor()
77 wallpaperManager.addOnColorsChangedListener(this, null /* handler */); in ColorExtractor()
78 initExtractColors(wallpaperManager, immediately); in ColorExtractor()
82 private void initExtractColors(WallpaperManager wallpaperManager, boolean immediately) { in initExtractColors() argument
84 mSystemColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_SYSTEM); in initExtractColors()
85 mLockColors = wallpaperManager.getWallpaperColors(WallpaperManager.FLAG_LOCK); in initExtractColors()
89 AsyncTask.THREAD_POOL_EXECUTOR, wallpaperManager); in initExtractColors()
220 WallpaperManager wallpaperManager = mContext.getSystemService(WallpaperManager.class); in destroy() local
221 if (wallpaperManager != null) { in destroy()
[all …]
/frameworks/base/services/core/java/com/android/server/
DWallpaperUpdateReceiver.java55 WallpaperManager wallpaperManager = WallpaperManager.getInstance(uiContext); in updateWallpaper() local
56 if (isUserSetWallpaper(wallpaperManager, uiContext)) { in updateWallpaper()
62 if (wallpaperManager.getWallpaperInfo() == null) { in updateWallpaper()
63 wallpaperManager.clearWallpaper(); in updateWallpaper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/colorextraction/
DSysuiColorExtractor.java73 WallpaperManager wallpaperManager, in SysuiColorExtractor() argument
77 super(context, type, immediately, wallpaperManager); in SysuiColorExtractor()
85 if (wallpaperManager.isWallpaperSupported()) { in SysuiColorExtractor()
86 wallpaperManager.removeOnColorsChangedListener(this); in SysuiColorExtractor()
87 wallpaperManager.addOnColorsChangedListener(this, null /* handler */, in SysuiColorExtractor()
/frameworks/base/services/core/java/com/android/server/notification/
DDefaultDeviceEffectsApplier.java69 WallpaperManager wallpaperManager = context.getSystemService(WallpaperManager.class); in DefaultDeviceEffectsApplier() local
70 mWallpaperManager = wallpaperManager != null && wallpaperManager.isWallpaperSupported() in DefaultDeviceEffectsApplier()
71 ? wallpaperManager : null; in DefaultDeviceEffectsApplier()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DLetterboxBackgroundProviderTest.kt54 @Mock private lateinit var wallpaperManager: WallpaperManager in <lambda>() variable in com.android.systemui.statusbar.phone.LetterboxBackgroundProviderTest
66 LetterboxBackgroundProvider(windowManager, fakeExecutor, wallpaperManager, mainHandler) in <lambda>()
74 .`when`(wallpaperManager) in <lambda>()
80 .`when`(wallpaperManager) in <lambda>()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionSampler.kt39 val wallpaperManager: WallpaperManager? = WallpaperManager.getInstance(sampledView.context), constant in com.android.systemui.shared.regionsampling.RegionSampler
156 wallpaperManager?.addOnColorsChangedListener( in startRegionSampler()
165 wallpaperManager?.getWallpaperColors( in startRegionSampler()
176 wallpaperManager?.removeOnColorsChangedListener(this) in stopRegionSampler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/data/repository/
DWallpaperRepository.kt64 private val wallpaperManager: WallpaperManager, constant
91 if (!wallpaperManager.isWallpaperSupported || !deviceSupportsAodWallpaper) {
121 wallpaperManager.getWallpaperInfoForUser(selectedUser.userInfo.id) in getWallpaper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DWallpaperController.kt36 private val wallpaperManager: WallpaperManager, in <lambda>() constant in com.android.systemui.util.WallpaperController
69 wallpaperManager.setWallpaperZoomOut(root.windowToken, zoomOut) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLetterboxBackgroundProvider.kt41 private val wallpaperManager: WallpaperManager, in <lambda>() constant in com.android.systemui.statusbar.phone.LetterboxBackgroundProvider
58 wallpaperManager.addOnColorsChangedListener(wallpaperColorsListener, mainHandler) in <lambda>()
DCentralSurfacesImpl.java697 WallpaperManager wallpaperManager, in CentralSurfacesImpl()
800 mWallpaperManager = wallpaperManager; in CentralSurfacesImpl()
943 IWallpaperManager wallpaperManager = IWallpaperManager.Stub.asInterface( in start() local
946 wallpaperManager.setInAmbientMode(false /* ambientMode */, 0L /* duration */); in start()
/frameworks/base/tests/FlickerTests/AppLaunch/src/com/android/server/wm/flicker/launch/
DTaskTransitionTest.kt195 val wallpaperManager = WallpaperManager.getInstance(instrumentation.targetContext) in getWallpaperPackage() constant
197 return wallpaperManager.wallpaperInfo?.component?.toFlickerComponent() in getWallpaperPackage()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java574 WallpaperManager wallpaperManager = null;
576 wallpaperManager = WallpaperManager.getInstance(mContext.getApplicationContext());
584 wallpaperManager.setStream(is);
777 if (mSetWallpaper && wallpaperManager != null) {
780 wallpaperManager.setStream(new ByteArrayInputStream(outByteArray));
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardUnlockAnimationControllerTest.kt77 private lateinit var wallpaperManager: WallpaperManager in <lambda>() variable in com.android.systemui.keyguard.KeyguardUnlockAnimationControllerTest
109 notificationShadeWindowController, powerManager, wallpaperManager in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java405 WallpaperManager wallpaperManager, in ThemeOverlayController() argument
428 mWallpaperManager = wallpaperManager; in ThemeOverlayController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardUnlockAnimationController.kt161 private val wallpaperManager: WallpaperManager in <lambda>() constant in com.android.systemui.keyguard.KeyguardUnlockAnimationController