Searched refs:locationOnScreen (Results 1 – 8 of 8) sorted by relevance
53 val locationOnScreen = IntArray(2) { 0 } in MotionEvent() constant54 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()
105 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.AndroidComposeViewScreenCoordinatesTest204 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 …]
50 val locationOnScreen = IntArray(2) { 0 } in <lambda>() constant51 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>()
59 val locationOnScreen = IntArray(2) { 0 } in sendEvent() constant60 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()
434 val locationOnScreen = IntArray(2) { 0 } in TestMotionEvent() constant435 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()
131 val locationOnScreen = intArrayOf(0, 0) in findNodePosition() constant132 view.getLocationOnScreen(locationOnScreen) in findNodePosition()133 val x = locationOnScreen[0] in findNodePosition()134 val y = locationOnScreen[1] in findNodePosition()
184 val locationOnScreen = IntArray(2) { 0 } in MotionEvent() constant185 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()
697 private val locationOnScreen = IntArray(2) constant711 val (oldX, oldY) = locationOnScreen in pollForLocationOnScreenChange()712 composeView.getLocationOnScreen(locationOnScreen) in pollForLocationOnScreenChange()713 if (oldX != locationOnScreen[0] || oldY != locationOnScreen[1]) { in pollForLocationOnScreenChange()