Home
last modified time | relevance | path

Searched refs:ZERO_RECT (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DDisplayRotationUtilTest.java49 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 …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java61 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutoutTest
78 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left()
86 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top()
94 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, bound, ZERO_RECT})); in testExtractBoundsFromList_right()
102 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, bound})); in testExtractBoundsFromList_bottom()
112 equalTo(new Rect[]{ZERO_RECT, boundTop, ZERO_RECT, boundBottom})); in testExtractBoundsFromList_top_and_bottom()
119 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullBoundingRects()
125 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullSafeInsets()
225 new Rect[]{ ZERO_RECT, new Rect(49, -2, 74, 98), ZERO_RECT, ZERO_RECT })); in inset_bounds()
307 ZERO_RECT, new Rect(50, 0, 150, 20), in fromSpec_setsSafeInsets_top_and_bottom()
[all …]
/frameworks/base/core/java/android/view/
DDisplayCutout.java80 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutout
88 ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT,
302 return ZERO_RECT; in getCopyOrRef()
319 sortedBounds[i] = ZERO_RECT; in extractBoundsFromList()
356 return mSafeInsets.equals(ZERO_RECT); in isEmpty()
545 if (!bounds[i].equals(ZERO_RECT)) { in inset()
582 return new DisplayCutout(ZERO_RECT, bounds, false /* copyArguments */); in fromBoundingRect()
591 return new DisplayCutout(ZERO_RECT, bounds, false /* copyArguments */); in fromBounds()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt79508 Landroid/view/DisplayCutout;->ZERO_RECT:Landroid/graphics/Rect;