Home
last modified time | relevance | path

Searched refs:isPossiblyOffensive (Results 1 – 23 of 23) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h58 const bool isPossiblyOffensive, const int probability, in UnigramProperty() argument
62 mIsPossiblyOffensive(isPossiblyOffensive), mProbability(probability), in UnigramProperty()
67 const bool isPossiblyOffensive, const int probability, in UnigramProperty() argument
71 mIsPossiblyOffensive(isPossiblyOffensive), mProbability(probability), in UnigramProperty()
76 const bool isBlacklisted, const bool isPossiblyOffensive, const int probability, in UnigramProperty() argument
80 mIsPossiblyOffensive(isPossiblyOffensive), mProbability(probability), in UnigramProperty()
85 const bool isBlacklisted, const bool isPossiblyOffensive, const int probability, in UnigramProperty() argument
89 mIsPossiblyOffensive(isPossiblyOffensive), mProbability(probability), in UnigramProperty()
100 bool isPossiblyOffensive() const { in isPossiblyOffensive() function
Dword_attributes.h30 const bool isPossiblyOffensive) in WordAttributes() argument
32 mIsPossiblyOffensive(isPossiblyOffensive) {} in WordAttributes()
54 bool isPossiblyOffensive() const { in isPossiblyOffensive() function
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java104 final boolean isPossiblyOffensive) { in PtNode() argument
111 mIsPossiblyOffensive = isPossiblyOffensive; in PtNode()
116 final boolean isPossiblyOffensive, final PtNodeArray children) { in PtNode() argument
122 mIsPossiblyOffensive = isPossiblyOffensive; in PtNode()
206 final boolean isNotAWord, final boolean isPossiblyOffensive) { in update() argument
226 mIsPossiblyOffensive = isPossiblyOffensive; in update()
275 final boolean isNotAWord, final boolean isPossiblyOffensive) { in add() argument
276 add(getCodePoints(word), probabilityInfo, isNotAWord, isPossiblyOffensive); in add() local
334 final boolean isNotAWord, final boolean isPossiblyOffensive) { in add() argument
364 isPossiblyOffensive); in add()
[all …]
DBinaryDictEncoderUtils.java518 final boolean isNotAWord, final boolean isPossiblyOffensive) { in makePtNodeFlags() argument
540 if (isPossiblyOffensive) flags |= FormatSpec.FLAG_IS_POSSIBLY_OFFENSIVE; in makePtNodeFlags()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp149 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in setPtNodeProbability()
183 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in createNewPtNodeArrayWithAChildPtNode()
226 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in reallocatePtNodeAndAddNewPtNodes()
244 reallocatingPtNodeParams->isNotAWord(), reallocatingPtNodeParams->isPossiblyOffensive(), in reallocatePtNodeAndAddNewPtNodes()
253 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in reallocatePtNodeAndAddNewPtNodes()
280 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getUpdatedPtNodeParams() argument
283 isPossiblyOffensive, isNotAWord, isTerminal, false /* hasShortcutTargets */, in getUpdatedPtNodeParams()
290 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getPtNodeParamsForNewPtNode() argument
293 isPossiblyOffensive, isNotAWord, isTerminal, false /* hasShortcutTargets */, in getPtNodeParamsForNewPtNode()
Dpatricia_trie_reading_utils.h57 static AK_FORCE_INLINE bool isPossiblyOffensive(const NodeFlags flags) { in isPossiblyOffensive() function
85 static AK_FORCE_INLINE NodeFlags createAndGetFlags(const bool isPossiblyOffensive, in createAndGetFlags() argument
90 nodeFlags = isPossiblyOffensive ? (nodeFlags | FLAG_IS_POSSIBLY_OFFENSIVE) : nodeFlags; in createAndGetFlags()
Ddynamic_pt_updating_helper.h88 const bool isNotAWord, const bool isPossiblyOffensive, const bool isTerminal,
92 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos,
Dpt_node_params.h147 AK_FORCE_INLINE bool isPossiblyOffensive() const { in isPossiblyOffensive() function
148 return PatriciaTrieReadingUtils::isPossiblyOffensive(mFlags); in isPossiblyOffensive()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java101 boolean isPossiblyOffensive = false; in readDictionaryCombined()
109 dict.add(word, probabilityInfo, isNotAWord, isPossiblyOffensive); in readDictionaryCombined()
117 isPossiblyOffensive = false; in readDictionaryCombined()
146 isPossiblyOffensive = CombinedFormatUtils.isLiteralTrue(params[1]); in readDictionaryCombined()
183 dict.add(word, probabilityInfo, isNotAWord, isPossiblyOffensive); in readDictionaryCombined()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h54 unigramProperty->isPossiblyOffensive())), in ProbabilityEntry()
96 bool isPossiblyOffensive() const { in isPossiblyOffensive() function
158 const bool isNotAWord, const bool isBlacklisted, const bool isPossiblyOffensive) { in createFlags() argument
169 if (isPossiblyOffensive) { in createFlags()
Dlanguage_model_dict_content.cpp111 unigramProbabilityEntry.isPossiblyOffensive()); in getWordAttributes()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java53 final boolean isNotAWord, final boolean isPossiblyOffensive) { in WordProperty() argument
67 mIsPossiblyOffensive = isPossiblyOffensive; in WordProperty()
82 final boolean isPossiblyOffensive, final boolean hasBigram, in WordProperty() argument
92 mIsPossiblyOffensive = isPossiblyOffensive; in WordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp248 sourcePtNodeParams.isPossiblyOffensive(), sourcePtNodeParams.isNotAWord(), in addNgramEntry()
319 ptNodeParams->isPossiblyOffensive(), ptNodeParams->isNotAWord(), in addShortcutTarget()
333 return updatePtNodeFlags(ptNodeParams->getHeadPos(), ptNodeParams->isPossiblyOffensive(), in updatePtNodeHasBigramsAndShortcutTargetsFlags()
389 return updatePtNodeFlags(nodePos, ptNodeParams->isPossiblyOffensive(), in writePtNodeAndGetTerminalIdAndAdvancePosition()
Dver4_patricia_trie_policy.cpp618 ptNodeParams.isNotAWord(), ptNodeParams.isPossiblyOffensive(), in getWordProperty()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java298 final boolean isNotAWord, final boolean isPossiblyOffensive, final int timestamp) { in addUnigramEntry() argument
302 addUnigramLocked(word, frequency, isNotAWord, isPossiblyOffensive, timestamp); in addUnigramEntry()
308 final boolean isNotAWord, final boolean isPossiblyOffensive, final int timestamp) { in addUnigramLocked() argument
310 false /* isBeginningOfSentence */, isNotAWord, isPossiblyOffensive, timestamp)) { in addUnigramLocked()
DBinaryDictionary.java203 boolean isNotAWord, boolean isPossiblyOffensive, int timestamp); in addUnigramEntryNative() argument
447 final boolean isNotAWord, final boolean isPossiblyOffensive, final int timestamp) { in addUnigramEntry() argument
454 isBeginningOfSentence, isNotAWord, isPossiblyOffensive, timestamp)) { in addUnigramEntry()
DSuggestedWords.java338 public boolean isPossiblyOffensive() { in isPossiblyOffensive() method in SuggestedWords.SuggestedWordInfo
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp89 wordAttributes.isPossiblyOffensive(); in shouldBlockWord()
151 (wordAttributes.isPossiblyOffensive() ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) in outputSuggestionsOfDicNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp320 ptNodeParams.isPossiblyOffensive()); in getWordAttributes()
479 ptNodeParams.isNotAWord(), ptNodeParams.isPossiblyOffensive(), in getWordProperty()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java736 final boolean isPossiblyOffensive = random.nextBoolean(); in testGetWordProperties()
739 false /* isBeginningOfSentence */, isNotAWord, isPossiblyOffensive, in testGetWordProperties()
751 assertEquals(isPossiblyOffensive, wordProperty.mIsPossiblyOffensive); in testGetWordProperties()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp38 jboolean flags[] = {unigramProperty.isNotAWord(), unigramProperty.isPossiblyOffensive(), in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp361 jboolean isBeginningOfSentence, jboolean isNotAWord, jboolean isPossiblyOffensive, in latinime_BinaryDictionary_addUnigramEntry() argument
380 isPossiblyOffensive, probability, HistoricalInfo(timestamp, 0 /* level */, in latinime_BinaryDictionary_addUnigramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp567 wordAttributes.isPossiblyOffensive(), wordAttributes.getProbability(), in getWordProperty()