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

Commit b7371d53 authored by Vincent Wang's avatar Vincent Wang Committed by Automerger Merge Worker
Browse files

Merge "Enable debug message in WallapeprManagerService to check wallpaper...

Merge "Enable debug message in WallapeprManagerService to check wallpaper size" into tm-dev am: 89a93862 am: b7ef4b56

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18349814



Change-Id: I3860f1befa7a606bbb7b8014bc90b52877410d6b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9b3155e2 b7ef4b56
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -147,6 +147,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
    private static final String TAG = "WallpaperManagerService";
    private static final boolean DEBUG = false;
    private static final boolean DEBUG_LIVE = true;
    private static final boolean DEBUG_CROP = true;
    private static final @NonNull RectF LOCAL_COLOR_BOUNDS =
            new RectF(0, 0, 1, 1);

@@ -668,7 +669,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                }
            }

            if (DEBUG) {
            if (DEBUG_CROP) {
                Slog.v(TAG, "crop: w=" + cropHint.width() + " h=" + cropHint.height());
                Slog.v(TAG, "dims: w=" + wpData.mWidth + " h=" + wpData.mHeight);
                Slog.v(TAG, "meas: w=" + options.outWidth + " h=" + options.outHeight);
@@ -743,7 +744,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                    final int safeHeight = (int) (estimateCrop.height() * hRatio);
                    final int safeWidth = (int) (estimateCrop.width() * hRatio);

                    if (DEBUG) {
                    if (DEBUG_CROP) {
                        Slog.v(TAG, "Decode parameters:");
                        Slog.v(TAG, "  cropHint=" + cropHint + ", estimateCrop=" + estimateCrop);
                        Slog.v(TAG, "  down sampling=" + options.inSampleSize