Home | History | Annotate | Download | only in text

Lines Matching defs:memory

82      * to <code>stop</code> and the memory horizontal to <code>memory</code>.
84 private static void setSelection(Spannable text, int start, int stop, int memory) {
96 updateMemory(text, memory);
101 * Update the memory position for text. This is used to ensure vertical navigation of lines
105 private static void updateMemory(Spannable text, int memory) {
106 if (memory > -1) {
108 if (memory != currentMemory) {
109 text.setSpan(SELECTION_MEMORY, memory, memory, Spanned.SPAN_POINT_POINT);
170 * Move the selection edge to offset <code>index</code> and update the memory horizontal.
172 private static void extendSelection(Spannable text, int index, int memory) {
176 updateMemory(text, memory);
229 * Calculate the movement and memory positions needed, and set or extend the selection.
238 int memory = getSelectionMemory(text);
239 if (memory > -1) {
240 // We have a memory position
241 float h = layout.getPrimaryHorizontal(memory);
243 newMemory = memory;
245 // Create a new memory position
540 private static final class MEMORY implements NoCopySpan { }
541 private static final Object SELECTION_MEMORY = new MEMORY();