Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java50 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
51 int srclen = end - start; in SpannableStringBuilder()
58 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
69 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
82 if (st > end - start) in SpannableStringBuilder()
83 st = end - start; in SpannableStringBuilder()
87 if (en > end - start) in SpannableStringBuilder()
88 en = end - start; in SpannableStringBuilder()
173 int end = mSpanEnds[i]; in moveGapTo() local
186 if (end > mGapStart) in moveGapTo()
[all …]
DSelection.java123 int end = getSelectionEnd(text); in moveUp() local
125 if (start != end) { in moveUp()
126 int min = Math.min(start, end); in moveUp()
127 int max = Math.max(start, end); in moveUp()
137 int line = layout.getLineForOffset(end); in moveUp()
144 float h = layout.getPrimaryHorizontal(end); in moveUp()
164 int end = getSelectionEnd(text); in moveDown() local
166 if (start != end) { in moveDown()
167 int min = Math.min(start, end); in moveDown()
168 int max = Math.max(start, end); in moveDown()
[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 …]
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()
DTextUtils.java59 public static void getChars(CharSequence s, int start, int end, in getChars() argument
64 ((String) s).getChars(start, end, dest, destoff); in getChars()
66 ((StringBuffer) s).getChars(start, end, dest, destoff); in getChars()
68 ((StringBuilder) s).getChars(start, end, dest, destoff); in getChars()
70 ((GetChars) s).getChars(start, end, dest, destoff); in getChars()
72 for (int i = start; i < end; i++) in getChars()
90 public static int indexOf(CharSequence s, char ch, int start, int end) { in indexOf() argument
98 while (start < end) { in indexOf()
100 if (segend > end) in indexOf()
101 segend = end; in indexOf()
[all …]
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()
DGraphicsOperations.java33 void drawText(Canvas c, int start, int end, in drawText() argument
40 void drawTextRun(Canvas c, int start, int end, int contextStart, int contextEnd, in drawTextRun() argument
46 float measureText(int start, int end, Paint p); in measureText() argument
51 public int getTextWidths(int start, int end, float[] widths, Paint p); in getTextWidths() argument
57 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, in getTextRunAdvances() argument
64 float getTextRunAdvances(int start, int end, int contextStart, int contextEnd, in getTextRunAdvances() argument
DLayout.java76 int start, int end, in getDesiredWidth() argument
82 for (int i = start; i <= end; i = next) { in getDesiredWidth()
83 next = TextUtils.indexOf(source, '\n', i, end); in getDesiredWidth()
86 next = end; in getDesiredWidth()
245 int end = getLineStart(i+1); in draw() local
246 previousLineEnd = end; in draw()
260 spans = getParagraphSpans(sp, start, end, LineBackgroundSpan.class); in draw()
268 buf, start, end, in draw()
306 int end = getLineVisibleEnd(i, start, previousLineEnd); in draw() local
364 start, end, isFirstParaLine, this); in draw()
[all …]
/frameworks/base/media/libstagefright/rtsp/
DASessionDescription.cpp207 char *end; in getFormatType() local
208 unsigned long x = strtoul(lastSpacePos + 1, &end, 10); in getFormatType()
209 CHECK_GT(end, lastSpacePos + 1); in getFormatType()
210 CHECK_EQ(*end, '\0'); in getFormatType()
239 char *end; in getDimensions() local
240 *width = strtoul(s, &end, 10); in getDimensions()
241 CHECK_GT(end, s); in getDimensions()
242 CHECK_EQ(*end, '-'); in getDimensions()
244 s = end + 1; in getDimensions()
245 *height = strtoul(s, &end, 10); in getDimensions()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java1249 public float measureText(String text, int start, int end) { in measureText() argument
1253 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1257 if (text.length() == 0 || start == end) { in measureText()
1261 return native_measureText(text, start, end); in measureText()
1266 float w = native_measureText(text, start, end); in measureText()
1271 private native float native_measureText(String text, int start, int end); in native_measureText() argument
1306 public float measureText(CharSequence text, int start, int end) { in measureText() argument
1310 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1314 if (text.length() == 0 || start == end) { in measureText()
1318 return measureText((String)text, start, end); in measureText()
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java96 public final boolean acceptMatch(CharSequence s, int start, int end) {
114 public final boolean acceptMatch(CharSequence s, int start, int end) {
117 for (int i = start; i < end; i++) {
167 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument
240 applyLink(link.url, link.start, link.end, text); in addLinks()
369 int end = m.end(); in addLinks() local
373 allowed = matchFilter.acceptMatch(s, start, end); in addLinks()
380 applyLink(url, start, end, s); in addLinks()
388 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() argument
391 text.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in applyLink()
[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.java53 end(); in eglChooseConfig()
70 end(); in eglCopyBuffers()
85 end(); in eglCreateContext()
100 end(); in eglCreatePbufferSurface()
116 end(); in eglCreatePixmapSurface()
132 end(); in eglCreateWindowSurface()
145 end(); in eglDestroyContext()
157 end(); in eglDestroySurface()
171 end(); in eglGetConfigAttrib()
185 end(); in eglGetConfigs()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DDNParser.java50 private int pos, beg, end; field in DNParser
100 end = pos; in nextAT()
123 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
130 return new String(chars, beg, end - beg); in nextAT()
138 end = beg; in quotedAV()
151 chars[end] = getEscaped(); in quotedAV()
154 chars[end] = chars[pos]; in quotedAV()
157 end++; in quotedAV()
165 return new String(chars, beg, end - beg); in quotedAV()
184 end = pos; in hexAV()
[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/core/java/android/widget/
DMultiAutoCompleteTextView.java92 int end = getSelectionEnd(); in performFiltering() local
93 int start = mTokenizer.findTokenStart(text, end); in performFiltering()
95 performFiltering(text, start, end, keyCode); in performFiltering()
117 int end = getSelectionEnd(); in enoughToFilter() local
118 if (end < 0 || mTokenizer == null) { in enoughToFilter()
122 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter()
124 if (end - start >= getThreshold()) { in enoughToFilter()
147 int end = mTokenizer.findTokenEnd(e, start); in performValidation() local
149 CharSequence sub = e.subSequence(start, end); in performValidation()
167 protected void performFiltering(CharSequence text, int start, int end, in performFiltering() argument
[all …]
DSpellChecker.java122 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument
124 editable.setSpan(mSpellCheckSpans[index], start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan()
142 public void spellCheck(int start, int end) { in spellCheck() argument
149 spellParser.init(start, end); in spellCheck()
162 spellParser.init(start, end); in spellCheck()
181 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck() local
184 if (start >= 0 && end > start && (selectionEnd < start || selectionStart > end)) { in spellCheck()
185 final String word = editable.subSequence(start, end).toString(); in spellCheck()
241 final int end = editable.getSpanEnd(spellCheckSpan); in createMisspelledSuggestionSpan() local
245 SuggestionSpan[] suggestionSpans = editable.getSpans(start, end, SuggestionSpan.class); in createMisspelledSuggestionSpan()
[all …]
/frameworks/base/media/libstagefright/httplive/
DM3UParser.cpp314 ssize_t end = line.find(",", offset); in parseStreamInf() local
315 if (end < 0) { in parseStreamInf()
316 end = line.size(); in parseStreamInf()
319 AString attr(line, offset, end - offset); in parseStreamInf()
322 offset = end + 1; in parseStreamInf()
339 char *end; in parseStreamInf() local
340 unsigned long x = strtoul(s, &end, 10); in parseStreamInf()
342 if (end == s || *end != '\0') { in parseStreamInf()
392 ssize_t end = FindNextUnquoted(line, ',', offset); in parseCipherInfo() local
393 if (end < 0) { in parseCipherInfo()
[all …]
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
Dvlc_encode_inline.h26 UInt end, match; in zero_run_search() local
33 end = 1; in zero_run_search()
35 end = 1 << (32 - nc); in zero_run_search()
37 while (match >= end) in zero_run_search()
73 end = 1 << (32 - nc); in zero_run_search()
74 while (match >= end) in zero_run_search()
117 UInt end, match; in zero_run_search() local
135 mov end, #0x80000000 in zero_run_search()
136 mov end, end, lsr run /* mask*/ in zero_run_search()
137 bic match, match, end /* remove it from bitmap */ in zero_run_search()
[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/core/jni/
Dandroid_nfc_NdefMessage.cpp59 goto end; in android_nfc_NdefMessage_parseNdefMessage()
65 goto end; in android_nfc_NdefMessage_parseNdefMessage()
68 goto end; in android_nfc_NdefMessage_parseNdefMessage()
78 goto end; in android_nfc_NdefMessage_parseNdefMessage()
87 goto end; in android_nfc_NdefMessage_parseNdefMessage()
101 goto end; in android_nfc_NdefMessage_parseNdefMessage()
115 goto end; in android_nfc_NdefMessage_parseNdefMessage()
121 goto end; in android_nfc_NdefMessage_parseNdefMessage()
127 goto end; in android_nfc_NdefMessage_parseNdefMessage()
133 goto end; in android_nfc_NdefMessage_parseNdefMessage()
[all …]
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java240 int end = start + mPartitions[i].count; in getPartitionForPosition() local
241 if (position >= start && position < end) { in getPartitionForPosition()
244 start = end; in getPartitionForPosition()
257 int end = start + mPartitions[i].count; in getOffsetInPartition() local
258 if (position >= start && position < end) { in getOffsetInPartition()
265 start = end; in getOffsetInPartition()
309 int end = start + mPartitions[i].count; in getItemViewType() local
310 if (position >= start && position < end) { in getItemViewType()
317 start = end; in getItemViewType()
327 int end = start + mPartitions[i].count; in getView() local
[all …]
/frameworks/compile/linkloader/utils/
Dhelper.cpp26 size_t size, size_t begin, size_t end) { in dump_hex() argument
27 if (end <= begin) { in dump_hex()
33 size_t upper = (end & (~0xfUL)) ? end : ((end + 16UL) & (~0xfUL)); in dump_hex()
47 if (j == end) { in dump_hex()

12345678910>>...19