OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:traverseSession
(Results
1 - 17
of
17
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
traversal.h
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
,
44
virtual bool sameAsTyped(const DicTraverseSession *const
traverseSession
,
51
virtual bool isPossibleOmissionChildNode(const DicTraverseSession *const
traverseSession
,
weighting.h
33
const DicTraverseSession *const
traverseSession
,
38
virtual float getTerminalSpatialCost(const DicTraverseSession *const
traverseSession
,
45
const DicTraverseSession *const
traverseSession
, const DicNode *const dicNode,
48
virtual bool isProximityDicNode(const DicTraverseSession *const
traverseSession
,
52
const DicTraverseSession *const
traverseSession
, const DicNode *const parentDicNode,
56
const DicTraverseSession *const
traverseSession
,
59
virtual float getNewWordSpatialCost(const DicTraverseSession *const
traverseSession
,
63
const DicTraverseSession *const
traverseSession
, const DicNode *const dicNode,
67
const DicTraverseSession *const
traverseSession
,
71
const DicTraverseSession *const
traverseSession
,
[
all
...]
weighting.cpp
75
const CorrectionType correctionType, const DicTraverseSession *const
traverseSession
,
78
const int inputSize =
traverseSession
->getInputSize();
82
traverseSession
, parentDicNode, dicNode, &inputStateG);
84
traverseSession
, parentDicNode, dicNode, multiBigramMap);
85
const ErrorType errorType = weighting->getErrorType(correctionType,
traverseSession
,
104
const CorrectionType correctionType, const DicTraverseSession *const
traverseSession
,
117
return weighting->getNewWordSpatialCost(
traverseSession
, dicNode, inputStateG);
119
return weighting->getMatchedCost(
traverseSession
, dicNode, inputStateG);
121
return weighting->getCompletionCost(
traverseSession
, dicNode);
123
return weighting->getTerminalSpatialCost(
traverseSession
, dicNode)
[
all
...]
scoring.h
32
virtual bool getMostProbableString(const DicTraverseSession *const
traverseSession
,
40
virtual float getAdjustedLanguageWeight(DicTraverseSession *const
traverseSession
,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
suggest.h
49
int getSuggestions(ProximityInfo *pInfo, void *
traverseSession
, int *inputXs, int *inputYs,
56
void createNextWordDicNode(DicTraverseSession *
traverseSession
, DicNode *dicNode,
58
int outputSuggestions(DicTraverseSession *
traverseSession
, int *frequencies,
62
void initializeSearch(DicTraverseSession *
traverseSession
, int commitPoint) const;
63
void expandCurrentDicNodes(DicTraverseSession *
traverseSession
) const;
64
void processTerminalDicNode(DicTraverseSession *
traverseSession
, DicNode *dicNode) const;
65
void processExpandedDicNode(DicTraverseSession *
traverseSession
, DicNode *dicNode) const;
66
void weightChildNode(DicTraverseSession *
traverseSession
, DicNode *dicNode) const;
67
float getAutocorrectScore(DicTraverseSession *
traverseSession
, DicNode *dicNode) const;
69
DicTraverseSession *
traverseSession
, DicNode *dicNode, float *features) const
[
all
...]
suggest.cpp
47
* TODO: Stop detecting continuous suggestion. Start using
traverseSession
instead.
49
int Suggest::getSuggestions(ProximityInfo *pInfo, void *
traverseSession
,
56
DicTraverseSession *tSession = static_cast<DicTraverseSession *>(
traverseSession
);
84
void Suggest::initializeSearch(DicTraverseSession *
traverseSession
, int commitPoint) const {
85
if (!
traverseSession
->getProximityInfoState(0)->isUsed()) {
92
if (
traverseSession
->getInputSize() > MIN_CONTINUOUS_SUGGESTION_INPUT_SIZE
93
&&
traverseSession
->isContinuousSuggestionPossible()) {
96
traverseSession
->getDicTraverseCache()->continueSearch();
100
traverseSession
->getDicTraverseCache()->setCommitPoint(commitPoint);
101
traverseSession
->setPrevWordPos(topDicNode->getPrevWordNodePos())
[
all
...]
suggest_interface.h
28
virtual int getSuggestions(ProximityInfo *pInfo, void *
traverseSession
, int *inputXs,
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
typing_traversal.h
46
AK_FORCE_INLINE bool isOmission(const DicTraverseSession *const
traverseSession
,
58
const int inputSize =
traverseSession
->getInputSize();
70
CharUtils::toBaseLowerCase(
traverseSession
->getProximityInfoState(0)
76
const DicTraverseSession *const
traverseSession
, const DicNode *const dicNode) const {
80
if (!canDoLookAheadCorrection(
traverseSession
, dicNode)) {
85
&&
traverseSession
->getProximityInfoState(0)->
90
const DicTraverseSession *const
traverseSession
, const DicNode *const dicNode) const {
94
const int inputSize =
traverseSession
->getInputSize();
108
const DicTraverseSession *const
traverseSession
) const {
109
const int inputSize =
traverseSession
->getInputSize()
[
all
...]
typing_weighting.h
39
float getTerminalSpatialCost(const DicTraverseSession *const
traverseSession
,
71
float getMatchedCost(const DicTraverseSession *const
traverseSession
,
76
const float normalizedSquaredLength =
traverseSession
->getProximityInfoState(0)
80
traverseSession
->isTouchPositionCorrectionEnabled(), normalizedSquaredLength);
84
const bool isProximity = isProximityDicNode(
traverseSession
, dicNode);
103
bool isProximityDicNode(const DicTraverseSession *const
traverseSession
,
107
traverseSession
->getProximityInfoState(0)->getPrimaryCodePointAt(pointIndex));
112
float getTranspositionCost(const DicTraverseSession *const
traverseSession
,
116
const float distance1 =
traverseSession
->getProximityInfoState(0)->getPointToKeyLength(
119
const float distance2 =
traverseSession
->getProximityInfoState(0)->getPointToKeyLength
[
all
...]
typing_weighting.cpp
27
const DicTraverseSession *const
traverseSession
, const DicNode *const parentDicNode,
31
if (isProximityDicNode(
traverseSession
, dicNode)) {
typing_scoring.h
34
const DicTraverseSession *const
traverseSession
, const int terminalSize,
49
AK_FORCE_INLINE float getAdjustedLanguageWeight(DicTraverseSession *const
traverseSession
,
/packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_DicTraverseSession.cpp
30
void *
traverseSession
= DicTraverseSession::getSessionInstance(env, localeJStr, dictSize);
31
return reinterpret_cast<jlong>(
traverseSession
);
34
static void latinime_initDicTraverseSession(JNIEnv *env, jclass clazz, jlong
traverseSession
,
36
DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(
traverseSession
);
49
static void latinime_releaseDicTraverseSession(JNIEnv *env, jclass clazz, jlong
traverseSession
) {
50
DicTraverseSession *ts = reinterpret_cast<DicTraverseSession *>(
traverseSession
);
com_android_inputmethod_latin_BinaryDictionary.cpp
148
DicTraverseSession *
traverseSession
=
211
count = dictionary->getSuggestions(pInfo,
traverseSession
, xCoordinates, yCoordinates,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
dictionary.cpp
54
int Dictionary::getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *
traverseSession
,
62
traverseSession
, this, prevWordCodePoints, prevWordLength, suggestOptions);
63
result = mGestureSuggest->getSuggestions(proximityInfo,
traverseSession
, xcoordinates,
72
traverseSession
, this, prevWordCodePoints, prevWordLength, suggestOptions);
73
result = mTypingSuggest->getSuggestions(proximityInfo,
traverseSession
, xcoordinates,
dictionary.h
59
int getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession *
traverseSession
,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
dic_traverse_session.h
48
static AK_FORCE_INLINE void initSessionInstance(DicTraverseSession *
traverseSession
,
51
if (
traverseSession
) {
52
DicTraverseSession *tSession = static_cast<DicTraverseSession *>(
traverseSession
);
57
static AK_FORCE_INLINE void releaseSessionInstance(DicTraverseSession *
traverseSession
) {
58
delete
traverseSession
;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java
81
DicTraverseSession
traverseSession
= mDicTraverseSessions.get(traverseSessionId);
82
if (
traverseSession
== null) {
83
traverseSession
= mDicTraverseSessions.get(traverseSessionId);
84
if (
traverseSession
== null) {
85
traverseSession
= new DicTraverseSession(mLocale, mNativeDict, mDictSize);
86
mDicTraverseSessions.put(traverseSessionId,
traverseSession
);
89
return
traverseSession
;
129
long
traverseSession
, int[] xCoordinates, int[] yCoordinates, int[] times,
358
final DicTraverseSession
traverseSession
= mDicTraverseSessions.valueAt(index);
359
if (
traverseSession
!= null)
[
all
...]
Completed in 920 milliseconds