Loading core/java/android/app/WallpaperManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,9 @@ public class WallpaperManager { private static final @NonNull RectF LOCAL_COLOR_BOUNDS = new RectF(0, 0, 1, 1); /** Temporary feature flag for project b/197814683 */ private final boolean mLockscreenLiveWallpaper; /** {@hide} */ private static final String PROP_WALLPAPER = "ro.config.wallpaper"; /** {@hide} */ Loading Loading @@ -750,6 +753,8 @@ public class WallpaperManager { mWcgEnabled = context.getResources().getConfiguration().isScreenWideColorGamut() && context.getResources().getBoolean(R.bool.config_enableWcgMode); mCmProxy = new ColorManagementProxy(context); mLockscreenLiveWallpaper = context.getResources() .getBoolean(R.bool.config_independentLockscreenLiveWallpaper); } // no-op constructor called just by DisabledWallpaperManager Loading @@ -757,6 +762,7 @@ public class WallpaperManager { mContext = null; mCmProxy = null; mWcgEnabled = false; mLockscreenLiveWallpaper = false; } /** Loading @@ -773,6 +779,15 @@ public class WallpaperManager { return sGlobals.mService; } /** * Temporary method for project b/197814683. * @return true if the lockscreen wallpaper always uses a wallpaperService, not a static image * @hide */ public boolean isLockscreenLiveWallpaperEnabled() { return mLockscreenLiveWallpaper; } /** * Indicate whether wcg (Wide Color Gamut) should be enabled. * <p> Loading Loading
core/java/android/app/WallpaperManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -115,6 +115,9 @@ public class WallpaperManager { private static final @NonNull RectF LOCAL_COLOR_BOUNDS = new RectF(0, 0, 1, 1); /** Temporary feature flag for project b/197814683 */ private final boolean mLockscreenLiveWallpaper; /** {@hide} */ private static final String PROP_WALLPAPER = "ro.config.wallpaper"; /** {@hide} */ Loading Loading @@ -750,6 +753,8 @@ public class WallpaperManager { mWcgEnabled = context.getResources().getConfiguration().isScreenWideColorGamut() && context.getResources().getBoolean(R.bool.config_enableWcgMode); mCmProxy = new ColorManagementProxy(context); mLockscreenLiveWallpaper = context.getResources() .getBoolean(R.bool.config_independentLockscreenLiveWallpaper); } // no-op constructor called just by DisabledWallpaperManager Loading @@ -757,6 +762,7 @@ public class WallpaperManager { mContext = null; mCmProxy = null; mWcgEnabled = false; mLockscreenLiveWallpaper = false; } /** Loading @@ -773,6 +779,15 @@ public class WallpaperManager { return sGlobals.mService; } /** * Temporary method for project b/197814683. * @return true if the lockscreen wallpaper always uses a wallpaperService, not a static image * @hide */ public boolean isLockscreenLiveWallpaperEnabled() { return mLockscreenLiveWallpaper; } /** * Indicate whether wcg (Wide Color Gamut) should be enabled. * <p> Loading