Home
last modified time | relevance | path

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

/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/gesture/
DUtils.kt53 val locationOnScreen = IntArray(2) { 0 } in MotionEvent() constant
54 dispatchTarget.getLocationOnScreen(locationOnScreen) in MotionEvent()
57 it.x += locationOnScreen[0] in MotionEvent()
58 it.y += locationOnScreen[1] in MotionEvent()
79 offsetLocation(-locationOnScreen[0].toFloat(), -locationOnScreen[1].toFloat()) in MotionEvent()
83 it.x -= locationOnScreen[0] in MotionEvent()
84 it.y -= locationOnScreen[1] in MotionEvent()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/platform/
DAndroidComposeViewScreenCoordinatesTest.kt105 coordinates.positionOnScreen() == view.locationOnScreen in <lambda>()
121 coordinates.positionOnScreen() == view.locationOnScreen + Offset(30f, 40f) in <lambda>()
136 coordinates.positionOnScreen() == view.locationOnScreen in <lambda>()
148 coordinates.positionOnScreen() == view.locationOnScreen in <lambda>()
163 assertThat(coordinates.screenToLocal(view.locationOnScreen)).isEqualTo(Offset.Zero) in <lambda>()
179 assertThat(coordinates.screenToLocal(view.locationOnScreen)) in <lambda>()
184 private val View.locationOnScreen: Offset in <lambda>() constant in androidx.compose.ui.platform.AndroidComposeViewScreenCoordinatesTest
204 assertThat(matrix.map(Offset.Zero)).isEqualTo(view.locationOnScreen + Offset.Zero) in <lambda>()
222 assertThat(matrix.map(Offset.Zero)).isEqualTo(view.locationOnScreen + Offset(30f, 40f)) in <lambda>()
239 assertThat(matrix.map(Offset.Zero)).isEqualTo(view.locationOnScreen + Offset.Zero) in <lambda>()
[all …]
/compose/ui/ui/benchmark/src/androidTest/java/androidx/compose/ui/benchmark/input/pointer/
Dutils.kt50 val locationOnScreen = IntArray(2) { 0 } in <lambda>() constant
51 dispatchTarget.getLocationOnScreen(locationOnScreen) in <lambda>()
54 it.x += locationOnScreen[0] in <lambda>()
55 it.y += locationOnScreen[1] in <lambda>()
76 offsetLocation(-locationOnScreen[0].toFloat(), -locationOnScreen[1].toFloat()) in <lambda>()
80 it.x -= locationOnScreen[0] in <lambda>()
81 it.y -= locationOnScreen[1] in <lambda>()
/compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/lazy/
DLazyBenchmarkCommon.kt59 val locationOnScreen = IntArray(2) { 0 } in sendEvent() constant
60 view.getLocationOnScreen(locationOnScreen) in sendEvent()
71 x = locationOnScreen[0] + coord.x.coerceAtLeast(1f) in sendEvent()
72 y = locationOnScreen[1] + coord.y.coerceAtLeast(1f) in sendEvent()
85 offsetLocation(-locationOnScreen[0].toFloat(), -locationOnScreen[1].toFloat()) in sendEvent()
/compose/ui/ui-test/src/androidInstrumentedTest/kotlin/androidx/compose/ui/test/junit4/
DComposeInFragmentTest.kt434 val locationOnScreen = IntArray(2) { 0 } in TestMotionEvent() constant
435 dispatchTarget.getLocationOnScreen(locationOnScreen) in TestMotionEvent()
438 it.x += locationOnScreen[0] in TestMotionEvent()
439 it.y += locationOnScreen[1] in TestMotionEvent()
460 offsetLocation(-locationOnScreen[0].toFloat(), -locationOnScreen[1].toFloat()) in TestMotionEvent()
464 it.x -= locationOnScreen[0] in TestMotionEvent()
465 it.y -= locationOnScreen[1] in TestMotionEvent()
/compose/ui/ui-test/src/androidMain/kotlin/androidx/compose/ui/test/
DAndroidImageHelpers.android.kt131 val locationOnScreen = intArrayOf(0, 0) in findNodePosition() constant
132 view.getLocationOnScreen(locationOnScreen) in findNodePosition()
133 val x = locationOnScreen[0] in findNodePosition()
134 val y = locationOnScreen[1] in findNodePosition()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/input/pointer/
DTestUtils.kt184 val locationOnScreen = IntArray(2) { 0 } in MotionEvent() constant
185 dispatchTarget.getLocationOnScreen(locationOnScreen) in MotionEvent()
188 it.x += locationOnScreen[0] in MotionEvent()
189 it.y += locationOnScreen[1] in MotionEvent()
210 offsetLocation(-locationOnScreen[0].toFloat(), -locationOnScreen[1].toFloat()) in MotionEvent()
214 it.x -= locationOnScreen[0] in MotionEvent()
215 it.y -= locationOnScreen[1] in MotionEvent()
/compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/window/
DAndroidPopup.android.kt697 private val locationOnScreen = IntArray(2) constant
711 val (oldX, oldY) = locationOnScreen in pollForLocationOnScreenChange()
712 composeView.getLocationOnScreen(locationOnScreen) in pollForLocationOnScreenChange()
713 if (oldX != locationOnScreen[0] || oldY != locationOnScreen[1]) { in pollForLocationOnScreenChange()