Home
last modified time | relevance | path

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

/platform_testing/libraries/flicker/utils/src/android/tools/helpers/
DRotationUtils.kt108 var delta = newRotation.value - oldRotation.value in rotateBounds() variable
109 if (delta < 0) delta += 4 in rotateBounds()
110 return Rotation.getByValue(delta) in rotateBounds()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DBetterSwipe.kt147 internal fun moveBy(delta: PointF, currentTime: Long, sync: Boolean) { in <lambda>()
148 val targetPoint = PointF(lastPoint.x + delta.x, lastPoint.y + delta.y) in <lambda>()
230 fun moveBy(delta: PointF, duration: Duration = DEFAULT_DURATION): Swipes { in <lambda>()
231 log("Moving ${swipes.size} touches by $delta") in <lambda>()
238 val stepDelta = PointF(delta.x / steps, delta.y / steps) in <lambda>()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java104 long delta = 0; in assertImageSimilar() local
133 delta += Math.abs(deltaR); in assertImageSimilar()
134 delta += Math.abs(deltaG); in assertImageSimilar()
135 delta += Math.abs(deltaB); in assertImageSimilar()
141 float percentDifference = (float) (delta * 100 / (double) total); in assertImageSimilar()