Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsLayoutTests.java92 final int[] locationOnScreen = new int[2]; in testSetFitInsetsTypesInner() local
93 childWindowRoot.getLocationOnScreen(locationOnScreen); in testSetFitInsetsTypesInner()
94 assertEquals(insets.left, locationOnScreen[0]); in testSetFitInsetsTypesInner()
95 assertEquals(insets.top, locationOnScreen[1]); in testSetFitInsetsTypesInner()
97 mainWindowRoot.getWidth() - locationOnScreen[0] - childWindowRoot.getWidth()); in testSetFitInsetsTypesInner()
99 mainWindowRoot.getHeight()- locationOnScreen[1] - childWindowRoot.getHeight()); in testSetFitInsetsTypesInner()
138 final int[] locationOnScreen = new int[2]; in testSetFitInsetsSidesInner() local
139 childWindowRoot.getLocationOnScreen(locationOnScreen); in testSetFitInsetsSidesInner()
140 assertEquals((sides & Side.LEFT) != 0 ? insets.left : 0, locationOnScreen[0]); in testSetFitInsetsSidesInner()
141 assertEquals((sides & Side.TOP) != 0 ? insets.top : 0, locationOnScreen[1]); in testSetFitInsetsSidesInner()
[all …]
DWindowMetricsTestHelper.java177 final int[] locationOnScreen = new int[2]; in onLayoutChange() local
178 v.getLocationOnScreen(locationOnScreen); in onLayoutChange()
179 mOnLayoutBoundsInScreen.offset(locationOnScreen[0], locationOnScreen[1]); in onLayoutChange()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt41 val locationOnScreen = IntArray(2) in fling() constant
43 view.getLocationOnScreen(locationOnScreen) in fling()
46 val screenX = locationOnScreen[0] in fling()
47 val screenY = locationOnScreen[1] in fling()
71 val locationOnScreen = IntArray(2) in dragStretches() constant
73 view.getLocationOnScreen(locationOnScreen) in dragStretches()
76 val screenX = locationOnScreen[0] in dragStretches()
77 val screenY = locationOnScreen[1] in dragStretches()
105 val locationOnScreen = IntArray(2) in dragAndHoldExecute() constant
107 view.getLocationOnScreen(locationOnScreen) in dragAndHoldExecute()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DListViewTest.java1285 int[] locationOnScreen = new int[2]; in testScrollAfterStretch() local
1287 mListViewStretch.getLocationOnScreen(locationOnScreen); in testScrollAfterStretch()
1290 int screenX = locationOnScreen[0]; in testScrollAfterStretch()
1291 int screenY = locationOnScreen[1]; in testScrollAfterStretch()