Home
last modified time | relevance | path

Searched refs:wpData (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperCropper.java76 final WallpaperDisplayHelper.DisplayData wpData = in generateCropInternal() local
86 + ") dim=(" + wpData.mWidth + 'x' + wpData.mHeight + ')'); in generateCropInternal()
126 needScale = cropHint.height() > wpData.mHeight in generateCropInternal()
132 final float scaleByHeight = (float) wpData.mHeight / (float) cropHint.height(); in generateCropInternal()
144 Slog.v(TAG, "dims: w=" + wpData.mWidth + " h=" + wpData.mHeight); in generateCropInternal()
178 final int actualScale = cropHint.height() / wpData.mHeight; in generateCropInternal()
188 final float hRatio = (float) wpData.mHeight / estimateCrop.height(); in generateCropInternal()
194 int newHeight = (int) (wpData.mHeight / hRatio); in generateCropInternal()
195 int newWidth = (int) (wpData.mWidth / hRatio); in generateCropInternal()
253 Slog.v(TAG, " dims: w=" + wpData.mWidth in generateCropInternal()
[all …]
H A DWallpaperDataParser.java333 final DisplayData wpData = mWallpaperDisplayHelper.getDisplayDataOrCreate(DEFAULT_DISPLAY); in parseWallpaperAttributes() local
336 wpData.mWidth = parser.getAttributeInt(null, "width"); in parseWallpaperAttributes()
337 wpData.mHeight = parser.getAttributeInt(null, "height"); in parseWallpaperAttributes()
343 wpData.mPadding.left = getAttributeInt(parser, "paddingLeft", 0); in parseWallpaperAttributes()
344 wpData.mPadding.top = getAttributeInt(parser, "paddingTop", 0); in parseWallpaperAttributes()
345 wpData.mPadding.right = getAttributeInt(parser, "paddingRight", 0); in parseWallpaperAttributes()
346 wpData.mPadding.bottom = getAttributeInt(parser, "paddingBottom", 0); in parseWallpaperAttributes()