Home
last modified time | relevance | path

Searched refs:Any (Results 1 – 25 of 95) sorted by relevance

1234

/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DWaitCondition.kt53 private val onFailure: ((T) -> Any)?,
54 private val onRetry: ((T) -> Any)?,
55 private val onSuccess: ((T) -> Any)?,
56 private val onStart: ((String) -> Any)?,
57 private val onEnd: (() -> Any)?
126 private var onStart: ((String) -> Any)? = null
127 private var onEnd: (() -> Any)? = null
128 private var onFailure: ((T) -> Any)? = null
129 private var onRetry: ((T) -> Any)? = null
130 private var onSuccess: ((T) -> Any)? = null
[all …]
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DDataPointType.kt32 private val jsonToValue: (jsonValue: Any) -> T,
33 private val valueToJson: (T) -> Any,
34 internal val ensureImmutable: (T & Any) -> T & Any = { it },
40 fun fromJson(jsonValue: Any): DataPoint<T> { in fromJson()
53 fun toJson(value: T): Any = valueToJson(value) in toJson()
DDataPoint.kt32 fun asJson(): Any in asJson()
61 data class ValueDataPoint<T> internal constructor(val value: T & Any, val type: DataPointType<T>) :
79 internal val instance = NullDataPoint<Any>() in asJson()
81 fun isNullValue(jsonValue: Any): Boolean { in asJson()
104 internal val instance = NotFoundDataPoint<Any>() in toString()
106 fun isNotFoundValue(jsonValue: Any): Boolean { in toString()
122 internal val instance = UnknownType<Any>() in asJson()
DJsonGoldenSerializer.kt67 private fun frameIdFromJson(jsonValue: Any): FrameId { in frameIdFromJson()
99 .filterIsInstance<ValueDataPoint<Any>>() in featureToJson()
122 private val unknownType: DataPointType<Any> =
/platform_testing/libraries/flicker/utils/src/android/tools/
DICache.kt20 data class Backup(val cache: MutableMap<Any, Any>)
21 fun <T : Any> get(element: T): T
DCacheImpl.kt20 private var cache = mutableMapOf<Any, Any>()
22 override fun <T : Any> get(element: T): T { in get()
DScenarioBuilder.kt25 private var extraConfig = mutableMapOf<String, Any?>()
36 fun withExtraConfig(key: String, value: Any?) = apply { extraConfig[key] = value } in <lambda>()
38 fun withExtraConfigs(cfg: Map<String, Any?>) = apply { extraConfig.putAll(cfg) } in <lambda>()
DScenarioImpl.kt38 config: Map<String, Any?>,
43 val extraConfig: Map<String, Any?>
75 override fun equals(other: Any?): Boolean { in getConfigValue()
DNoCache.kt20 override fun <T : Any> get(element: T): T { in get()
DExtensions.kt21 inline fun <reified T : Any> withCache(newInstancePredicate: () -> T): T = in withCache()
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/
DInjectedTestCase.kt28 override fun invokeExplosively(target: Any?, vararg params: Any?): Any { in invokeExplosively()
37 override fun equals(other: Any?): Boolean { in getName()
DRuleContainer.kt34 private val orderValues = IdentityHashMap<Any, Int>()
39 fun setOrder(rule: Any, order: Int) { in setOrder()
69 target: Any?, in apply()
91 val sortedRules: List<Any>
93 val result = mutableListOf<Any>()
100 internal class RuleEntry(val rule: Any, val type: Int, order: Int?) {
DIFlickerJUnitDecorator.kt27 fun getTestMethods(test: Any): List<FrameworkMethod>
34 fun getMethodInvoker(method: FrameworkMethod, test: Any): Statement
DITransitionRunner.kt23 fun runTransition(scenario: Scenario, test: Any, description: Description?)
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/
DFlickerTestData.kt35 val transitionSetup: List<FlickerTestData.() -> Any>
37 val transitions: List<FlickerTestData.() -> Any>
39 val transitionTeardown: List<FlickerTestData.() -> Any>
56 fun withTag(tag: String, commands: FlickerTestData.() -> Any)
DFlickerTestDataImpl.kt43 override val transitionSetup: List<FlickerTestData.() -> Any>,
45 override val transitions: List<FlickerTestData.() -> Any>,
47 override val transitionTeardown: List<FlickerTestData.() -> Any>,
DLegacyFlickerTestFactory.kt40 extraArgs: Map<String, Any> = emptyMap() in <lambda>()
59 extraArgs: Map<String, Any> = emptyMap() in <lambda>()
73 extraArgs: Map<String, Any> in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/testing/
DJsonSubject.kt26 class JsonSubject private constructor(failureMetadata: FailureMetadata, private val actual: Any?) : in <lambda>()
36 override fun isEqualTo(expected: Any?) { in <lambda>()
54 fun json(): Factory<JsonSubject, Any> { in <lambda>()
55 return Factory { failureMetadata: FailureMetadata, subject: Any? -> in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DArgs.kt23 private var value: Any? = null
64 private fun add(keyTokens: List<String>, currentToken: Int, value: Any) { in add()
88 value: Any in addToChildrenMap()
103 private fun addToChildMap(keyTokens: List<String>, currentToken: Int, value: Any) { in addToChildMap()
115 private fun parseValue(value: String, valueType: String): Any { in parseValue()
116 val result: Any? = in parseValue()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dcrystalball_metrics_utils.py17 from typing import Any, Dict
24 def export_to_crystalball(data: Dict[str, Any], output_dir: str, test_name: str) -> None: argument
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/
DExceptionMessageBuilder.kt58 fun setExpected(value: Any?) = apply { expected = value?.toString() ?: "null" } in <lambda>()
62 fun setActual(value: Any?) = setActual(listOf(value?.toString() ?: "null")) in setActual()
66 fun addExtraDescription(key: String, value: Any?) = addExtraDescription(Fact(key, value)) in setActual()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DConsts.kt27 internal fun description(obj: Any) = Description.createTestDescription(obj::class.java, "test")
/platform_testing/libraries/flicker/src/android/tools/flicker/legacy/runner/
DSetupTeardownRule.kt46 private val setupCommands: List<FlickerTestData.() -> Any> = flicker.transitionSetup,
47 private val teardownCommands: List<FlickerTestData.() -> Any> = flicker.transitionTeardown,
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/
DFact.kt20 data class Fact(val key: String, val value: Any? = null) {
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt90 val failure: Result<Any> = runCatching { this.isEmpty() } in internalWmCheck()
124 val failure: Result<Any> = runCatching { this.isEmpty() } in internalLayersCheck()
145 val failure: Result<Any> = runCatching { flicker.assertLayers { this.isEmpty() } } in exceptionMessageCheck()
166 val failure: Result<Any?> = runCatching { actual?.isHigher(expected?.region ?: Region()) } in validateVisibleRegion()

1234