Home
last modified time | relevance | path

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

123456789

/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpVvmCarrierConfigHelper.java183 public boolean isValid() { in isValid() method in OmtpVvmCarrierConfigHelper
203 Assert.checkArgument(isValid()); in getString()
222 Assert.checkArgument(isValid()); in getCarrierVvmPackageNames()
251 if (!isValid()) { in isEnabledByDefault()
258 Assert.checkArgument(isValid()); in isCellularDataRequired()
263 Assert.checkArgument(isValid()); in isPrefetchEnabled()
268 Assert.checkArgument(isValid()); in getApplicationPort()
274 Assert.checkArgument(isValid()); in getDestinationNumber()
280 Assert.checkArgument(isValid()); in getSslPort()
296 Assert.checkArgument(isValid()); in getDisabledCapabilities()
[all …]
/packages/modules/NeuralNetworks/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()
155 ASSERT_TRUE(memory.isValid()); in TEST_F()
166 ASSERT_TRUE(model.isValid()); in TEST_F()
222 ASSERT_TRUE(model.isValid()); in TEST_P()
DTestPartitioning.cpp680 using WrapperModel::isValid;
1596 ASSERT_TRUE(model.isValid()); in TEST_F()
1644 ASSERT_TRUE(modelB0.isValid()); in TEST_F()
1668 ASSERT_TRUE(modelB1.isValid()); in TEST_F()
1691 ASSERT_TRUE(model.isValid()); in TEST_F()
1731 ASSERT_TRUE(modelB0.isValid()); in TEST_F()
1751 ASSERT_TRUE(modelB1.isValid()); in TEST_F()
1774 ASSERT_TRUE(modelB2.isValid()); in TEST_F()
1798 ASSERT_TRUE(modelB3.isValid()); in TEST_F()
1821 ASSERT_TRUE(model.isValid()); in TEST_F()
[all …]
DTestMemoryInternal.cpp114 ASSERT_TRUE(weights.isValid()); in TEST_F()
133 ASSERT_TRUE(model.isValid()); in TEST_F()
146 ASSERT_TRUE(input.isValid()); in TEST_F()
157 ASSERT_TRUE(actual.isValid()); in TEST_F()
220 ASSERT_TRUE(model.isValid()); in TEST_F()
DTestMemory.cpp57 ASSERT_TRUE(weights.isValid()); in TEST_F()
76 ASSERT_TRUE(model.isValid()); in TEST_F()
120 ASSERT_TRUE(weights.isValid()); in TEST_F()
139 ASSERT_TRUE(model.isValid()); in TEST_F()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/rtt/
DResponderLocationTest.java210 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsNull()
226 boolean valid = responderLocation.isValid(); in testIfLciOrLcrIsEmpty()
244 boolean valid = responderLocation.isValid(); in testIfLciShortBuffer()
262 boolean valid = responderLocation.isValid(); in testLciValidSubelement()
306 boolean valid = responderLocation.isValid(); in testLciInvalidElement()
326 boolean valid = responderLocation.isValid(); in testSkipLciSubElementUnusedOrUnknown()
346 boolean valid = responderLocation.isValid(); in testInvalidLciSubElementLengthTooSmall()
366 boolean valid = responderLocation.isValid(); in testInvalidLciSubElementLengthTooBig()
385 boolean isValid = responderLocation.isValid(); in testLciValidZBufferSEAfterLci()
393 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()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimConverter.cpp102 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
110 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
122 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
181 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
208 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
217 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
229 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
241 if (!resultModel.isValid()) { in convertSubgraphFromHAL()
270 bool isValid(const Subgraph& subgraph) { in isValid() function
349 bool isValid(const neuralnetworks::Model& model) { in isValid() function
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImagePropertiesTest.java129 Assert.assertTrue(properties.isValid()); in testParsePropertiesSimple()
160 Assert.assertTrue(properties.isValid()); in testParsePropertiesRich()
185 Assert.assertFalse(properties.isValid()); in testParseNoHandle()
211 Assert.assertFalse(properties.isValid()); in testParseNoVersion()
236 Assert.assertTrue(properties.isValid()); in testParseNoFriendlyName()
258 Assert.assertTrue(properties.isValid()); in testParseFixedVariantThumbnailFormat()
280 Assert.assertTrue(properties.isValid()); in testParseRangeVariantThumbnailFormat()
302 Assert.assertTrue(properties.isValid()); in testParseFixedRangeVariantThumbnailFormat()
327 Assert.assertFalse(properties.isValid()); in testParseNoThumbnailFormats()
348 Assert.assertFalse(properties.isValid()); in testParseNoFormats()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleRecipientEntry.java33 final Uri photoThumbnailUri, final boolean isFirstLevel, final boolean isValid, in BugleRecipientEntry() argument
36 directoryId, dataId, photoThumbnailUri, isFirstLevel, isValid, lookupKey); in BugleRecipientEntry()
42 final long dataId, final String thumbnailUriAsString, final boolean isValid, in constructTopLevelEntry() argument
46 ? Uri.parse(thumbnailUriAsString) : null), true, isValid, lookupKey); in constructTopLevelEntry()
52 final long dataId, final String thumbnailUriAsString, final boolean isValid, in constructSecondLevelEntry() argument
56 ? Uri.parse(thumbnailUriAsString) : null), false, isValid, lookupKey); in constructSecondLevelEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.h56 AK_FORCE_INLINE bool isValid() const { in isValid() function
57 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid() in isValid()
58 && mProbabilityDictContent.isValid() && mTerminalPositionLookupTable.isValid() in isValid()
59 && mBigramDictContent.isValid() && mShortcutDictContent.isValid(); in isValid()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp253 if (!mPlan.isValid()) { in getPreferredMemoryAlignmentForInput()
275 if (!mPlan.isValid()) { in getPreferredMemoryPaddingForInput()
298 if (!mPlan.isValid()) { in getPreferredMemoryAlignmentForOutput()
321 if (!mPlan.isValid()) { in getPreferredMemoryPaddingForOutput()
342 if (!mPlan.isValid()) { in createExecution()
361 if (!mPlan.isValid()) { in createBurst()
377 if (!mPlan.isValid()) { in forEachStepRoleOfInput()
396 if (!mPlan.isValid()) { in forEachStepRoleOfOutput()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DNgramContext.java77 public boolean isValid() { in isValid() method in NgramContext.WordInfo
143 if (mPrevWordsInfo[i] != null && mPrevWordsInfo[i].isValid()) { in extractPrevWordsContext()
166 if (mPrevWordsInfo[i] != null && mPrevWordsInfo[i].isValid()) { in extractPrevWordsContextArray()
182 public boolean isValid() { in isValid() method in NgramContext
183 return mPrevWordsCount > 0 && mPrevWordsInfo[0].isValid(); in isValid()
212 if (wordInfo == null || !wordInfo.isValid()) { in outputToArray()
280 if (!wordInfo.isValid()) { in toString()
/packages/modules/Connectivity/tests/cts/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()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp83 if (!prevWordProbabilityEntry.isValid()) { in getWordAttributes()
182 if (probabilityEntry.isValid()) { in exportAllNgramEntriesRelatedToWordInner()
221 const int wordId, const bool isValid, const HistoricalInfo historicalInfo, in updateAllEntriesOnInputWord() argument
229 originalUnigramProbabilityEntry, isValid, historicalInfo, headerPolicy); in updateAllEntriesOnInputWord()
245 originalNgramProbabilityEntry, isValid, historicalInfo, headerPolicy); in updateAllEntriesOnInputWord()
251 if (!originalNgramProbabilityEntry.isValid()) { in updateAllEntriesOnInputWord()
262 const ProbabilityEntry &originalProbabilityEntry, const bool isValid, in createUpdatedEntryFrom() argument
267 if (originalProbabilityEntry.isValid()) { in createUpdatedEntryFrom()
341 if (prevWordCount > 0 && probabilityEntry.isValid() in updateAllProbabilityEntriesForGCInner()
349 if (mHasHistoricalInfo && probabilityEntry.isValid()) { in updateAllProbabilityEntriesForGCInner()
/packages/modules/NeuralNetworks/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()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java151 boolean isValid = isDefaultLocaleValid(); in updateState()
152 mDefaultLanguagePreference.setEnabled(isValid); in updateState()
156 mSpeechRatePreference.setEnabled(isValid); in updateState()
157 mVoicePitchPreference.setEnabled(isValid); in updateState()
158 mResetPreference.setEnabled(isValid); in updateState()
159 if (!isValid && mDefaultLanguagePreference.getEntries() != null) { in updateState()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DTlvBufferUtilsTest.java65 TlvBufferUtils.isValid(tlv11.getArray(), 1, 1), in testTlvBuild()
68 TlvBufferUtils.isValid(tlv01.getArray(), 0, 1), in testTlvBuild()
236 TlvBufferUtils.isValid(tlv22.getArray(), 2, 2), in testTlvIterate()
239 TlvBufferUtils.isValid(tlv02.getArray(), 0, 2), in testTlvIterate()
322 TlvBufferUtils.isValid(array, 0, 1), equalTo(false)); in testTlvInvalidByteArray()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp131 if (!originalBigramEntry.isValid()) { in addNewEntry()
181 if (!bigramEntry.isValid()) { in updateAllBigramEntriesAndDeleteUselessEntries()
229 if (bigramEntry.isValid()) { in getBigramEntryConut()
252 } else if (!bigramEntry.isValid()) { in getEntryPosToUpdate()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java549 if (testcase.config.isValid() != testcase.isValid) { in testInitialConfigurations()
557 boolean isValid; field in IpClientTest.InitialConfigurationTestCase
561 descr, config, validString(isValid), validString(!isValid)); in errorMessage()
563 static String validString(boolean isValid) { in validString() argument
564 return isValid ? VALID : INVALID; in validString()
579 String descr, boolean isValid, InitialConfiguration config) { in confTestCase() argument
582 testcase.isValid = isValid; in confTestCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformation.java106 if (!isValid(transformation)) { in addTransformation()
119 if (!isValid(transformation)) { in removeTransformation()
133 private boolean isValid(int transformation) { in isValid() method in BipTransformation
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCountryCodeTest.java401 assertEquals(WifiCountryCode.isValid(null), false); in testValidCountryCode()
402 assertEquals(WifiCountryCode.isValid("JPUS"), false); in testValidCountryCode()
403 assertEquals(WifiCountryCode.isValid("JP"), true); in testValidCountryCode()
404 assertEquals(WifiCountryCode.isValid("00"), true); in testValidCountryCode()
405 assertEquals(WifiCountryCode.isValid("0U"), true); in testValidCountryCode()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSurfaceTransactionApplier.java82 if (mBarrierSurfaceControl == null || !mBarrierSurfaceControl.isValid()) { in scheduleApply()
90 if (surfaceParams.surface.isValid()) { in scheduleApply()
112 } else if (new ViewRootImplCompat(targetView).isValid()) { in create()
/packages/modules/NeuralNetworks/common/
DIndexedShapeWrapper.cpp37 NN_CHECK(isValid(*index)); in nextIndexInplace()
63 NN_CHECK(isValid(index)); in indexToFlatIndex()
88 bool IndexedShapeWrapper::isValid(const std::vector<uint32_t>& index) const { in isValid() function in android::nn::IndexedShapeWrapper

123456789