Searched refs:index0 (Results 1 – 6 of 6) sorted by relevance
/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() argument 34 const int c0 = CharUtils::toBaseLowerCase(mString0[index0]); in getSubstitutionCost() 39 AK_FORCE_INLINE float getDeletionCost(const int index0, const int index1) const { in getDeletionCost() argument 43 AK_FORCE_INLINE float getInsertionCost(const int index0, const int index1) const { in getInsertionCost() argument 47 AK_FORCE_INLINE bool allowTransposition(const int index0, const int index1) const { in allowTransposition() argument 48 const int c0 = CharUtils::toBaseLowerCase(mString0[index0]); in allowTransposition() 50 if (index0 > 0 && index1 > 0 && c0 == CharUtils::toBaseLowerCase(mString1[index1 - 1]) in allowTransposition() 51 && c1 == CharUtils::toBaseLowerCase(mString0[index0 - 1])) { in allowTransposition() 57 AK_FORCE_INLINE float getTranspositionCost(const int index0, const int index1) const { in getTranspositionCost() argument 58 return getSubstitutionCost(index0, index1); in getTranspositionCost()
|
D | edit_distance_policy.h | 26 virtual float getSubstitutionCost(const int index0, const int index1) const = 0; 27 virtual float getDeletionCost(const int index0, const int index1) const = 0; 28 virtual float getInsertionCost(const int index0, const int index1) const = 0; 29 virtual bool allowTransposition(const int index0, const int index1) const = 0; 30 virtual float getTranspositionCost(const int index0, const int index1) const = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_state_utils.cpp | 296 const std::vector<int> *const sampledInputYs, const int index0, const int index1) { in getDirection() argument 299 if (index0 < 0 || index0 > sampledInputSize - 1) { in getDirection() 305 const int x1 = (*sampledInputXs)[index0]; in getDirection() 306 const int y1 = (*sampledInputYs)[index0]; in getDirection() 582 const int index0, const int index1, const int index2) { in getPointsAngle() argument 587 if (index0 < 0 || index0 > sampledInputSize - 1) { in getPointsAngle() 596 const float previousDirection = getDirection(sampledInputXs, sampledInputYs, index0, index1); in getPointsAngle() 870 const int index0, const int index1, in suppressCharProbabilities() argument 872 ASSERT(0 <= index0 && index0 < sampledInputSize); in suppressCharProbabilities() 875 const float diff = fabsf(static_cast<float>((*lengthCache)[index0] - (*lengthCache)[index1])); in suppressCharProbabilities() [all …]
|
D | proximity_info_state_utils.h | 66 const std::vector<int> *const sampledInputYs, const int index0, const int index1); 146 const std::vector<int> *const sampledInputYs, const int index0, const int index1, 149 const int sampledInputSize, const std::vector<int> *const lengthCache, const int index0,
|
D | proximity_info_state.cpp | 282 float ProximityInfoState::getDirection(const int index0, const int index1) const { in getDirection() argument 284 &mSampledInputXs, &mSampledInputYs, index0, index1); in getDirection()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderPreviewItemAnim.java | 66 PreviewItemDrawingParams params, int index0, int items0, int index1, int items1, in FolderPreviewItemAnim() argument 74 mItemManager.computePreviewItemDrawingParams(index0, items0, sTmpParams); in FolderPreviewItemAnim()
|