/platform_testing/libraries/motion/src/platform/test/motion/view/ |
D | ViewFeatureCaptures.kt | 23 import platform.test.motion.golden.asDataPoint in <lambda>() 34 val alpha = FeatureCapture<View, Float>("alpha") { view -> view.alpha.asDataPoint() } in view() 38 FeatureCapture<View, Float>("elevation") { view -> view.elevation.asDataPoint() } in view() 41 val x = FeatureCapture<View, Float>("x") { view -> view.x.asDataPoint() } in view() 44 val y = FeatureCapture<View, Float>("y") { view -> view.y.asDataPoint() } in view() 57 .asDataPoint() in view()
|
D | DrawableFeatureCaptures.kt | 24 import platform.test.motion.golden.asDataPoint in <lambda>() 28 val bounds = FeatureCapture<Drawable, Rect>("bounds") { it.bounds.asDataPoint() } in <lambda>() 29 val alpha = FeatureCapture<Drawable, Int>("alpha") { it.alpha.asDataPoint() } in <lambda>()
|
D | DataPointTypes.kt | 25 fun Rect.asDataPoint() = DataPointTypes.rect.makeDataPoint(this) in <lambda>() method 27 fun Point.asDataPoint() = DataPointTypes.point.makeDataPoint(this) in <lambda>() method
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/ |
D | DataPointTypesTest.kt | 31 assertThat(DataPointTypes.boolean.fromJson(true)).isEqualTo(true.asDataPoint()) in boolean_fromJson_native() 36 assertThat(DataPointTypes.boolean.fromJson("true")).isEqualTo(true.asDataPoint()) in boolean_fromJson_trueString() 41 assertThat(DataPointTypes.boolean.fromJson("false")).isEqualTo(false.asDataPoint()) in boolean_fromJson_falseString() 52 assertThat(DataPointTypes.float.fromJson(1.5f)).isEqualTo(1.5f.asDataPoint()) in float_fromJson_native() 57 assertThat(DataPointTypes.float.fromJson(1.5)).isEqualTo(1.5f.asDataPoint()) in float_fromJson_number() 62 assertThat(DataPointTypes.float.fromJson("1.5")).isEqualTo(1.5f.asDataPoint()) in float_fromJson_floatString() 78 assertThat(DataPointTypes.int.fromJson(1)).isEqualTo(1.asDataPoint()) in int_fromJson_native() 83 assertThat(DataPointTypes.int.fromJson(1.5)).isEqualTo(1.asDataPoint()) in int_fromJson_number() 88 assertThat(DataPointTypes.int.fromJson("1")).isEqualTo(1.asDataPoint()) in int_fromJson_floatString() 104 assertThat(DataPointTypes.string.fromJson("foo")).isEqualTo("foo".asDataPoint()) in string_fromJson_native() [all …]
|
D | JsonGoldenSerializerTest.kt | 84 listOf(Feature("foo", listOf(42.asDataPoint()))) in feature_withSingleDataPoint_specifiesType() 95 listOf(Feature("foo", listOf(42.asDataPoint(), 43.asDataPoint()))) in feature_withMultipleDataPoints_specifiesType() 107 listOf(Feature("foo", listOf(nullValue(), 43.asDataPoint()))) in feature_withNullDataPoints_specifiesTypeAndHandlesNull() 119 listOf(Feature("foo", listOf(notFound(), 43.asDataPoint()))) in feature_withNotFoundDataPoints_specifiesTypeAndHandlesNotFound() 143 listOf(Feature("foo", listOf(42.asDataPoint(), 42f.asDataPoint()))) in serialize_featureWithMultipleTypesPerDataPoint_throws() 155 listOf(Feature("foo", listOf(42.asDataPoint(), unknownType()))) in serialize_featureWithUnknownDataPoints_throws()
|
D | TimeSeriesTest.kt | 32 listOf(Feature("foo", dataPoints = listOf(1.asDataPoint(), 2.asDataPoint()))) in moreDataPointsThanFrames_throws() 40 val properties = listOf(Feature("foo", dataPoints = listOf(1.asDataPoint()))) in lessDataPointsThanFrames_throws()
|
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/ |
D | ComposeFeatureCaptures.kt | 29 import platform.test.motion.golden.asDataPoint 34 val size = FeatureCapture<SemanticsNode, IntSize>("size") { it.size.asDataPoint() } in <lambda>() 38 with(it.layoutInfo.density) { it.size.toSize().toDpSize().asDataPoint() } in <lambda>() 47 DpOffset(it.positionInRoot.x.toDp(), it.positionInRoot.y.toDp()).asDataPoint() in <lambda>() 59 it.config[MotionTestValues.alpha.semanticsPropertyKey].asDataPoint() in <lambda>()
|
D | DataPointTypes.kt | 32 fun Dp.asDataPoint() = DataPointTypes.dp.makeDataPoint(this) in Dp() method 34 fun IntSize.asDataPoint() = DataPointTypes.intSize.makeDataPoint(this) in Dp() method 36 fun Offset.asDataPoint() = DataPointTypes.offset.makeDataPoint(this) in Dp() method 38 fun DpSize.asDataPoint() = DataPointTypes.dpSize.makeDataPoint(this) in Dp() method 40 fun DpOffset.asDataPoint() = DataPointTypes.dpOffset.makeDataPoint(this) in Dp() method
|
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/ |
D | DataPointTypesTest.kt | 41 assertThat(dp.fromJson(1)).isEqualTo(1.dp.asDataPoint()) in dp_jsonConversion() 42 assertThat(1.dp.asDataPoint().asJson()).isEqualTo(1) in dp_jsonConversion() 71 assertThat(offset.fromJson("unspecified")).isEqualTo(Offset.Unspecified.asDataPoint()) in offset_jsonConversion() 72 assertThat(Offset.Unspecified.asDataPoint().asJson()).isEqualTo("unspecified") in offset_jsonConversion() 74 assertThat(offset.fromJson("infinite")).isEqualTo(Offset.Infinite.asDataPoint()) in offset_jsonConversion() 75 assertThat(Offset.Infinite.asDataPoint().asJson()).isEqualTo("infinite") in offset_jsonConversion()
|
D | MotionTestValuesTest.kt | 41 import platform.test.motion.golden.asDataPoint 104 motion.timeSeries.assertSingleFeatureMatches("foo", .5f.asDataPoint()) in featureWithDataPointType_defaultMatcherAndName() 122 motion.timeSeries.assertSingleFeatureMatches("foo", .5f.asDataPoint()) in featureWithDataPointType_matchingViaTestTag() 148 motion.timeSeries.assertSingleFeatureMatches("bar", .5f.asDataPoint()) in featureWithDataPointType_withCustomName() 160 motion.timeSeries.assertSingleFeatureMatches("foo_times3", 1.5f.asDataPoint()) in featureWithFeatureCapture_defaultMatcherAndName() 178 motion.timeSeries.assertSingleFeatureMatches("foo_times3", 1.5f.asDataPoint()) in featureWithFeatureCapture_matchingViaTestTag() 202 motion.timeSeries.assertSingleFeatureMatches("bar", 1.5f.asDataPoint()) in featureWithFeatureCapture_withCustomName() 231 val times3 = FeatureCapture<Float, Float>("times3") { (it * 3).asDataPoint() } in <lambda>()
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | DataPointTypes.kt | 21 fun Float.asDataPoint() = DataPointTypes.float.makeDataPoint(this) in <lambda>() method 23 fun Boolean.asDataPoint() = DataPointTypes.boolean.makeDataPoint(this) in <lambda>() method 25 fun Int.asDataPoint() = DataPointTypes.int.makeDataPoint(this) in <lambda>() method 27 fun String.asDataPoint() = DataPointTypes.string.makeDataPoint(this) in <lambda>() method
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/ |
D | TimeSeriesSubjectTest.kt | 29 import platform.test.motion.golden.asDataPoint in <lambda>() 142 listOf(Feature("foo", listOf(1.asDataPoint(), 2.asDataPoint()))) in <lambda>() 147 listOf(Feature("foo", listOf(1.asDataPoint(), 3.asDataPoint()))) in <lambda>() 173 Feature(name, List(dataPoints) { it.asDataPoint() }) in <lambda>() 175 Feature(name, List(dataPoints) { it.toString().asDataPoint() }) in <lambda>()
|