Home
last modified time | relevance | path

Searched refs:textLength (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/view/
DAccessibilityIterators.java261 final int textLength = mText.length(); in following() local
262 if (textLength <= 0) { in following()
265 if (offset >= textLength) { in following()
272 while (start < textLength && mText.charAt(start) == '\n' in following()
276 if (start >= textLength) { in following()
280 while (end < textLength && !isEndBoundary(end)) { in following()
288 final int textLength = mText.length(); in preceding() local
289 if (textLength <= 0) { in preceding()
296 if (end > textLength) { in preceding()
297 end = textLength; in preceding()
/frameworks/base/libs/hwui/tests/common/scenes/
DGlyphStressAnimation.cpp47 ssize_t textLength = 26 * 2; in doFrame() local
59 canvas->drawText(text.get(), 0, textLength, textLength, in doFrame()
/frameworks/base/core/java/android/text/
DBoringLayout.java236 private static boolean hasAnyInterestingChars(CharSequence text, int textLength) { in hasAnyInterestingChars() argument
240 for (int start = 0; start < textLength; start += MAX_BUF_LEN) { in hasAnyInterestingChars()
241 final int end = Math.min(start + MAX_BUF_LEN, textLength); in hasAnyInterestingChars()
269 final int textLength = text.length(); in isBoring() local
270 if (hasAnyInterestingChars(text, textLength)) { in isBoring()
273 if (textDir != null && textDir.isRtl(text, 0, textLength)) { in isBoring()
278 Object[] styles = sp.getSpans(0, textLength, ParagraphStyle.class); in isBoring()
292 line.set(paint, text, 0, textLength, Layout.DIR_LEFT_TO_RIGHT, in isBoring()
DLayout.java418 int textLength = buf.length(); in drawText() local
432 spanEnd = sp.nextSpanTransition(start, textLength, in drawText()
562 int textLength = buffer.length(); in drawBackground() local
563 mLineBackgroundSpans.init(buffer, 0, textLength); in drawBackground()
586 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground()
/frameworks/base/core/java/android/widget/
DAccessibilityIterators.java137 final int textLength = mText.length(); in following() local
138 if (textLength <= 0) { in following()
166 final int textLength = mText.length(); in preceding() local
167 if (textLength <= 0) { in preceding()
DEditor.java993 final int textLength = mTextView.getText().length(); in getCharClusterRange() local
994 if (offset < textLength) { in getCharClusterRange()
2569 final int textLength = text.length(); in addSpanWatchers() local
2572 text.setSpan(mKeyListener, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in addSpanWatchers()
2578 text.setSpan(mSpanController, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in addSpanWatchers()
DTextView.java5375 final int textLength = text.length();
5389 sp.setSpan(mChangeWatcher, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE
5395 sp.setSpan(mTransformation, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
5414 sendOnTextChanged(text, 0, oldlen, textLength);
5415 onTextChanged(text, 0, oldlen, textLength);
/frameworks/minikin/tests/util/
DUnicodeUtils.cpp105 const int32_t textLength = static_cast<int32_t>(text.size()); in utf8ToUtf16() local
107 while (i < textLength) { in utf8ToUtf16()
108 U8_NEXT(text.c_str(), i, textLength, c); in utf8ToUtf16()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java231 int textLength = rawValue[valueIndex + 1] & 0xff; in retrieveTextAttribute() local
252 TextAttribute attr = new TextAttribute(start, textLength, in retrieveTextAttribute()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java2210 final int textLength = displayText.length() - 1; in createChip() local
2215 chipText.setSpan(chip, 0, textLength, in createChip()