Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 58) sorted by relevance

123

/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
151 /* left */ arrayOf(leftTop.x, rightTop.x, leftBottom.x, rightBottom.x).minOrNull() in multiplyRect()
154 /* right */ arrayOf(leftTop.x, rightTop.x, leftBottom.x, rightBottom.x).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.java56 float x = e.getX(); in onTouchEvent() local
62 float dx = x - mPreviousX; in onTouchEvent()
71 if (x < getWidth() / 2) { in onTouchEvent()
81 mPreviousX = x; in onTouchEvent()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DMSSIMMatcher.kt167 x: Int, in shouldIgnorePixel()
173 return !filter[indexFromXAndY(x, y, stride, start)] in shouldIgnorePixel()
189 for (x in 0 until windowWidth) { 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()
210 for (x in 0 until windowWidth) { 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()
251 for (x in 0 until windowWidth) { in getMeans() variable
[all …]
DHumanEyeMatcher.kt76 fun getEasiestThresholdFailed(x: Int, y: Int): Int? { in <lambda>()
77 val colorDiff = colorDiffSqArray[x + width * y] in <lambda>()
95 val x = 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.kt116 for (x in startX..endX) { in <lambda>() constant
118 filterArr[y * width + x] = true in <lambda>()
/platform_testing/libraries/sts-common-util/sts-sdk/package/
Dgradle.properties4 gradle=build -x lint -x lintVitalRelease
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DColorUtils.kt27 val firstColumn = screenshot.columnColor(x = 0) in <lambda>()
28 val lastColumn = screenshot.columnColor(x = screenshot.width - 1) in <lambda>()
39 fun Bitmap.columnColor(x: Int): List<Color> = (0 until height).map { y -> getColor(x, y) } in darkerThan()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DViewFeatureCaptures.kt41 val x = FeatureCapture<View, Float>("x") { view -> view.x.asDataPoint() } in view() constant
54 x = outLocation[0] in view()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DScheduler.java121 int x = 0;
124 while (gcd(x, modulus) != 1) {
125 x = mRandom.nextInt(modulus);
128 return x % modulus;
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/
DImageUtils.java106 for (int x = 0; x < imageWidth; x++) { 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>()
280 x = p.x in getMotionEvent()
302 PointF(lerp(x, b.x, amount), lerp(y, b.y, amount)) in lerp()
/platform_testing/libraries/motion/tests/src/platform/test/motion/testing/
DSampleScene.kt35 ValueAnimator.ofFloat(box.x, 0f).apply { in createSlideLeftAnimator()
36 addUpdateListener { box.x = it.animatedValue as Float } in createSlideLeftAnimator()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/
DWindowLayoutParams.kt30 val x: Int = 0, constant in android.tools.traces.wm.WindowLayoutParams
67 if (x != other.x) return false in equals()
103 result = 31 * result + x in hashCode()
137 return "WindowLayoutParams(type=$type, x=$x, y=$y, width=$width, height=$height, " + in toString()
162 x: Int, in from()
194 x, in from()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt302 val x = position?.getChild("x")?.getFloat() ?: 0f in <lambda>() constant
309 return transform?.getChild("type")?.getInt().getDefaultTransform(x, y) in <lambda>()
315 x, 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/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java117 for (int x = 0; x < bitmap.getWidth(); ++x) { in getMostColor()
119 @ColorInt int color = bitmap.getColor(x, y).toArgb(); in getMostColor()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dmedia_utils.py121 actual_song_metadata = [x.split('=', 1)[1] for x in actual_dumpsys_metadata if
122 x.count(constants.NULL_VALUE) < 3 and len(x.split('=', 1)) > 1]
297 for x in fm_frequency:
298 self.common_utils.click_on_ui_element_with_text(x)
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DViewCapture.kt273 val x = locationInWindow[0] in getBoundsInWindow() constant
275 return Rect(x, y, x + width, y + height) in getBoundsInWindow()
286 val x = locationInSurface[0] 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/tests/health/scenarios/src/android/platform/test/scenario/generic/
DMathWork.java91 double x = MULTIPLIER; in run() local
93 x *= MULTIPLIER; in run()
/platform_testing/libraries/motion/tests/src/platform/test/motion/view/
DDataPointTypesTest.kt45 native.x = 3 in point_dataPoint_isImmutable()
46 assertThat((dataPoint as ValueDataPoint).value.x).isEqualTo(1) in point_dataPoint_isImmutable()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt160 var x = 0f in render() variable
162 val left = x + (tileWidth - screenshotWidth) / 2 in render()
176 /* x = */ x + tileWidth / 2, in render()
181 x += tileWidth 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()
/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.kt100 put("x", it.x.value) in Dp()
124 put("x", it.x) in Dp()

123