Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java54 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets() local
55 final Rect safeInsets = computeSafeInsets(displaySize, inner); in computeSafeInsets()
56 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets()
69 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets() argument
70 if (displaySize.getWidth() == displaySize.getHeight()) { in computeSafeInsets()
71 throw new UnsupportedOperationException("not implemented: display=" + displaySize + in computeSafeInsets()
76 findCutoutInsetForSide(displaySize, cutout.getBoundingRectLeft(), Gravity.LEFT)); in computeSafeInsets()
78 findCutoutInsetForSide(displaySize, cutout.getBoundingRectTop(), Gravity.TOP)); in computeSafeInsets()
80 findCutoutInsetForSide(displaySize, cutout.getBoundingRectRight(), Gravity.RIGHT)); in computeSafeInsets()
82 findCutoutInsetForSide(displaySize, cutout.getBoundingRectBottom(), in computeSafeInsets()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java393 final Size displaySize = new Size(displayWidth, displayHeight); in computeSafeInsets() local
394 final Rect safeInsets = computeSafeInsets(displaySize, inner); in computeSafeInsets()
399 Size displaySize, DisplayCutout cutout) { in computeSafeInsets() argument
400 if (displaySize.getWidth() == displaySize.getHeight()) { in computeSafeInsets()
401 throw new UnsupportedOperationException("not implemented: display=" + displaySize in computeSafeInsets()
406 findCutoutInsetForSide(displaySize, cutout.getBoundingRectLeft(), Gravity.LEFT)); in computeSafeInsets()
408 findCutoutInsetForSide(displaySize, cutout.getBoundingRectTop(), Gravity.TOP)); in computeSafeInsets()
410 findCutoutInsetForSide(displaySize, cutout.getBoundingRectRight(), Gravity.RIGHT)); in computeSafeInsets()
412 findCutoutInsetForSide(displaySize, cutout.getBoundingRectBottom(), in computeSafeInsets()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java152 final Point displaySize = new Point(); in getMaximumBounds() local
153 mDisplay.getRealSize(displaySize); in getMaximumBounds()
154 return new Rect(0, 0, displaySize.x, displaySize.y); in getMaximumBounds()
/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/core/java/android/view/
DThreadedRenderer.java464 final Point displaySize = attachInfo.mPoint; in setLightCenter() local
465 attachInfo.mDisplay.getRealSize(displaySize); in setLightCenter()
466 final float lightX = displaySize.x / 2f - attachInfo.mWindowLeft; in setLightCenter()
682 final Point displaySize = new Point(); in setLightCenter() local
683 display.getRealSize(displaySize); in setLightCenter()
684 final float lightX = displaySize.x / 2f - windowLeft; in setLightCenter()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DNavigationEdgeBackPlugin.java43 void setDisplaySize(Point displaySize); in setDisplaySize() argument
/frameworks/native/services/inputflinger/dispatcher/
DInputTarget.h104 int2 displaySize = {AMOTION_EVENT_INVALID_DISPLAY_SIZE, AMOTION_EVENT_INVALID_DISPLAY_SIZE}; member
DEntry.cpp299 ui::Transform transform, float globalScaleFactor, int2 displaySize) in DispatchEntry() argument
305 displaySize(displaySize), in DispatchEntry()
DEntry.h218 int2 displaySize; member
231 ui::Transform transform, float globalScaleFactor, int2 displaySize);
DInputDispatcher.cpp329 inputTarget.displaySize); in createDispatchEntry()
337 inputTarget.displaySize); in createDispatchEntry()
389 inputTarget.displaySize); in createDispatchEntry()
2446 inputTarget.displaySize = in addWindowTargetLocked()
3161 dispatchEntry->displaySize.x, in startDispatchCycleLocked()
3162 dispatchEntry->displaySize.y, in startDispatchCycleLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt350 displaySize: Pair<Int, Int> in sbRect()
352 val w = displaySize.first in sbRect()
353 val h = displaySize.second in sbRect()
/frameworks/base/core/java/android/app/
DUiAutomation.java1004 Point displaySize = new Point(); in takeScreenshot() local
1005 display.getRealSize(displaySize); in takeScreenshot()
1014 new Rect(0, 0, displaySize.x, displaySize.y)); in takeScreenshot()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchHandler.java389 Point displaySize = new Point(); in onMovementBoundsChanged() local
390 mContext.getDisplay().getRealSize(displaySize); in onMovementBoundsChanged()
392 aspectRatio, mExpandedShortestEdgeSize, displaySize.x, displaySize.y); in onMovementBoundsChanged()
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp272 ui::Size displaySize; in captureSample() local
280 displaySize = display->getSize(); in captureSample()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
DNavigationBarEdgePanel.java407 public void setDisplaySize(Point displaySize) { in setDisplaySize() argument
408 mDisplaySize.set(displaySize.x, displaySize.y); in setDisplaySize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBarView.java954 Point displaySize = new Point(); in updateSamplingRect() local
955 view.getContext().getDisplay().getRealSize(displaySize); in updateSamplingRect()
957 displaySize.y - getNavBarHeight(), in updateSamplingRect()
959 displaySize.y); in updateSamplingRect()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DOutput.cpp169 const auto displaySize = outputState.displaySpace.bounds; in setProjection() local
170 rotation.set(transformOrientationFlags, displaySize.width(), displaySize.height()); in setProjection()
/frameworks/base/core/java/android/hardware/camera2/
DCameraManager.java477 Size displaySize = getDisplaySize(); in getCameraCharacteristics() local
490 info.setDisplaySize(displaySize); in getCameraCharacteristics()
/frameworks/base/core/java/android/hardware/camera2/params/
DMandatoryStreamCombination.java960 public Builder(int cameraId, int hwLevel, @NonNull Size displaySize, in Builder() argument
964 mDisplaySize = displaySize; in Builder()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java1900 public void setDisplaySize(Size displaySize) { in setDisplaySize() argument
1901 mDisplaySize = displaySize; in setDisplaySize()