Home
last modified time | relevance | path

Searched refs:DicTraverseSession (Results 1 – 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
Dweighting.h26 class DicTraverseSession; variable
34 const DicTraverseSession *const traverseSession,
39 virtual float getTerminalSpatialCost(const DicTraverseSession *const traverseSession,
46 const DicTraverseSession *const traverseSession, const DicNode *const dicNode,
49 virtual bool isProximityDicNode(const DicTraverseSession *const traverseSession,
53 const DicTraverseSession *const traverseSession, const DicNode *const parentDicNode,
57 const DicTraverseSession *const traverseSession,
60 virtual float getSpaceOmissionCost(const DicTraverseSession *const traverseSession,
64 const DicTraverseSession *const traverseSession, const DicNode *const dicNode,
68 const DicTraverseSession *const traverseSession,
[all …]
Dtraversal.h24 class DicTraverseSession; variable
30 virtual bool isOmission(const DicTraverseSession *const traverseSession,
33 virtual bool isSpaceSubstitutionTerminal(const DicTraverseSession *const traverseSession,
35 virtual bool isSpaceOmissionTerminal(const DicTraverseSession *const traverseSession,
37 virtual bool shouldDepthLevelCache(const DicTraverseSession *const traverseSession) const = 0;
38 virtual bool shouldNodeLevelCache(const DicTraverseSession *const traverseSession,
40 virtual bool canDoLookAheadCorrection(const DicTraverseSession *const traverseSession,
42 virtual ProximityType getProximityType(const DicTraverseSession *const traverseSession,
49 virtual bool isPossibleOmissionChildNode(const DicTraverseSession *const traverseSession,
Dscoring.h25 class DicTraverseSession; variable
34 virtual void getMostProbableString(const DicTraverseSession *const traverseSession,
38 DicTraverseSession *const traverseSession, DicNode *const terminals,
43 virtual bool sameAsTyped(const DicTraverseSession *const traverseSession,
Dweighting.cpp76 const CorrectionType correctionType, const DicTraverseSession *const traverseSession, in addCostAndForwardInputIndex()
105 const CorrectionType correctionType, const DicTraverseSession *const traverseSession, in getSpatialCost()
143 const CorrectionType correctionType, const DicTraverseSession *const traverseSession, in getLanguageCost()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
Dsuggest.h36 class DicTraverseSession; variable
57 void createNextWordDicNode(DicTraverseSession *traverseSession, DicNode *dicNode,
59 void initializeSearch(DicTraverseSession *traverseSession) const;
60 void expandCurrentDicNodes(DicTraverseSession *traverseSession) const;
61 void processTerminalDicNode(DicTraverseSession *traverseSession, DicNode *dicNode) const;
62 void processExpandedDicNode(DicTraverseSession *traverseSession, DicNode *dicNode) const;
63 void weightChildNode(DicTraverseSession *traverseSession, DicNode *dicNode) const;
64 void processDicNodeAsOmission(DicTraverseSession *traverseSession, DicNode *dicNode) const;
65 void processDicNodeAsDigraph(DicTraverseSession *traverseSession, DicNode *dicNode) const;
66 void processDicNodeAsTransposition(DicTraverseSession *traverseSession,
[all …]
Dsuggest.cpp55 DicTraverseSession *tSession = static_cast<DicTraverseSession *>(traverseSession); in getSuggestions()
81 void Suggest::initializeSearch(DicTraverseSession *traverseSession) const { in initializeSearch()
107 void Suggest::expandCurrentDicNodes(DicTraverseSession *traverseSession) const { in expandCurrentDicNodes()
230 DicTraverseSession *traverseSession, DicNode *dicNode) const { in processTerminalDicNode()
260 DicTraverseSession *traverseSession, DicNode *dicNode) const { in processExpandedDicNode()
274 void Suggest::processDicNodeAsMatch(DicTraverseSession *traverseSession, in processDicNodeAsMatch()
280 void Suggest::processDicNodeAsAdditionalProximityChar(DicTraverseSession *traverseSession, in processDicNodeAsAdditionalProximityChar()
289 void Suggest::processDicNodeAsSubstitution(DicTraverseSession *traverseSession, in processDicNodeAsSubstitution()
299 void Suggest::processDicNodeAsDigraph(DicTraverseSession *traverseSession, in processDicNodeAsDigraph()
314 DicTraverseSession *traverseSession, DicNode *dicNode) const { in processDicNodeAsOmission()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
Dtyping_weighting.h40 float getTerminalSpatialCost(const DicTraverseSession *const traverseSession, in getTerminalSpatialCost()
75 float getMatchedCost(const DicTraverseSession *const traverseSession, in getMatchedCost()
105 bool isProximityDicNode(const DicTraverseSession *const traverseSession, in isProximityDicNode()
114 float getTranspositionCost(const DicTraverseSession *const traverseSession, in getTranspositionCost()
129 float getInsertionCost(const DicTraverseSession *const traverseSession, in getInsertionCost()
153 float getSpaceOmissionCost(const DicTraverseSession *const traverseSession, in getSpaceOmissionCost()
159 float getNewWordBigramLanguageCost(const DicTraverseSession *const traverseSession, in getNewWordBigramLanguageCost()
167 float getCompletionCost(const DicTraverseSession *const traverseSession, in getCompletionCost()
178 float getTerminalLanguageCost(const DicTraverseSession *const traverseSession, in getTerminalLanguageCost()
183 float getTerminalInsertionCost(const DicTraverseSession *const traverseSession, in getTerminalInsertionCost()
[all …]
Dtyping_traversal.h47 AK_FORCE_INLINE bool isOmission(const DicTraverseSession *const traverseSession, in isOmission()
77 const DicTraverseSession *const traverseSession, const DicNode *const dicNode) const { in isSpaceSubstitutionTerminal()
98 const DicTraverseSession *const traverseSession, const DicNode *const dicNode) const { in isSpaceOmissionTerminal()
123 const DicTraverseSession *const traverseSession) const { in shouldDepthLevelCache()
129 const DicTraverseSession *const traverseSession, const DicNode *const dicNode) const { in shouldNodeLevelCache()
134 const DicTraverseSession *const traverseSession, const DicNode *const dicNode) const { in canDoLookAheadCorrection()
140 const DicTraverseSession *const traverseSession, const DicNode *const dicNode, in getProximityType()
174 const DicTraverseSession *const traverseSession, const DicNode *const parentDicNode, in isPossibleOmissionChildNode()
Dtyping_scoring.h29 class DicTraverseSession; variable
35 AK_FORCE_INLINE void getMostProbableString(const DicTraverseSession *const traverseSession, in getMostProbableString()
40 DicTraverseSession *const traverseSession, DicNode *const terminals, in getAdjustedWeightOfLangModelVsSpatialModel()
105 AK_FORCE_INLINE bool sameAsTyped(const DicTraverseSession *const traverseSession, in sameAsTyped()
Dtyping_weighting.cpp28 const DicTraverseSession *const traverseSession, const DicNode *const parentDicNode, in getErrorType()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_DicTraverseSession.cpp31 void *traverseSession = DicTraverseSession::getSessionInstance(env, localeJStr, dictSize); in latinime_setDicTraverseSession()
37 DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(traverseSession); in latinime_initDicTraverseSession()
54 DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(traverseSession); in latinime_releaseDicTraverseSession()
55 DicTraverseSession::releaseSessionInstance(ts); in latinime_releaseDicTraverseSession()
Dcom_android_inputmethod_latin_BinaryDictionary.cpp194 DicTraverseSession *traverseSession = in latinime_BinaryDictionary_getSuggestions()
195 reinterpret_cast<DicTraverseSession *>(dicTraverseSession); in latinime_BinaryDictionary_getSuggestions()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.cpp29 const int DicTraverseSession::DICTIONARY_SIZE_THRESHOLD_TO_USE_LARGE_CACHE_FOR_SUGGESTION =
32 void DicTraverseSession::init(const Dictionary *const dictionary, in init()
42 void DicTraverseSession::setupForGetSuggestions(const ProximityInfo *pInfo, in setupForGetSuggestions()
52 const DictionaryStructureWithBufferPolicy *DicTraverseSession::getDictionaryStructurePolicy() in getDictionaryStructurePolicy()
57 void DicTraverseSession::resetCache(const int thresholdForNextActiveDicNodes, const int maxWords) { in resetCache()
63 void DicTraverseSession::initializeProximityInfoStates(const int *const inputCodePoints, in initializeProximityInfoStates()
Ddic_traverse_session.h37 class DicTraverseSession {
45 return new DicTraverseSession(env, localeStr, in getSessionInstance()
49 static AK_FORCE_INLINE void releaseSessionInstance(DicTraverseSession *traverseSession) { in releaseSessionInstance()
53 AK_FORCE_INLINE DicTraverseSession(JNIEnv *env, jstring localeStr, bool usesLargeCache) in DicTraverseSession() function
62 AK_FORCE_INLINE ~DicTraverseSession() {} in ~DicTraverseSession()
161 DISALLOW_IMPLICIT_CONSTRUCTORS(DicTraverseSession);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.h27 class DicTraverseSession; variable
45 DicTraverseSession *traverseSession, const float weightOfLangModelVsSpatialModel,
55 DicTraverseSession *traverseSession, const DicNode *const terminalDicNode,
Dsuggestions_output_utils.cpp36 const Scoring *const scoringPolicy, DicTraverseSession *traverseSession, in outputSuggestions()
126 const Scoring *const scoringPolicy, DicTraverseSession *traverseSession, in outputSuggestionsOfDicNode()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DBinaryDictionary.java99 private final SparseArray<DicTraverseSession> mDicTraverseSessions = new SparseArray<>();
103 private DicTraverseSession getTraverseSession(final int traverseSessionId) { in getTraverseSession()
105 DicTraverseSession traverseSession = mDicTraverseSessions.get(traverseSessionId); in getTraverseSession()
107 traverseSession = new DicTraverseSession(mLocale, mNativeDict, mDictSize); in getTraverseSession()
276 final DicTraverseSession session = getTraverseSession(sessionId); in getSuggestions()
643 final DicTraverseSession traverseSession = mDicTraverseSessions.valueAt(index); in close()
DDicTraverseSession.java25 public final class DicTraverseSession { class
56 public DicTraverseSession(Locale locale, long dictionary, long dictSize) { in DicTraverseSession() method in DicTraverseSession
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.h35 class DicTraverseSession; variable
68 void getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *traverseSession,
Ddictionary.cpp47 void Dictionary::getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *traverseSession, in getSuggestions()
/packages/inputmethods/LatinIME/
DAndroid.bp24 "java/src/com/android/inputmethod/latin/DicTraverseSession.java",