/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 70 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutoutTest 89 equalTo(new Rect[]{bound, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_left() 97 equalTo(new Rect[]{ZERO_RECT, bound, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_top() 105 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, bound, ZERO_RECT})); in testExtractBoundsFromList_right() 113 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, bound})); in testExtractBoundsFromList_bottom() 123 equalTo(new Rect[]{ZERO_RECT, boundTop, ZERO_RECT, boundBottom})); in testExtractBoundsFromList_top_and_bottom() 130 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullBoundingRects() 136 equalTo(new Rect[]{ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT})); in testExtractBoundsFromList_nullSafeInsets() 322 new Rect[]{ ZERO_RECT, new Rect(49, -2, 74, 98), ZERO_RECT, ZERO_RECT })); in inset_bounds() 425 ZERO_RECT, new Rect(50, 0, 150, 20), in fromSpec_setsSafeInsets_top_and_bottom() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 48 private static final Rect ZERO_RECT = new Rect(); field in WmDisplayCutoutTest 154 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_waterfall() 165 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_greaterThan_waterfallTop() 176 new Rect[] {ZERO_RECT, new Rect(80, 0, 120, 30), ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutTop_lessThan_waterfallTop() 187 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_greaterThan_waterfallLeft() 198 new Rect[] {new Rect(0, 180, 30, 220), ZERO_RECT, ZERO_RECT, ZERO_RECT}, in computeSafeInsets_cutoutLeft_lessThan_waterfallLeft() 209 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_greaterThan_waterfallBottom() 220 new Rect[] {ZERO_RECT, ZERO_RECT, ZERO_RECT, new Rect(80, 370, 120, 400)}, in computeSafeInsets_cutoutBottom_lessThan_waterfallBottom() 231 new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(170, 180, 200, 220), ZERO_RECT}, in computeSafeInsets_cutoutRight_greaterThan_waterfallRight() 242 new Rect[] {ZERO_RECT, ZERO_RECT, new Rect(170, 180, 200, 220), ZERO_RECT}, in computeSafeInsets_cutoutRight_lessThan_waterfallRight()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 83 private static final Rect ZERO_RECT = new Rect(); field in DisplayCutout 96 ZERO_RECT, Insets.NONE, ZERO_RECT, ZERO_RECT, ZERO_RECT, ZERO_RECT, EMPTY_PARSER_INFO, 577 return ZERO_RECT; in getCopyOrRef() 609 sortedBounds[i] = ZERO_RECT; in extractBoundsFromList() 651 return mSafeInsets.equals(ZERO_RECT); in isEmpty() 962 if (!bounds[i].equals(ZERO_RECT)) { in inset() 1020 return new DisplayCutout(ZERO_RECT, Insets.NONE, bounds, null, false /* copyArguments */); in fromBoundingRect() 1030 return new DisplayCutout(ZERO_RECT, waterfallInsets, bounds, info, in constructDisplayCutout() 1040 return new DisplayCutout(ZERO_RECT, Insets.NONE, bounds, null /* cutoutPathParserInfo */, in fromBounds()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 59148 Landroid/view/DisplayCutout;->ZERO_RECT:Landroid/graphics/Rect;
|