/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() 59 TextUtils.getChars(text, start, end, mText, 0); in SpannableStringBuilder() 70 Object[] spans = sp.getSpans(start, end, Object.class); in SpannableStringBuilder() 77 int st = sp.getSpanStart(spans[i]) - start; in SpannableStringBuilder() 78 int en = sp.getSpanEnd(spans[i]) - start; in SpannableStringBuilder() 83 if (st > end - start) in SpannableStringBuilder() 84 st = end - start; in SpannableStringBuilder() 88 if (en > end - start) in SpannableStringBuilder() 89 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 | Styled.java | 51 Spanned text, int start, int end, in drawUniformRun() argument 61 CharacterStyle[] spans = text.getSpans(start, end, CharacterStyle.class); in drawUniformRun() 90 tmp = TextUtils.getReverse(text, start, end); in drawUniformRun() 93 tmpend = end - start; in drawUniformRun() 96 tmpstart = start; in drawUniformRun() 151 ret = replacement.getSize(workPaint, text, start, end, fmi); in drawUniformRun() 155 replacement.draw(canvas, text, start, end, in drawUniformRun() 158 replacement.draw(canvas, text, start, end, in drawUniformRun() 188 Spanned text, int start, int end, in getTextWidths() argument 191 text.getSpans(start, end, MetricAffectingSpan.class); in getTextWidths() [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 return source.subSequence(start, start + keep); in filter()
|
D | Layout.java | 75 int start, int end, in getDesiredWidth() argument 81 for (int i = start; i <= end; i = next) { in getDesiredWidth() 210 int start = previousLineEnd; in draw() local 219 if (start >= spanend) { in draw() 221 spanend = sp.nextSpanTransition(start, textLength, in draw() 223 spans = sp.getSpans(start, spanend, in draw() 232 buf, start, end, in draw() 263 int start = previousLineEnd; in draw() local 266 int end = getLineVisibleEnd(i, start, previousLineEnd); in draw() 275 if (start == 0 || buf.charAt(start - 1) == '\n') { in draw() [all …]
|
D | StaticLayout.java | 153 for (int start = bufstart; start <= bufend; start = end) { in generate() 157 end = TextUtils.indexOf(source, '\n', start, bufend); in generate() 173 sp = spanned.getSpans(start, end, LeadingMarginSpan.class); in generate() 183 chooseht = spanned.getSpans(start, end, LineHeightSpan.class); in generate() 195 if (o < start) { in generate() 209 if (end - start > chdirs.length) { in generate() 210 chdirs = new byte[ArrayUtils.idealByteArraySize(end - start)]; in generate() 213 if (end - start > chs.length) { in generate() 214 chs = new char[ArrayUtils.idealCharArraySize(end - start)]; in generate() 217 if ((end - start) * 2 > widths.length) { in generate() [all …]
|
D | TextUtils.java | 58 public static void getChars(CharSequence s, int start, int end, in getChars() argument 63 ((String) s).getChars(start, end, dest, destoff); in getChars() 65 ((StringBuffer) s).getChars(start, end, dest, destoff); in getChars() 67 ((StringBuilder) s).getChars(start, end, dest, destoff); in getChars() 69 ((GetChars) s).getChars(start, end, dest, destoff); in getChars() 71 for (int i = start; i < end; i++) in getChars() 80 public static int indexOf(CharSequence s, char ch, int start) { in indexOf() argument 84 return ((String) s).indexOf(ch, start); in indexOf() 86 return indexOf(s, ch, start, s.length()); in indexOf() 89 public static int indexOf(CharSequence s, char ch, int start, int end) { in indexOf() argument [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()
|
D | Selection.java | 65 public static void setSelection(Spannable text, int start, int stop) { in setSelection() argument 73 if (ostart != start || oend != stop) { in setSelection() 74 text.setSpan(SELECTION_START, start, start, in setSelection() 120 int start = getSelectionStart(text); in moveUp() local 123 if (start != end) { in moveUp() 124 int min = Math.min(start, end); in moveUp() 125 int max = Math.max(start, end); in moveUp() 161 int start = getSelectionStart(text); in moveDown() local 164 if (start != end) { in moveDown() 165 int min = Math.min(start, end); in moveDown() [all …]
|
D | DynamicLayout.java | 123 int[] start; in DynamicLayout() local 126 start = new int[COLUMNS_ELLIPSIZE]; in DynamicLayout() 127 start[ELLIPSIS_START] = ELLIPSIS_UNDEFINED; in DynamicLayout() 129 start = new int[COLUMNS_NORMAL]; in DynamicLayout() 138 start[DIR] = DIR_LEFT_TO_RIGHT << DIR_SHIFT; in DynamicLayout() 139 start[TOP] = 0; in DynamicLayout() 140 start[DESCENT] = desc; in DynamicLayout() 141 mInts.insertAt(0, start); in DynamicLayout() 143 start[TOP] = desc - asc; in DynamicLayout() 144 mInts.insertAt(1, start); in DynamicLayout() [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/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/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/android/widget/ |
D | MultiAutoCompleteTextView.java | 104 int start = mTokenizer.findTokenStart(text, end); in performFiltering() local 106 performFiltering(text, start, end, keyCode); in performFiltering() 133 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter() local 135 if (end - start >= getThreshold()) { in enoughToFilter() 157 int start = mTokenizer.findTokenStart(e, i); in performValidation() local 158 int end = mTokenizer.findTokenEnd(e, start); in performValidation() 160 CharSequence sub = e.subSequence(start, end); in performValidation() 162 e.replace(start, i, ""); in performValidation() 164 e.replace(start, i, in performValidation() 168 i = start; in performValidation() [all …]
|
D | OverScroller.java | 551 static int computeDuration(int start, int end, float initialVelocity, float deceleration) { in computeDuration() argument 552 final int distance = start - end; in computeDuration() 567 void startScroll(int start, int distance, int duration) { in startScroll() argument 570 mStart = start; in startScroll() 571 mFinal = start + distance; in startScroll() 581 void fling(int start, int velocity, int min, int max) { in fling() argument 584 mStart = start; in fling() 607 mFinal = start - Math.round((velocity * velocity) / (2.0f * mDeceleration)); in fling() 644 boolean springback(int start, int min, int max) { in springback() argument 647 mStart = start; in springback() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 1019 public float measureText(String text, int start, int end) { in measureText() argument 1020 if (!mHasCompatScaling) return native_measureText(text, start, end); in measureText() 1023 float w = native_measureText(text, start, end); in measureText() 1028 private native float native_measureText(String text, int start, int end); in native_measureText() argument 1055 public float measureText(CharSequence text, int start, int end) { in measureText() argument 1057 return measureText((String)text, start, end); in measureText() 1061 return measureText(text.toString(), start, end); in measureText() 1064 return ((GraphicsOperations)text).measureText(start, end, this); in measureText() 1067 char[] buf = TemporaryBuffer.obtain(end - start); in measureText() 1068 TextUtils.getChars(text, start, end, buf, 0); in measureText() [all …]
|
/frameworks/base/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); 187 size_t start = freedOffset; in ~Allocation() local 188 size_t end = start + freedSize; in ~Allocation() 189 start &= ~(pagesize-1); in ~Allocation() 195 if (start < free_start) in ~Allocation() 196 start = free_start; in ~Allocation() 199 start = (start + pagesize-1) & ~(pagesize-1); in ~Allocation() [all …]
|
/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 …]
|
D | DigitsKeyListener.java | 125 public CharSequence filter(CharSequence source, int start, int end, in filter() argument 127 CharSequence out = super.filter(source, start, end, dest, dstart, dend); in filter() 135 start = 0; in filter() 175 for (int i = end - 1; i >= start; i--) { in filter() 180 if (i != start || dstart != 0) { in filter() 196 if (end == start + 1) { in filter() 201 stripped = new SpannableStringBuilder(source, start, end); in filter() 204 stripped.delete(i - start, i + 1 - start); in filter()
|
/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 …]
|
/frameworks/base/core/jni/ |
D | android_text_AndroidCharacter.cpp | 114 int start, int count, jbyteArray destArray) in getEastAsianWidths() argument 123 if (start < 0 || start > start + count in getEastAsianWidths() 124 || env->GetArrayLength(srcArray) < (start + count) in getEastAsianWidths() 131 const int srci = start + i; in getEastAsianWidths() 158 static jboolean mirror(JNIEnv* env, jobject obj, jcharArray charArray, int start, int count) in mirror() argument 168 if (start < 0 || start > start + count in mirror() 169 || env->GetArrayLength(charArray) < start + count) { in mirror() 174 for (int i = start; i < start + count; i++) { in mirror()
|
/frameworks/base/core/java/android/database/ |
D | MatrixCursor.java | 89 int start = endIndex - columnCount; in newRow() local 90 return new RowBuilder(start, endIndex); in newRow() 109 int start = rowCount++ * columnCount; in addRow() local 110 ensureCapacity(start + columnCount); in addRow() 111 System.arraycopy(columnValues, 0, data, start, columnCount); in addRow() 124 int start = rowCount * columnCount; in addRow() local 125 int end = start + columnCount; in addRow() 129 addRow((ArrayList<?>) columnValues, start); in addRow() local 133 int current = start; in addRow() 155 private void addRow(ArrayList<?> columnValues, int start) { in addRow() argument [all …]
|
/frameworks/base/libs/utils/ |
D | CallStack.cpp | 118 uint64_t start; member 123 const char *map_to_name(uint64_t pc, const char* def, uint64_t* start) { in map_to_name() argument 126 if ((pc >= mi->start) && (pc < mi->end)) { in map_to_name() 127 if (start) in map_to_name() 128 *start = mi->start; in map_to_name() 133 if (start) in map_to_name() 134 *start = 0; in map_to_name() 147 mi->start = strtoull(line, 0, 16); in parse_maps_line() 192 void const** start) in mapAddressToName() argument 196 if (start) { in mapAddressToName() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TraceTest.java | 40 long start = System.currentTimeMillis(); in testNativeTracingFromJava() local 49 long elapsed = end - start; in testNativeTracingFromJava() 60 long start = System.currentTimeMillis(); in disableTestNativeTracingFromC() local 63 long elapsed = end - start; in disableTestNativeTracingFromC() 73 long start = System.currentTimeMillis(); in testMethodTracing() local 78 long elapsed = end - start; in testMethodTracing() 89 t1.start(); in topMethod() 91 t2.start(); in topMethod() 93 t3.start(); in topMethod()
|