/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | pt_node_params.h | 121 AK_FORCE_INLINE bool isValid() const { in isValid() 126 AK_FORCE_INLINE int getHeadPos() const { in getHeadPos() 131 AK_FORCE_INLINE bool isDeleted() const { in isDeleted() 135 AK_FORCE_INLINE bool willBecomeNonTerminal() const { in willBecomeNonTerminal() 139 AK_FORCE_INLINE bool hasChildren() const { in hasChildren() 143 AK_FORCE_INLINE bool isTerminal() const { in isTerminal() 147 AK_FORCE_INLINE bool isPossiblyOffensive() const { in isPossiblyOffensive() 151 AK_FORCE_INLINE bool isNotAWord() const { in isNotAWord() 155 AK_FORCE_INLINE bool hasBigrams() const { in hasBigrams() 159 AK_FORCE_INLINE bool hasShortcutTargets() const { in hasShortcutTargets() [all …]
|
D | dynamic_pt_reading_helper.h | 83 AK_FORCE_INLINE bool isError() const { in isError() 87 AK_FORCE_INLINE bool isEnd() const { in isEnd() 92 AK_FORCE_INLINE void initWithPtNodeArrayPos(const int ptNodeArrayPos) { in initWithPtNodeArrayPos() 108 AK_FORCE_INLINE void initWithPtNodePos(const int ptNodePos) { in initWithPtNodePos() 124 AK_FORCE_INLINE const PtNodeParams getPtNodeParams() const { in getPtNodeParams() 131 AK_FORCE_INLINE bool isValidTerminalNode(const PtNodeParams &ptNodeParams) const { in isValidTerminalNode() 135 AK_FORCE_INLINE bool isMatchedCodePoint(const PtNodeParams &ptNodeParams, const int index, in isMatchedCodePoint() 141 AK_FORCE_INLINE size_t getPrevTotalCodePointCount() const { in getPrevTotalCodePointCount() 146 AK_FORCE_INLINE size_t getTotalCodePointCount(const PtNodeParams &ptNodeParams) const { in getTotalCodePointCount() 151 AK_FORCE_INLINE void fetchMergedNodeCodePointsInReverseOrder(const PtNodeParams &ptNodeParams, in fetchMergedNodeCodePointsInReverseOrder() [all …]
|
D | patricia_trie_reading_utils.h | 57 static AK_FORCE_INLINE bool isPossiblyOffensive(const NodeFlags flags) { in isPossiblyOffensive() 61 static AK_FORCE_INLINE bool isNotAWord(const NodeFlags flags) { in isNotAWord() 65 static AK_FORCE_INLINE bool isTerminal(const NodeFlags flags) { in isTerminal() 69 static AK_FORCE_INLINE bool hasShortcutTargets(const NodeFlags flags) { in hasShortcutTargets() 73 static AK_FORCE_INLINE bool hasBigrams(const NodeFlags flags) { in hasBigrams() 77 static AK_FORCE_INLINE bool hasMultipleChars(const NodeFlags flags) { in hasMultipleChars() 81 static AK_FORCE_INLINE bool hasChildrenInFlags(const NodeFlags flags) { in hasChildrenInFlags() 85 static AK_FORCE_INLINE NodeFlags createAndGetFlags(const bool isPossiblyOffensive, in createAndGetFlags()
|
D | dynamic_pt_reading_utils.h | 35 static AK_FORCE_INLINE bool isValidForwardLinkPosition(const int forwardLinkAddress) { in isValidForwardLinkPosition() 49 static AK_FORCE_INLINE bool isMoved(const NodeFlags flags) { in isMoved() 53 static AK_FORCE_INLINE bool isDeleted(const NodeFlags flags) { in isDeleted() 57 static AK_FORCE_INLINE bool willBecomeNonTerminal(const NodeFlags flags) { in willBecomeNonTerminal() 61 static AK_FORCE_INLINE NodeFlags updateAndGetFlags(const NodeFlags originalFlags, in updateAndGetFlags()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | trie_map.h | 79 AK_FORCE_INLINE int key() const { in key() 83 AK_FORCE_INLINE uint64_t value() const { in value() 87 AK_FORCE_INLINE int getNextLevelBitmapEntryIndex() const { in getNextLevelBitmapEntryIndex() 235 AK_FORCE_INLINE bool isBitmapEntry() const { in isBitmapEntry() 239 AK_FORCE_INLINE bool hasTerminalLink() const { in hasTerminalLink() 244 AK_FORCE_INLINE uint32_t getKey() const { in getKey() 249 AK_FORCE_INLINE uint32_t getValue() const { in getValue() 254 AK_FORCE_INLINE bool isValidTerminalEntry() const { in isValidTerminalEntry() 259 AK_FORCE_INLINE uint32_t getValueEntryIndex() const { in getValueEntryIndex() 264 AK_FORCE_INLINE uint32_t getBitmap() const { in getBitmap() [all …]
|
D | byte_array_utils.h | 36 static AK_FORCE_INLINE void writeUintAndAdvancePosition(uint8_t *const buffer, in writeUintAndAdvancePosition() 63 static AK_FORCE_INLINE uint32_t readUint32(const uint8_t *const buffer, const int pos) { in readUint32() 68 static AK_FORCE_INLINE uint32_t readUint24(const uint8_t *const buffer, const int pos) { in readUint24() 72 static AK_FORCE_INLINE uint16_t readUint16(const uint8_t *const buffer, const int pos) { in readUint16() 76 static AK_FORCE_INLINE uint8_t readUint8(const uint8_t *const buffer, const int pos) { in readUint8() 80 static AK_FORCE_INLINE uint32_t readUint32AndAdvancePosition( in readUint32AndAdvancePosition() 87 static AK_FORCE_INLINE int readSint24AndAdvancePosition( in readSint24AndAdvancePosition() 98 static AK_FORCE_INLINE uint32_t readUint24AndAdvancePosition( in readUint24AndAdvancePosition() 105 static AK_FORCE_INLINE uint16_t readUint16AndAdvancePosition( in readUint16AndAdvancePosition() 112 static AK_FORCE_INLINE uint8_t readUint8AndAdvancePosition( in readUint8AndAdvancePosition() [all …]
|
D | buffer_with_extendable_buffer.h | 48 AK_FORCE_INLINE int getTailPosition() const { in getTailPosition() 52 AK_FORCE_INLINE int getUsedAdditionalBufferSize() const { in getUsedAdditionalBufferSize() 59 AK_FORCE_INLINE bool isInAdditionalBuffer(const int position) const { in isInAdditionalBuffer() 65 AK_FORCE_INLINE const uint8_t *getBuffer(const bool usesAdditionalBuffer) const { in getBuffer() 80 AK_FORCE_INLINE int getOriginalBufferSize() const { in getOriginalBufferSize() 84 AK_FORCE_INLINE bool isNearSizeLimit() const { in isNearSizeLimit()
|
D | binary_dictionary_bigrams_iterator.h | 43 AK_FORCE_INLINE bool hasNext() const { in hasNext() 47 AK_FORCE_INLINE void next() { in next() 51 AK_FORCE_INLINE int getProbability() const { in getProbability() 55 AK_FORCE_INLINE int getBigramPos() const { in getBigramPos()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_dict_buffers.h | 51 static AK_FORCE_INLINE Ver4DictBuffersPtr createVer4DictBuffers( in createVer4DictBuffers() 56 AK_FORCE_INLINE bool isValid() const { in isValid() 62 AK_FORCE_INLINE bool isNearSizeLimit() const { in isNearSizeLimit() 70 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { in getHeaderPolicy() 74 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableHeaderBuffer() { in getWritableHeaderBuffer() 78 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableTrieBuffer() { in getWritableTrieBuffer() 82 AK_FORCE_INLINE const BufferWithExtendableBuffer *getTrieBuffer() const { in getTrieBuffer() 86 AK_FORCE_INLINE TerminalPositionLookupTable *getMutableTerminalPositionLookupTable() { in getMutableTerminalPositionLookupTable() 90 AK_FORCE_INLINE const TerminalPositionLookupTable *getTerminalPositionLookupTable() const { in getTerminalPositionLookupTable() 94 AK_FORCE_INLINE ProbabilityDictContent *getMutableProbabilityDictContent() { in getMutableProbabilityDictContent() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | typing_traversal.h | 38 AK_FORCE_INLINE int getMaxPointerCount() const { in getMaxPointerCount() 42 AK_FORCE_INLINE bool allowsErrorCorrections(const DicNode *const dicNode) const { in allowsErrorCorrections() 47 AK_FORCE_INLINE bool isOmission(const DicTraverseSession *const traverseSession, in isOmission() 76 AK_FORCE_INLINE bool isSpaceSubstitutionTerminal( in isSpaceSubstitutionTerminal() 97 AK_FORCE_INLINE bool isSpaceOmissionTerminal( in isSpaceOmissionTerminal() 122 AK_FORCE_INLINE bool shouldDepthLevelCache( in shouldDepthLevelCache() 128 AK_FORCE_INLINE bool shouldNodeLevelCache( in shouldNodeLevelCache() 133 AK_FORCE_INLINE bool canDoLookAheadCorrection( in canDoLookAheadCorrection() 139 AK_FORCE_INLINE ProximityType getProximityType( in getProximityType() 147 AK_FORCE_INLINE bool needsToTraverseAllUserInput() const { in needsToTraverseAllUserInput() [all …]
|
D | typing_scoring.h | 35 AK_FORCE_INLINE void getMostProbableString(const DicTraverseSession *const traverseSession, in getMostProbableString() 39 AK_FORCE_INLINE float getAdjustedWeightOfLangModelVsSpatialModel( in getAdjustedWeightOfLangModelVsSpatialModel() 45 AK_FORCE_INLINE int calculateFinalScore(const float compoundDistance, const int inputSize, in calculateFinalScore() 96 AK_FORCE_INLINE float getDoubleLetterDemotionDistanceCost( in getDoubleLetterDemotionDistanceCost() 101 AK_FORCE_INLINE bool autoCorrectsToMultiWordSuggestionIfTop() const { in autoCorrectsToMultiWordSuggestionIfTop() 105 AK_FORCE_INLINE bool sameAsTyped(const DicTraverseSession *const traverseSession, in sameAsTyped()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_dict_buffers.h | 42 static AK_FORCE_INLINE Ver4DictBuffersPtr createVer4DictBuffers( in createVer4DictBuffers() 47 AK_FORCE_INLINE bool isValid() const { in isValid() 51 AK_FORCE_INLINE bool isNearSizeLimit() const { in isNearSizeLimit() 58 AK_FORCE_INLINE const HeaderPolicy *getHeaderPolicy() const { in getHeaderPolicy() 62 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableHeaderBuffer() { in getWritableHeaderBuffer() 66 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableTrieBuffer() { in getWritableTrieBuffer() 70 AK_FORCE_INLINE const BufferWithExtendableBuffer *getTrieBuffer() const { in getTrieBuffer() 74 AK_FORCE_INLINE TerminalPositionLookupTable *getMutableTerminalPositionLookupTable() { in getMutableTerminalPositionLookupTable() 78 AK_FORCE_INLINE const TerminalPositionLookupTable *getTerminalPositionLookupTable() const { in getTerminalPositionLookupTable() 82 AK_FORCE_INLINE LanguageModelDictContent *getMutableLanguageModelDictContent() { in getMutableLanguageModelDictContent() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_nodes_cache.h | 34 AK_FORCE_INLINE explicit DicNodesCache(const bool usesLargeCapacityCache) in DicNodesCache() 46 AK_FORCE_INLINE virtual ~DicNodesCache() {} in ~DicNodesCache() 48 AK_FORCE_INLINE void reset(const int nextActiveSize, const int terminalSize) { in reset() 61 AK_FORCE_INLINE void continueSearch() { in continueSearch() 66 AK_FORCE_INLINE void advanceActiveDicNodes() { in advanceActiveDicNodes() 88 AK_FORCE_INLINE void copyPushTerminal(DicNode *dicNode) { in copyPushTerminal() 92 AK_FORCE_INLINE void copyPushActive(DicNode *dicNode) { in copyPushActive() 96 AK_FORCE_INLINE void copyPushContinue(DicNode *dicNode) { in copyPushContinue() 100 AK_FORCE_INLINE void copyPushNextActive(DicNode *dicNode) { in copyPushNextActive() 117 AK_FORCE_INLINE bool isCacheBorderForTyping(const int inputSize) const { in isCacheBorderForTyping() [all …]
|
D | dic_node_priority_queue.h | 32 AK_FORCE_INLINE explicit DicNodePriorityQueue(const int capacity) in DicNodePriorityQueue() 38 AK_FORCE_INLINE ~DicNodePriorityQueue() {} in ~DicNodePriorityQueue() 40 AK_FORCE_INLINE int getSize() const { in getSize() 44 AK_FORCE_INLINE int getMaxSize() const { in getMaxSize() 48 AK_FORCE_INLINE void setMaxSize(const int maxSize) { in setMaxSize() 52 AK_FORCE_INLINE void clear() { in clear() 56 AK_FORCE_INLINE void clearAndResize(const int maxSize) { in clearAndResize() 64 AK_FORCE_INLINE void copyPush(const DicNode *const dicNode) { in copyPush() 82 AK_FORCE_INLINE void copyPop(DicNode *const dest) { in copyPop() 95 AK_FORCE_INLINE void dump() { in dump() [all …]
|
D | dic_node.h | 88 AK_FORCE_INLINE DicNode() in DicNode() 164 AK_FORCE_INLINE bool isFirstLetter() const { in isFirstLetter() 214 AK_FORCE_INLINE bool isTerminalDicNode() const { in isTerminalDicNode() 303 AK_FORCE_INLINE const int *getOutputWordBuf() const { in getOutputWordBuf() 347 AK_FORCE_INLINE bool isSameNodeCodePoint(const DicNode *const dicNode) const { in isSameNodeCodePoint() 406 AK_FORCE_INLINE void dump(const char *tag) const { in dump() 415 AK_FORCE_INLINE bool compare(const DicNode *right) const { in compare() 453 AK_FORCE_INLINE int getTotalInputIndex() const { in getTotalInputIndex() 463 AK_FORCE_INLINE void addCost(const float spatialCost, const float languageCost, in addCost() 475 AK_FORCE_INLINE void saveNormalizedCompoundDistanceAfterFirstWordIfNoneYet() { in saveNormalizedCompoundDistanceAfterFirstWordIfNoneYet() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | int_array_view.h | 62 AK_FORCE_INLINE static IntArrayView fromArray(const std::array<int, N> &array) { in fromArray() 67 AK_FORCE_INLINE static IntArrayView singleElementView(const int *const ptr) { in singleElementView() 71 AK_FORCE_INLINE int operator[](const size_t index) const { 76 AK_FORCE_INLINE bool empty() const { in empty() 80 AK_FORCE_INLINE size_t size() const { in size() 84 AK_FORCE_INLINE const int *data() const { in data() 88 AK_FORCE_INLINE const int *begin() const { in begin() 92 AK_FORCE_INLINE const int *end() const { in end() 96 AK_FORCE_INLINE bool contains(const int value) const { in contains() 101 AK_FORCE_INLINE const IntArrayView limit(const size_t maxSize) const { in limit() [all …]
|
D | char_utils.h | 32 static AK_FORCE_INLINE bool isAsciiUpper(int c) { in isAsciiUpper() 38 static AK_FORCE_INLINE int toLowerCase(const int c) { in toLowerCase() 48 static AK_FORCE_INLINE int toBaseLowerCase(const int c) { in toBaseLowerCase() 52 static AK_FORCE_INLINE bool isIntentionalOmissionCodePoint(const int codePoint) { in isIntentionalOmissionCodePoint() 56 static AK_FORCE_INLINE int getCodePointCount(const int arraySize, const int *const codePoints) { in getCodePointCount() 66 static AK_FORCE_INLINE int toBaseCodePoint(int c) { in toBaseCodePoint() 73 static AK_FORCE_INLINE int getSpaceCount(const int *const codePointBuffer, const int length) { in getSpaceCount() 83 static AK_FORCE_INLINE int isInUnicodeSpace(const int codePoint) { in isInUnicodeSpace() 89 static AK_FORCE_INLINE int attachBeginningOfSentenceMarker(int *const codePoints, in attachBeginningOfSentenceMarker() 105 static AK_FORCE_INLINE int removeBeginningOfSentenceMarker(int *const codePoints, in removeBeginningOfSentenceMarker() [all …]
|
D | byte_array_view.h | 37 AK_FORCE_INLINE size_t size() const { in size() 41 AK_FORCE_INLINE const uint8_t *data() const { in data() 45 AK_FORCE_INLINE const ReadOnlyByteArrayView skip(const size_t n) const { in skip() 69 AK_FORCE_INLINE size_t size() const { in size() 73 AK_FORCE_INLINE uint8_t *data() const { in data() 77 AK_FORCE_INLINE ReadOnlyByteArrayView getReadOnlyView() const { in getReadOnlyView()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_policy.h | 133 AK_FORCE_INLINE bool isValid() const { in isValid() 145 AK_FORCE_INLINE int getSize() const { in getSize() 149 AK_FORCE_INLINE float getMultiWordCostMultiplier() const { in getMultiWordCostMultiplier() 153 AK_FORCE_INLINE bool isDecayingDict() const { in isDecayingDict() 157 AK_FORCE_INLINE bool requiresGermanUmlautProcessing() const { in requiresGermanUmlautProcessing() 161 AK_FORCE_INLINE int getDate() const { in getDate() 165 AK_FORCE_INLINE int getLastDecayedTime() const { in getLastDecayedTime() 169 AK_FORCE_INLINE const EntryCounts &getNgramCounts() const { in getNgramCounts() 173 AK_FORCE_INLINE const EntryCounts getMaxNgramCounts() const { in getMaxNgramCounts() 177 AK_FORCE_INLINE int getExtendedRegionSize() const { in getExtendedRegionSize() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/ |
D | suggest_options.h | 29 AK_FORCE_INLINE bool isGesture() const { in isGesture() 33 AK_FORCE_INLINE bool useFullEditDistance() const { in useFullEditDistance() 37 AK_FORCE_INLINE bool blockOffensiveWords() const { in blockOffensiveWords() 41 AK_FORCE_INLINE bool enableSpaceAwareGesture() const { in enableSpaceAwareGesture() 45 AK_FORCE_INLINE float weightForLocale() const { in weightForLocale() 51 AK_FORCE_INLINE bool getAdditionalFeaturesBoolOption(const int key) const { in getAdditionalFeaturesBoolOption() 72 AK_FORCE_INLINE bool isValidKey(const int key) const { in isValidKey() 76 AK_FORCE_INLINE bool getBoolOption(const int key) const { in getBoolOption() 83 AK_FORCE_INLINE int getIntOption(const int key) const { in getIntOption()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/utils/ |
D | damerau_levenshtein_edit_distance_policy.h | 33 AK_FORCE_INLINE float getSubstitutionCost(const int index0, const int index1) const { in getSubstitutionCost() 39 AK_FORCE_INLINE float getDeletionCost(const int index0, const int index1) const { in getDeletionCost() 43 AK_FORCE_INLINE float getInsertionCost(const int index0, const int index1) const { in getInsertionCost() 47 AK_FORCE_INLINE bool allowTransposition(const int index0, const int index1) const { in allowTransposition() 57 AK_FORCE_INLINE float getTranspositionCost(const int index0, const int index1) const { in getTranspositionCost() 61 AK_FORCE_INLINE int getString0Length() const { in getString0Length() 65 AK_FORCE_INLINE int getString1Length() const { in getString1Length()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/ |
D | shortcut_list_reading_utils.h | 34 static AK_FORCE_INLINE int getProbabilityFromFlags(const ShortcutFlags flags) { in getProbabilityFromFlags() 38 static AK_FORCE_INLINE bool hasNext(const ShortcutFlags flags) { in hasNext() 47 static AK_FORCE_INLINE int getShortcutListSizeFieldSize() { in getShortcutListSizeFieldSize() 51 static AK_FORCE_INLINE void skipShortcuts(const ReadOnlyByteArrayView buffer, int *const pos) { in skipShortcuts() 56 static AK_FORCE_INLINE bool isWhitelist(const ShortcutFlags flags) { in isWhitelist()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state.h | 46 AK_FORCE_INLINE ProximityInfoState() in ProximityInfoState() 63 AK_FORCE_INLINE ~ProximityInfoState() {} in ~ProximityInfoState() 86 AK_FORCE_INLINE bool existsCodePointInProximityAt(const int index, const int c) const { in existsCodePointInProximityAt() 97 AK_FORCE_INLINE bool existsAdjacentProximityChars(const int index) const { in existsAdjacentProximityChars() 160 AK_FORCE_INLINE int getBeelineSpeedPercentile(const int id) const { in getBeelineSpeedPercentile() 164 AK_FORCE_INLINE DoubleLetterLevel getDoubleLetterLevel(const int id) const { in getDoubleLetterLevel()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
D | dic_traverse_session.h | 41 static AK_FORCE_INLINE void *getSessionInstance(JNIEnv *env, jstring 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() 62 AK_FORCE_INLINE ~DicTraverseSession() {} in ~DicTraverseSession() 128 AK_FORCE_INLINE bool isCacheBorderForTyping(const int inputSize) const { in isCacheBorderForTyping()
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | defines.h | 23 #define AK_FORCE_INLINE __attribute__((always_inline)) __inline__ macro 25 #define AK_FORCE_INLINE inline macro 29 #undef AK_FORCE_INLINE 30 #define AK_FORCE_INLINE inline macro 48 AK_FORCE_INLINE static int intArrayToCharArray(const int *const source, const int sourceSize, in intArrayToCharArray() 129 static AK_FORCE_INLINE void dumpWord(const int *word, const int length) { in dumpWord()
|