/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsValidatorsTest.java | 49 assertTrue(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("1")); in testNonNegativeIntegerValidator() 50 assertTrue(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("0")); in testNonNegativeIntegerValidator() 51 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("-1")); in testNonNegativeIntegerValidator() 52 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate("rectangle")); in testNonNegativeIntegerValidator() 57 assertFalse(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate(null)); in testNonNegativeIntegerValidator_onNullValue_returnsFalse() 62 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("1")); in testAnyIntegerValidator() 63 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("0")); in testAnyIntegerValidator() 64 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("-1")); in testAnyIntegerValidator() 65 assertFalse(SettingsValidators.ANY_INTEGER_VALIDATOR.validate("rectangle")); in testAnyIntegerValidator() 70 assertFalse(SettingsValidators.ANY_INTEGER_VALIDATOR.validate(null)); in testAnyIntegerValidator_onNullValue_returnsFalse() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/pps/ |
D | CredentialTest.java | 179 assertTrue(cred.validate(true)); in validateUserCredential() 182 assertTrue(cred.validate(false)); in validateUserCredential() 196 assertFalse(cred.validate(true)); in validateUserCredentialWithoutCaCert() 199 assertTrue(cred.validate(false)); in validateUserCredentialWithoutCaCert() 213 assertFalse(cred.validate(true)); in validateUserCredentialWithEapTls() 216 assertFalse(cred.validate(false)); in validateUserCredentialWithEapTls() 231 assertFalse(cred.validate(true)); in validateUserCredentialWithoutRealm() 234 assertFalse(cred.validate(false)); in validateUserCredentialWithoutRealm() 248 assertFalse(cred.validate(true)); in validateUserCredentialWithoutUsername() 251 assertFalse(cred.validate(false)); in validateUserCredentialWithoutUsername() [all …]
|
D | UpdateParameterTest.java | 134 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 …]
|
D | PolicyTest.java | 197 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()
|
D | HomeSpTest.java | 141 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/rs/java/android/renderscript/ |
D | RenderScript.java | 235 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 …]
|
D | RenderScriptGL.java | 211 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()
|
D | ScriptIntrinsicLUT.java | 64 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()
|
D | Allocation.java | 552 mRS.validate(); in syncAll() 573 mRS.validate(); in ioSend() 592 mRS.validate(); in ioReceive() 607 mRS.validate(); in copyFrom() 690 mRS.validate(); in copyFromUnchecked() 992 mRS.validate(); in copyFrom() 1017 mRS.validate(); in copyFrom() 1035 mRS.validate(); in setFromFieldPacker() 1072 mRS.validate(); in setFromFieldPacker() 1101 mRS.validate(); in data1DChecks() [all …]
|
D | BaseObj.java | 33 rs.validate(); in BaseObj() 56 mRS.validate(); in getID() 170 mRS.validate(); in updateFromNative()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigurationUtilTest.java | 207 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 210 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 213 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 216 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 219 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 222 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 225 assertTrue(WifiConfigurationUtil.validate( in testValidatePositiveCases_Ascii() 239 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_Hex() 249 assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString() 252 assertFalse(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD)); in testValidatePositiveCases_MaskedPskString() [all …]
|
/frameworks/base/core/java/android/provider/ |
D | SettingsValidators.java | 44 public boolean validate(@Nullable String value) { 51 public boolean validate(@Nullable String value) { 62 public boolean validate(@Nullable String value) { 74 public boolean validate(@Nullable String value) { 91 public boolean validate(@Nullable String value) { 101 public boolean validate(@Nullable String value) { 102 return value == null || COMPONENT_NAME_VALIDATOR.validate(value); 108 public boolean validate(@Nullable String value) { 145 public boolean validate(@Nullable String value) { 155 public boolean validate(@Nullable String value) { [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | RenderScript.java | 306 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 …]
|
D | ScriptIntrinsicLUT.java | 70 private void validate(int index, int value) { 86 validate(index, value); 98 validate(index, value); 110 validate(index, value); 122 validate(index, value);
|
D | Allocation.java | 486 mRS.validate(); in syncAll() 502 mRS.validate(); in ioSend() 586 mRS.validate(); in ioReceive() 596 mRS.validate(); in copyFrom() 674 mRS.validate(); in copyFromUnchecked() 960 mRS.validate(); in copyFrom() 980 mRS.validate(); in copyFrom() 996 mRS.validate(); in setFromFieldPacker() 1018 mRS.validate(); in setFromFieldPacker() 1083 mRS.validate(); in data1DChecks() [all …]
|
/frameworks/ml/nn/common/include/ |
D | OperationResolver.h | 32 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/ |
D | CellularNetworkValidatorTest.java | 109 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/ |
D | PasspointConfigurationTest.java | 295 assertFalse(config.validate()); in validateDefaultConfig() 308 assertTrue(config.validate()); in validateFullConfig() 323 assertTrue(config.validate()); in validateFullConfigWithoutUpdateIdentifier() 337 assertFalse(config.validate()); in validateConfigWithoutCredential() 351 assertFalse(config.validate()); in validateConfigWithoutHomeSp() 366 assertTrue(config.validate()); in validateConfigWithoutPolicy() 381 assertTrue(config.validate()); in validateConfigWithoutSubscriptionUpdate() 401 assertFalse(config.validate()); in validateConfigWithInvalidTrustRootCertUrl() 407 assertFalse(config.validate()); in validateConfigWithInvalidTrustRootCertUrl() 422 assertFalse(config.validate()); in validateConfigWithInvalidTrustRootCertFingerprint() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 19 import static android.graphics.BitmapFactory.Options.validate; 436 static void validate(Options opts) { in validate() method in BitmapFactory.Options 511 validate(opts); in decodeFile() 557 validate(opts); in decodeResourceStream() 596 validate(opts); in decodeResource() 659 validate(opts); in decodeByteArray() 754 validate(opts); in decodeStream() 829 validate(opts); in decodeFileDescriptor()
|
/frameworks/ml/nn/common/operations/ |
D | Elementwise.cpp | 88 bool validate(const IOperationValidationContext* context) { in validate() function 177 NN_REGISTER_OPERATION(EXP, "EXP", elementwise::validate, elementwise::prepare, 181 NN_REGISTER_OPERATION(LOG, "LOG", elementwise::validate, elementwise::prepare, 183 NN_REGISTER_OPERATION(RSQRT, "RSQRT", elementwise::validate, elementwise::prepare, 185 NN_REGISTER_OPERATION(SIN, "SIN", elementwise::validate, elementwise::prepare, 187 NN_REGISTER_OPERATION(SQRT, "SQRT", elementwise::validate, elementwise::prepare,
|
D | Comparisons.cpp | 129 bool validate(const IOperationValidationContext* context) { in validate() function 272 NN_REGISTER_OPERATION(LESS, "LESS", comparisons::validate, comparisons::prepare, 274 NN_REGISTER_OPERATION(LESS_EQUAL, "LESS_EQUAL", comparisons::validate, comparisons::prepare, 276 NN_REGISTER_OPERATION(EQUAL, "EQUAL", comparisons::validate, comparisons::prepare, 278 NN_REGISTER_OPERATION(NOT_EQUAL, "NOT_EQUAL", comparisons::validate, comparisons::prepare, 280 NN_REGISTER_OPERATION(GREATER_EQUAL, "GREATER_EQUAL", comparisons::validate, comparisons::prepare, 282 NN_REGISTER_OPERATION(GREATER, "GREATER", comparisons::validate, comparisons::prepare,
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CharSequences.java | 65 validate(start, end, bytes.length); 78 validate(newStart, newEnd, length()); 88 static void validate(int start, int end, int length) {
|
/frameworks/native/libs/ui/ |
D | Region.cpp | 78 validate(rhs, "rhs copy-ctor"); in Region() 214 validate(outputRegion, "T-Junction free region"); in createTJunctionFreeRegion() 223 validate(*this, "this->operator="); in operator =() 224 validate(rhs, "rhs.operator="); in operator =() 538 bool Region::validate(const Region& reg, const char* name, bool silent) in validate() function in android::Region 623 validate(lhs, "boolean_operation (before): lhs"); in boolean_operation() 624 validate(rhs, "boolean_operation (before): rhs"); in boolean_operation() 625 validate(dst, "boolean_operation (before): dst"); in boolean_operation() 643 validate(lhs, "boolean_operation: lhs"); in boolean_operation() 644 validate(rhs, "boolean_operation: rhs"); in boolean_operation() [all …]
|
/frameworks/av/media/libaaudio/src/binding/ |
D | SharedRegionParcelable.cpp | 51 status_t status = AAudioConvert_aaudioToAndroidStatus(validate()); in writeToParcel() 78 return AAudioConvert_aaudioToAndroidStatus(validate()); in readFromParcel() 99 aaudio_result_t SharedRegionParcelable::validate() const { in validate() function in SharedRegionParcelable
|
D | SharedMemoryParcelable.cpp | 51 status_t status = AAudioConvert_aaudioToAndroidStatus(validate()); in writeToParcel() 85 return AAudioConvert_aaudioToAndroidStatus(validate()); in readFromParcel() 149 aaudio_result_t SharedMemoryParcelable::validate() const { in validate() function in SharedMemoryParcelable
|