Home
last modified time | relevance | path

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

12345

/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/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()
Dver4_patricia_trie_node_writer.cpp183 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() local
184 if (!isValid) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
190 *outNeedsToKeepPtNode = isValid; in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java96 assertTrue(token1a.isValid()); in testTokenList()
100 assertTrue(token1b.isValid()); in testTokenList()
112 assertFalse(token1a.isValid()); in testTokenList()
113 assertFalse(token1b.isValid()); in testTokenList()
115 assertTrue(token2.isValid()); in testTokenList()
128 assertTrue(token3a.isValid()); in testTokenList()
129 assertTrue(token3b.isValid()); in testTokenList()
130 assertTrue(token3c.isValid()); in testTokenList()
/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()
Dprobability_entry.h64 bool isValid() const { in isValid() function
69 return mHistoricalInfo.isValid(); in hasHistoricalInfo()
/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/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java412 if (testcase.config.isValid() != testcase.isValid) { in testInitialConfigurations()
420 boolean isValid; field in IpClientTest.InitialConfigurationTestCase
424 descr, config, validString(isValid), validString(!isValid)); in errorMessage()
426 static String validString(boolean isValid) { in validString() argument
427 return isValid ? VALID : INVALID; in validString()
442 String descr, boolean isValid, InitialConfiguration config) { in confTestCase() argument
445 testcase.isValid = isValid; in confTestCase()
/packages/apps/Car/Settings/src/com/android/car/settings/tts/
DTtsPlaybackPreferenceController.java129 boolean isValid = isDefaultLocaleValid(); in updateState()
130 mDefaultLanguagePreference.setEnabled(isValid); in updateState()
131 mSpeechRatePreference.setEnabled(isValid); in updateState()
132 mVoicePitchPreference.setEnabled(isValid); in updateState()
133 mResetPreference.setEnabled(isValid); in updateState()
134 if (!isValid && mDefaultLanguagePreference.getEntries() != null) { in updateState()
/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/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraPreview.java36 boolean isValid(); in isValid() method
140 public boolean isValid() { in isValid() method in CameraPreview
141 return mHost.isValid(); in isValid()
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraPreview.java39 boolean isValid(); in isValid() method
164 public boolean isValid() { in isValid() method in CameraPreview
165 return host.isValid(); in isValid()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DPhoneNumberTestService.java98 boolean isValid = false; in dump_PhoneNumberUtil_format()
102 isValid = util.isValidNumber(pn); in dump_PhoneNumberUtil_format()
111 + (isValid ? " (valid)" : " (invalid)")); in dump_PhoneNumberUtil_format()
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp44 EXPECT_FALSE(languageModelDictContent.getProbabilityEntry(wordId).isValid()); in TEST()
47 EXPECT_TRUE(languageModelDictContent.getProbabilityEntry(wordId).isValid()); in TEST()
67 EXPECT_FALSE(languageModelDictContent.getProbabilityEntry(wordId).isValid()); in TEST()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java138 if (hasFocus && mScope.isValid() && v.getParent() == mScope.view) { in onFocusChange()
145 if (!mScope.isValid() || mScope.adapter.getItemCount() == 0) { in focusDirectoryList()
193 if (mScope.isValid()) { in clearFocus()
205 if (!mScope.isValid()) { in focusDocument()
690 boolean isValid() { in isValid() method in FocusManager.ContentScope
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_reading_helper.cpp50 if (!ptNodeParams.isValid()) { in traverseAllPtNodesInPostorderDepthFirstManner()
118 if (!ptNodeParams.isValid()) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner()
194 if (!ptNodeParams.isValid() || totalCodePointCount > maxCodePointCount) { in getCodePointsAndReturnCodePointCount()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAutoCompleteView.java154 if (entry.isValid()) { in doInBackground()
254 if (entry != null && entry.isValid() && entry.getDestination() != null && in getRecipientParticipantDataForConversationCreation()
274 if (entry != null && entry.isValid() && entry.getDestination() != null) { in getSelectedDestinations()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_entry.h73 bool isValid() const { in isValid() function
86 return mHistoricalInfo.isValid(); in hasHistoricalInfo()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp57 if (!ptNodeParams.isValid()) { in createAndGetAllChildDicNodes()
147 if (!probabilityEntry.isValid()) { in iterateNgramEntries()
283 if (!ngramContext->isValid()) { in addNgramEntry()
345 if (!ngramContext->isValid()) { in removeNgramEntry()
Dver4_dict_buffers.h47 AK_FORCE_INLINE bool isValid() const { in isValid() function
48 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid(); in isValid()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java1001 if (!firstProgram.isValid()) { in addDummyPrograms()
1017 if (!lastProgram.isValid()) { in addDummyPrograms()
1051 if (!it.next().isValid()) { in removeDummyPrograms()
1150 if (program.isValid()) { in getLastValidProgram()
1349 boolean isValid = Math.abs(currentPositionMs - mCurrentPositionMs) < REQUEST_TIMEOUT_MS; in onCurrentPositionChanged()
1351 if (isValid || isTimeout) { in onCurrentPositionChanged()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java479 boolean isValid = mMapService.onConnect(device, BluetoothMapMasInstance.this); in onConnect()
481 if (isValid) { in onConnect()
487 return isValid; in onConnect()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java38 return new EmailAddress(emailText).isValid(); in isValidEmail()
241 public boolean isValid() { in isValid() method in EmailAddress
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java100 @Nonnull final NgramContext ngramContext, final String word, final boolean isValid, in addToDictionary() argument
106 isValid, 1 /* count */, timestamp); in addToDictionary()

12345