Searched defs:start (Results 151 - 175 of 488) sorted by path

1234567891011>>

/frameworks/base/core/java/android/text/
H A DEditable.java30 * Editable with a copy of the slice <code>start&hellip;end</code> from
48 public Editable replace(int st, int en, CharSequence source, int start, int end); argument
57 * Convenience for replace(where, where, text, start, end)
60 public Editable insert(int where, CharSequence text, int start, int end); argument
81 * Convenience for replace(length(), length(), text, start, end)
84 public Editable append(CharSequence text, int start, int end); argument
H A DGetChars.java28 * Exactly like String.getChars(): copy chars <code>start</code>
32 public void getChars(int start, int end, char[] dest, int destoff); argument
H A DGraphicsOperations.java33 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 DHtml.java194 int start, int end) {
196 for (int i = start; i < end; i = next) {
212 private static String getOpenParaTagWithDirection(Spanned text, int start, int end) { argument
213 final int len = end - start;
216 TextUtils.getChars(text, start, end, buffer, 0);
230 int start, int end) {
231 out.append(getOpenParaTagWithDirection(text, start, end));
234 for (int i = start; i < end; i = next) {
254 int start, int end, int nl,
257 for (int i = start;
193 withinDiv(StringBuilder out, Spanned text, int start, int end) argument
229 withinBlockquote(StringBuilder out, Spanned text, int start, int end) argument
253 withinParagraph(StringBuilder out, Spanned text, int start, int end, int nl, boolean last) argument
380 withinStyle(StringBuilder out, CharSequence text, int start, int end) argument
610 private static void start(SpannableStringBuilder text, Object mark) { method in class:HtmlToSpannedConverter
768 characters(char ch[], int start, int length) argument
806 ignorableWhitespace(char ch[], int start, int length) argument
[all...]
H A DInputFilter.java28 * with the new text from the range <code>start &hellip; 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 DLayout.java76 int start, int end,
81 for (int i = start; i <= end; i = next) {
229 int start = previousLineEnd;
231 int end = getLineVisibleEnd(i, start, previousLineEnd);
245 boolean isFirstParaLine = (start == 0 || buf.charAt(start - 1) == '\n');
254 // just collect the ones present at the start of the paragraph.
257 if (start >= spanEnd && (i == firstLine || isFirstParaLine)) {
258 spanEnd = sp.nextSpanTransition(start, textLength,
260 spans = getParagraphSpans(sp, start, spanEn
75 getDesiredWidth(CharSequence source, int start, int end, TextPaint paint) argument
1142 getLineVisibleEnd(int line, int start, int end) argument
1379 addSelection(int line, int start, int end, int top, int bottom, Path dest) argument
1418 getSelectionPath(int start, int end, Path dest) argument
1562 measurePara(TextPaint paint, CharSequence text, int start, int end) argument
1689 nextTab(CharSequence text, int start, int end, float h, Object[] tabs) argument
1747 getParagraphSpans(Spanned text, int start, int end, Class<T> type) argument
1761 ellipsize(int start, int end, int line, char[] dest, int destoff, TextUtils.TruncateAt method) argument
1843 getChars(int start, int end, char[] dest, int destoff) argument
1858 subSequence(int start, int end) argument
1881 getSpans(int start, int end, Class<T> type) argument
1898 nextSpanTransition(int start, int limit, Class type) argument
1903 subSequence(int start, int end) argument
[all...]
H A DLoginFilter.java43 * with the new text from the range <code>start &hellip; 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 DMeasuredText.java92 void setPara(CharSequence text, int start, int end, TextDirectionHeuristic textDir) { argument
94 mTextStart = start;
96 int len = end - start;
106 TextUtils.getChars(text, start, end, mChars, 0);
110 ReplacementSpan[] spans = spanned.getSpans(start, end,
114 int startInPara = spanned.getSpanStart(spans[i]) - start;
115 int endInPara = spanned.getSpanEnd(spans[i]) - start;
116 // The span interval may be larger and must be restricted to [start, end[
251 float measure(int start, int limit) { argument
254 for (int i = start;
[all...]
H A DSelection.java24 * 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 DSpanSet.java45 public void init(Spanned spanned, int start, int limit) { argument
46 final E[] allSpans = spanned.getSpans(start, limit, classType);
78 * @param end must be strictly greater than start
80 public boolean hasSpansIntersecting(int start, int end) { argument
83 if (spanStarts[i] >= end || spanEnds[i] <= start) continue;
92 int getNextTransition(int start, int limit) { argument
96 if (spanStart > start && spanStart < limit) limit = spanStart;
97 if (spanEnd > start && spanEnd < limit) limit = spanEnd;
H A DSpanWatcher.java29 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 DSpannable.java28 * Attach the specified markup object to the range <code>start&hellip;end</code>
39 public void setSpan(Object what, int start, int end, int flags); argument
H A DSpannableString.java33 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 DSpannableStringBuilder.java55 public SpannableStringBuilder(CharSequence text, int start, int end) { argument
56 int srclen = end - start;
64 TextUtils.getChars(text, start, end, mText, 0);
74 Object[] spans = sp.getSpans(start, end, Object.class);
81 int st = sp.getSpanStart(spans[i]) - start;
82 int en = sp.getSpanEnd(spans[i]) - start;
87 if (st > end - start)
88 st = end - start;
92 if (en > end - start)
93 en = end - start;
205 insert(int where, CharSequence tb, int start, int end) argument
215 delete(int start, int end) argument
270 append(CharSequence text, int start, int end) argument
280 change(int start, int end, CharSequence cs, int csStart, int csEnd) argument
398 updatedIntervalBound(int offset, int start, int nbNewChars, int flag, boolean atEnd, boolean textIsRemoved) argument
453 replace(int start, int end, CharSequence tb) argument
458 replace(final int start, final int end, CharSequence tb, int tbstart, int tbend) argument
606 setSpan(Object what, int start, int end, int flags) argument
610 setSpan(boolean send, Object what, int start, int end, int flags) argument
872 nextSpanTransition(int start, int limit, Class kind) argument
906 subSequence(int start, int end) argument
914 getChars(int start, int end, char[] dest, int destoff) argument
946 substring(int start, int end) argument
952 sendBeforeTextChanged(TextWatcher[] watchers, int start, int before, int after) argument
960 sendTextChanged(TextWatcher[] watchers, int start, int before, int after) argument
976 sendSpanAdded(Object what, int start, int end) argument
985 sendSpanRemoved(Object what, int start, int end) argument
994 sendSpanChanged(Object what, int oldStart, int oldEnd, int start, int end) argument
1005 region(int start, int end) argument
1009 checkRange(final String operation, int start, int end) argument
1113 drawText(Canvas c, int start, int end, float x, float y, Paint p) argument
1134 drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, Paint p) argument
1157 measureText(int start, int end, Paint p) argument
1181 getTextWidths(int start, int end, float[] widths, Paint p) argument
1205 getTextRunAdvances(int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesPos, Paint p) argument
[all...]
H A DSpannableStringInternal.java29 int start, int end) {
30 if (start == 0 && end == source.length())
33 mText = source.toString().substring(start, end);
40 Object[] spans = sp.getSpans(start, end, Object.class);
47 if (st < start)
48 st = start;
52 setSpan(spans[i], st - start, en - start, fl);
71 public final void getChars(int start, int end, char[] dest, int off) { argument
72 mText.getChars(start, en
28 SpannableStringInternal(CharSequence source, int start, int end) argument
75 setSpan(Object what, int start, int end, int flags) argument
287 nextSpanTransition(int start, int limit, Class kind) argument
309 sendSpanAdded(Object what, int start, int end) argument
318 sendSpanRemoved(Object what, int start, int end) argument
337 region(int start, int end) argument
341 checkRange(final String operation, int start, int end) argument
[all...]
H A DSpanned.java80 * Its endpoints must be the start or end of the buffer or
168 public <T> T[] getSpans(int start, int end, Class<T> type); argument
190 * Return the first offset greater than or equal to <code>start</code>
193 * equal to <code>start</code> but less than <code>limit</code>. Specify
197 public int nextSpanTransition(int start, int limit, Class type); argument
H A DSpannedString.java33 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 DStaticLayout.java444 // Exit the span loop, and get spanStart to start over from here.
508 private int out(CharSequence text, int start, int end, argument
546 chooseHeight(text, start, end, chooseHtv[i], v, fm, paint);
549 chooseHt[i].chooseHeight(text, start, end, chooseHtv[i], v, fm);
597 lines[off + START] = start;
616 mLineDirections[j] = AndroidBidi.directions(dir, chdirs, start - widthStart, chs,
617 start - widthStart, end - start);
631 calculateEllipsis(start, end, widths, widthStart,
660 // We only support start ellipsi
[all...]
H A DTextDirectionHeuristic.java27 * @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 DTextDirectionHeuristics.java130 public boolean isRtl(char[] array, int start, int count) { argument
131 return isRtl(CharBuffer.wrap(array), start, count);
135 public boolean isRtl(CharSequence cs, int start, int count) { argument
136 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) {
142 return doCheck(cs, start, count);
145 private boolean doCheck(CharSequence cs, int start, int count) { argument
146 switch(mAlgorithm.checkRtl(cs, start, count)) {
179 int checkRtl(CharSequence cs, int start, int count); argument
188 public int checkRtl(CharSequence cs, int start, in argument
211 checkRtl(CharSequence cs, int start, int count) argument
[all...]
H A DTextLine.java124 * @param start the start of the line relative to the text
131 void set(TextPaint paint, CharSequence text, int start, int limit, int dir, argument
135 mStart = start;
136 mLen = limit - start;
148 mReplacementSpanSpanSet.init(mSpanned, start, limit);
158 TextUtils.getChars(text, start, limit, mChars, 0);
166 for (int i = start, inext; i < limit; i = inext) {
170 chars[i - start] = '\ufffc';
171 for (int j = i - start
384 drawRun(Canvas c, int start, int limit, boolean runIsRtl, float x, int top, int y, int bottom, boolean needWidth) argument
412 measureRun(int start, int offset, int limit, boolean runIsRtl, FontMetricsInt fmi) argument
721 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) argument
814 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
879 handleRun(int start, int measureLimit, int limit, boolean runIsRtl, Canvas c, float x, int top, int y, int bottom, FontMetricsInt fmi, boolean needWidth) argument
976 drawTextRun(Canvas c, TextPaint wp, int start, int end, int contextStart, int contextEnd, boolean runIsRtl, float x, int y) argument
[all...]
H A DTextUtils.java70 public static void getChars(CharSequence s, int start, int end, argument
75 ((String) s).getChars(start, end, dest, destoff);
77 ((StringBuffer) s).getChars(start, end, dest, destoff);
79 ((StringBuilder) s).getChars(start, end, dest, destoff);
81 ((GetChars) s).getChars(start, end, dest, destoff);
83 for (int i = start; i < end; i++)
92 public static int indexOf(CharSequence s, char ch, int start) { argument
96 return ((String) s).indexOf(ch, start);
98 return indexOf(s, ch, start, s.length());
101 public static int indexOf(CharSequence s, char ch, int start, in argument
151 lastIndexOf(CharSequence s, char ch, int start, int last) argument
200 indexOf(CharSequence s, CharSequence needle, int start) argument
204 indexOf(CharSequence s, CharSequence needle, int start, int end) argument
263 substring(CharSequence source, int start, int end) argument
508 getReverse(CharSequence source, int start, int end) argument
516 Reverser(CharSequence source, int start, int end) argument
526 subSequence(int start, int end) argument
542 getChars(int start, int end, char[] dest, int destoff) argument
1012 copySpansFrom(Spanned source, int start, int end, Class kind, Spannable dest, int destoff) argument
1052 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
1717 packRangeInLong(int start, int end) argument
[all...]
H A DTextWatcher.java26 * 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 DDigitsKeyListener.java138 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 DMultiTapKeyListener.java235 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

Completed in 888 milliseconds

1234567891011>>