Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java271 final int textLength = mText.length(); in following() local
272 if (textLength <= 0) { in following()
275 if (offset >= textLength) { in following()
282 while (start < textLength && mText.charAt(start) == '\n' in following()
286 if (start >= textLength) { in following()
290 while (end < textLength && !isEndBoundary(end)) { in following()
298 final int textLength = mText.length(); in preceding() local
299 if (textLength <= 0) { in preceding()
306 if (end > textLength) { in preceding()
307 end = textLength; in preceding()
/aosp14/frameworks/base/core/java/android/text/
H A DBoringLayout.java418 private static boolean hasAnyInterestingChars(CharSequence text, int textLength) { in hasAnyInterestingChars() argument
422 for (int start = 0; start < textLength; start += MAX_BUF_LEN) { in hasAnyInterestingChars()
423 final int end = Math.min(start + MAX_BUF_LEN, textLength); in hasAnyInterestingChars()
473 final int textLength = text.length(); in isBoring() local
474 if (hasAnyInterestingChars(text, textLength)) { in isBoring()
477 if (textDir != null && textDir.isRtl(text, 0, textLength)) { in isBoring()
482 Object[] styles = sp.getSpans(0, textLength, ParagraphStyle.class); in isBoring()
496 line.set(paint, text, 0, textLength, Layout.DIR_LEFT_TO_RIGHT, in isBoring()
H A DLayout.java628 int textLength = buf.length(); in drawText() local
642 spanEnd = sp.nextSpanTransition(start, textLength, in drawText()
775 int textLength = buffer.length(); in drawBackground() local
776 mLineBackgroundSpans.init(buffer, 0, textLength); in drawBackground()
799 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength); in drawBackground()
/aosp14/frameworks/base/core/java/android/widget/
H A 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()
H A DEditor.java1383 final int textLength = mTextView.getText().length(); in getCharClusterRange() local
1384 if (offset < textLength) { in getCharClusterRange()
3087 final int textLength = text.length(); in addSpanWatchers() local
3090 text.setSpan(mKeyListener, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in addSpanWatchers()
3096 text.setSpan(mSpanController, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE); in addSpanWatchers()
H A DTextView.java7157 final int textLength = text.length(); in setText() local
7172 sp.setSpan(mChangeWatcher, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE in setText()
7179 sp.setSpan(mTransformation, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE in setText()
7199 sendOnTextChanged(text, 0, oldlen, textLength); in setText()
7200 onTextChanged(text, 0, oldlen, textLength); in setText()
/aosp14/frameworks/base/core/java/com/android/internal/jank/
H A DInteractionMonitorDebugOverlay.java119 float textLength = mDebugPaint.measureText(cujName); in getWidthOfLongestCujName() local
120 if (textLength > maxLength) { in getWidthOfLongestCujName()
121 maxLength = textLength; in getWidthOfLongestCujName()
/aosp14/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassifier.java689 int textLength = text.length(); in checkTextLength() local
690 return textLength >= 0 && textLength <= maxLength; in checkTextLength()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
H A DBaseInputConnectionTest.java751 int textLength, int composingSpanStart, int composingSpanEnd) { in isValidComposingSpan() argument
753 && composingSpanStart <= textLength in isValidComposingSpan()
755 && composingSpanEnd <= textLength; in isValidComposingSpan()
/aosp14/frameworks/base/native/android/
H A Dsystem_fonts.cpp310 const uint32_t textLength, in AFontMatcher_match() argument
315 minikin::U16StringPiece(text, textLength), in AFontMatcher_match()
322 fc->getBestFont(minikin::U16StringPiece(text, textLength), runs[0], matcher->mFontStyle) in AFontMatcher_match()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DPasswordTextView.java316 int textLength = mTextChars.size(); in getTransformedText() local
317 StringBuilder stringBuilder = new StringBuilder(textLength); in getTransformedText()
318 for (int i = 0; i < textLength; i++) { in getTransformedText()