Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/base/libs/hwui/tests/unit/
DRenderNodeTests.cpp77 EXPECT_TRUE(child->isValid()); in TEST()
78 EXPECT_TRUE(parent->isValid()); in TEST()
84 EXPECT_TRUE(child->isValid()); in TEST()
85 EXPECT_TRUE(parent->isValid()); in TEST()
93 EXPECT_TRUE(child->isValid()); in TEST()
94 EXPECT_TRUE(parent->isValid()); in TEST()
100 EXPECT_FALSE(child->isValid()); in TEST()
101 EXPECT_TRUE(parent->isValid()); in TEST()
109 EXPECT_TRUE(child->isValid()); in TEST()
117 EXPECT_TRUE(child->isValid()); in TEST()
[all …]
/frameworks/base/drm/java/android/drm/
DDrmStore.java142 /* package */ static boolean isValid(int playbackStatus) { in isValid() method in DrmStore.Playback
143 boolean isValid = false; in isValid()
150 isValid = true; in isValid()
152 return isValid; in isValid()
199 /* package */ static boolean isValid(int action) { in isValid() method in DrmStore.Action
200 boolean isValid = false; in isValid()
211 isValid = true; in isValid()
213 return isValid; in isValid()
DDrmInfoRequest.java72 if (!isValid()) { in DrmInfoRequest()
146 boolean isValid() { in isValid() method in DrmInfoRequest
152 boolean isValid = false; in isValidType()
159 isValid = true; in isValidType()
162 return isValid; in isValidType()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java103 long dataId, Uri photoThumbnailUri, boolean isFirstLevel, boolean isValid, in RecipientEntry() argument
107 true /* shouldDisplayIcon */, isFirstLevel, isValid, lookupKey, permissions); in RecipientEntry()
113 boolean isFirstLevel, boolean isValid, String lookupKey, String[] permissions) { in RecipientEntry() argument
126 mIsValid = isValid; in RecipientEntry()
135 long dataId, Uri photoThumbnailUri, boolean isFirstLevel, boolean isValid, in RecipientEntry() argument
138 contactId, directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, in RecipientEntry()
142 public boolean isValid() { in isValid() method in RecipientEntry
159 public static RecipientEntry constructFakeEntry(final String address, final boolean isValid) { in constructFakeEntry() argument
165 INVALID_CONTACT, null, true, isValid, null /* lookupKey */, null /* permissions */); in constructFakeEntry()
172 final boolean isValid) { in constructFakePhoneEntry() argument
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DFpsTest.cpp27 EXPECT_FALSE(Fps().isValid()); in TEST()
29 EXPECT_FALSE((0_Hz).isValid()); in TEST()
30 EXPECT_TRUE((120_Hz).isValid()); in TEST()
31 EXPECT_TRUE((0.5_Hz).isValid()); in TEST()
33 EXPECT_FALSE(Fps::fromPeriodNsecs(0).isValid()); in TEST()
36 EXPECT_TRUE(fps.isValid()); in TEST()
/frameworks/base/core/tests/coretests/src/android/view/
DContentRecordingSessionTest.java97 assertThat(ContentRecordingSession.isValid(displaySession)).isTrue(); in testIsValid_displaySession()
102 assertThat(ContentRecordingSession.isValid(displaySession0)).isFalse(); in testIsValid_displaySession()
107 assertThat(ContentRecordingSession.isValid(displaySession1)).isFalse(); in testIsValid_displaySession()
113 assertThat(ContentRecordingSession.isValid(displaySession2)).isFalse(); in testIsValid_displaySession()
116 assertThat(ContentRecordingSession.isValid(displaySession2)).isTrue(); in testIsValid_displaySession()
125 assertThat(ContentRecordingSession.isValid(taskSession)).isTrue(); in testIsValid_taskSession()
130 assertThat(ContentRecordingSession.isValid(taskSession0)).isFalse(); in testIsValid_taskSession()
135 assertThat(ContentRecordingSession.isValid(taskSession1)).isFalse(); in testIsValid_taskSession()
140 assertThat(ContentRecordingSession.isValid(taskSession3)).isFalse(); in testIsValid_taskSession()
146 assertThat(ContentRecordingSession.isValid(taskSession4)).isFalse(); in testIsValid_taskSession()
/frameworks/base/core/java/android/inputmethodservice/
DIInputMethodWrapper.java163 if (isValid(inputMethod, target, "DO_DUMP")) { in executeMessage()
180 if (isValid(inputMethod, target, "DO_INITIALIZE_INTERNAL")) { in executeMessage()
185 if (isValid(inputMethod, target, "DO_SET_INPUT_CONTEXT")) { in executeMessage()
191 if (isValid(inputMethod, target, "DO_UNSET_INPUT_CONTEXT")) { in executeMessage()
197 if (isValid(inputMethod, target, "DO_START_INPUT")) { in executeMessage()
207 if (isValid(inputMethod, target, "DO_ON_NAV_BUTTON_FLAGS_CHANGED")) { in executeMessage()
213 if (isValid(inputMethod, target, "DO_CREATE_SESSION")) { in executeMessage()
222 if (isValid(inputMethod, target, "DO_SET_SESSION_ENABLED")) { in executeMessage()
229 if (isValid(inputMethod, target, "DO_SHOW_SOFT_INPUT")) { in executeMessage()
244 if (isValid(inputMethod, target, "DO_HIDE_SOFT_INPUT")) { in executeMessage()
[all …]
/frameworks/native/libs/ui/tests/
DSize_test.cpp99 EXPECT_FALSE(s.isValid()); in TEST()
105 EXPECT_FALSE(s.isValid()); in TEST()
111 EXPECT_FALSE(s.isValid()); in TEST()
117 EXPECT_FALSE(s.isValid()); in TEST()
123 EXPECT_FALSE(s.isValid()); in TEST()
128 EXPECT_FALSE(kInvalidSize.isValid()); in TEST()
135 EXPECT_FALSE(s.isValid()); in TEST()
141 EXPECT_TRUE(s.isValid()); in TEST()
146 EXPECT_TRUE(kEmptySize.isValid()); in TEST()
153 EXPECT_TRUE(s.isValid()); in TEST()
[all …]
DRect_test.cpp29 EXPECT_FALSE(rect.isValid()); in TEST()
35 EXPECT_TRUE(rect.isValid()); in TEST()
47 EXPECT_TRUE(rect.isValid()); in TEST()
59 EXPECT_TRUE(rect.isValid()); in TEST()
71 EXPECT_TRUE(rect.isValid()); in TEST()
84 EXPECT_TRUE(rect.isValid()); in TEST()
95 EXPECT_TRUE(rect.isValid()); in TEST()
106 EXPECT_TRUE(rect.isValid()); in TEST()
108 EXPECT_FALSE(rect.isValid()); in TEST()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java54 int isValid(byte[] params); in isValid() method
328 int errorCode = info.parameterValidator.isValid(params); in validate()
369 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.FixedLengthValidator
386 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.VariableLengthValidator
837 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.PhysicalAddressValidator
847 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.SystemAudioModeRequestValidator
852 return super.isValid(params); in isValid()
858 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.ReportPhysicalAddressValidator
868 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.RoutingChangeValidator
884 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.RecordStatusInfoValidator
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedDisplayAreaOrganizerTest.java191 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_0_to_landscape_90()
202 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_0_to_seascape_270()
213 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_180_to_landscape_90()
226 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_180_to_seascape_270()
239 when(mMockLeash.isValid()).thenReturn(false); in testRotation_landscape_90_to_portrait_0()
252 when(mMockLeash.isValid()).thenReturn(false); in testRotation_landscape_90_to_portrait_180()
265 when(mMockLeash.isValid()).thenReturn(false); in testRotation_seascape_270_to_portrait_0()
278 when(mMockLeash.isValid()).thenReturn(false); in testRotation_seascape_270_to_portrait_180()
291 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_0_to_portrait_0()
302 when(mMockLeash.isValid()).thenReturn(false); in testRotation_portrait_0_to_portrait_180()
[all …]
/frameworks/base/libs/hwui/
DAutoBackendTextureRelease.cpp76 LOG_ALWAYS_FATAL_IF(!backendFormat.isValid(), in AutoBackendTextureRelease()
80 LOG_ALWAYS_FATAL_IF(!mBackendTexture.isValid(), in AutoBackendTextureRelease()
101 if (mBackendTexture.isValid()) { in unref()
133 if (mBackendTexture.isValid()) { in newBufferContent()
144 if (mBackendTexture.isValid()) { in releaseQueueOwnership()
/frameworks/base/telephony/java/android/telephony/
DSignalStrength.java126 if (mLte.isValid()) return mLte; in getPrimary()
128 if (mNr.isValid()) return mNr; in getPrimary()
129 if (mLte.isValid()) return mLte; in getPrimary()
130 if (mCdma.isValid()) return mCdma; in getPrimary()
131 if (mTdscdma.isValid()) return mTdscdma; in getPrimary()
132 if (mWcdma.isValid()) return mWcdma; in getPrimary()
133 if (mGsm.isValid()) return mGsm; in getPrimary()
185 if (mLte.isValid() && clazz.isAssignableFrom(CellSignalStrengthLte.class)) { in getCellSignalStrengths()
188 if (mCdma.isValid() && clazz.isAssignableFrom(CellSignalStrengthCdma.class)) { in getCellSignalStrengths()
191 if (mTdscdma.isValid() && clazz.isAssignableFrom(CellSignalStrengthTdscdma.class)) { in getCellSignalStrengths()
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUtilitiesTest.java18 import static com.android.shell.BugreportProgressService.isValid;
31 assertTrue("char '" + c + "' should be valid", isValid(c)); in testIsValidChar_valid()
39 assertFalse("char '" + c + "' should not be valid", isValid(c)); in testIsValidChar_invalid()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/shared/
DSmartspaceMediaDataTest.kt52 assertThat(data.isValid()).isFalse() in isValid_emptyList_returnsFalse()
63 assertThat(data.isValid()).isFalse() in isValid_tooFewRecs_returnsFalse()
79 assertThat(data.isValid()).isFalse() in isValid_tooFewRecsWithIcons_returnsFalse()
92 assertThat(data.isValid()).isTrue() in isValid_enoughRecsWithIcons_returnsTrue()
105 assertThat(data.isValid()).isTrue() in isValid_manyRecsWithIcons_returnsTrue()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest10.java68 assertTrue(mRequest.isValid()); in testCreateShortcutResult_validResult()
91 assertTrue(mRequest.isValid()); in testCreateShortcutResult_alreadyPinned()
115 assertTrue(mRequest.isValid()); in testCreateShortcutResult_alreadyPinnedByAnother()
133 assertFalse(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
142 assertFalse(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
148 assertTrue(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
/frameworks/native/libs/ui/
DFence.cpp97 if (f1->isValid() && f2->isValid()) { in merge()
99 } else if (f1->isValid()) { in merge()
101 } else if (f2->isValid()) { in merge()
161 return isValid() ? 1 : 0; in getFdCount()
171 if (isValid()) { in flatten()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerTest.java158 assertTrue(sc1.isValid()); in testCreateChoreographer()
168 assertTrue(sc2.isValid()); in testCreateChoreographer()
178 assertTrue(sc3.isValid()); in testCreateChoreographer()
256 assertTrue(sc.isValid()); in testMirrorSurfaceControl()
257 assertFalse(mirrorSc.isValid()); in testMirrorSurfaceControl()
282 assertTrue(sc.isValid()); in testPostFrameCallback()
283 assertFalse(copySc.isValid()); in testPostFrameCallback()
308 assertTrue(sc.isValid()); in testPostFrameCallbackDelayed()
309 assertFalse(copySc.isValid()); in testPostFrameCallbackDelayed()
334 assertTrue(sc.isValid()); in testPostCallback()
[all …]
/frameworks/base/native/graphics/jni/
Dbitmap.cpp40 if (!bitmap.isValid()) { in AndroidBitmap_getDataSpace()
53 void* addr = bitmap.isValid() ? bitmap.getPixels() : nullptr; in AndroidBitmap_lockPixels()
74 if (!bitmap.isValid()) { in AndroidBitmap_unlockPixels()
90 if (!bitmap.isValid()) { in AndroidBitmap_getHardwareBuffer()
/frameworks/native/services/surfaceflinger/tests/
DLayerUpdate_test.cpp49 ASSERT_TRUE(mBGSurfaceControl->isValid()); in SetUp()
56 ASSERT_TRUE(mFGSurfaceControl->isValid()); in SetUp()
63 ASSERT_TRUE(mSyncSurfaceControl->isValid()); in SetUp()
519 ASSERT_TRUE(newSurface->isValid()); in TEST_F()
593 ASSERT_TRUE(bufferLayer->isValid()); in TEST_F()
613 ASSERT_TRUE(colorLayer->isValid()); in TEST_F()
634 ASSERT_TRUE(cropLayer->isValid()); in TEST_F()
638 ASSERT_TRUE(colorLayer->isValid()); in TEST_F()
663 ASSERT_TRUE(colorLayer->isValid()); in TEST_F()
686 ASSERT_TRUE(boundlessLayerRightShift->isValid()); in TEST_F()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDeviceConfigService.java263 boolean isValid = false; in onCommand()
279 isValid = true; in onCommand()
284 isValid = true; in onCommand()
289 isValid = true; in onCommand()
301 isValid = true; in onCommand()
333 isValid = true; in onCommand()
339 isValid = true; in onCommand()
356 isValid = true; in onCommand()
361 isValid = true; in onCommand()
369 isValid = true; in onCommand()
[all …]
/frameworks/native/libs/renderengine/skia/compat/
DGaneshBackendTexture.cpp72 if (!mBackendTexture.isValid() || !desc.width || !desc.height) { in GaneshBackendTexture()
81 if (mBackendTexture.isValid()) { in ~GaneshBackendTexture()
90 if (mBackendTexture.isValid()) { in makeImage()
131 msg, mBackendTexture.isValid(), static_cast<int32_t>(dataspace), in logFatalTexture()
146 msg, mBackendTexture.isValid(), static_cast<int32_t>(dataspace), in logFatalTexture()
DGraphiteBackendTexture.cpp56 if (!mBackendTexture.isValid() || !dimensions.width() || !dimensions.height()) { in GraphiteBackendTexture()
65 if (mBackendTexture.isValid()) { in ~GraphiteBackendTexture()
108 mBackendTexture.isValid(), mBackendTexture.dimensions().width(), in logFatalTexture()
109 mBackendTexture.dimensions().height(), textureInfo.isValid(), in logFatalTexture()
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/
DNativeCoverageHackInstrumentationListener.java112 if (!siginfo.isValid()) { in maybeDumpNativeCoverage()
138 if (siginfo.isValid() && siginfo.isBlocked(COVERAGE_SIGNAL)) { in maybeDumpNativeCoverage()
142 if (siginfo.isValid() && !siginfo.isBlocked(COVERAGE_SIGNAL)) { in maybeDumpNativeCoverage()
224 public boolean isValid() { in isValid() method in NativeCoverageHackInstrumentationListener.SignalMaskInfo
245 if (!isValid()) { in checkValid()
/frameworks/av/media/module/bufferpool/2.0/
DBufferStatus.cpp64 if (!queue || queue->isValid() == false) { in open()
110 if (!queue || queue->isValid() == false) { in BufferStatusChannel()
118 bool BufferStatusChannel::isValid() { in isValid() function in android::hardware::media::bufferpool::V2_0::implementation::BufferStatusChannel
225 if (!queue || queue->isValid() == false) { in BufferInvalidationListener()
262 bool BufferInvalidationListener::isValid() { in isValid() function in android::hardware::media::bufferpool::V2_0::implementation::BufferInvalidationListener
270 if (!mBufferInvalidationQueue || mBufferInvalidationQueue->isValid() == false) { in BufferInvalidationChannel()
275 bool BufferInvalidationChannel::isValid() { in isValid() function in android::hardware::media::bufferpool::V2_0::implementation::BufferInvalidationChannel

12345678910>>...21