Searched refs:validateFrom (Results 1 – 5 of 5) sorted by relevance
30 validateFrom({ 1 }) { in required_valuePresent()46 validateFrom({ null }) { in required_valueAbsent()62 validateFrom({ 1 }) { in optional_valuePresent()78 validateFrom({ null }) { in optional_valueAbsent()94 validateFrom(mapOf("key" to 1)::get) { in ignored_valuePresent()110 validateFrom({ null }) { in ignored_valueAbsent()124 val result: ValidationResult<String> = validateFrom({ null }) { error("something") } in thrown_exception()
29 import com.android.intentresolver.validation.validateFrom38 return validateFrom((launch.intent.extras ?: Bundle())::get) { in readResolverRequest()
56 import com.android.intentresolver.validation.validateFrom73 return validateFrom(extras::get) { in readChooserRequest()
48 import com.android.intentresolver.validation.validateFrom in <lambda>()110 return validateFrom(bundle::get) { in readCallbackResponse()
82 fun <T> validateFrom(source: (String) -> Any?, validate: Validation.() -> T): ValidationResult<T> { in validate() method