/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | DisplayRotationUtilTest.java | 49 private static final Rect ZERO_RECT = new Rect(); field in DisplayRotationUtilTest 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() 143 Rect[] bounds = new Rect[] {new Rect(0, 50, 10, 150), ZERO_RECT, ZERO_RECT, ZERO_RECT}; in testGetRotatedBounds_left_rot90() [all …]
|
D | WmDisplayCutoutTest.java | 50 private static final Rect ZERO_RECT = new Rect(); field in WmDisplayCutoutTest 202 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_waterfall() 213 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_greaterThan_waterfallTop() 224 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_lessThan_waterfallTop() 235 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_greaterThan_waterfallLeft() 246 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_lessThan_waterfallLeft() 257 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_greaterThan_waterfallBottom() 268 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_lessThan_waterfallBottom() 279 new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(170, 180, 200, 220), ZERO_RECT}, in computeSafeInsets_cutoutRight_greaterThan_waterfallRight() 290 new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(170, 180, 200, 220), ZERO_RECT}, in computeSafeInsets_cutoutRight_lessThan_waterfallRight()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 61 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutoutTest 80 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left() 88 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top() 96 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, bound, ZERO_RECT})); in testExtractBoundsFromList_right() 104 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, bound})); in testExtractBoundsFromList_bottom() 114 equalTo(new Rect[]{ZERO_RECT, boundTop, ZERO_RECT, boundBottom})); in testExtractBoundsFromList_top_and_bottom() 121 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullBoundingRects() 127 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullSafeInsets() 258 new Rect[]{ ZERO_RECT, new Rect(49, -2, 74, 98), ZERO_RECT, ZERO_RECT })); in inset_bounds() 360 ZERO_RECT, new Rect(50, 0, 150, 20), in fromSpec_setsSafeInsets_top_and_bottom() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ |
D | ScreenDecorationsTest.java | 79 private static final Rect ZERO_RECT = new Rect(); field in ScreenDecorationsTest 269 ZERO_RECT, in testRoundingTopBottomRadius_OnLeftRightOverlay() 270 ZERO_RECT, in testRoundingTopBottomRadius_OnLeftRightOverlay() 271 ZERO_RECT, in testRoundingTopBottomRadius_OnLeftRightOverlay() 344 ZERO_RECT, in testNoRounding_CutoutShortEdge() 346 ZERO_RECT, in testNoRounding_CutoutShortEdge() 347 ZERO_RECT, in testNoRounding_CutoutShortEdge() 381 ZERO_RECT, in testNoRounding_CutoutLongEdge() 382 ZERO_RECT, in testNoRounding_CutoutLongEdge() 383 ZERO_RECT, in testNoRounding_CutoutLongEdge() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 71 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutout 79 ZERO_RECT, Insets.NONE, ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT, 326 return ZERO_RECT; in getCopyOrRef() 358 sortedBounds[i] = ZERO_RECT; in extractBoundsFromList() 400 return mSafeInsets.equals(ZERO_RECT); in isEmpty() 598 if (!bounds[i].equals(ZERO_RECT)) { in inset() 655 return new DisplayCutout(ZERO_RECT, Insets.NONE, bounds, false /* copyArguments */); in fromBoundingRect() 664 return new DisplayCutout(ZERO_RECT, waterfallInsets, bounds, false /* copyArguments */); in fromBoundsAndWaterfall() 673 return new DisplayCutout(ZERO_RECT, Insets.NONE, bounds, false /* copyArguments */); in fromBounds()
|