Home
last modified time | relevance | path

Searched refs:validateFrom (Results 1 – 5 of 5) sorted by relevance

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/validation/
DValidationTest.kt30 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()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestReader.kt29 import com.android.intentresolver.validation.validateFrom
38 return validateFrom((launch.intent.extras ?: Bundle())::get) { in readResolverRequest()
DChooserRequestReader.kt56 import com.android.intentresolver.validation.validateFrom
73 return validateFrom(extras::get) { in readChooserRequest()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/update/
DSelectionChangeCallback.kt48 import com.android.intentresolver.validation.validateFrom in <lambda>()
110 return validateFrom(bundle::get) { in readCallbackResponse()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/
DValidation.kt82 fun <T> validateFrom(source: (String) -> Any?, validate: Validation.() -> T): ValidationResult<T> { in validate() method