Home
last modified time | relevance | path

Searched refs:Validator (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/
DValidation.kt37 @Throws(InvalidResultError::class) fun <T> required(property: Validator<T>): T in <lambda>()
47 fun <T> optional(property: Validator<T>): T? in <lambda>()
54 fun <T> ignored(property: Validator<T>, reason: String) in <lambda>()
58 interface Validator<T> { interface
102 override fun <T> optional(property: Validator<T>): T? = validate(property, WARNING) in optional()
104 override fun <T> required(property: Validator<T>): T { in optional()
108 override fun <T> ignored(property: Validator<T>, reason: String) { in ignored()
116 private fun <T> validate(property: Validator<T>, importance: Importance): T? { in validate()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DValidatedEditTextPreference.java35 public interface Validator { interface in ValidatedEditTextPreference
40 private Validator mValidator;
75 public void setValidator(Validator validator) { in setValidator()
83 public Validator getValidator() { in getValidator()
DValidatedEditTextPreferenceDialogFragment.java40 private ValidatedEditTextPreference.Validator mValidator;
61 ValidatedEditTextPreference.Validator validator = in onBindDialogView()
76 private void attachValidatorToView(View view, ValidatedEditTextPreference.Validator validator) { in attachValidatorToView()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/types/
DValidators.kt18 import com.android.intentresolver.validation.Validator
20 inline fun <reified T : Any> value(key: String): Validator<T> { in value()
24 inline fun <reified T : Any> array(key: String): Validator<List<T>> { in array()
DIntentOrUri.kt25 import com.android.intentresolver.validation.Validator
28 class IntentOrUri(override val key: String) : Validator<Intent> {
DSimpleValue.kt23 import com.android.intentresolver.validation.Validator
31 ) : Validator<T> {
DParceledArray.kt23 import com.android.intentresolver.validation.Validator
32 ) : Validator<List<T>> {
/packages/apps/Settings/src/com/android/settings/widget/
DValidatedEditTextPreference.java40 public interface Validator { interface in ValidatedEditTextPreference
45 private Validator mValidator;
114 public void setValidator(Validator validator) { in setValidator()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceNameValidator.java23 import com.android.adservices.service.common.Validator;
32 public class CustomAudienceNameValidator implements Validator<String> {
DCustomAudienceUserBiddingSignalsValidator.java25 import com.android.adservices.service.common.Validator;
38 public class CustomAudienceUserBiddingSignalsValidator implements Validator<AdSelectionSignals> {
DCustomAudienceImpl.java33 import com.android.adservices.service.common.Validator;
58 @NonNull private final Validator<CustomAudience> mCustomAudienceValidator;
67 @NonNull Validator<CustomAudience> customAudienceValidator, in CustomAudienceImpl()
DCustomAudienceActivationTimeValidator.java23 import com.android.adservices.service.common.Validator;
34 public class CustomAudienceActivationTimeValidator implements Validator<Instant> {
DCustomAudienceTimestampValidator.java23 import com.android.adservices.service.common.Validator;
34 public class CustomAudienceTimestampValidator implements Validator<CustomAudience> {
DCustomAudienceBlobValidator.java24 import com.android.adservices.service.common.Validator;
34 public class CustomAudienceBlobValidator implements Validator<CustomAudienceBlob> {
DCustomAudienceFieldSizeValidator.java30 import com.android.adservices.service.common.Validator;
41 public class CustomAudienceFieldSizeValidator implements Validator<CustomAudience> {
DCustomAudienceValidator.java34 import com.android.adservices.service.common.Validator;
45 public class CustomAudienceValidator implements Validator<CustomAudience> {
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DAdvertiserSetValidator.java23 import com.android.adservices.service.common.Validator;
38 public class AdvertiserSetValidator implements Validator<Set<AdTechIdentifier>> {
DAuctionResultValidator.java30 import com.android.adservices.service.common.Validator;
42 public class AuctionResultValidator implements Validator<AuctionResult> {
DAdSelectionFromOutcomesConfigValidator.java28 import com.android.adservices.service.common.Validator;
39 implements Validator<AdSelectionFromOutcomesConfig> {
DAdSelectionConfigValidator.java32 import com.android.adservices.service.common.Validator;
43 public class AdSelectionConfigValidator implements Validator<AdSelectionConfig> {
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DValidatedEditTextPreferenceDialogFragmentTest.java97 new ValidatedEditTextPreference.Validator() { in onInvalidInput_shouldDisablePositiveButton_and_disallowEnterToSubmit()
118 new ValidatedEditTextPreference.Validator() { in onValidInput_shouldEnablePositiveButton_and_allowEnterToSubmit()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Deditor.rs9 use rustyline::validate::Validator;
80 impl Validator for BtHelper {}
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiDeviceNameTextValidator.java25 public class WifiDeviceNameTextValidator implements ValidatedEditTextPreference.Validator {
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DFrequencyCapAdDataValidator.java28 public interface FrequencyCapAdDataValidator extends Validator<AdData> {
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingNameTextValidator.java27 public class AudioSharingNameTextValidator implements ValidatedEditTextPreference.Validator {

123