/frameworks/base/core/java/android/text/ |
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...] |
/frameworks/base/core/java/android/text/style/ |
H A D | BulletSpan.java | 92 CharSequence text, int start, int end, 90 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout l) argument
|
H A D | DrawableMarginSpan.java | 43 CharSequence text, int start, int end, 57 public void chooseHeight(CharSequence text, int start, int end, argument 60 if (end == ((Spanned) text).getSpanEnd(this)) { 41 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | DynamicDrawableSpan.java | 75 int start, int end, 93 int start, int end, float x, 74 getSize(Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm) argument 92 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
|
H A D | IconMarginSpan.java | 43 CharSequence text, int start, int end, 54 public void chooseHeight(CharSequence text, int start, int end, argument 57 if (end == ((Spanned) text).getSpanEnd(this)) { 41 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | LeadingMarginSpan.java | 63 * @param end the end of the line 70 CharSequence text, int start, int end, 85 * the beginning to the end of a paragraph. 157 CharSequence text, int start, int end, 67 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument 154 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | LineBackgroundSpan.java | 28 CharSequence text, int start, int end, 25 drawBackground(Canvas c, Paint p, int left, int right, int top, int baseline, int bottom, CharSequence text, int start, int end, int lnum) argument
|
H A D | LineHeightSpan.java | 25 public void chooseHeight(CharSequence text, int start, int end, argument 30 public void chooseHeight(CharSequence text, int start, int end, argument
|
H A D | QuoteSpan.java | 80 CharSequence text, int start, int end, 78 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|