Home
last modified time | relevance | path

Searched refs:jsonValue (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/motion/src/platform/test/motion/golden/
DDataPointType.kt32 private val jsonToValue: (jsonValue: Any) -> T,
40 fun fromJson(jsonValue: Any): DataPoint<T> { in fromJson()
42 NullDataPoint.isNullValue(jsonValue) -> DataPoint.nullValue() in fromJson()
43 NotFoundDataPoint.isNotFoundValue(jsonValue) -> DataPoint.notFound() in fromJson()
46 makeDataPoint(jsonToValue(jsonValue)) in fromJson()
DDataPoint.kt81 fun isNullValue(jsonValue: Any): Boolean { in asJson()
82 return jsonValue == JSONObject.NULL in asJson()
106 fun isNotFoundValue(jsonValue: Any): Boolean { in toString()
107 return jsonValue is JSONObject && in toString()
108 jsonValue.has("type") && in toString()
109 jsonValue.getString("type") == "not_found" in toString()
DJsonGoldenSerializer.kt67 private fun frameIdFromJson(jsonValue: Any): FrameId { in frameIdFromJson()
68 return when (jsonValue) { in frameIdFromJson()
69 is Number -> TimestampFrameId(jsonValue.toLong()) in frameIdFromJson()
70 is String -> SupplementalFrameId(jsonValue) in frameIdFromJson()
/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/
DDataPointTypeTest.kt34 jsonToValue = { jsonValue -> in <lambda>() method
36 if (jsonValue is String) Native(jsonValue) else throw UnknownTypeException() in <lambda>()