Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java50 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/
DScreenshooter.java45 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/
DContextMenuTest.java88 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/
DPipMotionHelper.java204 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 …]
DPipTouchHandler.java278 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/
DNavBarTintController.java130 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/
DMenuPopupHelper.java230 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/
DThreadedRenderer.java505 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/
DOutputTest.cpp138 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/
DUiAutomation.java813 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/
DExpandedAnimationController.java90 public ExpandedAnimationController(Point displaySize, int expandedViewPadding) { in ExpandedAnimationController() argument
91 mDisplaySize = displaySize; in ExpandedAnimationController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExpandedView.java244 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/
DWallpaperCropActivity.java364 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/
DCameraManager.java299 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/
DPipSnapAlgorithm.java250 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/
DLegacyMetadataMapper.java122 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()
DCameraDeviceUserShim.java360 int cameraId, Size displaySize) { in connectBinderShim() argument
398 displaySize); in connectBinderShim()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java678 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/
DCameraMetadataNative.java1537 public void setDisplaySize(Size displaySize) { in setDisplaySize() argument
1538 mDisplaySize = displaySize; in setDisplaySize()