/frameworks/base/core/tests/coretests/src/android/view/ |
D | FocusFinderTest.java | 19 import android.graphics.Rect; 43 new Rect(0, 30, 10, 40), // src (left, top, right, bottom) in testBelowNotCandidateForDirectionUp() 44 new Rect(0, 50, 10, 60)); // dest (left, top, right, bottom) in testBelowNotCandidateForDirectionUp() 49 final Rect src = new Rect(0, 30, 10, 40); in testAboveShareEdgeEdgeOkForDirectionUp() 51 final Rect dest = new Rect(src); in testAboveShareEdgeEdgeOkForDirectionUp() 63 new Rect(0, 0, 50, 50), in testCompletelyContainedNotCandidate() 64 new Rect(0, 1, 50, 49)); in testCompletelyContainedNotCandidate() 72 new Rect(0, 0, 50, 50), in testContinaedWithCommonBottomNotCandidate() 73 new Rect(0, 1, 50, 50)); in testContinaedWithCommonBottomNotCandidate() 81 new Rect(0, 0, 50, 50), in testOverlappingIsCandidateWhenBothEdgesAreInDirection() [all …]
|
D | DisplayCutoutTest.java | 33 import android.graphics.Rect; 61 private static final Rect ZERO_RECT = new Rect(); 67 new Rect(9, 0, 10, 1) /* boundTop */, 75 Rect safeInsets = new Rect(10, 0, 0, 0); in testExtractBoundsFromList_left() 76 Rect bound = new Rect(0, 80, 10, 120); in testExtractBoundsFromList_left() 78 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left() 83 Rect safeInsets = new Rect(0, 10, 0, 0); in testExtractBoundsFromList_top() 84 Rect bound = new Rect(80, 0, 120, 10); in testExtractBoundsFromList_top() 86 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top() 91 Rect safeInsets = new Rect(0, 0, 10, 0); in testExtractBoundsFromList_right() [all …]
|
D | InsetsSourceTest.java | 24 import android.graphics.Rect; 55 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsetsTop() 56 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsTop() 63 mSource.setFrame(new Rect(0, 400, 500, 500)); in testCalculateInsetsBottom() 64 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsBottom() 71 mSource.setFrame(new Rect(0, 0, 100, 500)); in testCalculateInsetsLeft() 72 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsLeft() 79 mSource.setFrame(new Rect(400, 0, 500, 500)); in testCalculateInsetsRight() 80 Insets insets = mSource.calculateInsets(new Rect(0, 0, 500, 500), in testCalculateInsetsRight() 87 mSource.setFrame(new Rect(0, 0, 500, 100)); in testCalculateInsets_overextend() [all …]
|
D | InsetsStateTest.java | 36 import android.graphics.Rect; 68 mState.getSource(TYPE_TOP_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets() 70 mState.getSource(TYPE_IME).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets() 73 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets() 88 mState.getSource(TYPE_NAVIGATION_BAR).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets_imeAndNav() 90 mState.getSource(TYPE_IME).setFrame(new Rect(0, 100, 100, 300)); in testCalculateInsets_imeAndNav() 92 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets_imeAndNav() 107 mState.getSource(TYPE_TOP_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets_navRightStatusTop() 109 mState.getSource(TYPE_NAVIGATION_BAR).setFrame(new Rect(80, 0, 100, 300)); in testCalculateInsets_navRightStatusTop() 111 WindowInsets insets = mState.calculateInsets(new Rect(0, 0, 100, 300), false, false, in testCalculateInsets_navRightStatusTop() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowFrames.java | 36 import android.graphics.Rect; 61 public final Rect mParentFrame = new Rect(); 70 public final Rect mDisplayFrame = new Rect(); 78 public final Rect mOverscanFrame = new Rect(); 84 public final Rect mVisibleFrame = new Rect(); 90 public final Rect mDecorFrame = new Rect(); 96 public final Rect mContentFrame = new Rect(); 102 public final Rect mStableFrame = new Rect(); 108 final public Rect mOutsetFrame = new Rect(); 115 final Rect mContainingFrame = new Rect(); [all …]
|
D | DisplayFrames.java | 25 import android.graphics.Rect; 45 public final Rect mOverscan = new Rect(); 51 public final Rect mUnrestricted = new Rect(); 54 public final Rect mRestrictedOverscan = new Rect(); 61 public final Rect mRestricted = new Rect(); 67 public final Rect mSystem = new Rect(); 70 public final Rect mStable = new Rect(); 76 public final Rect mStableFullscreen = new Rect(); 82 public final Rect mCurrent = new Rect(); 90 public final Rect mContent = new Rect(); [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotSurfaceTest.java | 41 import android.graphics.Rect; 63 private void setupSurface(int width, int height, Rect contentInsets, int sysuiVis, in setupSurface() 64 int windowFlags, Rect taskBounds) { in setupSurface() 86 setupSurface(width, height, new Rect(), 0, FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS, in setupSurface() 87 new Rect(0, 0, width, height)); in setupSurface() 96 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 200)); in fillEmptyBackground_fillHorizontally() 106 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 100)); in fillEmptyBackground_fillVertically() 116 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); in fillEmptyBackground_fillBoth() 127 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); in fillEmptyBackground_dontFill_sameSize() 137 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 200)); in fillEmptyBackground_dontFill_bitmapLarger() [all …]
|
D | WindowFrameTests.java | 32 import android.graphics.Rect; 59 private final Rect mEmptyRect = new Rect(); 84 private void assertRect(Rect rect, int left, int top, int right, int bottom) { in assertRect() 107 private void assertContentFrame(WindowState w, Rect expectedRect) { in assertContentFrame() 112 private void assertVisibleFrame(WindowState w, Rect expectedRect) { in assertVisibleFrame() 117 private void assertStableFrame(WindowState w, Rect expectedRect) { in assertStableFrame() 124 Rect policyCrop = new Rect(); in assertPolicyCrop() 144 final Rect pf = new Rect(0, 0, 1000, 1000); in testLayoutInFullscreenTaskInsets() 145 final Rect df = pf; in testLayoutInFullscreenTaskInsets() 146 final Rect of = df; in testLayoutInFullscreenTaskInsets() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | DisplayRotationUtilTest.java | 33 import android.graphics.Rect; 49 private static final Rect ZERO_RECT = new Rect(); 103 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot0() 111 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot90() 113 equalTo(new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testGetRotatedBounds_top_rot90() 119 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot180() 121 equalTo(new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(50, 290, 150, 300)})); in testGetRotatedBounds_top_rot180() 127 Rect[] bounds = new Rect[] {ZERO_RECT, new Rect(50, 0, 150, 10), ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_top_rot270() 129 equalTo(new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(290, 50, 300, 150), ZERO_RECT})); in testGetRotatedBounds_top_rot270() 135 Rect[] bounds = new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_left_rot0() [all …]
|
D | InsetUtilsTest.java | 26 import android.graphics.Rect; 43 final Rect rect1 = new Rect(10, 20, 30, 40); in testAdd() 44 final Rect rect2 = new Rect(50, 60, 70, 80); in testAdd() 46 assertEquals(new Rect(60, 80, 100, 120), rect1); in testAdd() 51 final Rect original = new Rect(1, 2, 3, 4); in rotate() 55 final Rect rot90 = rotateCopy(original, ROTATION_90); in rotate() 56 assertEquals("rot90", new Rect(2, 3, 4, 1), rot90); in rotate() 58 final Rect rot180 = rotateCopy(original, ROTATION_180); in rotate() 59 assertEquals("rot180", new Rect(3, 4, 1, 2), rot180); in rotate() 62 final Rect rot270 = rotateCopy(original, ROTATION_270); in rotate() [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 22 const Rect Rect::INVALID_RECT{0, 0, -1, -1}; 23 const Rect Rect::EMPTY_RECT{0, 0, 0, 0}; 33 void Rect::makeInvalid() { in makeInvalid() 40 bool Rect::operator <(const Rect& rhs) const { in operator <() 59 Rect& Rect::offsetTo(int32_t x, int32_t y) { in offsetTo() 67 Rect& Rect::offsetBy(int32_t x, int32_t y) { in offsetBy() 75 Rect& Rect::inset(int32_t _left, int32_t _top, int32_t _right, int32_t _bottom) { in inset() 83 const Rect Rect::operator +(const Point& rhs) const { in operator +() 84 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() 88 const Rect Rect::operator -(const Point& rhs) const { in operator -() [all …]
|
D | Region.cpp | 55 op_nand = region_operator<Rect>::op_nand, 56 op_and = region_operator<Rect>::op_and, 57 op_or = region_operator<Rect>::op_or, 58 op_xor = region_operator<Rect>::op_xor 66 const Region Region::INVALID_REGION(Rect::INVALID_RECT); 71 mStorage.add(Rect(0,0)); in Region() 82 Region::Region(const Rect& rhs) { in Region() 104 static void reverseRectsResolvingJunctions(const Rect* begin, const Rect* end, in reverseRectsResolvingJunctions() 105 Vector<Rect>& dst, int spanDirection) { in reverseRectsResolvingJunctions() 108 const Rect* current = end - 1; in reverseRectsResolvingJunctions() [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | Rect.h | 33 class Rect : public ARect, public LightFlattenablePod<Rect> 38 static const Rect INVALID_RECT; 39 static const Rect EMPTY_RECT; 44 inline Rect() : Rect(INVALID_RECT) {} in Rect() function 47 inline Rect(T w, T h) { in Rect() function 59 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) { in Rect() function 66 inline Rect(const Point& lt, const Point& rb) { in Rect() function 73 inline explicit Rect(const FloatRect& floatRect) { in Rect() function 82 inline explicit Rect(const ui::Size& size) { in Rect() function 120 inline Rect getBounds() const { in getBounds() [all …]
|
/frameworks/native/libs/ui/include/ui/ |
D | Rect.h | 33 class Rect : public ARect, public LightFlattenablePod<Rect> 38 static const Rect INVALID_RECT; 39 static const Rect EMPTY_RECT; 44 inline Rect() : Rect(INVALID_RECT) {} in Rect() function 47 inline Rect(T w, T h) { in Rect() function 59 inline Rect(int32_t l, int32_t t, int32_t r, int32_t b) { in Rect() function 66 inline Rect(const Point& lt, const Point& rb) { in Rect() function 73 inline explicit Rect(const FloatRect& floatRect) { in Rect() function 82 inline explicit Rect(const ui::Size& size) { in Rect() function 120 inline Rect getBounds() const { in getBounds() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 36 import android.graphics.Rect; 80 private static final Rect ZERO_RECT = new Rect(); 106 private final Rect mSafeInsets; 150 private final Rect[] mRects; 152 private Bounds(Rect left, Rect top, Rect right, Rect bottom, boolean copyArguments) { in Bounds() 153 mRects = new Rect[BOUNDS_POSITION_LENGTH]; in Bounds() 161 private Bounds(Rect[] rects, boolean copyArguments) { in Bounds() 167 mRects = new Rect[BOUNDS_POSITION_LENGTH]; in Bounds() 169 mRects[i] = new Rect(rects[i]); in Bounds() 172 for (Rect rect : rects) { in Bounds() [all …]
|
D | FocusFinderHelper.java | 19 import android.graphics.Rect; 36 public boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2) { in isBetterCandidate() 40 public boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2) { in beamBeats() 44 public boolean isCandidate(Rect srcRect, Rect destRect, int direction) { in isCandidate() 48 public boolean beamsOverlap(int direction, Rect rect1, Rect rect2) { in beamsOverlap() 52 public static int majorAxisDistance(int direction, Rect source, Rect dest) { in majorAxisDistance() 56 public static int majorAxisDistanceToFarEdge(int direction, Rect source, Rect dest) { in majorAxisDistanceToFarEdge()
|
D | IWindowSession.aidl | 21 import android.graphics.Rect; 44 in int viewVisibility, in int layerStackId, out Rect outFrame, in addToDisplay() 45 out Rect outContentInsets, out Rect outStableInsets, out Rect outOutsets, in addToDisplay() 49 in int viewVisibility, in int layerStackId, out Rect outContentInsets, in addToDisplayWithoutInputChannel() 50 out Rect outStableInsets, out InsetsState insetsState); in addToDisplayWithoutInputChannel() 101 int flags, long frameNumber, out Rect outFrame, out Rect outOverscanInsets, in relayout() 102 out Rect outContentInsets, out Rect outVisibleInsets, out Rect outStableInsets, in relayout() 103 out Rect outOutsets, out Rect outBackdropFrame, in relayout() 141 void setInsets(IWindow window, int touchableInsets, in Rect contentInsets, in setInsets() 142 in Rect visibleInsets, in Region touchableRegion); in setInsets() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | WindowManagerProxy.java | 22 import android.graphics.Rect; 42 private final Rect mDockedRect = new Rect(); 43 private final Rect mTempDockedTaskRect = new Rect(); 44 private final Rect mTempDockedInsetRect = new Rect(); 45 private final Rect mTempOtherTaskRect = new Rect(); 46 private final Rect mTempOtherInsetRect = new Rect(); 48 private final Rect mTmpRect1 = new Rect(); 49 private final Rect mTmpRect2 = new Rect(); 50 private final Rect mTmpRect3 = new Rect(); 51 private final Rect mTmpRect4 = new Rect(); [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | ParameterUtils.java | 21 import android.graphics.Rect; 51 public static final Rect NORMALIZED_RECTANGLE_DEFAULT = new Rect( 58 new Camera.Area(new Rect(NORMALIZED_RECTANGLE_DEFAULT), 61 public static final Rect RECTANGLE_EMPTY = 62 new Rect(/*left*/0, /*top*/0, /*right*/0, /*bottom*/0); 73 public final Rect previewCrop; 75 public final Rect reportedCrop; 77 public ZoomData(int zoomIndex, Rect previewCrop, Rect reportedCrop) { in ZoomData() 98 public final Rect previewMetering; 104 public final Rect reportedMetering; [all …]
|
/frameworks/native/libs/ui/tests/ |
D | Region_test.cpp | 28 void checkVertTJunction(const Rect* lhs, const Rect* rhs) { in checkVertTJunction() 34 for (const Rect* current = r.begin(); current < r.end(); current++) { in verifyNoTJunctions() 35 for (const Rect* other = current - 1; other >= r.begin(); other--) { in verifyNoTJunctions() 40 for (const Rect* other = current + 1; other < r.end(); other++) { in verifyNoTJunctions() 63 r.orSelf(Rect(1, 0, 2, 1)); in TEST_F() 64 r.orSelf(Rect(0, 1, 3, 2)); in TEST_F() 71 r.orSelf(Rect(1, 0, 2, 1)); in TEST_F() 72 r.orSelf(Rect(0, 2, 3, 3)); in TEST_F() 80 r.orSelf(Rect(100, 100, 500, 500)); in TEST_F() 91 r.orSelf(Rect(1, 0, 2, 1)); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 39 import android.graphics.Rect; 63 private static final RectEvaluator RECT_EVALUATOR = new RectEvaluator(new Rect()); 94 private final Rect mBounds = new Rect(); 95 private final Rect mStableInsets = new Rect(); 141 void movePip(Rect toBounds) { in movePip() 196 Rect getBounds() { in getBounds() 203 Rect getClosestMinimizedBounds(Rect stackBounds, Rect movementBounds) { in getClosestMinimizedBounds() 206 Rect toBounds = mSnapAlgorithm.findClosestSnapBounds(movementBounds, stackBounds); in getClosestMinimizedBounds() 246 Rect flingToMinimizedState(float velocityY, Rect movementBounds, Point dragStartPosition) { in flingToMinimizedState() 250 movementBounds = new Rect(mBounds.left, movementBounds.top, mBounds.left, in flingToMinimizedState() [all …]
|
/frameworks/base/tests/FlickerTests/lib/src/com/android/server/wm/flicker/ |
D | WindowUtils.java | 22 import android.graphics.Rect; 33 static Rect getDisplayBounds() { in getDisplayBounds() 39 return new Rect(0, 0, display.x, display.y); in getDisplayBounds() 49 static Rect getDisplayBounds(int requestedRotation) { in getDisplayBounds() 50 Rect displayBounds = getDisplayBounds(); in getDisplayBounds() 62 return new Rect(0, 0, displayBounds.height(), displayBounds.width()); in getDisplayBounds() 65 return new Rect(0, 0, displayBounds.width(), displayBounds.height()); in getDisplayBounds() 69 static Rect getAppPosition(int requestedRotation) { in getAppPosition() 70 Rect displayBounds = getDisplayBounds(); in getAppPosition() 82 return new Rect(0, 0, displayBounds.height(), displayBounds.width()); in getAppPosition() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | BackdropFrameRenderer.java | 20 import android.graphics.Rect; 42 private final Rect mTargetRect = new Rect(); 49 private final Rect mOldTargetRect = new Rect(); 50 private final Rect mNewTargetRect = new Rect(); 72 private final Rect mOldSystemInsets = new Rect(); 73 private final Rect mOldStableInsets = new Rect(); 74 private final Rect mSystemInsets = new Rect(); 75 private final Rect mStableInsets = new Rect(); 76 private final Rect mTmpRect = new Rect(); 78 public BackdropFrameRenderer(DecorView decorView, ThreadedRenderer renderer, Rect initialBounds, in BackdropFrameRenderer() [all …]
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 23 import android.graphics.Rect; 47 Rect rectOriginal = new Rect(); in paintRectShadow() 48 Rect rectScaled = new Rect(); in paintRectShadow() 102 float alpha, Rect shadowCasterOutline, float radius) { in paintAmbientShadow() 139 … private static void paintSpotShadow(float[] poly, Rect rectBound, float elevation, Canvas canvas, in paintSpotShadow() 140 float densityDpi, int width, int height, float alpha, Rect shadowCasterOutline, in paintSpotShadow() 188 int width, int height, Rect shadowCaster, float radius) { in drawScaled() 193 Rect dest = new Rect( in drawScaled() 198 Rect destSrc = new Rect(0, 0, width, height); in drawScaled() 226 Rect left = new Rect(dest.left, shadowCaster.top, shadowCaster.left, shadowCaster.bottom); in drawScaled() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | WindowCallbacksCompat.java | 19 import android.graphics.Rect; 29 public void onWindowSizeIsChanging(Rect newBounds, boolean fullscreen, Rect systemInsets, 30 Rect stableInsets) { 36 public void onWindowDragResizeStart(Rect initialBounds, boolean fullscreen, 37 Rect systemInsets, Rect stableInsets, int resizeMode) { 69 public void onWindowSizeIsChanging(Rect newBounds, boolean fullscreen, Rect systemInsets, in onWindowSizeIsChanging() 70 Rect stableInsets) { } in onWindowSizeIsChanging() 72 public void onWindowDragResizeStart(Rect initialBounds, boolean fullscreen, Rect systemInsets, in onWindowDragResizeStart() 73 Rect stableInsets, int resizeMode) { } in onWindowDragResizeStart()
|