Home
last modified time | relevance | path

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

12345678910>>...16

/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/ml/nn/runtime/test/
DTestWrapper.cpp39 ASSERT_TRUE(mModel.isValid()); in TEST_F()
41 ASSERT_TRUE(mModel.isValid()); in TEST_F()
43 ASSERT_TRUE(mModel.isValid()); in TEST_F()
47 ASSERT_TRUE(mModel.isValid()); in TEST_F()
52 ASSERT_FALSE(mModel.isValid()); in TEST_F()
54 ASSERT_FALSE(mModel.isValid()); in TEST_F()
58 ASSERT_TRUE(mModel.isValid()); in TEST_F()
60 ASSERT_TRUE(mModel.isValid()); in TEST_F()
62 ASSERT_TRUE(mModel.isValid()); in TEST_F()
66 ASSERT_FALSE(mModel.isValid()); in TEST_F()
DTestCompliance.cpp43 EXPECT_TRUE(modelBuilder->isValid()); in createHidlModel()
100 ASSERT_TRUE(model.isValid()); in TEST_F()
114 ASSERT_TRUE(model.isValid()); in TEST_F()
131 ASSERT_TRUE(model.isValid()); in TEST_F()
149 ASSERT_TRUE(memory.isValid()); in TEST_F()
160 ASSERT_TRUE(model.isValid()); in TEST_F()
216 ASSERT_TRUE(model.isValid()); in TEST_P()
/frameworks/base/drm/java/android/drm/
DDrmStore.java140 /* package */ static boolean isValid(int playbackStatus) { in isValid() method in DrmStore.Playback
141 boolean isValid = false; in isValid()
148 isValid = true; in isValid()
150 return isValid; in isValid()
197 /* package */ static boolean isValid(int action) { in isValid() method in DrmStore.Action
198 boolean isValid = false; in isValid()
209 isValid = true; in isValid()
211 return isValid; in isValid()
DDrmInfoRequest.java70 if (!isValid()) { in DrmInfoRequest()
144 boolean isValid() { in isValid() method in DrmInfoRequest
150 boolean isValid = false; in isValidType()
157 isValid = true; in isValidType()
160 return isValid; in isValidType()
DDrmInfo.java53 if (!isValid()) { in DrmInfo()
80 if (!isValid()) { in DrmInfo()
166 boolean isValid() { in isValid() method in DrmInfo
DDrmRights.java105 if (!isValid()) { in instantiate()
129 if (!isValid()) { in DrmRights()
177 /*package*/ boolean isValid() { in isValid() method in DrmRights
/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/libs/ui/tests/
DSize_test.cpp58 EXPECT_FALSE(s.isValid()); in TEST()
64 EXPECT_FALSE(s.isValid()); in TEST()
70 EXPECT_FALSE(s.isValid()); in TEST()
76 EXPECT_FALSE(s.isValid()); in TEST()
82 EXPECT_FALSE(s.isValid()); in TEST()
88 EXPECT_FALSE(s.isValid()); in TEST()
95 EXPECT_FALSE(s.isValid()); in TEST()
101 EXPECT_TRUE(s.isValid()); in TEST()
107 EXPECT_TRUE(s.isValid()); in TEST()
114 EXPECT_TRUE(s.isValid()); in TEST()
[all …]
DBufferHubMetadata_test.cpp29 EXPECT_FALSE(m1.isValid()); in TEST_F()
34 EXPECT_TRUE(m1.isValid()); in TEST_F()
40 EXPECT_TRUE(m1.isValid()); in TEST_F()
48 EXPECT_TRUE(m1.isValid()); in TEST_F()
56 EXPECT_TRUE(m2.isValid()); in TEST_F()
67 EXPECT_TRUE(m1.isValid()); in TEST_F()
DBufferHubEventFd_test.cpp47 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
71 ASSERT_TRUE(dupEventFd.isValid()); in TEST_F()
82 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
103 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
122 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
138 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
145 ASSERT_TRUE(dupEventFd.isValid()); in TEST_F()
157 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
174 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
205 ASSERT_TRUE(eventFd.isValid()); in TEST_F()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/
DResponderLocationTest.java209 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsNull()
225 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsEmpty()
243 boolean valid = responderLocation.isValid(); in testIfLciShortBuffer()
261 boolean valid = responderLocation.isValid(); in testLciValidSubelement()
305 boolean valid = responderLocation.isValid(); in testLciInvalidElement()
325 boolean valid = responderLocation.isValid(); in testSkipLciSubElementUnusedOrUnknown()
345 boolean valid = responderLocation.isValid(); in testInvalidLciSubElementLengthTooSmall()
365 boolean valid = responderLocation.isValid(); in testInvalidLciSubElementLengthTooBig()
384 boolean isValid = responderLocation.isValid(); in testLciValidZBufferSEAfterLci()
392 assertTrue(isValid); in testLciValidZBufferSEAfterLci()
[all …]
DCivicLocationTest.java104 boolean valid = civicLocation.isValid(); in testCivicLocationNullCountryCode()
116 boolean valid = civicLocation.isValid(); in testCivicLocationCountryCodeTooShort()
128 boolean valid = civicLocation.isValid(); in testCivicLocationCountryCodeTooLong()
140 boolean valid = civicLocation.isValid(); in testCivicLocationNullBuffer()
152 boolean valid = civicLocation.isValid(); in testCivicLocationEmptyBuffer()
164 boolean valid = civicLocation.isValid(); in testCivicLocationValid()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessageValidator.java41 int isValid(byte[] params); in isValid() method
193 int isValid(HdmiCecMessage message) { in isValid() method in HdmiCecMessageValidator
221 int errorCode = info.parameterValidator.isValid(message.getParams()); in isValid()
237 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.FixedLengthValidator
254 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.VariableLengthValidator
298 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.PhysicalAddressValidator
308 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.SystemAudioModeRequestValidator
313 return super.isValid(params); in isValid()
319 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.ReportPhysicalAddressValidator
329 public int isValid(byte[] params) { in isValid() method in HdmiCecMessageValidator.RoutingChangeValidator
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDeviceConfigService.java85 boolean isValid = false; in onCommand()
96 isValid = true; in onCommand()
127 isValid = true; in onCommand()
132 isValid = true; in onCommand()
143 isValid = true; in onCommand()
154 isValid = true; in onCommand()
164 isValid = true; in onCommand()
169 isValid = true; in onCommand()
178 if (!isValid) { in onCommand()
/frameworks/native/libs/ui/
DFence.cpp79 if (f1->isValid() && f2->isValid()) { in merge()
81 } else if (f1->isValid()) { in merge()
83 } else if (f2->isValid()) { in merge()
139 return isValid() ? 1 : 0; in getFdCount()
149 if (isValid()) { in flatten()
/frameworks/base/telephony/java/android/telephony/
DSignalStrength.java197 if (mLte.isValid()) return mLte; in getPrimary()
199 if (mNr.isValid()) return mNr; in getPrimary()
200 if (mLte.isValid()) return mLte; in getPrimary()
201 if (mCdma.isValid()) return mCdma; in getPrimary()
202 if (mTdscdma.isValid()) return mTdscdma; in getPrimary()
203 if (mWcdma.isValid()) return mWcdma; in getPrimary()
204 if (mGsm.isValid()) return mGsm; in getPrimary()
256 if (mLte.isValid() && clazz.isAssignableFrom(CellSignalStrengthLte.class)) { in getCellSignalStrengths()
259 if (mCdma.isValid() && clazz.isAssignableFrom(CellSignalStrengthCdma.class)) { in getCellSignalStrengths()
262 if (mTdscdma.isValid() && clazz.isAssignableFrom(CellSignalStrengthTdscdma.class)) { in getCellSignalStrengths()
[all …]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUtilitiesTest.java20 import static com.android.shell.BugreportProgressService.isValid;
29 assertTrue("char '" + c + "' should be valid", isValid(c)); in testIsValidChar_valid()
37 assertFalse("char '" + c + "' should not be valid", isValid(c)); in testIsValidChar_invalid()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest10.java71 assertTrue(mRequest.isValid()); in testCreateShortcutResult_validResult()
94 assertTrue(mRequest.isValid()); in testCreateShortcutResult_alreadyPinned()
118 assertTrue(mRequest.isValid()); in testCreateShortcutResult_alreadyPinnedByAnother()
136 assertFalse(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
145 assertFalse(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
151 assertTrue(mRequest.isValid()); in testCreateShortcutResult_defaultLauncherChanges()
/frameworks/av/media/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
DBufferPoolClient.cpp43 bool isValid() { in isValid() function in android::hardware::media::bufferpool::V2_0::implementation::BufferPoolClient::Impl
169 if (impl && impl->isValid()) { in operator ()()
277 mReleasing.mStatusChannel->isValid() && in Impl()
279 mInvalidationListener->isValid(); in Impl()
307 if (outChannel && outChannel->isValid() && in Impl()
308 outObserver && outObserver->isValid()) { in Impl()
786 bool BufferPoolClient::isValid() { in isValid() function in android::hardware::media::bufferpool::V2_0::implementation::BufferPoolClient
787 return mImpl && mImpl->isValid(); in isValid()
795 if (!isValid()) { in isActive()
803 if (isValid()) { in getConnectionId()
[all …]
DBufferStatus.h102 bool isValid();
183 bool isValid();
203 bool isValid();
/frameworks/native/libs/gui/include/gui/
DSurfaceControl.h50 static bool isValid(const sp<SurfaceControl>& surface) { in isValid() function
51 return (surface != nullptr) && surface->isValid(); in isValid()
54 bool isValid() { in isValid() function
/frameworks/ml/nn/runtime/test/android_fuzzing/
DFuzzTest.cpp70 if (!model.isValid()) return std::nullopt; in CreateModel()
77 if (!model.isValid()) return std::nullopt; in CreateModel()
82 if (!model.isValid()) return std::nullopt; in CreateModel()
86 if (!model.isValid()) return std::nullopt; in CreateModel()
/frameworks/av/media/bufferpool/1.0/
DBufferPoolClient.cpp43 bool isValid() { in isValid() function in android::hardware::media::bufferpool::V1_0::implementation::BufferPoolClient::Impl
156 if (impl && impl->isValid()) { in operator ()()
257 mReleasing.mStatusChannel->isValid(); in Impl()
277 if (outChannel && outChannel->isValid()) { in Impl()
644 bool BufferPoolClient::isValid() { in isValid() function in android::hardware::media::bufferpool::V1_0::implementation::BufferPoolClient
645 return mImpl && mImpl->isValid(); in isValid()
653 if (!isValid()) { in isActive()
661 if (isValid()) { in getConnectionId()
668 if (isValid()) { in getAccessor()
679 if (isValid()) { in allocate()
[all …]

12345678910>>...16