/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 50 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets() local 51 final Rect safeInsets = computeSafeInsets(displaySize, inner); in computeSafeInsets() 52 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets() 114 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets() argument 115 if (displaySize.getWidth() < displaySize.getHeight()) { in computeSafeInsets() 117 new Rect(0, displaySize.getHeight() / 2, 0, displaySize.getHeight() / 2)) in computeSafeInsets() 119 int topInset = findInsetForSide(displaySize, boundingRects, Gravity.TOP); in computeSafeInsets() 120 int bottomInset = findInsetForSide(displaySize, boundingRects, Gravity.BOTTOM); in computeSafeInsets() 122 } else if (displaySize.getWidth() > displaySize.getHeight()) { in computeSafeInsets() 124 new Rect(displaySize.getWidth() / 2, 0, displaySize.getWidth() / 2, 0)) in computeSafeInsets() [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | Screenshooter.java | 45 Point displaySize = new Point(); in takeScreenshot() local 46 display.getRealSize(displaySize); in takeScreenshot() 47 final int displayWidth = displaySize.x; in takeScreenshot() 48 final int displayHeight = displaySize.y; in takeScreenshot()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | ContextMenuTest.java | 88 final Point displaySize = new Point(); in getMinScreenDimension() local 89 display.getRealSize(displaySize); in getMinScreenDimension() 90 return Math.min(displaySize.x, displaySize.y); in getMinScreenDimension()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 204 Point displaySize = new Point(); in getClosestMinimizedBounds() local 205 mContext.getDisplay().getRealSize(displaySize); in getClosestMinimizedBounds() 207 mSnapAlgorithm.applyMinimizedOffset(toBounds, movementBounds, displaySize, mStableInsets); in getClosestMinimizedBounds() 215 Point displaySize = new Point(); in shouldMinimizePip() local 216 mContext.getDisplay().getRealSize(displaySize); in shouldMinimizePip() 220 } else if (mBounds.right > displaySize.x) { in shouldMinimizePip() 221 float offscreenFraction = (float) (mBounds.right - displaySize.x) / in shouldMinimizePip() 233 Point displaySize = new Point(); in shouldDismissPip() local 234 mContext.getDisplay().getRealSize(displaySize); in shouldDismissPip() 235 final int y = displaySize.y - mStableInsets.bottom; in shouldDismissPip() [all …]
|
D | PipTouchHandler.java | 278 Point displaySize = new Point(); in onMovementBoundsChanged() local 279 mContext.getDisplay().getRealSize(displaySize); in onMovementBoundsChanged() 281 mExpandedShortestEdgeSize, displaySize.x, displaySize.y); in onMovementBoundsChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | NavBarTintController.java | 130 Point displaySize = new Point(); in onLayoutChange() local 131 view.getContext().getDisplay().getRealSize(displaySize); in onLayoutChange() 133 displaySize.y - mNavBarHeight, pos[0] + view.getWidth() + mNavColorSampleMargin, in onLayoutChange() 134 displaySize.y); in onLayoutChange()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | MenuPopupHelper.java | 230 final Point displaySize = new Point(); in createPopup() local 231 display.getRealSize(displaySize); in createPopup() 233 final int smallestWidth = Math.min(displaySize.x, displaySize.y); in createPopup()
|
/frameworks/base/core/java/android/view/ |
D | ThreadedRenderer.java | 505 final Point displaySize = attachInfo.mPoint; in setLightCenter() local 506 attachInfo.mDisplay.getRealSize(displaySize); in setLightCenter() 507 final float lightX = displaySize.x / 2f - attachInfo.mWindowLeft; in setLightCenter() 718 final Point displaySize = new Point(); in setLightCenter() local 719 display.getRealSize(displaySize); in setLightCenter() 720 final float lightX = displaySize.x / 2f - windowLeft; in setLightCenter()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputTest.cpp | 138 const ui::Size displaySize{200, 400}; in TEST_F() local 140 EXPECT_CALL(*mRenderSurface, setDisplaySize(displaySize)).Times(1); in TEST_F() 141 EXPECT_CALL(*mRenderSurface, getSize()).WillOnce(ReturnRef(displaySize)); in TEST_F() 143 mOutput.setBounds(displaySize); in TEST_F() 145 EXPECT_EQ(Rect(displaySize), mOutput.getState().bounds); in TEST_F() 147 EXPECT_THAT(mOutput.getState().dirtyRegion, RegionEq(Region(Rect(displaySize)))); in TEST_F()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomation.java | 813 Point displaySize = new Point(); in takeScreenshot() local 814 display.getRealSize(displaySize); in takeScreenshot() 823 new Rect(0, 0, displaySize.x, displaySize.y), rotation); in takeScreenshot()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/ |
D | ExpandedAnimationController.java | 90 public ExpandedAnimationController(Point displaySize, int expandedViewPadding) { in ExpandedAnimationController() argument 91 mDisplaySize = displaySize; in ExpandedAnimationController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/ |
D | BubbleExpandedView.java | 244 Point displaySize = new Point(); in updateInsets() local 245 mActivityView.getContext().getDisplay().getSize(displaySize); in updateInsets() 251 windowBottom + keyboardHeight - displaySize.y); in updateInsets()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
D | WallpaperCropActivity.java | 364 Point displaySize = new Point(); in cropImageAndSetWallpaper() local 365 d.getSize(displaySize); in cropImageAndSetWallpaper() 366 boolean isPortrait = displaySize.x < displaySize.y; in cropImageAndSetWallpaper()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraManager.java | 299 Size displaySize = getDisplaySize(); in getCameraCharacteristics() local 313 id, displaySize); in getCameraCharacteristics() 322 info.setDisplaySize(displaySize); in getCameraCharacteristics()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 250 public void applyMinimizedOffset(Rect stackBounds, Rect movementBounds, Point displaySize, in applyMinimizedOffset() argument 256 stackBounds.offsetTo(displaySize.x - stableInsets.right - mMinimizedVisibleSize, in applyMinimizedOffset()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 122 CameraInfo info, int cameraId, Size displaySize) { in createCharacteristics() argument 130 return createCharacteristics(paramStr, outerInfo, cameraId, displaySize); in createCharacteristics() 146 android.hardware.CameraInfo info, int cameraId, Size displaySize) { in createCharacteristics() argument 167 m.setDisplaySize(displaySize); in createCharacteristics()
|
D | CameraDeviceUserShim.java | 360 int cameraId, Size displaySize) { in connectBinderShim() argument 398 displaySize); in connectBinderShim()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | MandatoryStreamCombination.java | 678 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder() argument 681 mDisplaySize = displaySize; in Builder()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraMetadataNative.java | 1537 public void setDisplaySize(Size displaySize) { in setDisplaySize() argument 1538 mDisplaySize = displaySize; in setDisplaySize()
|