/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 35 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); 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 49 const int c1 = CharUtils::toBaseLowerCase(mString1[index1]); in allowTransposition() 50 if (index0 > 0 && index1 > 0 && c0 == CharUtils::toBaseLowerCase(mString1[index1 - 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 302 if (index1 < 0 || index1 > sampledInputSize - 1) { in getDirection() 307 const int x2 = (*sampledInputXs)[index1]; in getDirection() 308 const int y2 = (*sampledInputYs)[index1]; in getDirection() 582 const int index0, const int index1, const int index2) { in getPointsAngle() argument 590 if (index1 < 0 || index1 > sampledInputSize - 1) { in getPointsAngle() 596 const float previousDirection = getDirection(sampledInputXs, sampledInputYs, index0, index1); in getPointsAngle() 597 const float nextDirection = getDirection(sampledInputXs, sampledInputYs, index1, index2); in getPointsAngle() 870 const int index0, const int index1, in suppressCharProbabilities() argument 873 ASSERT(0 <= index1 && index1 < sampledInputSize); 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, 150 const int index1, std::vector<std::unordered_map<int, float>> *charProbabilities);
|
D | proximity_info_state.cpp | 282 float ProximityInfoState::getDirection(const int index0, const int index1) const { in getDirection() 284 &mSampledInputXs, &mSampledInputYs, index0, index1); in getDirection()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | CallLogGroupBuilder.java | 225 int index1 = number1.indexOf('@'); in compareSipAddresses() local 228 if (index1 != -1) { in compareSipAddresses() 229 userinfo1 = number1.substring(0, index1); in compareSipAddresses() 230 rest1 = number1.substring(index1); in compareSipAddresses()
|
/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 71 mItemManager.computePreviewItemDrawingParams(index1, items1, sTmpParams); in FolderPreviewItemAnim()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | AtPhonebook.java | 325 int index1; in handleCpbrCommand() local 339 index1 = Integer.parseInt(indices[0]); in handleCpbrCommand() 341 index2 = index1; in handleCpbrCommand() 352 mCpbrIndex1 = index1; in handleCpbrCommand()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | RawContactDeltaList.java | 264 private Builder buildSplitContactDiffHelper(int index1, int index2, int[] backRefs) { in buildSplitContactDiffHelper() argument 269 Long rawContactId1 = get(index1).getValues().getAsLong(RawContacts._ID); in buildSplitContactDiffHelper() 270 int backRef1 = backRefs[index1]; in buildSplitContactDiffHelper()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | RawContactEditorView.java | 153 int index1 = MIME_TYPE_ORDER.indexOf(mimeType1); in compare() local 157 if (index1 < 0 && index2 < 0) return mimeType1.compareTo(mimeType2); in compare() 158 if (index1 < 0) return 1; in compare() 161 return index1 < index2 ? -1 : 1; in compare()
|