Home
last modified time | relevance | path

Searched refs:isValid (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DValidatorsTest.java65 doReturn(false).when(mValidValidator).isValid(mValueFinder); in testAnd_firstFailed()
67 .isValid(mValueFinder)).isFalse(); in testAnd_firstFailed()
68 verify(mValidValidator2, never()).isValid(mValueFinder); in testAnd_firstFailed()
73 doReturn(true).when(mValidValidator).isValid(mValueFinder); in testAnd_firstPassedSecondFailed()
74 doReturn(false).when(mValidValidator2).isValid(mValueFinder); in testAnd_firstPassedSecondFailed()
76 .isValid(mValueFinder)).isFalse(); in testAnd_firstPassedSecondFailed()
81 doReturn(true).when(mValidValidator).isValid(mValueFinder); in testAnd_AllPassed()
82 doReturn(true).when(mValidValidator2).isValid(mValueFinder); in testAnd_AllPassed()
84 .isValid(mValueFinder)).isTrue(); in testAnd_AllPassed()
103 doReturn(false).when(mValidValidator).isValid(mValueFinder); in testOr_AllFailed()
[all …]
DLuhnChecksumValidatorTest.java62 assertThat(validator.isValid(finder)).isTrue(); in duplicateFields()
66 assertThat(validator.isValid(finder)).isFalse(); in duplicateFields()
78 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored()
81 assertThat(validator.isValid(finder)).isTrue(); in leadingZerosAreIgnored()
94 assertThat(validator.isValid(finder)).isEqualTo(i == 3); in onlyOneChecksumValid()
112 assertThat(validator.isValid(finder)).isFalse(); in nullAutofillValuesCauseFailure()
123 assertThat(validator.isValid(finder)).isTrue(); in nonDigits()
137 assertThat(validator.isValid(finder)).isTrue(); in multipleFieldNumber()
140 assertThat(validator.isValid(finder)).isFalse(); in multipleFieldNumber()
DRegexValidatorTest.java67 assertThat(validator.isValid(finder)).isFalse(); in unknownField()
79 assertThat(validator.isValid(finder)).isTrue(); in singleFieldValid()
82 assertThat(validator.isValid(finder)).isFalse(); in singleFieldValid()
95 assertThat(validator.isValid(finder)).isFalse(); in singleFieldInvalid()
/cts/tests/sensor/jni/
DSensorTest.h62 bool isValid() const { return mManager != nullptr; } in isValid() function
80 if (!isValid()) { in getType()
87 if (!isValid()) { in isDirectChannelTypeSupported()
94 if (!isValid()) { in getHighestDirectReportRateLevel()
102 bool isValid() const { return mSensor != nullptr; } in isValid() function
DSensorTest.cpp58 if (!isValid()) { in createDirectChannel()
91 if (!isValid()) { in destroyDirectChannel()
100 if (!isValid()) { in configureDirectReport()
DSensorTestCases.cpp25 ASSERT_TRUE(mManager->isValid()); in testInitialized()
151 if (!sensor.isValid() in testDirectReport()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DModemActivityInfoTest.java56 assertTrue("ModemActivityInfo should be valid", modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
61 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
66 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
71 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
76 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java111 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultLauncher()
123 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultChanges()
134 assertFalse(request.isValid()); in testCreateShortcutResultIntent_noDefault()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp112 bool isValid() const { return mBuffer != nullptr; } in isValid() function in __anonb7bd83a40111::Buffer
147 bool isValid() const { return mSurface != nullptr; } in isValid() function in __anonb7bd83a40111::Surface
195 if (!surface->isValid()) { in surfaceControlCreate()
244 if (!buffer.isValid()) { in surfaceControlPostBuffer()
/cts/tests/tests/shortcutmanager/packages/src/android/content/pm/cts/shortcutmanager/packages/
DShortcutConfirmPin.java57 if (!request.isValid()) { in onCreate()
105 if (request.isValid()) { in onCreate()
/cts/tests/tests/media/src/android/media/cts/
DNativeImageReaderTest.java52 assertTrue("Surface created is invalid.", surface.isValid()); in testCreateSurface()
DAdaptivePlaybackTest.java344 if (test.isValid(c)) { in ex()
384 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.EarlyEosTest
445 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.EosFlushSeekTest
507 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.ReconfigDrcTest
573 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.AdaptiveDrcTest
656 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.AdaptiveDrcEarlyEosTest
730 public boolean isValid(Codec c) {
1735 public boolean isValid(Codec c) { return true; }
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceViewTest.java171 assertTrue(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
177 assertFalse(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
DSurfaceControlTest.java95 assertTrue(sc.isValid()); in testLifecycle()
97 assertFalse(sc.isValid()); in testLifecycle()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DValidatorTest.java97 assertThat(validator.isValid(valueFinder)).isEqualTo(valid); in assertValidator()
/cts/tests/video/src/android/video/cts/
DCodecDecoderPerformanceTestBase.java85 assertTrue("Surface created is invalid.", mSurface.isValid()); in decode()
DCodecEncoderPerformanceTestBase.java178 assertTrue("Surface is not valid", mSurface.isValid()); in encode()
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java142 when(validator.isValid(any(CharSequence.class))).thenReturn(true); in testPerformValidation()
160 when(validator.isValid(any(CharSequence.class))).thenReturn(false); in testPerformValidation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionService.java84 + Boolean.toString(surface.isValid())); in startRendering()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java434 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in testAbandonedHighSpeedRequest()
1016 assertTrue("Preview surface should be valid", mPreviewSurface.isValid()); in startConstrainedPreview()
1043 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startSlowMotionRecording()
1910 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startRecording()
1972 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startSharedRecording()
/cts/tests/mediapc/src/android/mediapc/cts/
DMultiTranscoderPerfTest.java128 assertTrue("Surface created is invalid.", surface.isValid()); in test720p()
DCodecTranscoderTestBase.java120 assertTrue("Surface is not valid", mSurface.isValid()); in configureCodec()
437 assertTrue("Surface is not valid", mSurface.isValid()); in configureCodec()
DFrameDropTestBase.java169 assertTrue("Surface created is invalid.", mSurface.isValid()); in createSurface()
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java315 assertTrue("display must be valid", display.isValid()); in assertDisplayRegistered()
343 assertFalse("display must no longer be valid", display.isValid()); in assertDisplayUnregistered()
/cts/tests/tests/libcorefileio/src/android/cts/
DFileChannelInterProcessLockTest.java436 assertTrue(fileLock.isValid()); in checkTryLockBehavior()
525 assertTrue(fileLock.isValid()); in checkLockBehavior()

12