Home
last modified time | relevance | path

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

12345678910>>...15

/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 assertTrue(SettingsValidators.NON_NEGATIVE_INTEGER_VALIDATOR.validate(null)); in testNonNegativeIntegerValidator_onNullValue_returnsTrue()
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 assertTrue(SettingsValidators.ANY_INTEGER_VALIDATOR.validate(null)); in testAnyIntegerValidator_onNullValue_returnsTrue()
[all …]
/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.java240 validate(); in nContextDestroy()
256 validate(); in nContextSetSurface()
261 validate(); in nContextSetSurfaceTexture()
266 validate(); in nContextSetPriority()
271 validate(); in nContextSetCacheDir()
276 validate(); in nContextDump()
281 validate(); in nContextFinish()
287 validate(); in nContextSendMessage()
293 validate(); in nContextBindRootScript()
298 validate(); in nContextBindSampler()
[all …]
DRenderScriptGL.java212 validate(); in setSurface()
231 validate(); in setSurfaceTexture()
269 validate(); in pause()
279 validate(); in resume()
292 validate(); in bindRootScript()
305 validate(); in bindProgramStore()
317 validate(); in bindProgramFragment()
330 validate(); in bindProgramRaster()
343 validate(); in bindProgramVertex()
DScriptIntrinsicLUT.java69 private void validate(int index, int value) { in validate() method in ScriptIntrinsicLUT
85 validate(index, value); in setRed()
97 validate(index, value); in setGreen()
109 validate(index, value); in setBlue()
121 validate(index, value); in setAlpha()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/validators/
DSettingsValidators.java43 public boolean validate(@Nullable String value) {
53 public boolean validate(@Nullable String value) {
67 public boolean validate(@Nullable String value) {
82 public boolean validate(@Nullable String value) {
96 public boolean validate(@Nullable String value) {
116 public boolean validate(@NonNull String value) {
126 public boolean validate(@Nullable String value) {
127 return value == null || COMPONENT_NAME_VALIDATOR.validate(value);
133 public boolean validate(@NonNull String value) {
167 public boolean validate(@Nullable String value) {
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DRenderScript.java311 validate(); in nContextDestroy()
327 validate(); in nContextSetPriority()
332 validate(); in nContextDump()
337 validate(); in nContextFinish()
343 validate(); in nContextSendMessage()
360 validate(); in nElementCreate()
365 validate(); in nElementCreate2()
370 validate(); in nElementGetNativeData()
376 validate(); in nElementGetSubElements()
382 validate(); in nTypeCreate()
[all …]
DScriptIntrinsicLUT.java75 private void validate(int index, int value) {
91 validate(index, value);
103 validate(index, value);
115 validate(index, value);
127 validate(index, value);
/frameworks/base/core/java/android/security/attestationverification/
DVerificationToken.java137 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
140 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
143 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
146 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
149 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
152 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
279 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
282 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
285 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
288 com.android.internal.util.AnnotationValidations.validate( in VerificationToken()
[all …]
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedProcessImpl.java125 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
128 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
131 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
134 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
137 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
140 com.android.internal.util.AnnotationValidations.validate( in ParsedProcessImpl()
188 com.android.internal.util.AnnotationValidations.validate( in setName()
199 com.android.internal.util.AnnotationValidations.validate( in setAppClassNamesByPackage()
207 com.android.internal.util.AnnotationValidations.validate( in setDeniedPermissions()
215 com.android.internal.util.AnnotationValidations.validate( in setGwpAsanMode()
[all …]
DParsedAttributionImpl.java85 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
88 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
91 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
127 com.android.internal.util.AnnotationValidations.validate( in setTag()
138 com.android.internal.util.AnnotationValidations.validate( in setLabel()
149 com.android.internal.util.AnnotationValidations.validate( in setInheritFrom()
182 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
185 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
188 com.android.internal.util.AnnotationValidations.validate( in ParsedAttributionImpl()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DCellularNetworkValidatorTest.java117 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateSuccess()
130 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateTimeout()
144 mValidatorUT.validate(subId, timeout, true, mCallback); in testValidateFailure()
155 mValidatorUT.validate(subId, timeout, true, mCallback); in testNetworkAvailableNotValidated()
183 mValidatorUT.validate(subId, timeout, true, mCallback); in testSkipRecentlyValidatedNetwork()
206 mValidatorUT.validate(subId, timeout, true, mCallback); in testDoNotSkipIfValidationFailed()
232 mValidatorUT.validate(subId, timeout, true, mCallback); in testDoNotSkipIfCacheExpires()
256 mValidatorUT.validate(1, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
263 mValidatorUT.validate(2, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
267 mValidatorUT.validate(3, timeout, true, mCallback); in testNetworkCachingOfMultipleSub()
[all …]
/frameworks/base/core/tests/vibrator/src/android/os/
DVibrationEffectTest.java450 VibrationEffect.createOneShot(1, 255).validate(); in testValidateOneShot()
451 VibrationEffect.createOneShot(1, DEFAULT_AMPLITUDE).validate(); in testValidateOneShot()
454 () -> VibrationEffect.createOneShot(-1, 255).validate()); in testValidateOneShot()
456 () -> VibrationEffect.createOneShot(0, 255).validate()); in testValidateOneShot()
458 () -> VibrationEffect.createOneShot(1, -2).validate()); in testValidateOneShot()
460 () -> VibrationEffect.createOneShot(1, 0).validate()); in testValidateOneShot()
462 () -> VibrationEffect.createOneShot(-1, 255).validate()); in testValidateOneShot()
467 VibrationEffect.createPredefined(VibrationEffect.EFFECT_CLICK).validate(); in testValidatePrebaked()
468 VibrationEffect.createPredefined(VibrationEffect.RINGTONES[1]).validate(); in testValidatePrebaked()
471 () -> VibrationEffect.createPredefined(-1).validate()); in testValidatePrebaked()
[all …]
/frameworks/base/core/java/android/app/
DRuntimeAppOpAccessMessage.java80 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
84 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
89 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
93 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
96 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
195 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
199 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
204 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
208 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
211 com.android.internal.util.AnnotationValidations.validate( in RuntimeAppOpAccessMessage()
/frameworks/base/core/java/android/view/displayhash/
DDisplayHash.java82 AnnotationValidations.validate(NonNull.class, null, mBoundsInWindow); in DisplayHash()
84 AnnotationValidations.validate(NonNull.class, null, mHashAlgorithm); in DisplayHash()
86 AnnotationValidations.validate(NonNull.class, null, mImageHash); in DisplayHash()
88 AnnotationValidations.validate(NonNull.class, null, mHmac); in DisplayHash()
207 AnnotationValidations.validate(NonNull.class, null, mBoundsInWindow); in DisplayHash()
209 AnnotationValidations.validate(NonNull.class, null, mHashAlgorithm); in DisplayHash()
211 AnnotationValidations.validate(NonNull.class, null, mImageHash); in DisplayHash()
213 AnnotationValidations.validate(NonNull.class, null, mHmac); in DisplayHash()
DVerifiedDisplayHash.java116 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
119 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
122 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
125 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
207 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
210 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
213 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
216 com.android.internal.util.AnnotationValidations.validate( in VerifiedDisplayHash()
/frameworks/base/core/java/android/service/rotationresolver/
DRotationResolutionRequest.java97 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
100 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
103 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
107 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
202 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
205 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
208 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
212 com.android.internal.util.AnnotationValidations.validate( in RotationResolutionRequest()
/frameworks/base/tests/Codegen/src/com/android/codegentest/
DSampleDataClass.java551 AnnotationValidations.validate( in SampleDataClass()
554 AnnotationValidations.validate( in SampleDataClass()
558 AnnotationValidations.validate( in SampleDataClass()
561 AnnotationValidations.validate( in SampleDataClass()
564 AnnotationValidations.validate( in SampleDataClass()
567 AnnotationValidations.validate( in SampleDataClass()
582 AnnotationValidations.validate( in SampleDataClass()
604 AnnotationValidations.validate( in SampleDataClass()
608 AnnotationValidations.validate( in SampleDataClass()
611 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/content/pm/
DProcessInfo.java123 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
127 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
130 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
133 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
188 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
192 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
195 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
198 com.android.internal.util.AnnotationValidations.validate( in ProcessInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DAnrTimerTest.java160 void validate(TestArg expected, TestArg actual) { in validate() method in AnrTimerTest
193 validate(t, result[0]); in testSimpleTimeout()
213 validate(t, result[0]); in testTimerRestart()
230 validate(t, result[0]); in testTimerZero()
252 validate(t3, result[0]); in testMultipleTimers()
253 validate(t1, result[1]); in testMultipleTimers()
254 validate(t2, result[2]); in testMultipleTimers()
278 validate(t3, result[0]); in testMultipleServices()
279 validate(t1, result[1]); in testMultipleServices()
280 validate(t2, result[2]); in testMultipleServices()
[all …]
/frameworks/base/core/java/android/content/pm/verify/domain/
DDomainVerificationUserState.java191 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
194 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
197 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
200 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
203 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
336 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
339 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
342 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
345 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
348 com.android.internal.util.AnnotationValidations.validate( in DomainVerificationUserState()
/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/app/ambientcontext/
DAmbientContextEventRequest.java46 AnnotationValidations.validate(NonNull.class, null, mEventTypes); in AmbientContextEventRequest()
49 AnnotationValidations.validate(AmbientContextEvent.EventCode.class, null, eventType); in AmbientContextEventRequest()
52 AnnotationValidations.validate(NonNull.class, null, mOptions); in AmbientContextEventRequest()
94 AnnotationValidations.validate( in AmbientContextEventRequest()
98 AnnotationValidations.validate(AmbientContextEvent.EventCode.class, null, eventType); in AmbientContextEventRequest()
101 AnnotationValidations.validate( in AmbientContextEventRequest()
/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()

12345678910>>...15