Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 41) sorted by relevance

12

/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/
DMatrix33.kt56 fun identity(x: Float, y: Float): Matrix33 = withCache { in <lambda>()
57 from(dsdx = 1f, dtdx = 0f, x, dsdy = 0f, dtdy = 1f, y) in <lambda>()
60 fun rot270(x: Float, y: Float): Matrix33 = withCache { in <lambda>()
61 from(dsdx = 0f, dtdx = -1f, x, dsdy = 1f, dtdy = 0f, y) in <lambda>()
64 fun rot180(x: Float, y: Float): Matrix33 = withCache { in <lambda>()
65 from(dsdx = -1f, dtdx = 0f, x, dsdy = 0f, dtdy = -1f, y) in <lambda>()
68 fun rot90(x: Float, y: Float): Matrix33 = withCache { in <lambda>()
69 from(dsdx = 0f, dtdx = 1f, x, dsdy = -1f, dtdy = 0f, y) in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DTransform.kt138 private data class Vec2(val x: Float, val y: Float) constant in android.tools.traces.surfaceflinger.Transform.Vec2
153 /* top */ arrayOf(leftTop.y, rightTop.y, leftBottom.y, rightBottom.y).minOrNull() ?: 0f, in multiplyRect()
156 /* bottom */ arrayOf(leftTop.y, rightTop.y, leftBottom.y, rightBottom.y).minOrNull() in multiplyRect()
161 private fun multiplyVec2(matrix: Matrix33, x: Float, y: Float): Vec2 { in multiplyVec2()
166 matrix.dsdx * x + matrix.dsdy * y + matrix.tx, in multiplyVec2()
167 matrix.dtdx * x + matrix.dtdy * y + matrix.ty in multiplyVec2()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DSimpleGLSurfaceView.java57 float y = e.getY(); in onTouchEvent() local
63 float dy = y - mPreviousY; in onTouchEvent()
66 if (y > getHeight() / 2) { in onTouchEvent()
82 mPreviousY = y; in onTouchEvent()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DMSSIMMatcher.kt168 y: Int, in shouldIgnorePixel()
173 return !filter[indexFromXAndY(x, y, stride, start)] in shouldIgnorePixel()
188 for (y in 0 until windowHeight) { in shouldIgnoreWindow() method
190 if (shouldIgnorePixel(x, y, start, stride, filter)) { in shouldIgnoreWindow()
193 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in shouldIgnoreWindow()
209 for (y in 0 until windowHeight) { in numPixelsToCompareInWindow() variable
211 if (!shouldIgnorePixel(x, y, start, stride, filter)) { in numPixelsToCompareInWindow()
222 private fun indexFromXAndY(x: Int, y: Int, stride: Int, offset: Int): Int { in indexFromXAndY()
223 return x + y * stride + offset in indexFromXAndY()
250 for (y in 0 until windowHeight) { in getMeans() variable
[all …]
DHumanEyeMatcher.kt76 fun getEasiestThresholdFailed(x: Int, y: Int): Int? { in <lambda>()
77 val colorDiff = colorDiffSqArray[x + width * y] in <lambda>()
96 val y = index / width in <lambda>() constant
98 val currThreshold = getEasiestThresholdFailed(x, y)!! in <lambda>()
100 val upThreshold = if (y > 0) getEasiestThresholdFailed(x, y - 1) else null in <lambda>()
101 val downThreshold = if (y < height - 1) getEasiestThresholdFailed(x, y + 1) else null in <lambda>()
102 val leftThreshold = if (x > 0) getEasiestThresholdFailed(x - 1, y) else null in <lambda>()
103 val rightThreshold = if (x < width - 1) getEasiestThresholdFailed(x + 1, y) else null in <lambda>()
DBitmapMatcher.kt117 for (y in startY..endY) { in <lambda>() constant
118 filterArr[y * width + x] = true in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DViewFeatureCaptures.kt44 val y = FeatureCapture<View, Float>("y") { view -> view.y.asDataPoint() } in view() constant
55 y = outLocation[1] in view()
DDataPointTypes.kt42 put("y", it.y) in <lambda>()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java105 for (int y = 0; y < imageHeight; y++) { in assertImageSimilar()
107 int goldenRgb = goldenImage.getRGB(x, y); in assertImageSimilar()
108 int rgb = image.getRGB(x, y); in assertImageSimilar()
110 deltaImage.setRGB(imageWidth + x, y, 0x00808080); in assertImageSimilar()
116 deltaImage.setRGB(imageWidth + x, y, 0x00808080); in assertImageSimilar()
131 deltaImage.setRGB(imageWidth + x, y, newRGB); in assertImageSimilar()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DBetterSwipe.kt69 @JvmStatic fun from(start: Point) = Swipe(PointF(start.x.toFloat(), start.y.toFloat())) in <lambda>()
123 return to(PointF(end.x.toFloat(), end.y.toFloat()), duration, interpolator) in <lambda>()
128 return to(PointF(lastPoint.x, lastPoint.y), PAUSE_DURATION) in <lambda>()
148 val targetPoint = PointF(lastPoint.x + delta.x, lastPoint.y + delta.y) in <lambda>()
238 val stepDelta = PointF(delta.x / steps, delta.y / steps) in <lambda>()
281 y = p.y in getMotionEvent()
302 PointF(lerp(x, b.x, amount), lerp(y, b.y, amount)) in lerp()
DDeviceHelpers.kt300 fun UiDevice.doubleTapAt(x: Int, y: Int) { in UiDevice()
301 click(x, y) in UiDevice()
303 click(x, y) in UiDevice()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowLayoutParams.kt31 val y: Int = 0, constant in android.tools.traces.wm.WindowLayoutParams
68 if (y != other.y) return false in equals()
104 result = 31 * result + y in hashCode()
137 return "WindowLayoutParams(type=$type, x=$x, y=$y, width=$width, height=$height, " + in toString()
163 y: Int, in from()
195 y, in from()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt303 val y = position?.getChild("y")?.getFloat() ?: 0f in <lambda>() constant
309 return transform?.getChild("type")?.getInt().getDefaultTransform(x, y) in <lambda>()
318 y in <lambda>()
322 private fun Int?.getDefaultTransform(x: Float, y: Float): Matrix33 { in <lambda>()
325 this == null -> Matrix33.identity(x, y) in <lambda>()
328 Matrix33.rot270(x, y) in <lambda>()
330 isFlagSet(Transform.FLIP_V_VAL or Transform.FLIP_H_VAL) -> Matrix33.rot180(x, y) in <lambda>()
332 isFlagSet(Transform.ROT_90_VAL) -> Matrix33.rot90(x, y) in <lambda>()
334 isFlagClear(Transform.SCALE_VAL or Transform.ROTATE_VAL) -> Matrix33.identity(x, y) in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DColorUtils.kt39 fun Bitmap.columnColor(x: Int): List<Color> = (0 until height).map { y -> getColor(x, y) } in darkerThan() method
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java118 for (int y = 0; y < bitmap.getHeight(); ++y) { in getMostColor()
119 @ColorInt int color = bitmap.getColor(x, y).toArgb(); in getMostColor()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DViewCapture.kt274 val y = locationInWindow[1] in getBoundsInWindow() constant
275 return Rect(x, y, x + width, y + height) in getBoundsInWindow()
287 val y = locationInSurface[1] in getBoundsInSurface() constant
288 val bounds = Rect(x, y, x + width, y + height) in getBoundsInSurface()
/platform_testing/tools/automotive/proxy/
Dproxy.cpp30 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) argument
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt211 var y = 0f in render() variable
213 val top = y + (tileHeight - screenshotHeight) / 2 in render()
229 /* y = */ y + (tileHeight + textBounds.height()) / 2, in render()
233 y += tileHeight in render()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DDataPointTypesTest.kt62 assertThat(dpOffset).convertsJsonObject(DpOffset(x = 1.dp, y = 2.dp), """{"x":1, "y": 2}""") in dpOffset_jsonConversion()
69 assertThat(offset).convertsJsonObject(Offset(x = 1f, y = 2.5f), """{"x":1, "y": 2.5}""") in offset_jsonConversion()
DComposeFeatureCapturesTest.kt75 Box(Modifier.offset(x = 10.dp, y = 20.dp)) { in positionInRoot_capturesDataPoint()
76 Box(Modifier.offset(x = 1.dp, y = 2.dp).testTag("box")) in positionInRoot_capturesDataPoint()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/
DUnfoldAnimationTestingUtils.kt81 val oldPosition = if (axis == Axis.X) old.position.x else old.position.y in <lambda>()
82 val newPosition = if (axis == Axis.X) new.position.x else new.position.y in <lambda>()
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DDataPointTypes.kt101 put("y", it.y.value) in Dp()
125 put("y", it.y) in Dp()
DComposeFeatureCaptures.kt47 DpOffset(it.positionInRoot.x.toDp(), it.positionInRoot.y.toDp()).asDataPoint() in <lambda>()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DNexusLauncherStrategy.java123 start.x, start.y, start.x, endY, (start.y - endY) / 100); // 100 px/step in openAllApps()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DNexusLauncherStrategy.java132 start.y, in openAllApps()
135 (start.y - endY) / 100); // 100 px/step in openAllApps()

12