Searched refs:Matrix33 (Results 1 – 6 of 6) sorted by relevance
/platform_testing/libraries/flicker/utils/test/src/android/tools/datatypes/ |
D | Matrix33Test.kt | 22 class Matrix33Test : DatatypeTest<Matrix33>() { in <lambda>() 23 override val valueEmpty = Matrix33.EMPTY in <lambda>() 24 override val valueTest = Matrix33.from(0f, 1f, 2f, 3f, 4f, 5f) in <lambda>() 25 override val valueEqual = Matrix33.from(0f, 1f, 2f, 3f, 4f, 5f) in <lambda>() 26 override val valueDifferent = Matrix33.from(6f, 7f, 8f, 9f, 10f, 11f) in <lambda>() 34 Matrix33.from(dsdx = 1f, dtdx = 0f, tx, dsdy = 0f, dtdy = 1f, ty) in <lambda>() 36 createMatrix = { tx, ty -> Matrix33.identity(tx, ty) } in <lambda>() 44 Matrix33.from(dsdx = 0f, dtdx = 1f, tx, dsdy = -1f, dtdy = 0f, ty) in <lambda>() 46 createMatrix = { tx, ty -> Matrix33.rot90(tx, ty) } in <lambda>() 54 Matrix33.from(dsdx = -1f, dtdx = 0f, tx, dsdy = 0f, dtdy = -1f, ty) in <lambda>() [all …]
|
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/ |
D | Matrix33.kt | 31 class Matrix33 class 53 val EMPTY: Matrix33 56 fun identity(x: Float, y: Float): Matrix33 = withCache { in <lambda>() 60 fun rot270(x: Float, y: Float): Matrix33 = withCache { in <lambda>() 64 fun rot180(x: Float, y: Float): Matrix33 = withCache { in <lambda>() 68 fun rot90(x: Float, y: Float): Matrix33 = withCache { in <lambda>() 79 ): Matrix33 = withCache { Matrix33(dsdx, dtdx, tx, dsdy, dtdy, ty) } in from()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | Transform.kt | 21 import android.tools.datatypes.Matrix33 29 class Transform private constructor(val type: Int?, val matrix: Matrix33) { 140 private fun multiplyRect(matrix: Matrix33, rect: RectF): RectF { in multiplyRect() 161 private fun multiplyVec2(matrix: Matrix33, x: Float, y: Float): Vec2 { in multiplyVec2() 191 get() = withCache { Transform(type = null, matrix = Matrix33.EMPTY) } in <lambda>() 216 fun from(type: Int?, matrix: Matrix33): Transform = withCache { Transform(type, matrix) } in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | LayersTraceParser.kt | 25 import android.tools.datatypes.Matrix33 in <lambda>() 301 private fun getMatrix(transform: Args?, position: Args?): Matrix33 { in <lambda>() 312 return Matrix33.from( 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/flicker/utils/test/src/android/tools/utils/ |
D | MockLayerBuilder.kt | 22 import android.tools.datatypes.Matrix33 in <lambda>() 67 val transform = Transform.from(0, Matrix33.identity(0f, 0f)) in <lambda>()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/ |
D | WindowManagerStateHelperTest.kt | 26 import android.tools.datatypes.Matrix33 in <lambda>() 96 val transform = Transform.from(0, Matrix33.EMPTY) in <lambda>()
|