Home
last modified time | relevance | path

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

12345678910>>...65

/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()
61 mSegment[0] = start; in getRange()
103 int start = offset; in following() local
104 if (start < 0) { in following()
105 start = 0; in following()
107 while (!mImpl.isBoundary(start)) { in following()
108 start = mImpl.following(start); in following()
109 if (start == BreakIterator.DONE) { in following()
113 final int end = mImpl.following(start); in following()
[all …]
/frameworks/base/core/java/android/text/
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()
83 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
84 int en = sp.getSpanEnd(spans[i]) - start; 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()
[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 …]
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()
47 if (st < start) in SpannableStringInternal()
48 st = start; in SpannableStringInternal()
52 setSpan(spans[i], st - start, en - start, fl); 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
[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 …]
DTextDirectionHeuristics.java148 public boolean isRtl(char[] array, int start, int count) { in isRtl() argument
149 return isRtl(CharBuffer.wrap(array), start, count); in isRtl()
153 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() argument
154 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { in isRtl()
160 return doCheck(cs, start, count); in isRtl()
163 private boolean doCheck(CharSequence cs, int start, int count) { in doCheck() argument
164 switch(mAlgorithm.checkRtl(cs, start, count)) { in doCheck()
197 int checkRtl(CharSequence cs, int start, int count); in checkRtl() argument
207 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument
210 for (int cp, i = start, end = start + count; in checkRtl()
[all …]
/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/minikin/libs/minikin/
DMeasurement.cpp31 static float getRunAdvance(Layout& layout, const uint16_t* buf, size_t layoutStart, size_t start, in getRunAdvance() argument
34 size_t lastCluster = start; in getRunAdvance()
36 for (size_t i = start; i < offset; i++) { in getRunAdvance()
44 if (offset < start + count && layout.getCharAdvance(offset - layoutStart) == 0.0f) { in getRunAdvance()
49 for (nextCluster = offset + 1; nextCluster < start + count; nextCluster++) { in getRunAdvance()
56 if (GraphemeBreak::isGraphemeBreak(buf, start, count, i)) { in getRunAdvance()
70 float getRunAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, in getRunAdvance() argument
72 return getRunAdvance(layout, buf, start, start, count, offset); in getRunAdvance()
83 size_t getOffsetForAdvance(Layout& layout, const uint16_t* buf, size_t start, size_t count, in getOffsetForAdvance() argument
86 size_t lastClusterStart = start, searchStart = start; in getOffsetForAdvance()
[all …]
DGraphemeBreak.cpp25 bool GraphemeBreak::isGraphemeBreak(const uint16_t* buf, size_t start, size_t count, in isGraphemeBreak() argument
33 if (offset <= start || offset >= start + count) { in isGraphemeBreak()
43 U16_PREV(buf, start, offset_back, c1); in isGraphemeBreak()
44 U16_NEXT(buf, offset, start + count, c2); in isGraphemeBreak()
100 size_t GraphemeBreak::getTextRunCursor(const uint16_t* buf, size_t start, size_t count, in getTextRunCursor() argument
104 if (offset < start + count) { in getTextRunCursor()
109 while (!isGraphemeBreak(buf, start, count, offset)) { in getTextRunCursor()
114 if (offset > start) { in getTextRunCursor()
119 while (!isGraphemeBreak(buf, start, count, offset)) { in getTextRunCursor()
124 if (!isGraphemeBreak(buf, start, count, offset)) { in getTextRunCursor()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java46 int start; field in BidiRenderer.ScriptRun
52 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument
53 this.start = start; in ScriptRun()
110 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
112 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags)); in renderText()
137 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
141 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText()
144 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
145 advancesIndex += run.limit - run.start; in renderText()
155 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[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) {
106 if (start == 0) {
110 if (s.charAt(start - 1) == '@') {
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()
375 int start = m.start(); in addLinks() local
380 allowed = matchFilter.acceptMatch(s, start, end); in addLinks()
387 applyLink(url, start, end, s); in addLinks()
[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
289 isEditing = !apostrophe && (selectionEnd <= start || selectionStart > end); in spellCheck()
291 isEditing = !apostrophe && (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 …]
DOverScroller.java663 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument
664 final int oldDistance = oldFinal - start; in adjustDuration()
665 final int newDistance = newFinal - start; in adjustDuration()
678 void startScroll(int start, int distance, int duration) { in startScroll() argument
681 mCurrentPosition = mStart = start; in startScroll()
682 mFinal = start + distance; in startScroll()
712 boolean springback(int start, int min, int max) { in springback() argument
715 mCurrentPosition = mStart = mFinal = start; in springback()
721 if (start < min) { in springback()
722 startSpringback(start, min, 0); in springback()
[all …]
/frameworks/base/tools/aapt2/
DUtil.cpp38 StringPiece::const_iterator start = std::begin(str); in splitAndTransform() local
41 current = std::find(start, end, sep); in splitAndTransform()
42 parts.emplace_back(str.substr(start, current).toString()); in splitAndTransform()
47 start = current + 1; in splitAndTransform()
65 const char16_t* start = str.data(); in trimWhitespace() local
68 while (start != end && util::isspace16(*start)) { in trimWhitespace()
69 start++; in trimWhitespace()
72 while (end != start && util::isspace16(*(end - 1))) { in trimWhitespace()
76 return StringPiece16(start, end - start); in trimWhitespace()
150 static Maybe<char16_t> parseUnicodeCodepoint(const char16_t** start, const char16_t* end) { in parseUnicodeCodepoint() 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/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/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/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/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/base/core/java/android/net/
DRssiCurve.java58 public final int start; field in RssiCurve
82 public RssiCurve(int start, int bucketWidth, byte[] rssiBuckets) { in RssiCurve() argument
83 this(start, bucketWidth, rssiBuckets, DEFAULT_ACTIVE_NETWORK_RSSI_BOOST); in RssiCurve()
94 public RssiCurve(int start, int bucketWidth, byte[] rssiBuckets, int activeNetworkRssiBoost) { in RssiCurve() argument
95 this.start = start; in RssiCurve()
105 start = in.readInt(); in RssiCurve()
120 out.writeInt(start); in writeToParcel()
153 int index = (rssi - start) / bucketWidth; in lookupScore()
179 return start == rssiCurve.start && in equals()
187 return Objects.hash(start, bucketWidth, rssiBuckets, activeNetworkRssiBoost); in hashCode()
[all …]
DUidRange.java32 public final int start; field in UidRange
39 start = startUid; in UidRange()
48 return start / PER_USER_RANGE; in getStartUser()
54 result = 31 * result + start; in hashCode()
66 return start == other.start && stop == other.stop; in equals()
73 return start + "-" + stop; in toString()
84 dest.writeInt(start); in writeToParcel()
92 int start = in.readInt();
95 return new UidRange(start, stop);
/frameworks/support/v4/java/android/support/v4/text/
DTextDirectionHeuristicsCompat.java124 public boolean isRtl(char[] array, int start, int count) { in isRtl() argument
125 return isRtl(CharBuffer.wrap(array), start, count); in isRtl()
129 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() argument
130 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { in isRtl()
136 return doCheck(cs, start, count); in isRtl()
139 private boolean doCheck(CharSequence cs, int start, int count) { in doCheck() argument
140 switch(mAlgorithm.checkRtl(cs, start, count)) { in doCheck()
173 int checkRtl(CharSequence cs, int start, int count); in checkRtl() argument
182 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument
184 for (int i = start, e = start + count; i < e && result == STATE_UNKNOWN; ++i) { in checkRtl()
[all …]
/frameworks/native/libs/binder/
DMemoryDealer.cpp141 chunk_t(size_t start, size_t size) in chunk_t()
142 : start(start), size(size), free(1), prev(0), next(0) { in chunk_t()
144 size_t start; member
152 chunk_t* dealloc(size_t start);
186 size_t start = freedOffset; in ~Allocation() local
187 size_t end = start + freedSize; in ~Allocation()
188 start &= ~(pagesize-1); in ~Allocation()
194 if (start < free_start) in ~Allocation()
195 start = free_start; in ~Allocation()
198 start = (start + pagesize-1) & ~(pagesize-1); in ~Allocation()
[all …]

12345678910>>...65