Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 266) sorted by relevance

1234567891011

/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java51 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
52 int srclen = end - start; in SpannableStringBuilder()
59 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
70 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
83 if (st > end - start) in SpannableStringBuilder()
84 st = end - start; in SpannableStringBuilder()
88 if (en > end - start) in SpannableStringBuilder()
89 en = end - start; in SpannableStringBuilder()
175 int end = mSpanEnds[i]; in moveGapTo() local
188 if (end > mGapStart) in moveGapTo()
[all …]
DSelection.java121 int end = getSelectionEnd(text); in moveUp() local
123 if (start != end) { in moveUp()
124 int min = Math.min(start, end); in moveUp()
125 int max = Math.max(start, end); in moveUp()
135 int line = layout.getLineForOffset(end); in moveUp()
142 float h = layout.getPrimaryHorizontal(end); in moveUp()
162 int end = getSelectionEnd(text); in moveDown() local
164 if (start != end) { in moveDown()
165 int min = Math.min(start, end); in moveDown()
166 int max = Math.max(start, end); in moveDown()
[all …]
DStyled.java33 Spanned text, int start, int end, in each() argument
43 CharacterStyle[] spans = text.getSpans(start, end, CharacterStyle.class); in each()
69 tmp = TextUtils.getReverse(text, start, end); in each()
71 tmpend = end - start; in each()
75 tmpend = end; in each()
129 ret = replacement.getSize(workPaint, text, start, end, fmi); in each()
133 replacement.draw(canvas, text, start, end, in each()
136 replacement.draw(canvas, text, start, end, in each()
163 Spanned text, int start, int end, in getTextWidths() argument
166 MetricAffectingSpan[] spans = text.getSpans(start, end, MetricAffectingSpan.class); in getTextWidths()
[all …]
DSpannableStringInternal.java26 int start, int end) { in SpannableStringInternal() argument
27 if (start == 0 && end == source.length()) in SpannableStringInternal()
30 mText = source.toString().substring(start, end); in SpannableStringInternal()
38 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringInternal()
47 if (en > end) in SpannableStringInternal()
48 en = end; in SpannableStringInternal()
69 public final void getChars(int start, int end, char[] dest, int off) { in getChars() argument
70 mText.getChars(start, end, dest, off); in getChars()
73 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
75 int nend = end; in setSpan()
[all …]
DAlteredCharSequence.java66 public <T> T[] getSpans(int start, int end, Class<T> kind) { in getSpans() argument
67 return mSpanned.getSpans(start, end, kind); in getSpans()
82 public int nextSpanTransition(int start, int end, Class kind) { in nextSpanTransition() argument
83 return mSpanned.nextSpanTransition(start, end, kind); in nextSpanTransition()
100 public CharSequence subSequence(int start, int end) { in subSequence() argument
101 return AlteredCharSequence.make(mSource.subSequence(start, end), in subSequence()
105 public void getChars(int start, int end, char[] dest, int off) { in getChars() argument
106 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
109 end = Math.min(mEnd, end); in getChars()
111 if (start > end) in getChars()
[all …]
DLayout.java73 int start, int end, in getDesiredWidth() argument
79 for (int i = start; i <= end; i = next) { in getDesiredWidth()
80 next = TextUtils.indexOf(source, '\n', i, end); in getDesiredWidth()
83 next = end; in getDesiredWidth()
193 int end = getLineStart(i+1); in draw() local
194 previousLineEnd = end; in draw()
214 buf, start, end, in draw()
245 int end = getLineVisibleEnd(i, start, previousLineEnd); in draw() local
289 start, end, par, this); in draw()
295 start, end, par, this); in draw()
[all …]
DInputFilter.java42 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
50 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
52 for (int i = start; i < end; i++) { in filter()
54 char[] v = new char[end - start]; in filter()
55 TextUtils.getChars(source, start, end, v, 0); in filter()
61 start, end, null, sp, 0); in filter() local
82 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
88 } else if (keep >= end - start) { in filter()
DSpannableString.java33 private SpannableString(CharSequence source, int start, int end) { in SpannableString() argument
34 super(source, start, end); in SpannableString()
45 public void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
46 super.setSpan(what, start, end, flags); in setSpan()
53 public final CharSequence subSequence(int start, int end) { in subSequence() argument
54 return new SpannableString(this, start, end); in subSequence()
DTextUtils.java58 public static void getChars(CharSequence s, int start, int end, in getChars() argument
63 ((String) s).getChars(start, end, dest, destoff); in getChars()
65 ((StringBuffer) s).getChars(start, end, dest, destoff); in getChars()
67 ((StringBuilder) s).getChars(start, end, dest, destoff); in getChars()
69 ((GetChars) s).getChars(start, end, dest, destoff); in getChars()
71 for (int i = start; i < end; i++) in getChars()
89 public static int indexOf(CharSequence s, char ch, int start, int end) { in indexOf() argument
97 while (start < end) { in indexOf()
99 if (segend > end) in indexOf()
100 segend = end; in indexOf()
[all …]
DStaticLayout.java131 int end = TextUtils.indexOf(source, '\n', bufstart, bufend); in generate() local
132 int bufsiz = end >= 0 ? end - bufstart : bufend - bufstart; in generate()
153 for (int start = bufstart; start <= bufend; start = end) { in generate()
157 end = TextUtils.indexOf(source, '\n', start, bufend); in generate()
159 if (end < 0) in generate()
160 end = bufend; in generate()
162 end++; in generate()
172 sp = spanned.getSpans(start, end, LeadingMarginSpan.class); in generate()
178 chooseht = spanned.getSpans(start, end, LineHeightSpan.class); in generate()
204 if (end - start > chdirs.length) { in generate()
[all …]
DSpannedString.java33 private SpannedString(CharSequence source, int start, int end) { in SpannedString() argument
34 super(source, start, end); in SpannedString()
37 public CharSequence subSequence(int start, int end) { in subSequence() argument
38 return new SpannedString(this, start, end); in subSequence()
DHtml.java187 int start, int end) { in withinDiv() argument
189 for (int i = start; i < end; i = next) { in withinDiv()
190 next = text.nextSpanTransition(i, end, QuoteSpan.class); in withinDiv()
206 int start, int end) { in withinBlockquote() argument
210 for (int i = start; i < end; i = next) { in withinBlockquote()
211 next = TextUtils.indexOf(text, '\n', i, end); in withinBlockquote()
213 next = end; in withinBlockquote()
218 while (next < end && text.charAt(next) == '\n') { in withinBlockquote()
223 withinParagraph(out, text, i, next - nl, nl, next == end); in withinBlockquote()
230 int start, int end, int nl, in withinParagraph() argument
[all …]
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
Ductralgo.h33 return (copy (ctr.begin(), ctr.end(), result)); in copy()
43 return (copy_if (ctr.begin(), ctr.end(), result, pred)); in copy_if()
55 return (for_each (ctr.begin(), ctr.end(), f)); in for_each()
67 return (for_each (ctr.begin(), ctr.end(), f)); in for_each()
77 return (find (ctr.begin(), ctr.end(), value)); in find()
82 return (find (ctr.begin(), ctr.end(), value)); in find()
92 return (find_if (ctr.begin(), ctr.end(), pred)); in find_if()
97 return (find_if (ctr.begin(), ctr.end(), pred)); in find_if()
108 return (count (ctr.begin(), ctr.end(), value)); in count()
119 return (count_if (ctr.begin(), ctr.end(), pred)); in count_if()
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java94 public final boolean acceptMatch(CharSequence s, int start, int end) {
112 public final boolean acceptMatch(CharSequence s, int start, int end) {
115 for (int i = start; i < end; i++) {
165 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument
238 applyLink(link.url, link.start, link.end, text); in addLinks()
367 int end = m.end(); in addLinks() local
371 allowed = matchFilter.acceptMatch(s, start, end); in addLinks()
378 applyLink(url, start, end, s); in addLinks()
386 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() argument
389 text.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in applyLink()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java40 public CharSequence subSequence(int start, int end) { in forAsciiBytes() argument
41 return forAsciiBytes(bytes, start, end); in forAsciiBytes()
62 final int start, final int end) {
63 validate(start, end, bytes.length);
70 return end - start;
86 static void validate(int start, int end, int length) {
88 if (end < 0) throw new IndexOutOfBoundsException();
89 if (end > length) throw new IndexOutOfBoundsException();
90 if (start > end) throw new IndexOutOfBoundsException();
121 int end = (myLen < anotherLen) ? myLen : anotherLen;
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java1019 public float measureText(String text, int start, int end) { in measureText() argument
1020 if (!mHasCompatScaling) return native_measureText(text, start, end); in measureText()
1023 float w = native_measureText(text, start, end); in measureText()
1028 private native float native_measureText(String text, int start, int end); in native_measureText() argument
1055 public float measureText(CharSequence text, int start, int end) { in measureText() argument
1057 return measureText((String)text, start, end); in measureText()
1061 return measureText(text.toString(), start, end); in measureText()
1064 return ((GraphicsOperations)text).measureText(start, end, this); in measureText()
1067 char[] buf = TemporaryBuffer.obtain(end - start); in measureText()
1068 TextUtils.getChars(text, start, end, buf, 0); in measureText()
[all …]
/frameworks/base/core/java/android/widget/
DMultiAutoCompleteTextView.java103 int end = getSelectionEnd(); in performFiltering() local
104 int start = mTokenizer.findTokenStart(text, end); in performFiltering()
106 performFiltering(text, start, end, keyCode); in performFiltering()
128 int end = getSelectionEnd(); in enoughToFilter() local
129 if (end < 0 || mTokenizer == null) { in enoughToFilter()
133 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter()
135 if (end - start >= getThreshold()) { in enoughToFilter()
158 int end = mTokenizer.findTokenEnd(e, start); in performValidation() local
160 CharSequence sub = e.subSequence(start, end); in performValidation()
178 protected void performFiltering(CharSequence text, int start, int end, in performFiltering() argument
[all …]
/frameworks/base/libs/ui/
DKeyLayoutMap.cpp31 const char* end = *p; in next_token() local
33 if (*end == '\n') { in next_token()
36 switch (*end) in next_token()
40 *p = end; in next_token()
41 return String8(begin, end-begin); in next_token()
45 end++; in next_token()
53 if (begun || (*end == '\0')) { in next_token()
54 *p = end; in next_token()
55 return String8(begin, end-begin); in next_token()
58 end++; in next_token()
[all …]
/frameworks/base/opengl/java/android/opengl/
DGLLogWrapper.java84 private void end() { in end() method in GLLogWrapper
1180 end(); in glActiveTexture()
1189 end(); in glAlphaFunc()
1198 end(); in glAlphaFuncx()
1207 end(); in glBindTexture()
1216 end(); in glBlendFunc()
1225 end(); in glClear()
1237 end(); in glClearColor()
1249 end(); in glClearColorx()
1258 end(); in glClearDepthf()
[all …]
DEGLLogWrapper.java37 end(); in eglChooseConfig()
54 end(); in eglCopyBuffers()
69 end(); in eglCreateContext()
84 end(); in eglCreatePbufferSurface()
100 end(); in eglCreatePixmapSurface()
116 end(); in eglCreateWindowSurface()
129 end(); in eglDestroyContext()
141 end(); in eglDestroySurface()
155 end(); in eglGetConfigAttrib()
169 end(); in eglGetConfigs()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint.java843 public float measureText(String text, int start, int end) { in measureText() argument
844 return measureText(text.toCharArray(), start, end - start); in measureText()
863 public float measureText(CharSequence text, int start, int end) { in measureText() argument
865 return measureText((String)text, start, end); in measureText()
869 return measureText(text.toString(), start, end); in measureText()
872 return ((SpannableStringBuilder)text).measureText(start, end, this); in measureText()
875 char[] buf = TemporaryBuffer.obtain(end - start); in measureText()
876 TextUtils.getChars(text, start, end, buf, 0); in measureText()
877 float result = measureText(buf, 0, end - start); in measureText()
907 int start, end; in breakText() local
[all …]
/frameworks/base/core/java/android/text/method/
DReplacementTransformationMethod.java136 public CharSequence subSequence(int start, int end) { in subSequence() argument
137 char[] c = new char[end - start]; in subSequence()
139 getChars(start, end, c, 0); in subSequence()
150 public void getChars(int start, int end, char[] dest, int off) { in getChars() argument
151 TextUtils.getChars(mSource, start, end, dest, off); in getChars()
152 int offend = end - start + off; in getChars()
179 public CharSequence subSequence(int start, int end) { in subSequence() argument
180 return new SpannedString(this).subSequence(start, end); in subSequence()
183 public <T> T[] getSpans(int start, int end, Class<T> type) { in getSpans() argument
184 return mSpanned.getSpans(start, end, type); in getSpans()
[all …]
DNumberKeyListener.java43 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
49 for (i = start; i < end; i++) { in filter()
55 if (i == end) { in filter()
60 if (end - start == 1) { in filter()
66 new SpannableStringBuilder(source, start, end); in filter()
68 end -= start; in filter()
70 int len = end - start; in filter()
72 for (int j = end - 1; j >= i; j--) { in filter()
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
DStringTest.java360 int start = 10, end = 48; in testStringsubstring1() local
362 rString = str.substring(start, end); in testStringsubstring1()
363 rString = str.substring(start, end); in testStringsubstring1()
364 rString = str.substring(start, end); in testStringsubstring1()
365 rString = str.substring(start, end); in testStringsubstring1()
366 rString = str.substring(start, end); in testStringsubstring1()
367 rString = str.substring(start, end); in testStringsubstring1()
368 rString = str.substring(start, end); in testStringsubstring1()
369 rString = str.substring(start, end); in testStringsubstring1()
370 rString = str.substring(start, end); in testStringsubstring1()
[all …]
/frameworks/base/libs/surfaceflinger/
DMessageQueue.cpp35 LIST::iterator end(mList.end()); in insert() local
36 while (cur != end) { in insert()
43 mList.insert(++end, node); in insert()
84 if (cur != mMessages.end()) { in waitMessage()
179 LIST::const_iterator end(mMessages.end()); in dumpLocked() local
181 while (cur != end) { in dumpLocked()

1234567891011