Home
last modified time | relevance | path

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

123

/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()
153 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/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDisplayTest.java103 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_defaultVirtualDisplayFlags()
116 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_defaultVirtualDisplayFlags_compat()
176 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_public_createsMirrorDisplay()
190 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_autoMirror_createsMirrorDisplay()
205 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_publicAutoMirror_createsMirrorDisplay()
220 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_ownContentOnly_doesNotCreateMirrorDisplay()
235 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_autoMirrorAndOwnContentOnly_doesNotCreateMirrorDisplay()
364 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_trustedDisplay_shouldSpecifyOwnFocusFlag()
390 assertThat(display.isValid()).isTrue(); in createVirtualDisplay_alwaysUnlocked_shouldSpecifyAlwaysUnlockedFlag()
472 assertThat(display.isValid()).isFalse(); in createAndRelease_isInvalidForReleasedDisplay()
[all …]
/cts/tests/tests/media/common/src/android/media/cts/
DMediaStubActivity.java97 while (!surface.isValid() && (SystemClock.elapsedRealtime() - start) < waitTimeMs) { in waitTillSurfaceHolderIsCreated()
103 if (!surface.isValid()) { in waitTillSurfaceHolderIsCreated()
119 if (surface.isValid()) { in getSurface()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerConfigActivityTest.java115 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultLauncher()
127 assertTrue(request.isValid()); in testCreateShortcutResultIntent_defaultChanges()
138 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/tests/graphics/src/android/graphics/cts/
DEGL15Test.java216 if (!nativeFence.isValid()) { in testEGL15AndroidNativeFence()
223 assertTrue(nativeFence.isValid()); in testEGL15AndroidNativeFence()
244 assertFalse(nativeFence.isValid()); in testEGL15AndroidNativeFence()
269 if (!nativeFence.isValid()) { in testEGL15AndroidNativeFenceWithAwaitDuration()
276 assertTrue(nativeFence.isValid()); in testEGL15AndroidNativeFenceWithAwaitDuration()
297 assertFalse(nativeFence.isValid()); in testEGL15AndroidNativeFenceWithAwaitDuration()
DANativeWindowTest.java261 assertTrue(outSurface.isValid()); in testWriteToParcel()
279 assertTrue(outSurface.isValid()); in testReadFromParcel()
297 assertTrue(outSurface.isValid()); in testWriteReadFromParcel()
/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
208 if (!surface->isValid()) { in surfaceControlCreate()
271 if (!buffer.isValid()) { in surfaceControlPostBuffer()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceViewTest.java169 assertTrue(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
175 assertFalse(mMockSurfaceView.mSurface.isValid()); in surfaceInvalidatedWhileDetaching()
190 assertTrue(mMockSurfaceView.mSurface.isValid()); in testSurfaceRemainsValidWhileCanvasLocked()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DNativeImageReaderTest.java55 assertTrue("Surface created is invalid.", surface.isValid()); in testCreateSurface()
/cts/libs/hardware/src/com/android/cts/hardware/
DSyncFenceUtil.java129 if (!nativeFence.isValid()) { in createUselessFence()
136 assertTrue(nativeFence.isValid()); in createUselessFence()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java307 boolean isValid = usbDevice != null in isUsbHeadsetValidForTest()
311 if (!isValid && displayWarning) { in isUsbHeadsetValidForTest()
316 return isValid; in isUsbHeadsetValidForTest()
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java132 private void handleSetPendingIntent(boolean isValid) { in handleSetPendingIntent() argument
134 super.getQsTile().setActivityLaunchForClick(isValid ? getValidPendingIntent() : null); in handleSetPendingIntent()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DValidatorTest.java97 assertThat(validator.isValid(valueFinder)).isEqualTo(valid); in assertValidator()
/cts/tests/tests/app/src/android/app/cts/
DKeyguardWeakEscrowTokenTest.java101 boolean isValid = mKeyguardManager.isWeakEscrowTokenValid(handle, mTestToken1, in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately()
105 assertThat(isValid).isTrue(); in testAddWeakEscrowToken_noCredentialSetUp_tokenActivatedImmediately()
/cts/tests/video/src/android/video/cts/
DCodecDecoderPerformanceTestBase.java85 assertTrue("Surface created is invalid.", mSurface.isValid()); in decode()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DSurfaceControlHelperTest.java80 assertThat(mirror.isValid()).isTrue(); in testMirrorSurface()
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java151 when(validator.isValid(any(CharSequence.class))).thenReturn(true); in testPerformValidation()
169 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()

123