/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
D | typing_traversal.h | 59 const int inputSize = traverseSession->getInputSize(); in isOmission() local 61 if (dicNode->isCompletion(inputSize)) { in isOmission() 109 const int inputSize = traverseSession->getInputSize(); in isSpaceOmissionTerminal() local 111 if (dicNode->isCompletion(inputSize)) { in isSpaceOmissionTerminal() 118 return pointIndex <= inputSize && !dicNode->isTotalInputSizeExceedingLimit() in isSpaceOmissionTerminal() 124 const int inputSize = traverseSession->getInputSize(); in shouldDepthLevelCache() local 125 return traverseSession->isCacheBorderForTyping(inputSize); in shouldDepthLevelCache() 135 const int inputSize = traverseSession->getInputSize(); in canDoLookAheadCorrection() local 136 return dicNode->canDoLookAheadCorrection(inputSize); in canDoLookAheadCorrection() 159 AK_FORCE_INLINE int getMaxCacheSize(const int inputSize, const float weightForLocale) const { in getMaxCacheSize() argument [all …]
|
D | typing_weighting.h | 186 const int inputSize = traverseSession->getInputSize(); in getTerminalInsertionCost() local 187 ASSERT(inputIndex < inputSize); in getTerminalInsertionCost() 189 return ScoringParams::TERMINAL_INSERTION_COST * (inputSize - inputIndex); in getTerminalInsertionCost()
|
D | typing_scoring.h | 45 AK_FORCE_INLINE int calculateFinalScore(const float compoundDistance, const int inputSize, in calculateFinalScore() argument 49 + static_cast<float>(inputSize) * ScoringParams::TYPING_MAX_OUTPUT_SCORE_PER_INPUT; in calculateFinalScore()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state.cpp | 43 const ProximityInfo *proximityInfo, const int *const inputCodes, const int inputSize, in initInputParams() argument 46 ASSERT(isGeometric || (inputSize < MAX_WORD_LENGTH)); in initInputParams() 49 inputSize, xCoordinates, yCoordinates, times, mSampledInputSize, in initInputParams() 69 inputSize, mInputProximities, locale); in initInputParams() 110 pointerIds, inputSize, isGeometric, pointerId, in initInputParams() 116 mAverageSpeed = ProximityInfoStateUtils::refreshSpeedRates(inputSize, xCoordinates, in initInputParams() 121 mAverageSpeed, inputSize, xCoordinates, yCoordinates, times, mSampledInputSize, in initInputParams() 148 ProximityInfoStateUtils::dump(isGeometric, inputSize, xCoordinates, yCoordinates, in initInputParams() 159 inputSize, mInputProximities, mPrimaryInputWord); in initInputParams() 162 AKLOGI("ProximityState init finished: %d points out of %d", mSampledInputSize, inputSize); in initInputParams()
|
D | proximity_info_state_utils.cpp | 49 const int inputSize, const bool isGeometric, const int pointerId, in updateTouchPoints() argument 55 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() 63 for (int i = 0; i < inputSize; ++i) { in updateTouchPoints() 76 for (int i = lastInputIndex; i < inputSize; ++i) { in updateTouchPoints() 149 /* static */ void ProximityInfoStateUtils::initPrimaryInputWord(const int inputSize, in initPrimaryInputWord() argument 152 for (int i = 0; i < inputSize; ++i) { in initPrimaryInputWord() 218 /* static */ float ProximityInfoStateUtils::refreshSpeedRates(const int inputSize, in refreshSpeedRates() argument 239 const int forwardNumPoints = std::min(inputSize - 1, in refreshSpeedRates() 278 const float averageSpeed, const int inputSize, const int *const xCoordinates, in refreshBeelineSpeedRates() argument 289 mostCommonKeyWidth, averageSpeed, i, inputSize, xCoordinates, yCoordinates, times, in refreshBeelineSpeedRates() [all …]
|
D | proximity_info_state_utils.h | 41 const int *const times, const int *const pointerIds, const int inputSize, 51 static float refreshSpeedRates(const int inputSize, const int *const xCoordinates, 60 const int inputSize, const int *const xCoordinates, const int *const yCoordinates, 90 static void initPrimaryInputWord(const int inputSize, const int *const inputProximities, 92 static void dump(const bool isGeometric, const int inputSize, 99 static bool checkAndReturnIsContinuousSuggestionPossible(const int inputSize, 138 const int id, const int inputSize, const int *const xCoordinates,
|
D | proximity_info_utils.h | 51 const int inputSize, const int *const keyXCoordinates, in initializeProximities() argument 61 for (int i = 0; i < inputSize; ++i) { in initializeProximities() 72 for (int i = 0; i < inputSize; ++i) { in initializeProximities()
|
D | proximity_info.h | 75 const int inputSize, int *allInputCodes, const std::vector<int> *locale) const { in initializeProximities() argument 77 inputSize, mKeyXCoordinates, mKeyYCoordinates, mKeyWidths, mKeyHeights, in initializeProximities()
|
D | proximity_info_state.h | 39 const int inputSize, const int *xCoordinates, const int *yCoordinates,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/ |
D | suggest.cpp | 50 int inputSize, const float weightOfLangModelVsSpatialModel, in getSuggestions() argument 56 tSession->setupForGetSuggestions(pInfo, inputCodePoints, inputSize, inputXs, inputYs, times, in getSuggestions() 68 tSession->getDicTraverseCache()->advanceInputIndex(inputSize); in getSuggestions() 108 const int inputSize = traverseSession->getInputSize(); in expandCurrentDicNodes() local 119 shouldDepthLevelCache, inputSize); in expandCurrentDicNodes() 134 const bool isCompletion = dicNode.isCompletion(inputSize); in expandCurrentDicNodes() 399 const int inputSize = traverseSession->getInputSize(); in weightChildNode() local 400 if (dicNode->isCompletion(inputSize)) { in weightChildNode()
|
D | suggest_interface.h | 30 int *inputYs, int *times, int *pointerIds, int *inputCodePoints, int inputSize,
|
D | suggest.h | 51 int *times, int *pointerIds, int *inputCodePoints, int inputSize,
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
D | dic_traverse_session.cpp | 43 const int *inputCodePoints, const int inputSize, const int *const inputXs, in setupForGetSuggestions() argument 48 initializeProximityInfoStates(inputCodePoints, inputXs, inputYs, times, pointerIds, inputSize, in setupForGetSuggestions() 65 const int *const pointerIds, const int inputSize, const float maxSpatialDistance, in initializeProximityInfoStates() argument 71 inputCodePoints, inputSize, inputXs, inputYs, times, pointerIds, in initializeProximityInfoStates()
|
D | dic_traverse_session.h | 68 const int inputSize, const int *const inputXs, const int *const inputYs, 128 AK_FORCE_INLINE bool isCacheBorderForTyping(const int inputSize) const { in isCacheBorderForTyping() argument 129 return mDicNodesCache.isCacheBorderForTyping(inputSize); in isCacheBorderForTyping() 167 const int inputSize, const float maxSpatialDistance, const int maxPointerCount);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node.h | 37 __FUNCTION__, getNodeCodePoint(), inputSize, getTotalInputIndex(), \ 192 bool isCompletion(const int inputSize) const { in isCompletion() argument 193 return mDicNodeState.mDicNodeStateInput.getInputIndex(0) >= inputSize; in isCompletion() 196 bool canDoLookAheadCorrection(const int inputSize) const { in canDoLookAheadCorrection() argument 197 return mDicNodeState.mDicNodeStateInput.getInputIndex(0) < inputSize - 1; in canDoLookAheadCorrection() 464 const bool doNormalization, const int inputSize, in addCost() argument 470 inputSize, getTotalInputIndex(), errorType); in addCost()
|
D | dic_nodes_cache.h | 82 void advanceInputIndex(const int inputSize) { in advanceInputIndex() argument 83 if (mInputIndex < inputSize) { in advanceInputIndex() 117 AK_FORCE_INLINE bool isCacheBorderForTyping(const int inputSize) const { in isCacheBorderForTyping() argument 120 const int cacheInputIndex = inputSize - CACHE_BACK_LENGTH; in isCacheBorderForTyping()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | GifTranscoder.java | 47 final long inputSize = new File(filePath).length(); in transcode() local 53 final float compression = (inputSize > 0) ? ((float) outputSize / inputSize) : 0; in transcode() 59 Formatter.formatShortFileSize(context, inputSize), in transcode()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 181 jintArray inputCodePointsArray, jint inputSize, jintArray suggestOptions, in latinime_BinaryDictionary_getSuggestions() argument 200 int xCoordinates[inputSize]; in latinime_BinaryDictionary_getSuggestions() 201 int yCoordinates[inputSize]; in latinime_BinaryDictionary_getSuggestions() 202 int times[inputSize]; in latinime_BinaryDictionary_getSuggestions() 203 int pointerIds[inputSize]; in latinime_BinaryDictionary_getSuggestions() 206 env->GetIntArrayRegion(xCoordinatesArray, 0, inputSize, xCoordinates); in latinime_BinaryDictionary_getSuggestions() 207 env->GetIntArrayRegion(yCoordinatesArray, 0, inputSize, yCoordinates); in latinime_BinaryDictionary_getSuggestions() 208 env->GetIntArrayRegion(timesArray, 0, inputSize, times); in latinime_BinaryDictionary_getSuggestions() 209 env->GetIntArrayRegion(pointerIdsArray, 0, inputSize, pointerIds); in latinime_BinaryDictionary_getSuggestions() 247 if (givenSuggestOptions.isGesture() || inputSize > 0) { in latinime_BinaryDictionary_getSuggestions() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionary.java | 195 int[] pointerIds, int[] inputCodePoints, int inputSize, int[] suggestOptions, in getSuggestionsNative() argument 282 final int inputSize; in getSuggestions() local 284 inputSize = in getSuggestions() 287 if (inputSize < 0) { in getSuggestions() 291 inputSize = inputPointers.getPointerSize(); in getSuggestions() 309 inputPointers.getPointerIds(), session.mInputCodePoints, inputSize, in getSuggestions()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/ |
D | dic_node_state_scoring.h | 72 const int inputSize, const int totalInputIndex, in addCost() argument 74 addDistance(spatialCost, languageCost, doNormalization, inputSize, totalInputIndex); in addCost() 207 bool doNormalization, int inputSize, int totalInputIndex) { in addDistance() argument
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/ |
D | weighting.cpp | 79 const int inputSize = traverseSession->getInputSize(); in addCostAndForwardInputIndex() local 96 inputSize, errorType); in addCostAndForwardInputIndex()
|
D | scoring.h | 31 virtual int calculateFinalScore(const float compoundDistance, const int inputSize,
|
D | traversal.h | 47 virtual int getMaxCacheSize(const int inputSize, const float weightForLocale) const = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 49 int inputSize, const NgramContext *const ngramContext, in getSuggestions() argument 56 ycoordinates, times, pointerIds, inputCodePoints, inputSize, in getSuggestions()
|
D | dictionary.h | 70 int inputSize, const NgramContext *const ngramContext,
|