Home
last modified time | relevance | path

Searched refs:getSafeInset (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
DCutoutSpecificationTest.java188 assertThat(cutoutSpecification.getSafeInset()).isEqualTo(new Rect(168, 168, 168, 168)); in parse_withBindMarker_shouldMatchExpectedSafeInset()
223 assertThat(cutoutSpecification.getSafeInset()).isEqualTo(new Rect(168, 0, 168, 168)); in parse_withBindMarker_tabletLikeDevice_shouldMatchExpectedSafeInset()
317 assertThat(cutoutSpecification.getSafeInset()).isEqualTo(new Rect(0, 156, 0, 0)); in parse_holeCutout_shouldMatchExpectedInset()
326 assertThat(cutoutSpecification.getSafeInset()) in getSafeInset_shortEdgeIsTopBottom_shouldMatchExpectedInset()
336 assertThat(cutoutSpecification.getSafeInset()) in getSafeInset_shortEdgeIsLeftRight_shouldMatchExpectedInset()
/frameworks/base/core/java/android/view/
DCutoutSpecification.java188 public Rect getSafeInset() { in getSafeInset() method in CutoutSpecification
333 private int getSafeInset(int gravity) {
362 int oldSafeInset = getSafeInset(gravity);
DDisplayCutout.java1255 Rect safeInset = cutoutSpec.getSafeInset();