Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 1816) sorted by relevance

12345678910>>...73

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java56 protected int[] getRange(int start, int end) { in getRange() argument
57 if (start < 0 || end < 0 || start == end) { in getRange()
60 mSegment[0] = start; in getRange()
102 int start = offset; in following() local
103 if (start < 0) { in following()
104 start = 0; in following()
106 while (!mImpl.isBoundary(start)) { in following()
107 start = mImpl.following(start); in following()
108 if (start == BreakIterator.DONE) { in following()
112 final int end = mImpl.following(start); in following()
[all …]
/frameworks/base/core/java/android/text/
DSpannableStringBuilder.java58 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
59 int srclen = end - start; in SpannableStringBuilder()
67 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
80 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
87 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
88 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder()
93 if (st > end - start) in SpannableStringBuilder()
94 st = end - start; in SpannableStringBuilder()
98 if (en > end - start) in SpannableStringBuilder()
99 en = end - start; in SpannableStringBuilder()
[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()
41 copySpans((SpannableStringInternal) source, start, end); in SpannableStringInternal() local
43 copySpans((Spanned) source, start, end); in SpannableStringInternal() local
55 private final void copySpans(Spanned src, int start, int end) { in copySpans() argument
56 Object[] spans = src.getSpans(start, end, Object.class); in copySpans()
63 if (st < start) in copySpans()
64 st = start; in copySpans()
68 setSpan(spans[i], st - start, en - start, fl, false/*enforceParagraph*/); in copySpans()
[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()
102 mChars, mStart - start, mEnd - start); 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()
108 start = Math.max(mStart, start); 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()
92 keep += start; in filter()
95 if (keep == start) { in filter()
[all …]
/frameworks/minikin/libs/minikin/
DMeasurement.cpp33 size_t start, size_t count, size_t offset) { in getRunAdvance() argument
35 size_t lastCluster = start; in getRunAdvance()
37 for (size_t i = start; i < offset; i++) { in getRunAdvance()
45 if (offset < start + count && advances[offset - layoutStart] == 0.0f) { in getRunAdvance()
50 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) { in getRunAdvance()
58 advances + (start - layoutStart), buf, start, count, i)) { in getRunAdvance()
72 float getRunAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getRunAdvance() argument
74 return getRunAdvance(advances, buf, start, start, count, offset); in getRunAdvance()
85 size_t getOffsetForAdvance(const float* advances, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance() argument
88 size_t lastClusterStart = start, searchStart = start; in getOffsetForAdvance()
[all …]
DGraphemeBreak.cpp59 bool GraphemeBreak::isGraphemeBreak(const float* advances, const uint16_t* buf, size_t start, in isGraphemeBreak() argument
67 if (offset <= start || offset >= start + count) { in isGraphemeBreak()
78 U16_PREV(buf, start, offset_back, c1); in isGraphemeBreak()
79 U16_NEXT(buf, offset_forward, start + count, c2); in isGraphemeBreak()
113 const bool c2_has_advance = (advances != nullptr && advances[offset - start] != 0.0); in isGraphemeBreak()
136 if (p0 == U_GCB_EXTEND && offset_backback > start) { in isGraphemeBreak()
138 U16_PREV(buf, start, offset_backback, c0); in isGraphemeBreak()
151 if (p1 == U_GCB_ZWJ && isEmoji(c2) && offset_back > start) { in isGraphemeBreak()
155 U16_PREV(buf, start, offset_backback, c0); in isGraphemeBreak()
156 if (c0 == 0xFE0F && offset_backback > start) { in isGraphemeBreak()
[all …]
/frameworks/base/libs/hwui/
DPathParser.cpp55 static void extract(int* outEndPosition, bool* outEndWithNegOrDot, const char* s, int start, int en… in extract() argument
57 int currentIndex = start; in extract()
73 if (currentIndex != start && !isPrevExponential) { in extract()
125 const char* pathStr, int start, int end) { in getFloats() argument
127 if (pathStr[start] == 'z' || pathStr[start] == 'Z') { in getFloats()
130 int startPosition = start + 1; in getFloats()
131 int endPosition = start; in getFloats()
173 size_t start = 0; in getPathDataFromAsciiString() local
175 while (isspace(pathStr[start]) && start < strLen) { in getPathDataFromAsciiString()
176 start++; in getPathDataFromAsciiString()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java48 int start; field in BidiRenderer.ScriptRun
54 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument
55 this.start = start; in ScriptRun()
112 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
114 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags)); in renderText()
139 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
143 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText()
146 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
147 advancesIndex += run.limit - run.start; in renderText()
157 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[all …]
/frameworks/base/libs/androidfw/
DResourceUtils.cpp27 const char* start = str.data(); in ExtractResourceName() local
28 const char* end = start + str.size(); in ExtractResourceName()
29 const char* current = start; in ExtractResourceName()
33 out_type->assign(start, current - start); in ExtractResourceName()
34 start = current + 1; in ExtractResourceName()
37 out_package->assign(start, current - start); in ExtractResourceName()
38 start = current + 1; in ExtractResourceName()
42 out_entry->assign(start, end - start); in ExtractResourceName()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java160 new UidRange(user.start + PKG_UIDS[0], user.start + PKG_UIDS[0]), in testUidWhiteAndBlacklist()
161 new UidRange(user.start + PKG_UIDS[1], user.start + PKG_UIDS[2]) in testUidWhiteAndBlacklist()
168 new UidRange(user.start, user.start + PKG_UIDS[0] - 1), in testUidWhiteAndBlacklist()
169 new UidRange(user.start + PKG_UIDS[0] + 1, user.start + PKG_UIDS[1] - 1), in testUidWhiteAndBlacklist()
171 new UidRange(user.start + PKG_UIDS[2] + 1, user.stop) in testUidWhiteAndBlacklist()
181 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage()
185 …assertUnblocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[1], user.start + PKG_UIDS[2],… in testLockdownChangingPackage()
190 new UidRange(user.start, user.start + PKG_UIDS[1] - 1), in testLockdownChangingPackage()
191 new UidRange(user.start + PKG_UIDS[1] + 1, user.stop) in testLockdownChangingPackage()
193 … assertBlocked(vpn, user.start + PKG_UIDS[0], user.start + PKG_UIDS[2], user.start + PKG_UIDS[3]); in testLockdownChangingPackage()
[all …]
/frameworks/base/core/java/android/net/
DUidRange.java32 public final int start; field in UidRange
39 start = startUid; in UidRange()
48 return start / PER_USER_RANGE; in getStartUser()
52 return start <= uid && uid <= stop; in contains()
59 return start <= other.start && other.stop <= stop; in containsRange()
65 result = 31 * result + start; in hashCode()
77 return start == other.start && stop == other.stop; in equals()
84 return start + "-" + stop; in toString()
95 dest.writeInt(start); in writeToParcel()
103 int start = in.readInt();
[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()
225 start = 0; in spellCheck()
242 spellParser.parse(start, end); in spellCheck()
257 spellParser.parse(start, end); in spellCheck()
274 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck() local
290 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck()
292 isEditing = selectionEnd < start || selectionStart > end; in spellCheck()
[all …]
DMultiAutoCompleteTextView.java97 int start = mTokenizer.findTokenStart(text, end); in performFiltering() local
99 performFiltering(text, start, end, keyCode); in performFiltering()
126 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter() local
128 if (end - start >= getThreshold()) { in enoughToFilter()
150 int start = mTokenizer.findTokenStart(e, i); in performValidation() local
151 int end = mTokenizer.findTokenEnd(e, start); in performValidation()
153 CharSequence sub = e.subSequence(start, end); in performValidation()
155 e.replace(start, i, ""); in performValidation()
157 e.replace(start, i, in performValidation()
161 i = start; in performValidation()
[all …]
/frameworks/base/tools/aapt2/util/
DUtil.cpp40 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform() local
43 current = std::find(start, end, sep); in SplitAndTransform()
44 parts.emplace_back(str.substr(start, current).to_string()); in SplitAndTransform()
49 start = current + 1; in SplitAndTransform()
81 const char* start = str.data(); in TrimWhitespace() local
84 while (start != end && isspace(*start)) { in TrimWhitespace()
85 start++; in TrimWhitespace()
88 while (end != start && isspace(*(end - 1))) { in TrimWhitespace()
92 return StringPiece(start, end - start); in TrimWhitespace()
189 static size_t ConsumeDigits(const char* start, const char* end) { in ConsumeDigits() argument
[all …]
/frameworks/ex/common/java/com/android/common/widget/
DCompositeCursorAdapter.java244 int start = 0; in getPartitionForPosition() local
246 int end = start + mPartitions.get(i).count; in getPartitionForPosition()
247 if (position >= start && position < end) { in getPartitionForPosition()
250 start = end; in getPartitionForPosition()
261 int start = 0; in getOffsetInPartition() local
263 int end = start + partition.count; in getOffsetInPartition()
264 if (position >= start && position < end) { in getOffsetInPartition()
265 int offset = position - start; in getOffsetInPartition()
271 start = end; in getOffsetInPartition()
313 int start = 0; in getItemViewType() local
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java1825 public float measureText(String text, int start, int end) { in measureText() argument
1829 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1833 if (text.length() == 0 || start == end) { in measureText()
1838 start, end, start, end, mBidiFlags, null, 0)); in measureText()
1842 float w = nGetTextAdvances(mNativePaint, mNativeTypeface, text, start, end, start, in measureText()
1869 public float measureText(CharSequence text, int start, int end) { in measureText() argument
1873 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1877 if (text.length() == 0 || start == end) { in measureText()
1881 return measureText((String)text, start, end); in measureText()
1885 return measureText(text.toString(), start, end); in measureText()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java88 int start = 0; in flush() local
92 while (start < length in flush()
93 && (nextBreak = builder.indexOf("\n", start)) != -1) { in flush()
94 log(builder.substring(start, nextBreak)); in flush()
95 start = nextBreak + 1; in flush()
100 if (start < length) { in flush()
101 log(builder.substring(start)); in flush()
106 builder.delete(0, start); in flush()
120 public synchronized void write(byte bytes[], int start, int count) { in write() argument
129 int end = start + count; in write()
[all …]
/frameworks/data-binding/extensions/library/src/main/java/android/databinding/
DListChangeRegistry.java44 callback.onItemRangeChanged(sender, listChanges.start, listChanges.count);
47 callback.onItemRangeInserted(sender, listChanges.start, listChanges.count);
50 callback.onItemRangeMoved(sender, listChanges.start, listChanges.to,
54 callback.onItemRangeRemoved(sender, listChanges.start, listChanges.count);
79 public void notifyChanged(ObservableList list, int start, int count) { in notifyChanged() argument
80 ListChanges listChanges = acquire(start, 0, count); in notifyChanged()
91 public void notifyInserted(ObservableList list, int start, int count) { in notifyInserted() argument
92 ListChanges listChanges = acquire(start, 0, count); in notifyInserted()
116 public void notifyRemoved(ObservableList list, int start, int count) { in notifyRemoved() argument
117 ListChanges listChanges = acquire(start, 0, count); in notifyRemoved()
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java116 public final boolean acceptMatch(CharSequence s, int start, int end) {
117 if (start == 0) {
121 if (s.charAt(start - 1) == '@') {
134 public final boolean acceptMatch(CharSequence s, int start, int end) {
137 for (int i = start; i < end; i++) {
187 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument
263 applyLink(link.url, link.start, link.end, text); in addLinks()
456 int start = m.start(); in addLinks() local
461 allowed = matchFilter.acceptMatch(spannable, start, end); in addLinks()
467 applyLink(url, start, end, spannable); in addLinks()
[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);
66 return (char) bytes[index + start];
70 return end - start;
74 newStart -= start;
75 newEnd -= start;
81 return new String(bytes, start, length());
86 static void validate(int start, int end, int length) {
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/
DEmojiProcessor.java147 CharSequence process(@NonNull final CharSequence charSequence, @IntRange(from = 0) int start, in process()
165 final EmojiSpan[] spans = spannable.getSpans(start, end, EmojiSpan.class); in process()
181 start = Math.min(spanStart, start); in process()
187 if (start == end || start >= charSequence.length()) { in process()
200 int currentOffset = start; in process()
209 start = currentOffset; in process()
221 if (replaceAll || !hasGlyph(charSequence, start, currentOffset, in process()
226 addEmoji(spannable, sm.getFlushMetadata(), start, currentOffset); in process()
229 start = currentOffset; in process()
239 if (replaceAll || !hasGlyph(charSequence, start, currentOffset, in process()
[all …]
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DListChangeRegistryTest.java54 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyChangedAll()
59 public void onItemRangeInserted(ObservableList sender, int start, int count) { in testNotifyChangedAll()
69 public void onItemRangeRemoved(ObservableList sender, int start, int count) { in testNotifyChangedAll()
91 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyChanged()
92 assertEquals(expectedStart, start); in testNotifyChanged()
98 public void onItemRangeInserted(ObservableList sender, int start, int count) { in testNotifyChanged()
108 public void onItemRangeRemoved(ObservableList sender, int start, int count) { in testNotifyChanged()
130 public void onItemRangeChanged(ObservableList sender, int start, int count) { in testNotifyInserted()
135 public void onItemRangeInserted(ObservableList sender, int start, int count) { in testNotifyInserted()
136 assertEquals(expectedStart, start); in testNotifyInserted()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Dserialization.h1088 const void*& start,
1090 while (AdvancePointer(start, size) > end) {
1091 auto remaining_size = PointerDistance(end, start);
1093 memcpy(dest, start, remaining_size);
1097 reader->ConsumeReadBufferSectionData(AdvancePointer(start, remaining_size));
1098 std::tie(start, end) = reader->GetNextReadBufferSection();
1099 if (start == end)
1102 memcpy(dest, start, size);
1103 start = AdvancePointer(start, size);
1108 const void*& start, const void*& end,
[all …]
/frameworks/support/emoji/core/src/android/support/text/emoji/widget/
DSpannableBuilder.java85 SpannableBuilder(@NonNull Class<?> watcherClass, @NonNull CharSequence text, int start, in SpannableBuilder() argument
87 super(text, start, end); in SpannableBuilder()
123 public CharSequence subSequence(int start, int end) { in subSequence() argument
124 return new SpannableBuilder(mWatcherClass, this, start, end); in subSequence()
133 public void setSpan(Object what, int start, int end, int flags) { in setSpan() argument
139 super.setSpan(what, start, end, flags); in setSpan()
230 public int nextSpanTransition(int start, int limit, Class type) { in nextSpanTransition() argument
234 return super.nextSpanTransition(start, limit, type); in nextSpanTransition()
300 public SpannableStringBuilder replace(int start, int end, CharSequence tb) { in replace() argument
302 super.replace(start, end, tb); in replace()
[all …]

12345678910>>...73