Home
last modified time | relevance | path

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

12345678910>>...71

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java63 protected int[] getRange(int start, int end) { in getRange() argument
64 if (start < 0 || end < 0 || start == end) { in getRange()
68 mSegment[1] = end; in getRange()
119 final int end = mImpl.following(start); in following() local
120 if (end == BreakIterator.DONE) { in following()
123 return getRange(start, end); in following()
135 int end = offset; in preceding() local
136 if (end > textLegth) { in preceding()
137 end = textLegth; in preceding()
139 while (!mImpl.isBoundary(end)) { in preceding()
[all …]
/frameworks/base/libs/androidfw/tests/
DAttributeFinder_test.cpp53 const int end = arraysize(kSortedAttributes); in TEST() local
54 MockAttributeFinder finder(kSortedAttributes, end); in TEST()
63 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST()
67 const int end = arraysize(kSortedAttributes); in TEST() local
68 MockAttributeFinder finder(kSortedAttributes, end); in TEST()
71 EXPECT_EQ(end, finder.Find(0x7f010002)); in TEST()
81 const int end = arraysize(kSortedAttributes); in TEST() local
82 MockAttributeFinder finder(kSortedAttributes, end); in TEST()
87 EXPECT_EQ(end, finder.Find(0x01010003)); in TEST()
89 EXPECT_EQ(end, finder.Find(0x01010005)); in TEST()
[all …]
/frameworks/minikin/tests/unittest/
DBidiUtilsTest.cpp38 EXPECT_NE(bidiText.end(), it); in TEST()
42 EXPECT_EQ(bidiText.end(), it); in TEST()
47 EXPECT_NE(bidiText.end(), it); in TEST()
51 EXPECT_EQ(bidiText.end(), it); in TEST()
56 EXPECT_NE(bidiText.end(), it); in TEST()
60 EXPECT_EQ(bidiText.end(), it); in TEST()
65 EXPECT_NE(bidiText.end(), it); in TEST()
69 EXPECT_EQ(bidiText.end(), it); in TEST()
74 EXPECT_NE(bidiText.end(), it); in TEST()
78 EXPECT_EQ(bidiText.end(), it); in TEST()
[all …]
DFontCollectionItemizeTest.cpp62 int end; member
84 EXPECT_EQ(result[i].end, resultWithRunMax[i].end); in itemize()
91 {collection->getBestFont(U16StringPiece(buf, len), r, style), r.start, r.end}); in itemize()
135 EXPECT_EQ(5, runs[0].end); in TEST()
143 EXPECT_EQ(5, runs[0].end); in TEST()
151 EXPECT_EQ(5, runs[0].end); in TEST()
159 EXPECT_EQ(5, runs[0].end); in TEST()
169 EXPECT_EQ(5, runs[0].end); in TEST()
177 EXPECT_EQ(5, runs[0].end); in TEST()
187 EXPECT_EQ(2, runs[0].end); in TEST()
[all …]
/frameworks/base/core/java/android/text/
DSelection.java200 int end = getSelectionEnd(text); in moveUp() local
202 if (start != end) { in moveUp()
203 int min = Math.min(start, end); in moveUp()
204 int max = Math.max(start, end); in moveUp()
214 int line = layout.getLineForOffset(end); in moveUp()
218 text, layout, line, end, -1 /* direction */, false /* extend */); in moveUp()
220 } else if (end != 0) { in moveUp()
232 private static void setSelectionAndMemory(Spannable text, Layout layout, int line, int end, in setSelectionAndMemory() argument
247 float h = layout.getPrimaryHorizontal(end); in setSelectionAndMemory()
249 newMemory = end; in setSelectionAndMemory()
[all …]
DSpannableStringBuilder.java60 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
61 int srclen = end - start; in SpannableStringBuilder()
69 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
82 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
95 if (st > end - start) in SpannableStringBuilder()
96 st = end - start; in SpannableStringBuilder()
100 if (en > end - start) in SpannableStringBuilder()
101 en = end - start; in SpannableStringBuilder()
186 int end = mSpanEnds[i]; in moveGapTo() local
199 if (end > mGapStart) in moveGapTo()
[all …]
DSpannableStringInternal.java33 int start, int end, boolean ignoreNoCopySpan) { in SpannableStringInternal() argument
34 if (start == 0 && end == source.length()) in SpannableStringInternal()
37 mText = source.toString().substring(start, end); in SpannableStringInternal()
46 (SpannableStringInternal) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local
48 copySpansFromSpanned((Spanned) source, start, end, ignoreNoCopySpan); in SpannableStringInternal() local
59 /* package */ SpannableStringInternal(CharSequence source, int start, int end) { in SpannableStringInternal() argument
60 this(source, start, end, false /* ignoreNoCopySpan */); in SpannableStringInternal()
71 private void copySpansFromSpanned(Spanned src, int start, int end, boolean ignoreNoCopySpan) { in copySpansFromSpanned() argument
72 Object[] spans = src.getSpans(start, end, Object.class); in copySpansFromSpanned()
84 if (en > end) in copySpansFromSpanned()
[all …]
DInputFilter.java50 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
75 public CharSequence filter(CharSequence source, int start, int end, in filter() argument
77 final CharSequence wrapper = new CharSequenceWrapper(source, start, end); in filter()
80 final int length = end - start; in filter()
111 CharSequenceWrapper(CharSequence source, int start, int end) { in CharSequenceWrapper() argument
114 mEnd = end; in CharSequenceWrapper()
115 mLength = end - start; in CharSequenceWrapper()
129 public CharSequence subSequence(int start, int end) { in subSequence() argument
130 if (start < 0 || end < 0 || end > mLength || start > end) { in subSequence()
133 return new CharSequenceWrapper(mSource, mStart + start, mStart + end); in subSequence()
[all …]
DMeasuredParagraph.java189 @IntRange(from = 0) int end) { // exclusive in getDirections()
194 final int length = end - start; in getDirections()
262 public float getWidth(int start, int end) { in getWidth() argument
267 for (int i = start; i < end; ++i) { in getWidth()
273 return mMeasuredText.getWidth(start, end); in getWidth()
283 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getBounds()
285 mMeasuredText.getBounds(start, end, bounds); in getBounds()
313 @IntRange(from = 0) int end, in buildForBidi()
317 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForBidi()
339 @IntRange(from = 0) int end, in buildForMeasurement()
[all …]
/frameworks/base/tools/aapt2/util/
DUtil.cpp49 const StringPiece::const_iterator end = std::end(str); in SplitAndTransform() local
53 current = std::find(start, end, sep); in SplitAndTransform()
57 std::transform(part.begin(), part.end(), part.begin(), f); in SplitAndTransform()
60 } while (current != end); in SplitAndTransform()
92 const char* end = start + str.length(); in TrimLeadingWhitespace() local
94 while (start != end && isspace(*start)) { in TrimLeadingWhitespace()
97 return StringPiece(start, end - start); in TrimLeadingWhitespace()
106 const char* end = start + str.length(); in TrimTrailingWhitespace() local
108 while (end != start && isspace(*(end - 1))) { in TrimTrailingWhitespace()
109 end--; in TrimTrailingWhitespace()
[all …]
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java81 @IntRange(from = 0) int start, @IntRange(from = 0) int end) { in getWidth()
84 Preconditions.checkArgument(0 <= end && end <= mChars.length, in getWidth()
85 "end(%d) must be 0 <= end <= %d", end, mChars.length); in getWidth()
86 Preconditions.checkArgument(start <= end, in getWidth()
87 "start(%d) is larger than end(%d)", start, end); in getWidth()
88 return nGetWidth(mNativePtr, start, end); in getWidth()
107 public void getBounds(@IntRange(from = 0) int start, @IntRange(from = 0) int end, in getBounds()
111 Preconditions.checkArgument(0 <= end && end <= mChars.length, in getBounds()
112 "end(%d) must be 0 <= end <= %d", end, mChars.length); in getBounds()
113 Preconditions.checkArgument(start <= end, in getBounds()
[all …]
/frameworks/base/tools/aapt2/link/
DProductFilter.cpp26 const ResourceConfigValueIter end, IDiagnostics* diag) { in SelectProductToKeep() argument
27 ResourceConfigValueIter default_product_iter = end; in SelectProductToKeep()
28 ResourceConfigValueIter selected_product_iter = end; in SelectProductToKeep()
30 for (ResourceConfigValueIter iter = begin; iter != end; ++iter) { in SelectProductToKeep()
32 if (products_.find(config_value->product) != products_.end()) { in SelectProductToKeep()
33 if (selected_product_iter != end) { in SelectProductToKeep()
45 return end; in SelectProductToKeep()
53 if (default_product_iter != end) { in SelectProductToKeep()
64 return end; in SelectProductToKeep()
72 if (default_product_iter == end) { in SelectProductToKeep()
[all …]
/frameworks/av/media/libstagefright/rtsp/
DASessionDescription.cpp242 char *end; in getFormatType() local
243 unsigned long x = strtoul(lastSpacePos + 1, &end, 10); in getFormatType()
244 CHECK_GT(end, lastSpacePos + 1); in getFormatType()
245 CHECK_EQ(*end, '\0'); in getFormatType()
276 char *end; in getDimensions() local
277 *width = strtoul(s, &end, 10); in getDimensions()
278 CHECK_GT(end, s); in getDimensions()
279 CHECK_EQ(*end, '-'); in getDimensions()
281 s = end + 1; in getDimensions()
282 *height = strtoul(s, &end, 10); in getDimensions()
[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/services/core/java/com/android/server/utils/
DWatchedArraySet.java102 final int end = mStorage.size(); in registerObserver() local
103 for (int i = 0; i < end; i++) { in registerObserver()
117 final int end = mStorage.size(); in unregisterObserver() local
118 for (int i = 0; i < end; i++) { in unregisterObserver()
172 final int end = src.size(); in copyFrom() local
173 mStorage.ensureCapacity(end); in copyFrom()
174 for (int i = 0; i < end; i++) { in copyFrom()
184 final int end = size(); in copyTo() local
185 dst.ensureCapacity(end); in copyTo()
186 for (int i = 0; i < end; i++) { in copyTo()
[all …]
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java123 long end = getTime(time, mSchedule.endHour, mSchedule.endMinute); in isInSchedule() local
124 if (end <= start) { in isInSchedule()
125 end = addDays(end, 1); in isInSchedule()
127 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); in isInSchedule()
138 long end = getTime(alarm, mSchedule.endHour, mSchedule.endMinute); in isAlarmInSchedule() local
139 if (end <= start) { in isAlarmInSchedule()
140 end = addDays(end, 1); in isAlarmInSchedule()
142 return (isInSchedule(-1, alarm, start, end) in isAlarmInSchedule()
143 && isInSchedule(-1, now, start, end)) in isAlarmInSchedule()
144 || (isInSchedule(0, alarm, start, end) in isAlarmInSchedule()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java2245 public float measureText(String text, int start, int end) { in measureText() argument
2249 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
2253 if (text.length() == 0 || start == end) { in measureText()
2258 start, end, start, end, mBidiFlags, null, 0)); in measureText()
2262 final float w = nGetTextAdvances(mNativePaint, text, start, end, start, end, mBidiFlags, in measureText()
2289 public float measureText(CharSequence text, int start, int end) { in measureText() argument
2293 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
2297 if (text.length() == 0 || start == end) { in measureText()
2301 return measureText((String)text, start, end); in measureText()
2305 return measureText(text.toString(), start, end); in measureText()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dserialization.h349 return std::accumulate(v.begin(), v.end(), GetEncodingSize(EncodeType(v)),
360 v.begin(), v.end(), GetEncodingSize(EncodeType(v)),
373 v.begin(), v.end(), GetEncodingSize(EncodeType(v)),
383 return std::accumulate(v.begin(), v.end(), GetEncodingSize(EncodeType(v)),
392 return std::accumulate(v.begin(), v.end(), GetEncodingSize(EncodeType(v)),
1091 const void*& end, size_t size) {
1092 while (AdvancePointer(start, size) > end) {
1093 auto remaining_size = PointerDistance(end, start);
1100 std::tie(start, end) = reader->GetNextReadBufferSection();
1101 if (start == end)
[all …]
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAndroidDistinguishedNameParser.java37 private int end; field in AndroidDistinguishedNameParser
77 end = pos; in nextAT()
99 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
106 return new String(chars, beg, end - beg); in nextAT()
113 end = beg; in quotedAV()
125 chars[end] = getEscaped(); in quotedAV()
128 chars[end] = chars[pos]; in quotedAV()
131 end++; in quotedAV()
139 return new String(chars, beg, end - beg); in quotedAV()
157 end = pos; in hexAV()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoaderTest.java70 final long end = System.currentTimeMillis(); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState() local
71 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
79 mLoader.recordUsage(start, end); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
81 verify(mNetworkStatsManager).queryDetailsForUid(mNetworkTemplate, start, end, uid); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
83 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
88 final long end = System.currentTimeMillis(); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState() local
89 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
95 mLoader.recordUsage(start, end); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
97 mNetworkTemplate, start, end, uid, TAG_NONE, STATE_FOREGROUND); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
102 final long end = System.currentTimeMillis(); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid() local
[all …]
/frameworks/base/core/java/android/widget/
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 …]
DSpellChecker.java196 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument
199 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan()
221 final int end = mTextView.length(); in onPerformSpellCheck() local
223 Log.d(TAG, "performSpellCheckAroundSelection: " + start + ", " + end); in onPerformSpellCheck()
225 spellCheck(start, end, /* forceCheckWhenEditingWord= */ true); in onPerformSpellCheck()
228 public void spellCheck(int start, int end) { in spellCheck() argument
229 spellCheck(start, end, /* forceCheckWhenEditingWord= */ false); in spellCheck()
235 public void spellCheck(int start, int end, boolean forceCheckWhenEditingWord) { in spellCheck() argument
237 Log.d(TAG, "Start spell-checking: " + start + ", " + end + ", " in spellCheck()
246 end = mTextView.getText().length(); in spellCheck()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCharSequences.java42 public CharSequence subSequence(int start, int end) { in forAsciiBytes() argument
43 return forAsciiBytes(bytes, start, end); in forAsciiBytes()
64 final int start, final int end) {
65 validate(start, end, bytes.length);
72 return end - start;
88 static void validate(int start, int end, int length) {
90 if (end < 0) throw new IndexOutOfBoundsException();
91 if (end > length) throw new IndexOutOfBoundsException();
92 if (start > end) throw new IndexOutOfBoundsException();
125 int end = (myLen < anotherLen) ? myLen : anotherLen;
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierUtilsTest.java37 int end; in testGetSubString() local
42 end = text.length(); in testGetSubString()
44 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
49 end = "Yakuza".length(); in testGetSubString()
51 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
56 end = start + 1; in testGetSubString()
58 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
63 end = start + "themselves".length(); in testGetSubString()
64 minimumLength = end - start; in testGetSubString()
65 assertThat(TextClassifier.Utils.getSubString(text, start, end, minimumLength)) in testGetSubString()
[all …]
/frameworks/compile/mclinker/lib/Target/ARM/
DARMException.cpp26 end = sectData->end(); it != end; ++it) { in findRegionFragment() local
36 assert(m_Inputs.find(pInput) == m_Inputs.end() && in addInputMap()
45 for (ARMInputExMap::iterator it = exMap->begin(), end = exMap->end(); in addInputMap() local
46 it != end; ++it) { in addInputMap()
55 end = pModule.obj_end(); it != end; ++it) { in create() local
68 end = ctx->sectEnd(); it != end; ++it) { in create() local
83 ARMInputExMap::iterator end = exMap->end(); in create() local
84 while (it != end) { in create()

12345678910>>...71