Home
last modified time | relevance | path

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

123

/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/suggest/policyimpl/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()
Dver4_patricia_trie_policy.cpp64 if (!ptNodeParams.isValid()) { in createAndGetAllChildDicNodes()
272 if (!prevWordsInfo->isValid()) { in addNgramEntry()
334 if (!prevWordsInfo->isValid()) { in removeNgramEntry()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DPrevWordsInfo.java60 public boolean isValid() { in isValid() method in PrevWordsInfo.WordInfo
114 public boolean isValid() { in isValid() method in PrevWordsInfo
115 return mPrevWordsInfo[0].isValid(); in isValid()
122 if (wordInfo == null || !wordInfo.isValid()) { in outputToArray()
153 if (wordInfo == null || !wordInfo.isValid()) { in toString()
DBinaryDictionary.java361 if (!prevWordsInfo.isValid() || TextUtils.isEmpty(word)) { in getNgramProbability()
458 if (!prevWordsInfo.isValid() || TextUtils.isEmpty(word)) { in addNgramEntry()
476 if (!prevWordsInfo.isValid() || TextUtils.isEmpty(word)) { in removeNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/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/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/bigram/
Dver4_bigram_list_policy.cpp132 if (!originalBigramEntry.isValid()) { in addNewEntry()
182 if (!bigramEntry.isValid()) { in updateAllBigramEntriesAndDeleteUselessEntries()
230 if (bigramEntry.isValid()) { in getBigramEntryConut()
257 } else if (!bigramEntry.isValid()) { in getEntryPosToUpdate()
/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/src/suggest/policyimpl/dictionary/structure/pt_common/
Ddynamic_pt_reading_helper.cpp50 if (!ptNodeParams.isValid()) { in traverseAllPtNodesInPostorderDepthFirstManner()
118 if (!ptNodeParams.isValid()) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner()
197 if (!ptNodeParams.isValid() || totalCodePointCount > maxCodePointCount) { in getCodePointsAndProbabilityAndReturnCodePointCount()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java190 this.isValid = true; in MosaicJpeg()
197 this.isValid = false; in MosaicJpeg()
203 public final boolean isValid; field in PanoramaActivity.MosaicJpeg
625 if (jpeg != null && jpeg.isValid) { in stopCapture()
849 } else if (!jpeg.isValid) { // Error when generating mosaic. in saveHighResMosaic()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.cpp174 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() local
175 if (!isValid) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
181 *outNeedsToKeepPtNode = isValid; in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
Dver4_patricia_trie_policy.cpp54 if (!ptNodeParams.isValid()) { in createAndGetAllChildDicNodes()
283 if (!prevWordsInfo->isValid()) { in addNgramEntry()
346 if (!prevWordsInfo->isValid()) { in removeNgramEntry()
Dver4_dict_buffers.h48 AK_FORCE_INLINE bool isValid() const { in isValid() function
49 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid(); in isValid()
/packages/apps/Camera/src/com/android/camera/
DPanoramaModule.java186 this.isValid = true; in MosaicJpeg()
193 this.isValid = false; in MosaicJpeg()
199 public final boolean isValid; field in PanoramaModule.MosaicJpeg
601 if (jpeg != null && jpeg.isValid) { in stopCapture()
812 } else if (!jpeg.isValid) { // Error when generating mosaic. in saveHighResMosaic()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
Dbigram_entry.h64 bool isValid() const { in isValid() function
77 return mHistoricalInfo.isValid(); in hasHistoricalInfo()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/content/
Dbigram_entry.h73 bool isValid() const { in isValid() function
86 return mHistoricalInfo.isValid(); in hasHistoricalInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java62 final PrevWordsInfo prevWordsInfo, final String word, final boolean isValid, in addToDictionary() argument
69 final int frequency = isValid ? in addToDictionary()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java60 if (isValid() && !hasTimestamp) return; in possibleUpdate()
83 public boolean isValid() { in isValid() method in DataStatus
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DDataStatus.java62 if (isValid() && !hasTimestamp) return; in possibleUpdate()
85 public boolean isValid() { in isValid() method in DataStatus
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DLanguageModelParam.java157 && !prevWordsInfo.isValid() && !isValidWord) { in createAndGetLanguageModelParamOfWord()
171 if (!prevWordsInfo.isValid()) { in createAndGetLanguageModelParamOfWord()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmUtils.java77 boolean isValid = (station >= LOWEST_STATION && station <= HIGHEST_STATION); in isValidStation()
78 return isValid; in isValidStation()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMasInstance.java151 … boolean isValid = mMapService.onConnect(mRemoteDevice, BluetoothMapMasInstance.this); in run()
153 if(isValid == false) { in run()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
Dtrie_map.h44 Result(const uint64_t value, const bool isValid, const int nextLevelBitmapEntryIndex) in Result()
45 : mValue(value), mIsValid(isValid), in Result()
/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java255 /*package*/ boolean isValid() { in isValid() method in ContentCache.CacheToken
485 if (!token.isValid()) { in putCursorImpl()

123