Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcae7d9f authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge changes from topic "am-acaafc0086a64d01a48d5fafba82c641"

* changes:
  Merge "Add a flag to enable independent lock screen live wallpaper" into tm-qpr-dev am: cb69035c am: 80c05761
  Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." into tm-qpr-dev am: 0f8f2d72 am: e5e1aa95
parents 48d4eac4 7934e3a3
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -2077,6 +2077,21 @@ public class WallpaperManager {
        }
    }

    /**
     * Set the live wallpaper for the given screen(s).
     *
     * This can only be called by packages with android.permission.SET_WALLPAPER_COMPONENT
     * permission. The caller must hold the INTERACT_ACROSS_USERS_FULL permission to change
     * another user's wallpaper.
     *
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.SET_WALLPAPER_COMPONENT)
    public boolean setWallpaperComponentWithFlags(@NonNull ComponentName name,
            @SetWallpaperFlags int which) {
        return setWallpaperComponent(name);
    }

    /**
     * Set the display position of the current wallpaper within any larger space, when
     * that wallpaper is visible behind the given window.  The X and Y offsets
+1 −1
Original line number Diff line number Diff line
@@ -25,6 +25,6 @@ import android.service.wallpaper.IWallpaperConnection;
oneway interface IWallpaperService {
    void attach(IWallpaperConnection connection,
            IBinder windowToken, int windowType, boolean isPreview,
            int reqWidth, int reqHeight, in Rect padding, int displayId);
            int reqWidth, int reqHeight, in Rect padding, int displayId, int which);
    void detach();
}
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.service.wallpaper;

import static android.app.WallpaperManager.COMMAND_FREEZE;
import static android.app.WallpaperManager.COMMAND_UNFREEZE;
import static android.app.WallpaperManager.SetWallpaperFlags;
import static android.graphics.Matrix.MSCALE_X;
import static android.graphics.Matrix.MSCALE_Y;
import static android.graphics.Matrix.MSKEW_X;
@@ -2429,7 +2430,7 @@ public abstract class WallpaperService extends Service {
        @Override
        public void attach(IWallpaperConnection conn, IBinder windowToken,
                int windowType, boolean isPreview, int reqWidth, int reqHeight, Rect padding,
                int displayId) {
                int displayId, @SetWallpaperFlags int which) {
            mEngineWrapper = new IWallpaperEngineWrapper(mTarget, conn, windowToken,
                    windowType, isPreview, reqWidth, reqHeight, padding, displayId);
        }
+4 −0
Original line number Diff line number Diff line
@@ -5933,4 +5933,8 @@
         TODO(b/236022708) Move rear display state to device state config file
    -->
    <integer name="config_deviceStateRearDisplay">-1</integer>

    <!-- Whether the lock screen is allowed to run its own live wallpaper,
         different from the home screen wallpaper. -->
    <bool name="config_independentLockscreenLiveWallpaper">false</bool>
</resources>
+1 −0
Original line number Diff line number Diff line
@@ -4892,6 +4892,7 @@
  <java-symbol type="array" name="config_deviceStatesAvailableForAppRequests" />
  <java-symbol type="array" name="config_serviceStateLocationAllowedPackages" />
  <java-symbol type="integer" name="config_deviceStateRearDisplay"/>
  <java-symbol type="bool" name="config_independentLockscreenLiveWallpaper"/>

  <!-- For app language picker -->
  <java-symbol type="string" name="system_locale_title" />
Loading