Home
last modified time | relevance | path

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

12

/cts/tests/autofillservice/src/android/autofillservice/cts/
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()
DValidatorTest.java95 assertThat(validator.isValid(valueFinder)).isEqualTo(valid); in assertValidator()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DModemActivityInfoTest.java45 assertTrue("ModemActivityInfo should be valid", modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
50 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
55 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
60 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
65 modemActivityInfo.isValid()); in testModemActivityInfoIsValid()
/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/net/src/android/net/cts/
DProxyInfoTest.java107 assertTrue(proxy1.isValid()); in testIsValid()
111 assertFalse(proxy2.isValid()); in testIsValid()
114 assertFalse(proxy3.isValid()); in testIsValid()
117 assertFalse(proxy4.isValid()); in testIsValid()
120 assertFalse(proxy5.isValid()); in testIsValid()
126 assertFalse(proxy6.isValid()); in testIsValid()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java91 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultLauncher()
103 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultChanges()
114 assertFalse(request.isValid()); in testCreateShortcutResultIntent_noDefault()
/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/framework/base/windowmanager/src/android/server/wm/
DSurfaceViewTest.java169 assertTrue(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
175 assertFalse(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
DSurfaceControlTest.java95 assertTrue(sc.isValid()); in testLifecycle()
97 assertFalse(sc.isValid()); in testLifecycle()
/cts/tests/tests/media/src/android/media/cts/
DNativeImageReaderTest.java52 assertTrue("Surface created is invalid.", surface.isValid()); in testCreateSurface()
DAdaptivePlaybackTest.java351 if (test.isValid(c)) { in ex()
391 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.EarlyEosTest
452 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.EosFlushSeekTest
508 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.ReconfigDrcTest
574 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.AdaptiveDrcTest
654 public boolean isValid(Codec c) { in isValid() method in AdaptivePlaybackTest.AdaptiveDrcEarlyEosTest
727 public boolean isValid(Codec c) {
1690 public boolean isValid(Codec c) { return true; }
DDecodeAccuracyTestBase.java858 while (SystemClock.elapsedRealtime() - start < timeOutMs && !getSurface().isValid()) { in waitForViewIsAvailable()
868 if (!getSurface().isValid()) { in waitForViewIsAvailable()
/cts/tests/camera/src/android/hardware/camera2/cts/
DRecordingTest.java406 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in testAbandonedHighSpeedRequest()
866 assertTrue("Preview surface should be valid", mPreviewSurface.isValid()); in startConstrainedPreview()
893 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startSlowMotionRecording()
1624 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startRecording()
1686 mPreviewSurface.isValid() && mRecordingSurface.isValid()); in startSharedRecording()
/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()
DAutoCompleteTextViewTest.java117 public boolean isValid(CharSequence text) {
1069 public boolean isValid(CharSequence text) { in isValid() method in AutoCompleteTextViewTest.MockValidator
/cts/tests/tests/display/src/android/display/cts/
DVirtualDisplayTest.java198 assertTrue("display must be valid", display.isValid()); in assertDisplayRegistered()
226 assertFalse("display must no longer be valid", display.isValid()); in assertDisplayUnregistered()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionService.java84 + Boolean.toString(surface.isValid())); in startRendering()
/cts/tests/tests/libcorefileio/src/android/cts/
DFileChannelInterProcessLockTest.java436 assertTrue(fileLock.isValid()); in checkTryLockBehavior()
525 assertTrue(fileLock.isValid()); in checkLockBehavior()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java300 if (!surface.isValid()) return; in draw()
/cts/tests/media/src/android/mediav2/cts/
DCodecEncoderSurfaceTest.java216 assertTrue("Surface is not valid", mSurface.isValid()); in configureCodec()
/cts/tests/camera/src/android/hardware/camera2/cts/testcases/
DCamera2SurfaceViewTestCase.java711 assertTrue("Preview surface is invalid", mPreviewSurface.isValid()); in updatePreviewSurface()

12