/frameworks/base/core/java/android/text/ |
H A D | Editable.java | 30 * Editable with a copy of the slice <code>start…end</code> from 52 public Editable replace(int st, int en, CharSequence source, int start, int end); argument 61 * Convenience for replace(where, where, text, start, end) 64 public Editable insert(int where, CharSequence text, int start, int end); argument 85 * Convenience for replace(length(), length(), text, start, end) 88 public Editable append(CharSequence text, int start, int end); argument
|
H A D | GetChars.java | 28 * Exactly like String.getChars(): copy chars <code>start</code> 32 public void getChars(int start, int end, char[] dest, int destoff); argument
|
H A D | GraphicsOperations.java | 33 void drawText(Canvas c, int start, int end, argument 40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, argument 46 float measureText(int start, int end, Paint p); argument 51 public int getTextWidths(int start, int end, float[] widths, Paint p); argument 57 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, argument
|
H A D | Html.java | 326 private static void withinDiv(StringBuilder out, Spanned text, int start, int end, argument 329 for (int i = start; i < end; i = next) { 345 private static String getTextDirection(Spanned text, int start, int end) { argument 346 final int len = end - start; 349 TextUtils.getChars(text, start, end, buffer, 0); 362 private static String getTextStyles(Spanned text, int start, int end, argument 371 final AlignmentSpan[] alignmentSpans = text.getSpans(start, end, AlignmentSpan.class); 379 textAlign = "text-align:start;"; 406 private static void withinBlockquote(StringBuilder out, Spanned text, int start, int end, argument 409 withinBlockquoteConsecutive(out, text, start, en 415 withinBlockquoteIndividual(StringBuilder out, Spanned text, int start, int end) argument 480 withinBlockquoteConsecutive(StringBuilder out, Spanned text, int start, int end) argument 517 withinParagraph(StringBuilder out, Spanned text, int start, int end) argument 643 withinStyle(StringBuilder out, CharSequence text, int start, int end) argument 1070 private static void start(Editable text, Object mark) { method in class:HtmlToSpannedConverter 1228 characters(char ch[], int start, int length) argument 1266 ignorableWhitespace(char ch[], int start, int length) argument [all...] |
H A D | InputFilter.java | 28 * with the new text from the range <code>start … end</code> 42 public CharSequence filter(CharSequence source, int start, int end, argument 50 public CharSequence filter(CharSequence source, int start, int end, argument 52 for (int i = start; i < end; i++) { 54 char[] v = new char[end - start]; 55 TextUtils.getChars(source, start, end, v, 0); 61 start, end, null, sp, 0); 84 public CharSequence filter(CharSequence source, int start, int end, Spanned dest, argument 89 } else if (keep >= end - start) { 92 keep += start; [all...] |
H A D | Layout.java | 119 int start, int end, 124 for (int i = start; i <= end; i = next) { 271 int start = previousLineEnd; 273 int end = getLineVisibleEnd(lineNum, start, previousLineEnd); 287 boolean isFirstParaLine = (start == 0 || buf.charAt(start - 1) == '\n'); 296 // just collect the ones present at the start of the paragraph. 299 if (start >= spanEnd && (lineNum == firstLine || isFirstParaLine)) { 300 spanEnd = sp.nextSpanTransition(start, textLength, 302 spans = getParagraphSpans(sp, start, spanEn 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 2022 nextSpanTransition(int start, int limit, Class 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); 76 modoff = i - start; 101 * Called when we start processing filter.
|
H A D | MeasuredText.java | 100 void setPara(CharSequence text, int start, int end, TextDirectionHeuristic textDir, argument 104 mTextStart = start; 106 int len = end - start; 116 TextUtils.getChars(text, start, end, mChars, 0); 120 ReplacementSpan[] spans = spanned.getSpans(start, end, 124 int startInPara = spanned.getSpanStart(spans[i]) - start; 125 int endInPara = spanned.getSpanEnd(spans[i]) - start; 126 // The span interval may be larger and must be restricted to [start, end[ 287 float measure(int start, int limit) { argument 290 for (int i = start; [all...] |
H A D | Selection.java | 24 * A cursor is a selection where the start and end are at the same offset. 64 * Set the selection anchor to <code>start</code> and the selection edge 67 public static void setSelection(Spannable text, int start, int stop) { argument 69 // start = pin(start, 0, len); XXX remove unless we really need it 75 if (ostart != start || oend != stop) { 76 text.setSpan(SELECTION_START, start, start, 120 * start, or return false if the cursor is already on the top line. 123 int start [all...] |
H A D | SpanSet.java | 46 public void init(Spanned spanned, int start, int limit) { argument 47 final E[] allSpans = spanned.getSpans(start, limit, classType); 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; 100 int getNextTransition(int start, int limit) { argument 104 if (spanStart > start && spanStart < limit) limit = spanStart; 105 if (spanEnd > start && spanEnd < limit) limit = spanEnd;
|
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); 88 int st = sp.getSpanStart(spans[i]) - start; 89 int en = sp.getSpanEnd(spans[i]) - start; 94 if (st > end - start) 95 st = end - start; 99 if (en > end - start) 100 en = end - start; 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 447 updatedIntervalBound(int offset, int start, int nbNewChars, int flag, boolean atEnd, boolean textIsRemoved) 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 771 isInvalidParagraphStart(int start, int flagsStart) argument 1103 nextSpanTransition(int start, int limit, Class kind) argument 1111 nextSpanTransitionRec(int start, int limit, Class kind, int i) 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 1193 sendBeforeTextChanged(TextWatcher[] watchers, int start, int before, int after) argument 1203 sendTextChanged(TextWatcher[] watchers, int start, int before, int after) 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. 51 * @param start Start 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); 62 if (st < start) 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 363 nextSpanTransition(int start, int limit, Class kind) 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 | 80 * Its endpoints must be the start or end of the buffer or 170 public <T> T[] getSpans(int start, int end, Class<T> type); argument 192 * Return the first offset greater than <code>start</code> where a markup 194 * if there are no starts or ends greater than <code>start</code> but less 198 public int nextSpanTransition(int start, int limit, Class type); argument
|
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 | 68 * @param start The index of the start of the text 74 public static Builder obtain(CharSequence source, int start, int end, TextPaint paint, argument 83 b.mStart = start; 133 * @param start The index of the start of the text 139 public Builder setText(CharSequence source, int start, int end) { argument 141 mStart = start; 351 /* package */ float addStyleRun(TextPaint paint, int start, int end, boolean isRtl) { argument 353 start, en 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 | TextDirectionHeuristic.java | 27 * @param start start index, inclusive. 29 * {@code array.length - start}. 33 boolean isRtl(char[] array, int start, int count); argument 39 * @param start start index, inclusive. 41 * {@code CharSequence.length() - start}. 45 boolean isRtl(CharSequence cs, int start, int count); argument
|
H A D | TextDirectionHeuristics.java | 148 public boolean isRtl(char[] array, int start, int count) { argument 149 return isRtl(CharBuffer.wrap(array), start, count); 153 public boolean isRtl(CharSequence cs, int start, int count) { argument 154 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { 160 return doCheck(cs, start, count); 163 private boolean doCheck(CharSequence cs, int start, int count) { argument 164 switch(mAlgorithm.checkRtl(cs, start, count)) { 197 int checkRtl(CharSequence cs, int start, int count); argument 207 public int checkRtl(CharSequence cs, int start, in argument 242 checkRtl(CharSequence cs, int start, int count) argument [all...] |
H A D | TextLine.java | 127 * @param start the start of the line relative to the text 134 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument 138 mStart = start; 139 mLen = limit - start; 151 mReplacementSpanSpanSet.init(mSpanned, start, limit); 161 TextUtils.getChars(text, start, limit, mChars, 0); 169 for (int i = start, inext; i < limit; i = inext) { 173 chars[i - start] = '\ufffc'; 174 for (int j = i - start 357 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument 385 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument 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 786 handleReplacement(ReplacementSpan replacement, TextPaint wp, int start, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument 851 handleRun(int start, int measureLimit, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) 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++) 100 public static int indexOf(CharSequence s, char ch, int start) { argument 104 return ((String) s).indexOf(ch, start); 106 return indexOf(s, ch, start, s.length()); 109 public static int indexOf(CharSequence s, char ch, int start, in argument 159 lastIndexOf(CharSequence s, char ch, int start, int last) argument 208 indexOf(CharSequence s, CharSequence needle, int start) argument 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 1319 doesNotNeedBidi(char[] text, int start, int len) argument 1724 packRangeInLong(int start, int end) argument [all...] |
H A D | TextWatcher.java | 26 * the <code>count</code> characters beginning at <code>start</code> 31 public void beforeTextChanged(CharSequence s, int start, argument 35 * the <code>count</code> characters beginning at <code>start</code> 40 public void onTextChanged(CharSequence s, int start, int before, int count); argument
|
/frameworks/base/core/java/android/text/method/ |
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); 148 start = 0; 188 for (int i = end - 1; i >= start; i--) { 193 if (i != start || dstart != 0) { 209 if (end == start + 1) { 214 stripped = new SpannableStringBuilder(source, start, end); 217 stripped.delete(i - start, i + 1 - start);
|
H A D | MultiTapKeyListener.java | 235 Object what, int s, int e, int start, int stop) { 273 int start = buf.getSpanStart(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 234 onSpanChanged(Spannable buf, Object what, int s, int e, int start, int stop) argument
|