/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/ |
D | Matrix33.kt | 56 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/ |
D | Transform.kt | 138 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/ |
D | SimpleGLSurfaceView.java | 57 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/ |
D | MSSIMMatcher.kt | 168 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 …]
|
D | HumanEyeMatcher.kt | 76 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>()
|
D | BitmapMatcher.kt | 117 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/ |
D | ViewFeatureCaptures.kt | 44 val y = FeatureCapture<View, Float>("y") { view -> view.y.asDataPoint() } in view() constant 55 y = outLocation[1] in view()
|
D | DataPointTypes.kt | 42 put("y", it.y) in <lambda>()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 105 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/ |
D | BetterSwipe.kt | 69 @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()
|
D | DeviceHelpers.kt | 300 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/ |
D | WindowLayoutParams.kt | 31 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/ |
D | LayersTraceParser.kt | 303 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/ |
D | ColorUtils.kt | 39 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/ |
D | ThemeHelper.java | 118 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/ |
D | ViewCapture.kt | 274 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/ |
D | proxy.cpp | 30 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) argument
|
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/ |
D | Filmstrip.kt | 211 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/ |
D | DataPointTypesTest.kt | 62 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()
|
D | ComposeFeatureCapturesTest.kt | 75 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/ |
D | UnfoldAnimationTestingUtils.kt | 81 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/ |
D | DataPointTypes.kt | 101 put("y", it.y.value) in Dp() 125 put("y", it.y) in Dp()
|
D | ComposeFeatureCaptures.kt | 47 DpOffset(it.positionInRoot.x.toDp(), it.positionInRoot.y.toDp()).asDataPoint() in <lambda>()
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/ |
D | NexusLauncherStrategy.java | 123 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/ |
D | NexusLauncherStrategy.java | 132 start.y, in openAllApps() 135 (start.y - endY) / 100); // 100 px/step in openAllApps()
|