Searched refs:MEMORY_EFFICIENT_TEXT_LENGTH (Results 1 – 3 of 3) sorted by relevance
66 private static final int LONG_EXP_TEXT_LENGTH = EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH * 2;141 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtHead_dividesByCursorPosition()162 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtTail_dividesByCursorPosition()181 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_cursorAtMiddle_dividesByCursorPosition()200 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_incorrectCursorOrder_correctsThenDivide()220 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH); in setInitialText_invalidCursorPosition_returnsNull()235 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH + 2); in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()241 (int) (0.8 * (EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH - selectionLength))); in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()242 final int expectedTextAfterCursorLength = EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH in setOverSizeInitialText_cursorAtMiddle_dividesProportionately()265 final CharSequence testText = createTestText(EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH + 2); in setOverSizeInitialText_overSizeSelection_dropsSelection()[all …]
787 static final int MEMORY_EFFICIENT_TEXT_LENGTH = 2048; field in EditorInfo795 static final int MAX_INITIAL_SELECTION_LENGTH = MEMORY_EFFICIENT_TEXT_LENGTH / 2;876 if (subTextLength <= MEMORY_EFFICIENT_TEXT_LENGTH) { in setInitialSurroundingSubText()913 final int maxLengthMinusSelection = MEMORY_EFFICIENT_TEXT_LENGTH - newSelLength; in trimLongSurroundingText()
1100 EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH / 2, in takeSnapshot()1101 EditorInfo.MEMORY_EFFICIENT_TEXT_LENGTH / 2, GET_TEXT_WITH_STYLES); in takeSnapshot()