Home
last modified time | relevance | path

Searched refs:MEMORY_EFFICIENT_TEXT_LENGTH (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DEditorInfoTest.java51 private static final int LONG_EXP_TEXT_LENGTH = EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH * 2;
104 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtHead_dividesByCursorPosition()
125 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtTail_dividesByCursorPosition()
144 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtMiddle_dividesByCursorPosition()
163 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_incorrectCursorOrder_correctsThenDivide()
183 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_invalidCursorPosition_returnsNull()
198 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH + 2); in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
204 (int) (0.8 * (EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH - selectionLength))); in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
205 final int expectedTextAfterCursorLength = EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()
228 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH + 2); in setOverSizeInitialText_overSizeSelection_dropsSelection()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DEditorInfo.java556 static final int MEMORY_EFFICIENT_TEXT_LENGTH = 2048; field in EditorInfo
564 static final int MAX_INITIAL_SELECTION_LENGTH = MEMORY_EFFICIENT_TEXT_LENGTH / 2;
630 if (subTextLength <= MEMORY_EFFICIENT_TEXT_LENGTH) { in setInitialSurroundingSubText()
667 final int maxLengthMinusSelection = MEMORY_EFFICIENT_TEXT_LENGTH - newSelLength; in trimLongSurroundingText()