Home
last modified time | relevance | path

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

12345678910>>...40

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java57 protected int[] getRange(int start, int end) { in getRange() argument
58 if (start < 0 || end < 0 || start == end) { in getRange()
62 mSegment[1] = end; in getRange()
113 final int end = mImpl.following(start); in following() local
114 if (end == BreakIterator.DONE) { in following()
117 return getRange(start, end); in following()
129 int end = offset; in preceding() local
130 if (end > textLegth) { in preceding()
131 end = textLegth; in preceding()
133 while (!mImpl.isBoundary(end)) { in preceding()
[all …]
/frameworks/base/libs/androidfw/tests/
DAttributeFinder_test.cpp58 const int end = sizeof(sortedAttributes) / sizeof(*sortedAttributes); in TEST() local
59 MockAttributeFinder finder(sortedAttributes, end); in TEST()
68 EXPECT_EQ(end, finder.find(0x7f010002)); in TEST()
72 const int end = sizeof(sortedAttributes) / sizeof(*sortedAttributes); in TEST() local
73 MockAttributeFinder finder(sortedAttributes, end); in TEST()
76 EXPECT_EQ(end, finder.find(0x7f010002)); in TEST()
86 const int end = sizeof(sortedAttributes) / sizeof(*sortedAttributes); in TEST() local
87 MockAttributeFinder finder(sortedAttributes, end); in TEST()
92 EXPECT_EQ(end, finder.find(0x01010003)); in TEST()
94 EXPECT_EQ(end, finder.find(0x01010005)); in TEST()
[all …]
/frameworks/base/core/java/android/text/
DSelection.java124 int end = getSelectionEnd(text); in moveUp() local
126 if (start != end) { in moveUp()
127 int min = Math.min(start, end); in moveUp()
128 int max = Math.max(start, end); in moveUp()
138 int line = layout.getLineForOffset(end); in moveUp()
145 float h = layout.getPrimaryHorizontal(end); in moveUp()
153 } else if (end != 0) { in moveUp()
170 int end = getSelectionEnd(text); in moveDown() local
172 if (start != end) { in moveDown()
173 int min = Math.min(start, end); in moveDown()
[all …]
DSpannableStringBuilder.java56 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
57 int srclen = end - start; in SpannableStringBuilder()
65 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
76 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
89 if (st > end - start) in SpannableStringBuilder()
90 st = end - start; in SpannableStringBuilder()
94 if (en > end - start) in SpannableStringBuilder()
95 en = end - start; in SpannableStringBuilder()
180 int end = mSpanEnds[i]; in moveGapTo() local
193 if (end > mGapStart) in moveGapTo()
[all …]
DSpannableStringInternal.java29 int start, int end) { in SpannableStringInternal() argument
30 if (start == 0 && end == source.length()) in SpannableStringInternal()
33 mText = source.toString().substring(start, end); in SpannableStringInternal()
40 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringInternal()
49 if (en > end) in SpannableStringInternal()
50 en = end; in SpannableStringInternal()
71 public final void getChars(int start, int end, char[] dest, int off) { in getChars() argument
72 mText.getChars(start, end, dest, off); in getChars()
75 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
77 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
84 public CharSequence filter(CharSequence source, int start, int end, Spanned dest, in filter() argument
89 } else if (keep >= end - start) { in filter()
/frameworks/support/v4/java/android/support/v4/widget/
DTextViewCompat.java38 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
42 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
46 int start, int top, int end, int bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
54 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
56 textView.setCompoundDrawables(start, top, end, bottom); in setCompoundDrawablesRelative()
61 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
63 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
68 int start, int top, int end, int bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
69 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds()
78 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
[all …]
/frameworks/av/media/libstagefright/rtsp/
DASessionDescription.cpp208 char *end; in getFormatType() local
209 unsigned long x = strtoul(lastSpacePos + 1, &end, 10); in getFormatType()
210 CHECK_GT(end, lastSpacePos + 1); in getFormatType()
211 CHECK_EQ(*end, '\0'); in getFormatType()
243 char *end; in getDimensions() local
244 *width = strtoul(s, &end, 10); in getDimensions()
245 CHECK_GT(end, s); in getDimensions()
246 CHECK_EQ(*end, '-'); in getDimensions()
248 s = end + 1; in getDimensions()
249 *height = strtoul(s, &end, 10); in getDimensions()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java1513 public float measureText(String text, int start, int end) { in measureText() argument
1517 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1521 if (text.length() == 0 || start == end) { in measureText()
1525 return (float) Math.ceil(native_measureText(text, start, end, mBidiFlags)); in measureText()
1530 float w = native_measureText(text, start, end, mBidiFlags); in measureText()
1535 private native float native_measureText(String text, int start, int end, int bidiFlags); in native_measureText() argument
1572 public float measureText(CharSequence text, int start, int end) { in measureText() argument
1576 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1580 if (text.length() == 0 || start == end) { in measureText()
1584 return measureText((String)text, start, end); in measureText()
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java105 public final boolean acceptMatch(CharSequence s, int start, int end) {
123 public final boolean acceptMatch(CharSequence s, int start, int end) {
126 for (int i = start; i < end; i++) {
176 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument
247 applyLink(link.url, link.start, link.end, text); in addLinks()
376 int end = m.end(); in addLinks() local
380 allowed = matchFilter.acceptMatch(s, start, end); in addLinks()
387 applyLink(url, start, end, s); in addLinks()
395 private static final void applyLink(String url, int start, int end, Spannable text) { in applyLink() argument
398 text.setSpan(span, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in applyLink()
[all …]
/frameworks/base/core/java/android/widget/
DSpellChecker.java194 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument
197 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan()
216 public void spellCheck(int start, int end) { in spellCheck() argument
218 Log.d(TAG, "Start spell-checking: " + start + ", " + end); in spellCheck()
226 end = mTextView.getText().length(); in spellCheck()
242 spellParser.parse(start, end); in spellCheck()
257 spellParser.parse(start, end); in spellCheck()
275 final int end = editable.getSpanEnd(spellCheckSpan); in spellCheck() local
284 final boolean apostrophe = (selectionStart == end + 1 && editable.charAt(end) == '\''); in spellCheck()
289 isEditing = !apostrophe && (selectionEnd <= start || selectionStart > end); in spellCheck()
[all …]
DMultiAutoCompleteTextView.java96 int end = getSelectionEnd(); in performFiltering() local
97 int start = mTokenizer.findTokenStart(text, end); in performFiltering()
99 performFiltering(text, start, end, keyCode); in performFiltering()
121 int end = getSelectionEnd(); in enoughToFilter() local
122 if (end < 0 || mTokenizer == null) { in enoughToFilter()
126 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter()
128 if (end - start >= getThreshold()) { in enoughToFilter()
151 int end = mTokenizer.findTokenEnd(e, start); in performValidation() local
153 CharSequence sub = e.subSequence(start, end); in performValidation()
171 protected void performFiltering(CharSequence text, int start, int end, in performFiltering() argument
[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 …]
/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/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp69 List<RingBufferItem>::iterator it, end, accIt; in pinSelectedBuffer() local
75 for (it = mBufferItemList.begin(), end = mBufferItemList.end(); in pinSelectedBuffer()
76 it != end; in pinSelectedBuffer()
165 List<RingBufferItem>::iterator it, end; in pinBufferLocked() local
167 for (it = mBufferItemList.begin(), end = mBufferItemList.end(); in pinBufferLocked()
168 it != end; in pinBufferLocked()
178 if (it == end) { in pinBufferLocked()
190 List<RingBufferItem>::iterator it, end, accIt; in releaseOldestBufferLocked() local
193 end = mBufferItemList.end(); in releaseOldestBufferLocked()
194 accIt = end; in releaseOldestBufferLocked()
[all …]
/frameworks/support/v4/jellybean-mr1/android/support/v4/widget/
DTextViewCompatJbMr1.java28 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelative() argument
31 textView.setCompoundDrawables(rtl ? end : start, top, rtl ? start : end, bottom); in setCompoundDrawablesRelative()
35 @Nullable Drawable start, @Nullable Drawable top, @Nullable Drawable end, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
38 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end, in setCompoundDrawablesRelativeWithIntrinsicBounds()
43 int start, int top, int end, int bottom) { in setCompoundDrawablesRelativeWithIntrinsicBounds() argument
45 textView.setCompoundDrawablesWithIntrinsicBounds(rtl ? end : start, top, rtl ? start : end, in setCompoundDrawablesRelativeWithIntrinsicBounds()
/frameworks/av/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/compile/mclinker/lib/Target/ARM/
DARMException.cpp33 assert(m_Inputs.find(pInput) == m_Inputs.end() && in addInputMap()
42 for (ARMInputExMap::iterator it = exMap->begin(), end = exMap->end(); in addInputMap() local
43 it != end; ++it) { in addInputMap()
51 end = pModule.obj_end(); it != end; ++it) { in scanInputExceptionSections() local
60 end = sectData->end(); it != end; ++it) { in findRegionFragment() local
75 end = ctx->sectEnd(); it != end; ++it) { in scanInputExceptionSections() local
98 ARMInputExMap::iterator end = exMap->end(); in scanInputExceptionSections() local
99 while (it != end) { in scanInputExceptionSections()
241 SectionData::iterator last = sectData->end(); in rewriteARMExIdxSection()
247 tmp.splice(tmp.end(), list, first); in rewriteARMExIdxSection()
[all …]
/frameworks/base/tools/aapt2/
DUtil.cpp37 const StringPiece::const_iterator end = std::end(str); in splitAndTransform() local
41 current = std::find(start, end, sep); in splitAndTransform()
45 std::transform(part.begin(), part.end(), part.begin(), f); in splitAndTransform()
48 } while (current != end); in splitAndTransform()
66 const char16_t* end = str.data() + str.length(); in trimWhitespace() local
68 while (start != end && util::isspace16(*start)) { in trimWhitespace()
72 while (end != start && util::isspace16(*(end - 1))) { in trimWhitespace()
73 end--; in trimWhitespace()
76 return StringPiece16(start, end - start); in trimWhitespace()
81 const auto endIter = str.end(); in findNonAlphaNumericAndNotInSet()
[all …]
/frameworks/av/media/libstagefright/httplive/
DM3UParser.cpp130 char *end; in pickRandomMediaItems() local
131 mSelectedIndex = strtoul(value, &end, 10); in pickRandomMediaItems()
132 CHECK(end > value && *end == '\0'); in pickRandomMediaItems()
516 size_t end; in MakeURL() local
518 end = qsPos - baseURL; in MakeURL()
520 end = strlen(baseURL); in MakeURL()
523 for (ssize_t pos = end - 1; pos >= 0; pos--) { in MakeURL()
525 end = pos; in MakeURL()
532 if (end >= schemeEnd) { in MakeURL()
533 out->setTo(baseURL, end); in MakeURL()
[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 …]
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp74 current->end++; in add()
79 m_OutputSymbols[current->end]); in add()
81 current->end++; in add()
121 while (pos != current->end) { in arrange()
130 if (current->end == pos || current->empty()) { in arrange()
134 while (pos != current->end) { in arrange()
141 if (pos != current->end) in arrange()
157 rear = current->end - 1; in arrange()
161 current->end--; in arrange()
180 current->prev->end++; in arrange()
[all …]
/frameworks/minikin/libs/minikin/
DCmapCoverage.cpp40 static void addRange(vector<uint32_t> &coverage, uint32_t start, uint32_t end) { in addRange() argument
42 ALOGD("adding range %d-%d\n", start, end); in addRange()
46 coverage.push_back(end); in addRange()
48 coverage.back() = end; in addRange()
66 uint32_t end = readU16(data, kEndCountOffset + 2 * i); in getCoverageFormat4() local
68 if (end < start) { in getCoverageFormat4()
76 if (((end + delta) & 0xffff) > end - start) { in getCoverageFormat4()
77 addRange(coverage, start, end + 1); in getCoverageFormat4()
79 for (uint32_t j = start; j < end + 1; j++) { in getCoverageFormat4()
86 for (uint32_t j = start; j < end + 1; j++) { in getCoverageFormat4()
[all …]
/frameworks/compile/mclinker/lib/LD/
DMergedStringTable.cpp19 string_map_iterator it, end = m_StringMap.end(); in finalizeOffset() local
21 for (it = m_StringMap.begin(); it != end; ++it) { in finalizeOffset()
30 string_map_iterator it, end = m_StringMap.end(); in emit() local
31 for (it = m_StringMap.begin(); it != end; ++it) { in emit()
38 assert(m_StringMap.find(pStr) != m_StringMap.end()); in getOutputOffset()

12345678910>>...40