/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | DefaultDeviceEffectsApplierTest.java | 79 @Mock WallpaperManager mWallpaperManager; field in DefaultDeviceEffectsApplierTest 109 mContext.addMockSystemService(WallpaperManager.class, mWallpaperManager); in setUp() 110 when(mWallpaperManager.isWallpaperSupported()).thenReturn(true); in setUp() 113 verify(mWallpaperManager).isWallpaperSupported(); in setUp() 130 verify(mWallpaperManager).setWallpaperDimAmount(eq(0.6f)); in apply_appliesEffects() 147 verify(mWallpaperManager).setWallpaperDimAmount(eq(0.6f)); in apply_removesEffects() 155 verify(mWallpaperManager).setWallpaperDimAmount(eq(0.0f)); in apply_removesEffects() 173 verifyZeroInteractions(mColorDisplayManager, mWallpaperManager, mUiModeManager); in apply_removesOnlyPreviouslyAppliedEffects() 199 when(mWallpaperManager.isWallpaperSupported()).thenReturn(false); in apply_disabledWallpaperService_dimWallpaperNotApplied() 202 verify(mWallpaperManager).isWallpaperSupported(); in apply_disabledWallpaperService_dimWallpaperNotApplied() [all …]
|
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgentTest.java | 110 private WallpaperManager mWallpaperManager; field in WallpaperBackupAgentTest 126 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_SYSTEM))).thenReturn(true); in setUp() 127 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_LOCK))).thenReturn(true); in setUp() 130 mContext.injectSystemService(WallpaperManager.class, mWallpaperManager); in setUp() 221 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_SYSTEM))).thenReturn(false); in testOnFullBackup_systemWallpaperNotEligible_doesNotBackUpSystemWallpaper() 280 when(mWallpaperManager.isWallpaperBackupEligible(eq(FLAG_LOCK))).thenReturn(false); in testOnFullBackup_lockWallpaperNotEligible_doesNotBackUpLockWallpaper() 377 verify(mWallpaperManager, times(1)) in testUpdateWallpaperComponent_systemAndLock() 379 verify(mWallpaperManager, never()) in testUpdateWallpaperComponent_systemAndLock() 381 verify(mWallpaperManager, never()) in testUpdateWallpaperComponent_systemAndLock() 383 verify(mWallpaperManager, never()).clear(anyInt()); in testUpdateWallpaperComponent_systemAndLock() [all …]
|
/frameworks/base/tests/Internal/src/com/android/internal/colorextraction/ |
D | ColorExtractorTest.java | 51 private WallpaperManager mWallpaperManager; field in ColorExtractorTest 56 mWallpaperManager = mock(WallpaperManager.class); in setup() 62 new ColorExtractor(mContext, type, true, mWallpaperManager); in ColorExtractor_extractWhenInitialized() 89 ColorExtractor extractor = new ColorExtractor(mContext, type, true, mWallpaperManager); in getColors_usesExtractedColors() 105 mWallpaperManager); in addOnColorsChangedListener_invokesListener()
|
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | MainActivity.java | 36 WallpaperManager mWallpaperManager; field in MainActivity 58 mWallpaperManager = (WallpaperManager)getSystemService(Context.WALLPAPER_SERVICE); in onCreate() 132 mWallpaperManager.suggestDesiredDimensions( in updateDimens() 140 mWallpaperManager.setWallpaperOffsets(token, loadFloatText(mWallOffXView), in updateWallOff() 151 mWallpaperManager.setDisplayPadding(padding); in updatePadding() 157 mWallpaperManager.setDisplayOffset(token, loadIntText(mDispOffXView), in updateDispOff()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/theme/ |
D | ThemeOverlayControllerTest.java | 117 private WallpaperManager mWallpaperManager; field in ThemeOverlayControllerTest 169 mSecureSettings, mWallpaperManager, mUserManager, mDeviceProvisionedController, in setup() 198 verify(mWallpaperManager).addOnColorsChangedListener(mColorsListener.capture(), eq(null), in setup() 217 verify(mWallpaperManager).getWallpaperColors(eq(WallpaperManager.FLAG_SYSTEM)); in start_checksWallpaper() 358 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_LOCK, USER_SYSTEM)) in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers() 360 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_SYSTEM, USER_SYSTEM)) in onWallpaperColorsChanged_resetThemeWithNewHomeWallpapers() 390 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_LOCK, USER_SYSTEM)) in onWallpaperColorsChanged_keepsThemeWhenSetFromLockScreen() 392 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_SYSTEM, USER_SYSTEM)) in onWallpaperColorsChanged_keepsThemeWhenSetFromLockScreen() 413 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_LOCK, USER_SYSTEM)) in onWallpaperColorsChanged_resetLockScreenThemeWhenBothSet() 415 when(mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_SYSTEM, USER_SYSTEM)) in onWallpaperColorsChanged_resetLockScreenThemeWhenBothSet() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | DefaultDeviceEffectsApplier.java | 55 private final WallpaperManager mWallpaperManager; field in DefaultDeviceEffectsApplier 70 mWallpaperManager = wallpaperManager != null && wallpaperManager.isWallpaperSupported() in DefaultDeviceEffectsApplier() 100 if (mWallpaperManager != null) { in apply() 102 mWallpaperManager.setWallpaperDimAmount( in apply()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/ |
D | ImageWallpaper.java | 114 private WallpaperManager mWallpaperManager; field in ImageWallpaper.CanvasEngine 191 mWallpaperManager = getDisplayContext().getSystemService(WallpaperManager.class); in onCreate() 193 Rect dimensions = mWallpaperManager.peekBitmapDimensions(getSourceFlag(), true); in onCreate() 368 mWallpaperManager.forgetLoadedWallpaper(); in unloadBitmapInternal() 378 bitmap = mWallpaperManager.getBitmapAsUser( in loadWallpaperAndDrawFrameInternal() 391 mWallpaperManager.clearWallpaper(getWallpaperFlags(), mUserTracker.getUserId()); in loadWallpaperAndDrawFrameInternal() 396 bitmap = mWallpaperManager.getBitmapAsUser( in loadWallpaperAndDrawFrameInternal() 425 mWideColorGamut = mWallpaperManager.wallpaperSupportsWcg(getSourceFlag()); in loadWallpaperAndDrawFrameInternal()
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 129 private WallpaperManager mWallpaperManager; field in WallpaperBackupAgent 144 mWallpaperManager = getSystemService(WallpaperManager.class); in onCreate() 178 final int sysGeneration = mWallpaperManager.getWallpaperId(FLAG_SYSTEM); in onFullBackup() 179 final int lockGeneration = mWallpaperManager.getWallpaperId(FLAG_LOCK); in onFullBackup() 191 mSystemHasLiveComponent = mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM) != null; in onFullBackup() 192 mLockHasLiveComponent = mWallpaperManager.getWallpaperInfo(FLAG_LOCK) != null; in onFullBackup() 262 final ParcelFileDescriptor wallpaperInfoFd = mWallpaperManager.getWallpaperInfoFile(); in backupWallpaperInfoFile() 290 mWallpaperManager.getWallpaperInfo(FLAG_SYSTEM)); in backupWallpaperInfoFile() 293 mEventLogger.onLockLiveWallpaperBackedUp(mWallpaperManager.getWallpaperInfo(FLAG_LOCK)); in backupWallpaperInfoFile() 299 if (!mWallpaperManager.isWallpaperBackupEligible(FLAG_SYSTEM)) { in backupSystemWallpaperFile() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/colorextraction/ |
D | SysuiColorExtractorTests.java | 63 private WallpaperManager mWallpaperManager; field in SysuiColorExtractorTests 86 mWallpaperManager, in setUp() 114 mWallpaperManager, in onUiModeChanged_reloadsColors()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WakefulnessLifecycleTest.java | 49 private IWallpaperManager mWallpaperManager; field in WakefulnessLifecycleTest 53 mWallpaperManager = mock(IWallpaperManager.class); in setUp() 57 mWallpaperManager, in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | ImageWallpaperTest.java | 83 private WallpaperManager mWallpaperManager; field in ImageWallpaperTest 119 when(mWallpaperManager.getBitmapAsUser( in setUp() 122 when(mMockContext.getSystemService(WallpaperManager.class)).thenReturn(mWallpaperManager); in setUp() 226 when(mWallpaperManager.peekBitmapDimensions(anyInt(), anyBoolean()))
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 137 private final WallpaperManager mWallpaperManager; field in ThemeOverlayController 243 return mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_LOCK, userId) in getLatestWallpaperType() 244 > mWallpaperManager.getWallpaperIdForUser(WallpaperManager.FLAG_SYSTEM, userId) in getLatestWallpaperType() 428 mWallpaperManager = wallpaperManager; in ThemeOverlayController() 489 WallpaperColors systemColor = mWallpaperManager.getWallpaperColors( in start() 510 mWallpaperManager.addOnColorsChangedListener(mOnColorsChangedListener, null, in start()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfacesImpl.java | 457 private final WallpaperManager mWallpaperManager; field in CentralSurfacesImpl 800 mWallpaperManager = wallpaperManager; in CentralSurfacesImpl() 896 mWallpaperSupported = mWallpaperManager.isWallpaperSupported(); in start() 2280 if (mWallpaperManager.lockScreenWallpaperExists()) { in updateTheme() 2281 dimAmount = mWallpaperManager.getWallpaperDimAmount(); in updateTheme()
|
/frameworks/base/core/java/android/service/wallpaper/ |
D | WallpaperService.java | 1000 WallpaperColors primaryColors = mIWallpaperEngine.mWallpaperManager in notifyLocalColorsChanged() 2461 final WallpaperManager mWallpaperManager; field in WallpaperService.IWallpaperEngineWrapper 2471 mWallpaperManager = getSystemService(WallpaperManager.class); in IWallpaperEngineWrapper()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfacesImplTest.java | 320 @Mock private WallpaperManager mWallpaperManager; field in CentralSurfacesImplTest 587 mWallpaperManager, in createCentralSurfaces()
|