/frameworks/base/core/java/android/text/ |
D | SpannableStringBuilder.java | 51 public SpannableStringBuilder(CharSequence text, int start, int end) { in SpannableStringBuilder() argument 52 int srclen = end - start; in SpannableStringBuilder() 61 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder() 72 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder() 79 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder() 80 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder() 85 if (st > end - start) in SpannableStringBuilder() 86 st = end - start; in SpannableStringBuilder() 90 if (en > end - start) in SpannableStringBuilder() 91 en = end - start; in SpannableStringBuilder() [all …]
|
D | SpannableStringInternal.java | 26 int start, int end) { in SpannableStringInternal() argument 27 if (start == 0 && end == source.length()) in SpannableStringInternal() 30 mText = source.toString().substring(start, end); in SpannableStringInternal() 38 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringInternal() 45 if (st < start) in SpannableStringInternal() 46 st = start; in SpannableStringInternal() 50 setSpan(spans[i], st - start, en - start, fl); in SpannableStringInternal() 69 public final void getChars(int start, int end, char[] dest, int off) { in getChars() argument 70 mText.getChars(start, end, dest, off); in getChars() 73 /* package */ void setSpan(Object what, int start, int end, int flags) { in setSpan() argument [all …]
|
D | AlteredCharSequence.java | 66 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 …]
|
D | InputFilter.java | 42 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 82 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 88 } else if (keep >= end - start) { in filter() 91 keep += start; in filter() 94 if (keep == start) { in filter() [all …]
|
D | TextUtils.java | 63 public static void getChars(CharSequence s, int start, int end, in getChars() argument 68 ((String) s).getChars(start, end, dest, destoff); in getChars() 70 ((StringBuffer) s).getChars(start, end, dest, destoff); in getChars() 72 ((StringBuilder) s).getChars(start, end, dest, destoff); in getChars() 74 ((GetChars) s).getChars(start, end, dest, destoff); in getChars() 76 for (int i = start; i < end; i++) in getChars() 85 public static int indexOf(CharSequence s, char ch, int start) { in indexOf() argument 89 return ((String) s).indexOf(ch, start); in indexOf() 91 return indexOf(s, ch, start, s.length()); in indexOf() 94 public static int indexOf(CharSequence s, char ch, int start, int end) { in indexOf() argument [all …]
|
D | TextDirectionHeuristics.java | 90 public boolean isRtl(char[] chars, int start, int count) { in isRtl() argument 91 if (chars == null || start < 0 || count < 0 || chars.length - count < start) { in isRtl() 97 return doCheck(chars, start, count); in isRtl() 100 private boolean doCheck(char[] chars, int start, int count) { in doCheck() argument 101 switch(mAlgorithm.checkRtl(chars, start, count)) { in doCheck() 164 TriState checkRtl(char[] text, int start, int count); in checkRtl() argument 175 public TriState checkRtl(char[] text, int start, int count) { in checkRtl() argument 177 for (int i = start, e = start + count; i < e && result == TriState.UNKNOWN; ++i) { in checkRtl() 199 public TriState checkRtl(char[] text, int start, int count) { in checkRtl() argument 201 for (int i = start, e = start + count; i < e; ++i) { in checkRtl()
|
D | Layout.java | 75 int start, int end, in getDesiredWidth() argument 80 for (int i = start; i <= end; i = next) { in getDesiredWidth() 228 int start = previousLineEnd; in drawText() local 230 int end = getLineVisibleEnd(i, start, previousLineEnd); in drawText() 244 boolean isFirstParaLine = (start == 0 || buf.charAt(start - 1) == '\n'); in drawText() 256 if (start >= spanEnd && (i == firstLine || isFirstParaLine)) { in drawText() 257 spanEnd = sp.nextSpanTransition(start, textLength, in drawText() 259 spans = getParagraphSpans(sp, start, spanEnd, ParagraphStyle.class); in drawText() 288 start, end, isFirstParaLine, this); in drawText() 293 start, end, isFirstParaLine, this); in drawText() [all …]
|
D | Selection.java | 67 public static void setSelection(Spannable text, int start, int stop) { in setSelection() argument 75 if (ostart != start || oend != stop) { in setSelection() 76 text.setSpan(SELECTION_START, start, start, in setSelection() 122 int start = getSelectionStart(text); in moveUp() local 125 if (start != end) { in moveUp() 126 int min = Math.min(start, end); in moveUp() 127 int max = Math.max(start, end); in moveUp() 163 int start = getSelectionStart(text); in moveDown() local 166 if (start != end) { in moveDown() 167 int min = Math.min(start, end); in moveDown() [all …]
|
D | SpannableString.java | 33 private SpannableString(CharSequence source, int start, int end) { in SpannableString() argument 34 super(source, start, end); in SpannableString() 45 public void setSpan(Object what, int start, int end, int flags) { in setSpan() argument 46 super.setSpan(what, start, end, flags); in setSpan() 53 public final CharSequence subSequence(int start, int end) { in subSequence() argument 54 return new SpannableString(this, start, end); in subSequence()
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 59 protected int[] getRange(int start, int end) { in getRange() argument 60 if (start < 0 || end < 0 || start == end) { in getRange() 63 mSegment[0] = start; in getRange() 105 int start = offset; in following() local 106 if (start < 0) { in following() 107 start = 0; in following() 109 while (!mImpl.isBoundary(start)) { in following() 110 start = mImpl.following(start); in following() 111 if (start == BreakIterator.DONE) { in following() 115 final int end = mImpl.following(start); in following() [all …]
|
/frameworks/base/icu4j/java/android/icu/text/ |
D | ArabicShaping.java | 154 public void shape(char[] source, int start, int length) throws ArabicShapingException { in shape() argument 158 shape(source, start, length, source, start, length); in shape() 859 int start, in shapeToArabicDigitsWithContext() argument 865 for(int i = start + length; --i >= start;) { in shapeToArabicDigitsWithContext() 893 int start, in invertBuffer() argument 896 for(int i = start, j = start + length - 1; i < j; i++, --j) { in invertBuffer() 970 int start, in countSpacesLeft() argument 972 for (int i = start, e = start + count; i < e; ++i) { in countSpacesLeft() 974 return i - start; in countSpacesLeft() 981 int start, in countSpacesRight() argument [all …]
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 96 public final boolean acceptMatch(CharSequence s, int start, int end) { 97 if (start == 0) { 101 if (s.charAt(start - 1) == '@') { 114 public final boolean acceptMatch(CharSequence s, int start, int end) { 117 for (int i = start; i < end; i++) { 167 boolean acceptMatch(CharSequence s, int start, int end); in acceptMatch() argument 240 applyLink(link.url, link.start, link.end, text); in addLinks() 368 int start = m.start(); in addLinks() local 373 allowed = matchFilter.acceptMatch(s, start, end); in addLinks() 380 applyLink(url, start, end, s); in addLinks() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | SpellChecker.java | 199 private void addSpellCheckSpan(Editable editable, int start, int end) { in addSpellCheckSpan() argument 202 editable.setSpan(spellCheckSpan, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in addSpellCheckSpan() 221 public void spellCheck(int start, int end) { in spellCheck() argument 223 Log.d(TAG, "Start spell-checking: " + start + ", " + end); in spellCheck() 230 start = 0; in spellCheck() 247 spellParser.parse(start, end); in spellCheck() 262 spellParser.parse(start, end); in spellCheck() 279 final int start = editable.getSpanStart(spellCheckSpan); in spellCheck() local 288 isEditing = selectionEnd <= start || selectionStart > end; in spellCheck() 290 isEditing = selectionEnd < start || selectionStart > end; in spellCheck() [all …]
|
D | MultiAutoCompleteTextView.java | 94 int start = mTokenizer.findTokenStart(text, end); in performFiltering() local 96 performFiltering(text, start, end, keyCode); in performFiltering() 123 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter() local 125 if (end - start >= getThreshold()) { in enoughToFilter() 147 int start = mTokenizer.findTokenStart(e, i); in performValidation() local 148 int end = mTokenizer.findTokenEnd(e, start); in performValidation() 150 CharSequence sub = e.subSequence(start, end); in performValidation() 152 e.replace(start, i, ""); in performValidation() 154 e.replace(start, i, in performValidation() 158 i = start; in performValidation() [all …]
|
D | OverScroller.java | 665 private void adjustDuration(int start, int oldFinal, int newFinal) { in adjustDuration() argument 666 final int oldDistance = oldFinal - start; in adjustDuration() 667 final int newDistance = newFinal - start; in adjustDuration() 680 void startScroll(int start, int distance, int duration) { in startScroll() argument 683 mStart = start; in startScroll() 684 mFinal = start + distance; in startScroll() 714 boolean springback(int start, int min, int max) { in springback() argument 717 mStart = mFinal = start; in springback() 723 if (start < min) { in springback() 724 startSpringback(start, min, 0); in springback() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 1320 public float measureText(String text, int start, int end) { in measureText() argument 1324 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText() 1328 if (text.length() == 0 || start == end) { in measureText() 1332 return native_measureText(text, start, end); in measureText() 1337 float w = native_measureText(text, start, end); in measureText() 1342 private native float native_measureText(String text, int start, int end); in native_measureText() argument 1377 public float measureText(CharSequence text, int start, int end) { in measureText() argument 1381 if ((start | end | (end - start) | (text.length() - end)) < 0) { in measureText() 1385 if (text.length() == 0 || start == end) { in measureText() 1389 return measureText((String)text, start, end); in measureText() [all …]
|
/frameworks/compile/mclinker/lib/Support/ |
D | Space.cpp | 71 size_t start, size = 0, total_offset; in createSpace() local 76 start = pStart; in createSpace() 82 else if (pHandler.size() > start) in createSpace() 83 size = pHandler.size() - start; in createSpace() 88 << start << size; in createSpace() 96 if (!pHandler.read(memory, start, size)) in createSpace() 97 error(diag::err_cannot_read_file) << pHandler.path() << start << size; in createSpace() 104 start = page_offset(pStart); in createSpace() 107 size = page_boundary((pStart - start) + pSize); in createSpace() 110 else if (pHandler.size() > start) in createSpace() [all …]
|
/frameworks/ex/common/java/com/android/common/widget/ |
D | CompositeCursorAdapter.java | 238 int start = 0; in getPartitionForPosition() local 240 int end = start + mPartitions[i].count; in getPartitionForPosition() 241 if (position >= start && position < end) { in getPartitionForPosition() 244 start = end; in getPartitionForPosition() 255 int start = 0; in getOffsetInPartition() local 257 int end = start + mPartitions[i].count; in getOffsetInPartition() 258 if (position >= start && position < end) { in getOffsetInPartition() 259 int offset = position - start; in getOffsetInPartition() 265 start = end; in getOffsetInPartition() 307 int start = 0; in getItemViewType() local [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LoggingPrintStream.java | 88 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/core/java/com/android/internal/util/ |
D | CharSequences.java | 40 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/native/libs/binder/ |
D | MemoryDealer.cpp | 141 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/ |
D | MediaPlayerProxyTestCase.java | 163 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/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 105 int start, int count, jbyteArray destArray) in getEastAsianWidths() argument 116 if (start < 0 || start > start + count in getEastAsianWidths() 117 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths() 124 const int srci = start + i; in getEastAsianWidths() 147 static jboolean mirror(JNIEnv* env, jobject obj, jcharArray charArray, int start, int count) in mirror() argument 154 if (start < 0 || start > start + count in mirror() 155 || env->GetArrayLength(charArray) < start + count) { in mirror() 161 for (int i = start; i < start + count; i++) { in mirror()
|
/frameworks/base/core/java/android/text/method/ |
D | ReplacementTransformationMethod.java | 136 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/base/core/java/android/os/ |
D | Broadcaster.java | 48 Registration start = mReg; in request() local 49 r = start; in request() 55 } while (r != start); in request() 102 Registration start = mReg; in cancelRequest() local 103 Registration r = start; in cancelRequest() 114 } while (r != start); in cancelRequest() 149 Registration start = mReg; in dumpRegistrations() local 151 if (start != null) { in dumpRegistrations() 152 Registration r = start; in dumpRegistrations() 161 } while (r != start); in dumpRegistrations() [all …]
|