Home
last modified time | relevance | path

Searched refs:validate (Results 1 – 25 of 252) sorted by relevance

1234567891011

/frameworks/base/packages/SettingsProvider/test/src/android/provider/settings/validators/
DSettingsValidatorsTest.java52 assertTrue(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("1")); in testNonNegativeIntegerValidator()
53 assertTrue(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("0")); in testNonNegativeIntegerValidator()
54 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("-1")); in testNonNegativeIntegerValidator()
55 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("rectangle")); in testNonNegativeIntegerValidator()
60 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate(null)); in testNonNegativeIntegerValidator_onNullValue_returnsFalse()
65 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("1")); in testAnyIntegerValidator()
66 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("0")); in testAnyIntegerValidator()
67 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("-1")); in testAnyIntegerValidator()
68 assertFalse(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("rectangle")); in testAnyIntegerValidator()
73 assertFalse(SettingsValidators.ANY_INTEGER_VALIDATOR.validate(null)); in testAnyIntegerValidator_onNullValue_returnsFalse()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/
DCredentialTest.java180 assertTrue(cred.validate()); in validateUserCredential()
183 assertTrue(cred.validate()); in validateUserCredential()
197 assertTrue(cred.validate()); in validateUserCredentialWithoutCaCert()
211 assertFalse(cred.validate()); in validateUserCredentialWithEapTls()
214 assertFalse(cred.validate()); in validateUserCredentialWithEapTls()
229 assertFalse(cred.validate()); in validateUserCredentialWithoutRealm()
232 assertFalse(cred.validate()); in validateUserCredentialWithoutRealm()
246 assertFalse(cred.validate()); in validateUserCredentialWithoutUsername()
249 assertFalse(cred.validate()); in validateUserCredentialWithoutUsername()
263 assertFalse(cred.validate()); in validateUserCredentialWithoutPassword()
[all …]
DUpdateParameterTest.java134 assertFalse(updateParam.validate()); in validateUpdateParameterWithDefault()
145 assertTrue(createUpdateParameter().validate()); in validateUpdateParameterWithFullPolicy()
157 assertFalse(updateParam.validate()); in validateUpdateParameterWithUnknowMethod()
169 assertFalse(updateParam.validate()); in validateUpdateParameterWithUnknowRestriction()
183 assertFalse(updateParam.validate()); in validateUpdateParameterWithUsernameExceedingMaxSize()
195 assertFalse(updateParam.validate()); in validateUpdateParameterWithEmptyUsername()
209 assertFalse(updateParam.validate()); in validateUpdateParameterWithPasswordExceedingMaxSize()
221 assertFalse(updateParam.validate()); in validateUpdateParameterWithEmptyPassword()
234 assertFalse(updateParam.validate()); in validateUpdateParameterWithPasswordContainedInvalidPadding()
246 assertFalse(updateParam.validate()); in validateUpdateParameterWithoutTrustRootCertUrl()
[all …]
DPolicyTest.java197 assertFalse(policy.validate()); in validatePolicyWithDefault()
208 assertTrue(createPolicy().validate()); in validatePolicyWithFullPolicy()
220 assertFalse(policy.validate()); in validatePolicyWithoutPolicyUpdate()
232 assertFalse(policy.validate()); in validatePolicyWithInvalidPolicyUpdate()
248 assertFalse(policy.validate()); in validatePolicyWithRoamingPartnerWithoutFQDN()
265 assertFalse(policy.validate()); in validatePolicyWithRoamingPartnerWithoutCountries()
280 assertFalse(policy.validate()); in validatePolicyWithInvalidPortStringInProtoPortMap()
294 assertFalse(policy.validate()); in validatePolicyWithSsidExclusionListSizeExceededMax()
310 assertFalse(policy.validate()); in validatePolicyWithInvalidSsid()
DHomeSpTest.java141 assertTrue(homeSp.validate()); in validateValidHomeSp()
153 assertFalse(homeSp.validate()); in validateHomeSpWithoutFqdn()
165 assertFalse(homeSp.validate()); in validateHomeSpWithoutFriendlyName()
177 assertTrue(homeSp.validate()); in validateHomeSpWithoutHomeNetworkIds()
195 assertFalse(homeSp.validate()); in validateHomeSpWithInvalidHomeNetworkIds()
/frameworks/base/core/java/com/android/internal/util/
DAnnotationValidations.java50 public static void validate(Class<UserIdInt> annotation, UserIdInt ignored, int value) { in validate() method in AnnotationValidations
57 public static void validate(Class<AppIdInt> annotation, AppIdInt ignored, int value) { in validate() method in AnnotationValidations
63 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() method in AnnotationValidations
65 validate(annotation, ignored, value, paramName1, param1); in validate()
66 validate(annotation, ignored, value, paramName2, param2); in validate()
69 public static void validate(Class<IntRange> annotation, IntRange ignored, int value, in validate() method in AnnotationValidations
88 public static void validate(Class<IntRange> annotation, IntRange ignored, long value, in validate() method in AnnotationValidations
90 validate(annotation, ignored, value, paramName1, param1); in validate()
91 validate(annotation, ignored, value, paramName2, param2); in validate()
97 public static void validate(Class<IntRange> annotation, IntRange ignored, long value, in validate() method in AnnotationValidations
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScript.java235 validate(); in nContextDestroy()
251 validate(); in nContextSetSurface()
256 validate(); in nContextSetSurfaceTexture()
261 validate(); in nContextSetPriority()
266 validate(); in nContextSetCacheDir()
271 validate(); in nContextDump()
276 validate(); in nContextFinish()
282 validate(); in nContextSendMessage()
288 validate(); in nContextBindRootScript()
293 validate(); in nContextBindSampler()
[all …]
DRenderScriptGL.java211 validate(); in setSurface()
230 validate(); in setSurfaceTexture()
268 validate(); in pause()
278 validate(); in resume()
291 validate(); in bindRootScript()
304 validate(); in bindProgramStore()
316 validate(); in bindProgramFragment()
329 validate(); in bindProgramRaster()
342 validate(); in bindProgramVertex()
DScriptIntrinsicLUT.java64 private void validate(int index, int value) { in validate() method in ScriptIntrinsicLUT
80 validate(index, value); in setRed()
92 validate(index, value); in setGreen()
104 validate(index, value); in setBlue()
116 validate(index, value); in setAlpha()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java187 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
190 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
193 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
196 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
199 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
202 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
205 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii()
219 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_Hex()
229 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString()
232 assertFalse(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java306 validate(); in nContextDestroy()
322 validate(); in nContextSetPriority()
327 validate(); in nContextDump()
332 validate(); in nContextFinish()
338 validate(); in nContextSendMessage()
355 validate(); in nElementCreate()
360 validate(); in nElementCreate2()
365 validate(); in nElementGetNativeData()
371 validate(); in nElementGetSubElements()
377 validate(); in nTypeCreate()
[all …]
DScriptIntrinsicLUT.java70 private void validate(int index, int value) {
86 validate(index, value);
98 validate(index, value);
110 validate(index, value);
122 validate(index, value);
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSettingsValidators.java43 public boolean validate(@Nullable String value) {
50 public boolean validate(@Nullable String value) {
61 public boolean validate(@Nullable String value) {
73 public boolean validate(@Nullable String value) {
90 public boolean validate(@Nullable String value) {
100 public boolean validate(@Nullable String value) {
101 return value == null || COMPONENT_NAME_VALIDATOR.validate(value);
107 public boolean validate(@Nullable String value) {
144 public boolean validate(@Nullable String value) {
154 public boolean validate(@Nullable String value) {
[all …]
/frameworks/ml/nn/common/include/
DOperationResolver.h32 std::function<bool(const IOperationValidationContext*)> validate; member
51 std::function<bool(const IOperationValidationContext*)> validate, in OperationRegistration()
56 validate(validate), in OperationRegistration()
119 #define NN_REGISTER_OPERATION(identifier, operationName, validate, prepare, execute, ...) \ argument
122 validate, prepare, execute, {__VA_ARGS__}); \
129 #define NN_REGISTER_OPERATION(identifier, operationName, validate, unused_prepare, unused_execute, \ argument
133 validate, nullptr, nullptr, {__VA_ARGS__}); \
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellularNetworkValidatorTest.java109 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateSuccess()
122 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateTimeout()
136 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateFailure()
147 mValidatorUT.validate(subId, timeout, true, mCallback); in testNetworkAvailableNotValidated()
175 mValidatorUT.validate(subId, timeout, true, mCallback); in testSkipRecentlyValidatedNetwork()
198 mValidatorUT.validate(subId, timeout, true, mCallback); in testDoNotSkipIfValidationFailed()
224 mValidatorUT.validate(subId, timeout, true, mCallback); in testDoNotSkipIfCacheExpires()
248 mValidatorUT.validate(1, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
255 mValidatorUT.validate(2, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
259 mValidatorUT.validate(3, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java178 assertFalse(config.validate()); in validateDefaultConfig()
194 assertTrue(config.validate()); in validateFullConfig()
209 assertTrue(config.validate()); in validateFullConfigWithoutUpdateIdentifier()
223 assertFalse(config.validate()); in validateConfigWithoutCredential()
237 assertFalse(config.validate()); in validateConfigWithoutHomeSp()
252 assertTrue(config.validate()); in validateConfigWithoutPolicy()
266 assertTrue(config.validate()); in validateConfigWithoutSubscriptionUpdate()
281 assertTrue(config.validate()); in validateConfigWithoutAaaServerTrustedNames()
300 assertFalse(config.validate()); in validateConfigWithInvalidTrustRootCertUrl()
306 assertFalse(config.validate()); in validateConfigWithInvalidTrustRootCertUrl()
[all …]
/frameworks/base/core/java/android/app/
DRuntimeAppOpAccessMessage.java82 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
86 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
91 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
95 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
98 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
197 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
201 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
206 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
210 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
213 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
DAsyncNotedAppOp.java111 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
115 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
120 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
123 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
231 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
235 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
240 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
243 com.android.internal.util.AnnotationValidations.validate( in AsyncNotedAppOp()
/frameworks/base/tests/Codegen/src/com/android/codegentest/
DSampleDataClass.java521 AnnotationValidations.validate( in SampleDataClass()
524 AnnotationValidations.validate( in SampleDataClass()
528 AnnotationValidations.validate( in SampleDataClass()
531 AnnotationValidations.validate( in SampleDataClass()
534 AnnotationValidations.validate( in SampleDataClass()
537 AnnotationValidations.validate( in SampleDataClass()
552 AnnotationValidations.validate( in SampleDataClass()
574 AnnotationValidations.validate( in SampleDataClass()
578 AnnotationValidations.validate( in SampleDataClass()
581 AnnotationValidations.validate( in SampleDataClass()
[all …]
DParcelAllTheThingsDataClass.java81 AnnotationValidations.validate(
84 AnnotationValidations.validate(
87 AnnotationValidations.validate(
90 AnnotationValidations.validate(
93 AnnotationValidations.validate(
96 AnnotationValidations.validate(
99 AnnotationValidations.validate(
208 AnnotationValidations.validate( in ParcelAllTheThingsDataClass()
211 AnnotationValidations.validate( in ParcelAllTheThingsDataClass()
214 AnnotationValidations.validate( in ParcelAllTheThingsDataClass()
[all …]
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplayConfig.java120 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
123 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
127 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
131 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
257 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
260 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
264 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
268 com.android.internal.util.AnnotationValidations.validate( in VirtualDisplayConfig()
329 com.android.internal.util.AnnotationValidations.validate( in Builder()
332 com.android.internal.util.AnnotationValidations.validate( in Builder()
[all …]
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java102 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
105 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
108 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
218 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
221 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
224 com.android.internal.util.AnnotationValidations.validate( in InlinePresentationSpec()
269 com.android.internal.util.AnnotationValidations.validate( in Builder()
272 com.android.internal.util.AnnotationValidations.validate( in Builder()
/frameworks/base/core/java/com/android/internal/app/
DMessageSamplingConfig.java76 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
81 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
86 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
144 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
149 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
154 com.android.internal.util.AnnotationValidations.validate( in MessageSamplingConfig()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedAttribution.java151 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
154 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
157 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
191 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
194 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
197 com.android.internal.util.AnnotationValidations.validate( in ParsedAttribution()
/frameworks/base/core/java/android/content/pm/
DInstantAppRequestInfo.java99 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()
103 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()
107 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()
190 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()
194 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()
198 com.android.internal.util.AnnotationValidations.validate( in InstantAppRequestInfo()

1234567891011