Enable debug message in WallapeprManagerService to check wallpaper size
Print the input wallpaper size and generated wallpaper size to check if
wallpaper size is abnormal or not
BUG: 231468856
Test: 1. Build pass
2. Check the log is printed successfully
Change-Id: Ia3f19444e45c146b960d2c2b17e84d181bf216bc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user