Home
last modified time | relevance | path

Searched refs:globalVisibleRect (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowView.java64 private Rect globalVisibleRect; field in ShadowView
525 if (globalVisibleRect == null) { in getGlobalVisibleRect()
529 if (!globalVisibleRect.isEmpty()) { in getGlobalVisibleRect()
530 rect.set(globalVisibleRect); in getGlobalVisibleRect()
542 globalVisibleRect = new Rect(); in setGlobalVisibleRect()
543 globalVisibleRect.set(rect); in setGlobalVisibleRect()
545 globalVisibleRect = null; in setGlobalVisibleRect()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowViewTest.java912 Rect globalVisibleRect = new Rect(); in setsGlobalVisibleRect() local
914 assertThat(view.getGlobalVisibleRect(globalVisibleRect)) in setsGlobalVisibleRect()
916 assertThat(globalVisibleRect.isEmpty()) in setsGlobalVisibleRect()
918 assertThat(view.getGlobalVisibleRect(globalVisibleRect, new Point(1, 1))) in setsGlobalVisibleRect()
920 assertThat(globalVisibleRect.isEmpty()) in setsGlobalVisibleRect()
924 assertThat(view.getGlobalVisibleRect(globalVisibleRect)) in setsGlobalVisibleRect()
926 assertThat(globalVisibleRect) in setsGlobalVisibleRect()
928 assertThat(view.getGlobalVisibleRect(globalVisibleRect, new Point(1, 1))) in setsGlobalVisibleRect()
930 assertThat(globalVisibleRect) in setsGlobalVisibleRect()
942 Rect globalVisibleRect = new Rect(); in usesDefaultGlobalVisibleRect() local
[all …]