/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperCropperTest.java | 156 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/ |
D | WallpaperDisplayHelper.java | 90 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()
|
D | WallpaperCropper.java | 92 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 …]
|
D | WallpaperManagerService.java | 2296 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/ |
D | RegionSampler.kt | 47 @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/ |
D | DragToDismissBubbleScreenTest.kt | 50 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/ |
D | FacePropertyRepository.kt | 223 ) { 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/ |
D | MirrorWindowControl.java | 118 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/ |
D | WmDisplayCutout.java | 53 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/ |
D | WallpaperBackupAgent.java | 725 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/ |
D | WindowManagerImpl.java | 285 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/ |
D | NavigationEdgeBackPlugin.java | 43 void setDisplaySize(Point displaySize); in setDisplaySize() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProvider.kt | 366 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/ |
D | BackPanelController.kt | 138 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/ |
D | RegionSamplingThread.cpp | 261 ui::Size displaySize; in captureSample() local 269 displaySize = display->getSize(); in captureSample()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomation.java | 1269 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/ |
D | RegionSamplerTest.kt | 71 regionSampler.displaySize.set(1080, 2050) in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/ |
D | NavigationBar.java | 1750 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/ |
D | WindowTestsBase.java | 296 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/ |
D | Output.cpp | 190 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/ |
D | CameraManager.java | 802 Size displaySize = getDisplaySize(); in prepareCameraCharacteristics() local 803 metadata.setDisplaySize(displaySize); in prepareCameraCharacteristics()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 2189 public void setDisplaySize(Size displaySize) { in setDisplaySize() argument 2190 mDisplaySize = displaySize; in setDisplaySize()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | MandatoryStreamCombination.java | 1396 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder() argument 1401 mDisplaySize = displaySize; in Builder()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 5824 Point displaySize = new Point(); in getRoundDisplayRadius() local 5825 mDisplay.getRealSize(displaySize); in getRoundDisplayRadius() 5826 return displaySize.x / 2; in getRoundDisplayRadius()
|