Home
last modified time | relevance | path

Searched refs:displaySize (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java156 Point displaySize = new Point(1000, 1000); in testNoParallax_noScale() local
160 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ false)) in testNoParallax_noScale()
162 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ true)) in testNoParallax_noScale()
171 Point displaySize = new Point(1000, 1000); in testNoParallax_withScale() local
175 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ false)) in testNoParallax_withScale()
177 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ true)) in testNoParallax_withScale()
187 Point displaySize = new Point(1000, 1000); in testNoParallax_withScaleAndCrop() local
191 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ false)) in testNoParallax_withScaleAndCrop()
193 assertThat(WallpaperCropper.noParallax(crop, displaySize, bitmapSize, /* rtl */ true)) in testNoParallax_withScaleAndCrop()
203 Point displaySize = new Point(1000, 1000); in testGetAdjustedCrop_noOp() local
[all …]
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDisplayHelper.java90 Point displaySize = new Point(bounds.width(), bounds.height()); in WallpaperDisplayHelper() local
91 Point reversedDisplaySize = new Point(displaySize.y, displaySize.x); in WallpaperDisplayHelper()
92 for (Point point : List.of(displaySize, reversedDisplaySize)) { in WallpaperDisplayHelper()
101 mIsLargeScreen |= (displaySize.x / metric.getDensity() >= LARGE_SCREEN_MIN_DP); in WallpaperDisplayHelper()
104 int orientation = WallpaperManager.getOrientation(displaySize); in WallpaperDisplayHelper()
105 float newSurface = displaySize.x * displaySize.y in WallpaperDisplayHelper()
134 Point displaySize = new Point(); in getDefaultDisplayCurrentOrientation() local
135 mDisplayManager.getDisplay(DEFAULT_DISPLAY).getSize(displaySize); in getDefaultDisplayCurrentOrientation()
136 return WallpaperManager.getOrientation(displaySize); in getDefaultDisplayCurrentOrientation()
DWallpaperCropper.java92 Rect getCrop(Point displaySize, Point bitmapSize, in getCrop() argument
123 public Rect getCrop(Point displaySize, Point bitmapSize, in getCrop() argument
126 int orientation = getOrientation(displaySize); in getCrop()
140 return getCrop(displaySize, bitmapSize, newSuggestedCrops, rtl); in getCrop()
147 if (isTablet && displaySize.x < displaySize.y) { in getCrop()
148 Point rotatedDisplaySize = new Point(displaySize.y, displaySize.x); in getCrop()
153 crop = getAdjustedCrop(landscapeCrop, bitmapSize, displaySize, false, rtl, ADD); in getCrop()
163 return getAdjustedCrop(crop, bitmapSize, displaySize, true, rtl, ADD); in getCrop()
172 return getCrop(displaySize, bitmapSize, new SparseArray<>(), rtl); in getCrop()
179 return getAdjustedCrop(suggestedCrop, bitmapSize, displaySize, true, rtl, ADD); in getCrop()
[all …]
DWallpaperManagerService.java2296 for (Point displaySize : displaySizes) { in getBitmapCrops()
2298 displaySize, croppedBitmapSize, adjustedRelativeSuggestedCrops, rtl)); in getBitmapCrops()
2313 for (Point displaySize : displaySizes) { in getFutureBitmapCrops()
2314 result.add(mWallpaperCropper.getCrop(displaySize, bitmapSize, defaultCrops, rtl)); in getFutureBitmapCrops()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionSampler.kt47 @VisibleForTesting val displaySize = Point() constant in com.android.systemui.shared.regionsampling.RegionSampler
221 if (samplingBounds.right > displaySize.x) samplingBounds.right = displaySize.x in calculateScreenLocation()
222 if (samplingBounds.bottom > displaySize.y) samplingBounds.bottom = displaySize.y in calculateScreenLocation()
242 val screenWidth = displaySize.x in convertBounds()
244 val screenHeight = displaySize.y in convertBounds()
258 sampledView?.context?.display?.getSize(displaySize)
/frameworks/base/libs/WindowManager/Shell/tests/flicker/bubble/src/com/android/wm/shell/flicker/bubble/
DDragToDismissBubbleScreenTest.kt50 private val displaySize = DisplayMetrics() constant
60 wm.run { wm.defaultDisplay.getMetrics(displaySize) } in <lambda>()
61 val dist = Point((displaySize.widthPixels / 2), displaySize.heightPixels) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DFacePropertyRepository.kt223 ) { defaultLocation, displayRotation, displaySize, scaleForResolution -> in info() method
227 displaySize, in info()
242 displaySize: Size, in computeCurrentFaceLocation()
255 displaySize in computeCurrentFaceLocation()
262 displaySize: Size in rotateToCurrentOrientation()
267 displaySize.width, in rotateToCurrentOrientation()
268 displaySize.height in rotateToCurrentOrientation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMirrorWindowControl.java118 final Point displaySize = mTmpPoint; in setDefaultPosition() local
119 mContext.getDisplay().getSize(displaySize); in setDefaultPosition()
120 layoutParams.x = displaySize.x - layoutParams.width; in setDefaultPosition()
121 layoutParams.y = displaySize.y - layoutParams.height; in setDefaultPosition()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java53 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets() local
55 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java725 Rect withoutParallax(Rect crop, Point displaySize, boolean rtl, Point bitmapSize) { in withoutParallax() argument
736 float suggestedDisplayRatio = (float) displaySize.x / displaySize.y; in withoutParallax()
741 int wallpaperWidthWithoutParallax = (int) (0.5f + (float) displaySize.x * crop.height() in withoutParallax()
742 / displaySize.y); in withoutParallax()
776 Rect sameCenter(Point displaySize, Point bitmapSize, Rect crop) { in sameCenter() argument
783 float screenRatio = (float) displaySize.x / displaySize.y; in sameCenter()
1067 Point displaySize = getRealSize(display);
1069 int width = displaySize.x;
1070 int height = displaySize.y;
1075 largetDimensions = displaySize;
[all …]
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java285 final Point displaySize = new Point(); in getMaximumBounds() local
286 mDisplay.getRealSize(displaySize); in getMaximumBounds()
287 return new Rect(0, 0, displaySize.x, displaySize.y); in getMaximumBounds()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DNavigationEdgeBackPlugin.java43 void setDisplaySize(Point displaySize); in setDisplaySize() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt366 displaySize = Rect(context.resources.configuration.windowConfiguration.maxBounds), in <lambda>()
372 val displaySize: Rect, in <lambda>() constant in com.android.systemui.statusbar.phone.StatusBarContentInsetsProvider.CacheKey
613 displaySize: Pair<Int, Int> in sbRect()
615 val w = displaySize.first in sbRect()
616 val h = displaySize.second in sbRect()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DBackPanelController.kt138 private val displaySize = Point() in <lambda>() constant
727 layoutParams.y = MathUtils.constrain(yPosition.toInt(), 0, displaySize.y) in <lambda>()
730 override fun setDisplaySize(displaySize: Point) { in <lambda>()
731 this.displaySize.set(displaySize.x, displaySize.y) in <lambda>()
732 fullyStretchedThreshold = min(displaySize.x.toFloat(), params.swipeProgressThreshold) in <lambda>()
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp261 ui::Size displaySize; in captureSample() local
269 displaySize = display->getSize(); in captureSample()
/frameworks/base/core/java/android/app/
DUiAutomation.java1269 Point displaySize = new Point(); in takeScreenshot() local
1270 display.getRealSize(displaySize); in takeScreenshot()
1277 new Rect(0, 0, displaySize.x, displaySize.y), syncScreenCapture)) { in takeScreenshot()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/regionsampling/
DRegionSamplerTest.kt71 regionSampler.displaySize.set(1080, 2050) in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBar.java1750 Rect displaySize = mWindowManager.getCurrentWindowMetrics().getBounds(); in getBarLayoutParamsForRotation() local
1751 navBarCanMove = displaySize.width() != displaySize.height() in getBarLayoutParamsForRotation()
1979 Point displaySize = new Point(); in calculateSamplingRect() local
1980 view.getContext().getDisplay().getRealSize(displaySize); in calculateSamplingRect()
1982 displaySize.y - mView.getNavBarHeight(), in calculateSamplingRect()
1984 displaySize.y); in calculateSamplingRect()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java296 WallpaperCropUtils cropUtils = (displaySize, bitmapSize, suggestedCrops, rtl) -> { in setUpBase()
297 Rect crop = new Rect(0, 0, displaySize.x, displaySize.y); in setUpBase()
299 ((float) bitmapSize.x) / displaySize.x, in setUpBase()
300 ((float) bitmapSize.y) / displaySize.y)); in setUpBase()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp190 const auto displaySize = outputState.displaySpace.getBoundsAsRect(); in setProjection() local
191 rotation.set(transformOrientationFlags, displaySize.width(), displaySize.height()); in setProjection()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java802 Size displaySize = getDisplaySize(); in prepareCameraCharacteristics() local
803 metadata.setDisplaySize(displaySize); in prepareCameraCharacteristics()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java2189 public void setDisplaySize(Size displaySize) { in setDisplaySize() argument
2190 mDisplaySize = displaySize; in setDisplaySize()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java1396 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder() argument
1401 mDisplaySize = displaySize; in Builder()
/frameworks/base/core/java/android/view/
DViewRootImpl.java5824 Point displaySize = new Point(); in getRoundDisplayRadius() local
5825 mDisplay.getRealSize(displaySize); in getRoundDisplayRadius()
5826 return displaySize.x / 2; in getRoundDisplayRadius()