/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 119 int start, int end, 124 for (int i = start; i <= end; i = next) { 125 next = TextUtils.indexOf(source, '\n', i, end); 128 next = end; 273 int end = getLineVisibleEnd(lineNum, start, previousLineEnd); 297 // If spanEnd is before the end of the paragraph, that's not 337 start, end, isFirstParaLine, this); 342 start, end, isFirstParaLine, this); 396 canvas.drawText(buf, start, end, x, lbaseline, paint); 398 tl.set(paint, buf, start, end, di 118 getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) argument 1259 getLineVisibleEnd(int line, int start, int end) argument 1499 addSelection(int line, int start, int end, int top, int bottom, Path dest) argument 1538 getSelectionPath(int start, int end, Path dest) argument 1682 measurePara(TextPaint paint, CharSequence text, int start, int end) argument 1809 nextTab(CharSequence text, int start, int end, float h, Object[] tabs) argument 1867 getParagraphSpans(Spanned text, int start, int end, Class<T> type) argument 1885 ellipsize(int start, int end, int line, char[] dest, int destoff, TextUtils.TruncateAt method) argument 1967 getChars(int start, int end, char[] dest, int destoff) argument 1982 subSequence(int start, int end) argument 2005 getSpans(int start, int end, Class<T> type) argument 2027 subSequence(int start, int end) argument [all...] |
H A D | LoginFilter.java | 43 * with the new text from the range <code>start … end</code> 50 public CharSequence filter(CharSequence source, int start, int end, argument 65 for (int i = start; i < end; i++) { 75 modification = new SpannableStringBuilder(source, start, end);
|
H A D | MeasuredText.java | 100 void setPara(CharSequence text, int start, int end, TextDirectionHeuristic textDir, argument 106 int len = end - start; 116 TextUtils.getChars(text, start, end, mChars, 0); 120 ReplacementSpan[] spans = spanned.getSpans(start, end, 126 // The span interval may be larger and must be restricted to [start, end[
|
H A D | SpanSet.java | 51 // These arrays may end up being too large because of the discarded empty spans 86 * @param end must be strictly greater than start 88 public boolean hasSpansIntersecting(int start, int end) { argument 91 if (spanStarts[i] >= end || spanEnds[i] <= start) continue;
|
H A D | SpanWatcher.java | 29 public void onSpanAdded(Spannable text, Object what, int start, int end); argument 34 public void onSpanRemoved(Spannable text, Object what, int start, int end); argument
|
H A D | Spannable.java | 28 * Attach the specified markup object to the range <code>start…end</code> 39 public void setSpan(Object what, int start, int end, int flags); argument
|
H A D | SpannableString.java | 33 private SpannableString(CharSequence source, int start, int end) { argument 34 super(source, start, end); 45 public void setSpan(Object what, int start, int end, int flags) { argument 46 super.setSpan(what, start, end, flags); 53 public final CharSequence subSequence(int start, int end) { argument 54 return new SpannableString(this, start, end);
|
H A D | SpannableStringBuilder.java | 57 public SpannableStringBuilder(CharSequence text, int start, int end) { argument 58 int srclen = end - start; 66 TextUtils.getChars(text, start, end, mText, 0); 81 Object[] spans = sp.getSpans(start, end, Object.class); 94 if (st > end - start) 95 st = end - start; 99 if (en > end - start) 100 en = end - start; 185 int end = mSpanEnds[i]; 198 if (end > mGapStar 219 insert(int where, CharSequence tb, int start, int end) argument 229 delete(int start, int end) argument 289 append(CharSequence text, int start, int end) argument 300 removeSpansForChange(int start, int end, boolean textIsRemoved, int i) argument 325 change(int start, int end, CharSequence cs, int csStart, int csEnd) argument 508 replace(int start, int end, CharSequence tb) argument 513 replace(final int start, final int end, CharSequence tb, int tbstart, int tbend) argument 676 setSpan(Object what, int start, int end, int flags) argument 683 setSpan(boolean send, Object what, int start, int end, int flags) argument 782 isInvalidParagraphEnd(int end, int flagsEnd) argument 1138 subSequence(int start, int end) argument 1146 getChars(int start, int end, char[] dest, int destoff) argument 1178 substring(int start, int end) argument 1223 sendSpanAdded(Object what, int start, int end) argument 1232 sendSpanRemoved(Object what, int start, int end) argument 1241 sendSpanChanged(Object what, int oldStart, int oldEnd, int start, int end) argument 1252 region(int start, int end) argument 1256 checkRange(final String operation, int start, int end) argument 1360 drawText(Canvas c, int start, int end, float x, float y, Paint p) argument 1381 drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) argument 1404 measureText(int start, int end, Paint p) argument 1428 getTextWidths(int start, int end, float[] widths, Paint p) argument 1452 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesPos, Paint p) argument [all...] |
H A D | SpannableStringInternal.java | 29 int start, int end) { 30 if (start == 0 && end == source.length()) 33 mText = source.toString().substring(start, end); 40 copySpans((SpannableStringInternal) source, start, end); 42 copySpans((Spanned) source, start, end); 48 * Copies another {@link Spanned} object's spans between [start, end] into this object. 52 * @param end End index in the source object. 54 private final void copySpans(Spanned src, int start, int end) { argument 55 Object[] spans = src.getSpans(start, end, Object.class); 64 if (en > end) 28 SpannableStringInternal(CharSequence source, int start, int end) argument 79 copySpans(SpannableStringInternal src, int start, int end) argument 124 isOutOfCopyRange(int start, int end, int spanStart, int spanEnd) argument 146 getChars(int start, int end, char[] dest, int off) argument 150 setSpan(Object what, int start, int end, int flags) argument 385 sendSpanAdded(Object what, int start, int end) argument 394 sendSpanRemoved(Object what, int start, int end) argument 413 region(int start, int end) argument 417 checkRange(final String operation, int start, int end) argument [all...] |
H A D | Spanned.java | 40 * Depending on whether the insertion happens at the beginning or the end of a span, the span 42 * its beginning or a POINT at its end) or it will be <i>excluded</i>. 74 * (SPAN_MARK_MARK), except that if either end of the span is 75 * at the end of the buffer, that end behaves like _POINT 77 * middle and ends at the end, or SPAN_EXCLUSIVE_INCLUSIVE 78 * if it both starts and ends at the end). 80 * Its endpoints must be the start or end of the buffer or 83 * next \n that follows in the buffer (or to the end of 170 public <T> T[] getSpans(int start, int end, Clas argument [all...] |
H A D | SpannedString.java | 33 private SpannedString(CharSequence source, int start, int end) { argument 34 super(source, start, end); 37 public CharSequence subSequence(int start, int end) { argument 38 return new SpannedString(this, start, end);
|
H A D | StaticLayout.java | 69 * @param end The index + 1 of the end of the text 74 public static Builder obtain(CharSequence source, int start, int end, TextPaint paint, argument 84 b.mEnd = end; 134 * @param end The index + 1 of the end of the text 139 public Builder setText(CharSequence source, int start, int end) { argument 142 mEnd = end; 351 /* package */ float addStyleRun(TextPaint paint, int start, int end, boolean isRtl) { argument 353 start, end, isRt 356 addMeasuredRun(int start, int end, float[] widths) argument 360 addReplacementRun(int start, int end, float width) argument 870 out(CharSequence text, int start, int end, int above, int below, int top, int bottom, int v, float spacingmult, float spacingadd, LineHeightSpan[] chooseHt, int[] chooseHtv, Paint.FontMetricsInt fm, int flags, boolean needMultiply, byte[] chdirs, int dir, boolean easy, int bufEnd, boolean includePad, boolean trackPad, char[] chs, float[] widths, int widthStart, TextUtils.TruncateAt ellipsize, float ellipsisWidth, float textWidth, TextPaint paint, boolean moreChars) argument 1257 nAddStyleRun(long nativePtr, long nativePaint, long nativeTypeface, int start, int end, boolean isRtl) argument 1260 nAddMeasuredRun(long nativePtr, int start, int end, float[] widths) argument 1263 nAddReplacementRun(long nativePtr, int start, int end, float width) argument [all...] |
H A D | TextLine.java | 481 // separator and has an associated run, but might be the end of 483 // end of the run list, and runIndex == runs.length. In this case, 504 // need to run this twice, if we cross a run boundary and end up at 544 // We're walking off the end of the line. The paragraph 551 // Else we've arrived at the end of the line. That's a strong position. 557 // we can end up at the 'lineEnd' position but the caret we want is at 571 * off the end of the line, since the returned values might not be valid 589 // Walking off end of line. Since we don't know 634 // the start or end of this span. 682 * @param end th 695 handleText(TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth, int offset) argument 953 drawTextRun(Canvas c, TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, float x, int y) argument [all...] |
H A D | TextUtils.java | 78 public static void getChars(CharSequence s, int start, int end, argument 83 ((String) s).getChars(start, end, dest, destoff); 85 ((StringBuffer) s).getChars(start, end, dest, destoff); 87 ((StringBuilder) s).getChars(start, end, dest, destoff); 89 ((GetChars) s).getChars(start, end, dest, destoff); 91 for (int i = start; i < end; i++) 109 public static int indexOf(CharSequence s, char ch, int start, int end) { argument 117 while (start < end) { 119 if (segend > end) 120 segend = end; 212 indexOf(CharSequence s, CharSequence needle, int start, int end) argument 271 substring(CharSequence source, int start, int end) argument 515 getReverse(CharSequence source, int start, int end) argument 522 Reverser(CharSequence source, int start, int end) argument 532 subSequence(int start, int end) argument 548 getChars(int start, int end, char[] dest, int destoff) argument 1017 copySpansFrom(Spanned source, int start, int end, Class kind, Spannable dest, int destoff) argument 1057 ellipsized(int start, int end) argument 1280 setPara(MeasuredText mt, TextPaint paint, CharSequence text, int start, int end, TextDirectionHeuristic textDir) argument 1309 doesNotNeedBidi(CharSequence s, int start, int end) argument 1724 packRangeInLong(int start, int end) argument [all...] |
/frameworks/base/core/java/android/text/method/ |
H A D | ArrowKeyMovementMethod.java | 220 protected boolean end(TextView widget, Spannable buffer) { method in class:ArrowKeyMovementMethod
|
H A D | BaseMovementMethod.java | 234 return end(widget, buffer); 353 * Performs a line-end movement action. 354 * Moves the cursor or scrolls to the end of the line. 389 * Performs an end movement action. 398 protected boolean end(TextView widget, Spannable buffer) { method in class:BaseMovementMethod 656 * Performs a scroll to line end action. 657 * Scrolls to the end of the line.
|
H A D | DigitsKeyListener.java | 138 public CharSequence filter(CharSequence source, int start, int end, argument 140 CharSequence out = super.filter(source, start, end, dest, dstart, dend); 149 end = out.length(); 188 for (int i = end - 1; i >= start; i--) { 209 if (end == start + 1) { 214 stripped = new SpannableStringBuilder(source, start, end);
|
H A D | MultiTapKeyListener.java | 274 int end = buf.getSpanEnd(TextKeyListener.ACTIVE); 276 if (st == start && en == end) { 287 public void onSpanAdded(Spannable s, Object what, int start, int end) { } argument 288 public void onSpanRemoved(Spannable s, Object what, int start, int end) { } argument
|
H A D | NumberKeyListener.java | 47 public CharSequence filter(CharSequence source, int start, int end, argument 53 for (i = start; i < end; i++) { 59 if (i == end) { 64 if (end - start == 1) { 70 new SpannableStringBuilder(source, start, end); 72 end -= start; 74 int len = end - start; 76 for (int j = end - 1; j >= i; j--) {
|
H A D | PasswordTransformationMethod.java | 88 * something strange is going on. (We might still end up with 177 public CharSequence subSequence(int start, int end) { argument 178 char[] buf = new char[end - start]; 180 getChars(start, end, buf, 0); 188 public void getChars(int start, int end, char[] dest, int off) { argument 189 TextUtils.getChars(mSource, start, end, dest, off); 214 for (int i = start; i < end; i++) {
|
H A D | QwertyKeyListener.java | 330 // only cancel the autocomplete if the cursor is at the end of 360 private String getReplacement(CharSequence src, int start, int end, argument 362 int len = end - start; 365 String replacement = AutoText.get(src, start, end, view); 368 String key = TextUtils.substring(src, start, end).toLowerCase(); 369 replacement = AutoText.get(key, 0, end - start, view); 379 for (int j = start; j < end; j++) { 413 * @param end the end of the replaced region; the location of the cursor 416 public static void markAsReplaced(Spannable content, int start, int end, argument [all...] |
H A D | ReplacementTransformationMethod.java | 136 public CharSequence subSequence(int start, int end) { argument 137 char[] c = new char[end - start]; 139 getChars(start, end, c, 0); 150 public void getChars(int start, int end, char[] dest, int off) { argument 151 TextUtils.getChars(mSource, start, end, dest, off); 152 int offend = end - start + off; 179 public CharSequence subSequence(int start, int end) { argument 180 return new SpannedString(this).subSequence(start, end); 183 public <T> T[] getSpans(int start, int end, Class<T> type) { argument 184 return mSpanned.getSpans(start, end, typ 199 nextSpanTransition(int start, int end, Class type) argument [all...] |
H A D | ScrollingMovementMethod.java | 84 protected boolean end(TextView widget, Spannable buffer) { method in class:ScrollingMovementMethod
|
H A D | TextKeyListener.java | 176 public void onSpanAdded(Spannable s, Object what, int start, int end) { } argument 177 public void onSpanRemoved(Spannable s, Object what, int start, int end) { } argument 179 public void onSpanChanged(Spannable s, Object what, int start, int end, argument
|
H A D | WordIterator.java | 58 public void setCharSequence(CharSequence charSequence, int start, int end) { argument 60 final int windowEnd = Math.min(charSequence.length(), end + WINDOW_WIDTH); 180 * If the offset is on a word boundary that can be considered the start and end of a 194 * considered the end of a word (e.g. word_ where "_" is any character that would not 198 * If the offset is on a word boundary that can be considered the start and end of a 200 * between AA and BB, this would return the end of the next word, BB. 216 * If the offset is on a word boundary that can be considered the start and end of a 248 * considered the end of a word (e.g. word_ where "_" is any character that would not be 252 * If the offset is on a word boundary that can be considered the start and end of a 255 * the end o [all...] |