Home
last modified time | relevance | path

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

12345678910>>...61

/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.java55 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument
56 int srclen = end - start; in SpannableStringBuilder()
64 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder()
74 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder()
81 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder()
82 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder()
87 if (st > end - start) in SpannableStringBuilder()
88 st = end - start; in SpannableStringBuilder()
92 if (en > end - start) in SpannableStringBuilder()
93 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 …]
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 …]
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 …]
DTextDirectionHeuristics.java130 public boolean isRtl(char[] array, int start, int count) { in isRtl() argument
131 return isRtl(CharBuffer.wrap(array), start, count); in isRtl()
135 public boolean isRtl(CharSequence cs, int start, int count) { in isRtl() argument
136 if (cs == null || start < 0 || count < 0 || cs.length() - count < start) { in isRtl()
142 return doCheck(cs, start, count); in isRtl()
145 private boolean doCheck(CharSequence cs, int start, int count) { in doCheck() argument
146 switch(mAlgorithm.checkRtl(cs, start, count)) { in doCheck()
179 int checkRtl(CharSequence cs, int start, int count); in checkRtl() argument
188 public int checkRtl(CharSequence cs, int start, int count) { in checkRtl() argument
190 for (int i = start, e = start + count; i < e && result == STATE_UNKNOWN; ++i) { in checkRtl()
[all …]
DTextUtils.java75 public static void getChars(CharSequence s, int start, int end, in getChars() argument
80 ((String) s).getChars(start, end, dest, destoff); in getChars()
82 ((StringBuffer) s).getChars(start, end, dest, destoff); in getChars()
84 ((StringBuilder) s).getChars(start, end, dest, destoff); in getChars()
86 ((GetChars) s).getChars(start, end, dest, destoff); in getChars()
88 for (int i = start; i < end; i++) in getChars()
97 public static int indexOf(CharSequence s, char ch, int start) { in indexOf() argument
101 return ((String) s).indexOf(ch, start); in indexOf()
103 return indexOf(s, ch, start, s.length()); in indexOf()
106 public static int indexOf(CharSequence s, char ch, int start, int end) { in indexOf() argument
[all …]
DLayout.java76 int start, int end, in getDesiredWidth() argument
81 for (int i = start; i <= end; i = next) { in getDesiredWidth()
229 int start = previousLineEnd; in drawText() local
231 int end = getLineVisibleEnd(i, start, previousLineEnd); in drawText()
245 boolean isFirstParaLine = (start == 0 || buf.charAt(start - 1) == '\n'); in drawText()
257 if (start >= spanEnd && (i == firstLine || isFirstParaLine)) { in drawText()
258 spanEnd = sp.nextSpanTransition(start, textLength, in drawText()
260 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText()
295 start, end, isFirstParaLine, this); in drawText()
300 start, end, isFirstParaLine, this); in drawText()
[all …]
/frameworks/rs/api/
Drs_core_math.spec17 start:
29 start:
41 start:
53 start:
65 start:
76 start:
87 start:
98 start:
109 start:
120 start:
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java47 int start; field in BidiRenderer.ScriptRun
53 public ScriptRun(int start, int limit, boolean isRtl) { in ScriptRun() argument
54 this.start = start; in ScriptRun()
111 public RectF renderText(int start, int limit, int bidiFlags, float[] advances, in renderText() argument
113 Bidi bidi = new Bidi(mText, start, null, 0, limit - start, getIcuFlags(bidiFlags)); in renderText()
138 public RectF renderText(int start, int limit, boolean isRtl, float[] advances, in renderText() argument
142 for (ScriptRun run : getScriptRuns(mText, start, limit, isRtl, mFonts)) { in renderText()
145 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); in renderText()
146 advancesIndex += run.limit - run.start; in renderText()
156 private void renderScript(int start, int limit, Font preferredFont, int flag, in renderScript() argument
[all …]
/frameworks/base/core/java/android/text/util/
DLinkify.java102 public final boolean acceptMatch(CharSequence s, int start, int end) {
103 if (start == 0) {
107 if (s.charAt(start - 1) == '@') {
120 public final boolean acceptMatch(CharSequence s, int start, int end) {
123 for (int i = start; i < end; i++) {
173 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument
244 applyLink(link.url, link.start, link.end, text); in addLinks()
372 int start = m.start(); in addLinks() local
377 allowed = matchFilter.acceptMatch(s, start, end); in addLinks()
384 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.java99 int start = mTokenizer.findTokenStart(text, end); in performFiltering() local
101 performFiltering(text, start, end, keyCode); in performFiltering()
128 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter() local
130 if (end - start >= getThreshold()) { in enoughToFilter()
152 int start = mTokenizer.findTokenStart(e, i); in performValidation() local
153 int end = mTokenizer.findTokenEnd(e, start); in performValidation()
155 CharSequence sub = e.subSequence(start, end); in performValidation()
157 e.replace(start, i, ""); in performValidation()
159 e.replace(start, i, in performValidation()
163 i = start; in performValidation()
[all …]
DOverScroller.java666 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument
667 final int oldDistance = oldFinal - start; in adjustDuration()
668 final int newDistance = newFinal - start; in adjustDuration()
681 void startScroll(int start, int distance, int duration) { in startScroll() argument
684 mStart = start; in startScroll()
685 mFinal = start + distance; in startScroll()
715 boolean springback(int start, int min, int max) { in springback() argument
718 mStart = mFinal = start; in springback()
724 if (start < min) { in springback()
725 startSpringback(start, min, 0); in springback()
[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/base/graphics/java/android/graphics/
DPaint.java1479 public float measureText(String text, int start, int end) { in measureText() argument
1483 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1487 if (text.length() == 0 || start == end) { in measureText()
1491 return (float) Math.ceil(native_measureText(text, start, end, mBidiFlags)); in measureText()
1496 float w = native_measureText(text, start, end, mBidiFlags); in measureText()
1501 private native float native_measureText(String text, int start, int end, int bidiFlags); in native_measureText() argument
1538 public float measureText(CharSequence text, int start, int end) { in measureText() argument
1542 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText()
1546 if (text.length() == 0 || start == end) { in measureText()
1550 return measureText((String)text, start, end); in measureText()
[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/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()
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);
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 …]
/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 …]
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DMediaPlayerProxyTestCase.java163 mPlayer.start(); in testStartThenImmediatelyRelease()
169 mPlayer.start(); in testPlayABitThenRelease()
177 mPlayer.start(); in testPlayFully()
187 mPlayer.start(); in testGetDuration()
217 mPlayer.start(); in testGetCurrentPosition_DuringPlayback()
226 mPlayer.start(); in testGetCurrentPosition_FinishedPlaying()
235 mPlayer.start(); in testGetCurrentPosition_DuringPlaybackWithSeek()
245 mPlayer.start(); in testSeekHalfWayBeforePlaying()
257 mPlayer.start(); in testHalfWaySeekWithStutteringAudio()
268 mPlayer.start(); in testResetWithoutReleaseAndThenReUse()
[all …]
/frameworks/minikin/libs/minikin/
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()
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/core/jni/
Dandroid_text_AndroidCharacter.cpp106 jint start, jint count, jbyteArray destArray) in getEastAsianWidths() argument
117 if (start < 0 || start > start + count in getEastAsianWidths()
118 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths()
125 const int srci = start + i; in getEastAsianWidths()
148 static jboolean mirror(JNIEnv* env, jobject obj, jcharArray charArray, jint start, jint count) in mirror() argument
155 if (start < 0 || start > start + count in mirror()
156 || env->GetArrayLength(charArray) < start + count) { in mirror()
162 for (int i = start; i < start + count; i++) { in mirror()

12345678910>>...61