Home
last modified time | relevance | path

Searched refs:spacingAndPunctuations (Results 1 – 7 of 7) sorted by relevance

/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCapsModeUtils.java104 final SpacingAndPunctuations spacingAndPunctuations, final boolean hasSpaceBefore) { in getCapsMode() argument
159 if (spacingAndPunctuations.mUsesGermanRules) { in getCapsMode()
201 if (spacingAndPunctuations.mUsesAmericanTypography) { in getCapsMode()
223 if (spacingAndPunctuations.isSentenceTerminator(c) in getCapsMode()
224 && !spacingAndPunctuations.isAbbreviationMarker(c)) { in getCapsMode()
234 if (!spacingAndPunctuations.isSentenceSeparator(c) || j <= 0) { in getCapsMode()
286 } else if (Character.isDigit(c) && spacingAndPunctuations.mUsesGermanRules) { in getCapsMode()
295 } else if (spacingAndPunctuations.isSentenceSeparator(c)) { in getCapsMode()
311 } else if (spacingAndPunctuations.isSentenceSeparator(c)) { in getCapsMode()
H A DNgramContextUtils.java60 final SpacingAndPunctuations spacingAndPunctuations, final int n) { in getNgramContextFromNthPreviousWord() argument
77 if (spacingAndPunctuations.isWordConnector(firstChar)) { in getNgramContextFromNthPreviousWord()
99 if (spacingAndPunctuations.isSentenceTerminator(lastChar)) { in getNgramContextFromNthPreviousWord()
105 if (spacingAndPunctuations.isWordSeparator(lastChar) in getNgramContextFromNthPreviousWord()
106 || spacingAndPunctuations.isWordConnector(lastChar)) { in getNgramContextFromNthPreviousWord()
H A DWordInputEventForPersonalization.java59 final SpacingAndPunctuations spacingAndPunctuations, final Locale locale) { in createInputEventFrom() argument
73 tempWord, spacingAndPunctuations)) { in createInputEventFrom()
H A DDictionaryInfoUtils.java584 final SpacingAndPunctuations spacingAndPunctuations) {
603 if (!spacingAndPunctuations.isWordCodePoint(codePoint)) {
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java393 spacingAndPunctuations, hasSpaceBefore); in getCursorCapsMode()
658 final SpacingAndPunctuations spacingAndPunctuations, final int n) { in getNgramContextFromNthPreviousWord() argument
683 prev, spacingAndPunctuations, n); in getNgramContextFromNthPreviousWord()
689 return spacingAndPunctuations.isWordConnector(codePoint) in isPartOfCompositionForScript()
691 || (!spacingAndPunctuations.isWordSeparator(codePoint) in isPartOfCompositionForScript()
770 if (spacingAndPunctuations.isWordConnector(consideredCodePoint)) { in isCursorTouchingWord()
776 || spacingAndPunctuations.isWordSeparator(consideredCodePoint) in isCursorTouchingWord()
777 || spacingAndPunctuations.isWordConnector(consideredCodePoint)); in isCursorTouchingWord()
781 final SpacingAndPunctuations spacingAndPunctuations) { in isCursorFollowedByWordCharacter() argument
787 if (spacingAndPunctuations.isWordSeparator(codePointAfterCursor) in isCursorFollowedByWordCharacter()
[all …]
/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DNgramContextTests.java143 SpacingAndPunctuations spacingAndPunctuations = new SpacingAndPunctuations( in testGetNgramContextFromNthPreviousWord() local
146 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
148 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
150 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
152 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
154 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
156 spacingAndPunctuations, 1).extractPrevWordsContext()); in testGetNgramContextFromNthPreviousWord()
158 .getNgramContextFromNthPreviousWord("a b c d e", spacingAndPunctuations, 1) in testGetNgramContextFromNthPreviousWord()
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
H A DInputLogic.java1795 final SpacingAndPunctuations spacingAndPunctuations, final int nthPreviousWord) { in getNgramContextFromNthPreviousWordForSuggestion() argument
1796 if (spacingAndPunctuations.mCurrentLanguageHasSpaces) { in getNgramContextFromNthPreviousWordForSuggestion()
1800 spacingAndPunctuations, nthPreviousWord); in getNgramContextFromNthPreviousWordForSuggestion()