Searched refs:textLength (Results 1 - 8 of 8) sorted by relevance

/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java269 final int textLength = mText.length();
270 if (textLength <= 0) {
273 if (offset >= textLength) {
280 while (start < textLength && mText.charAt(start) == '\n'
284 if (start >= textLength) {
288 while (end < textLength && !isEndBoundary(end)) {
296 final int textLength = mText.length();
297 if (textLength <= 0) {
304 if (end > textLength) {
305 end = textLength;
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DValueParser.java229 int textLength = rawValue[valueIndex + 1] & 0xff;
250 TextAttribute attr = new TextAttribute(start, textLength,
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp390 size_t textLength = env->GetArrayLength(text); local
391 if ((index | count) < 0 || (size_t)(index + count) > textLength) {
403 TextLayout::getTextRunAdvances(paint, textArray, index, count, textLength,
414 size_t textLength = env->GetStringLength(text); local
416 if ((start | count) < 0 || (size_t)end > textLength) {
428 TextLayout::getTextRunAdvances(paint, textArray, start, count, textLength,
439 size_t textLength = env->GetStringLength(text); local
440 if (textLength == 0) {
448 TextLayout::getTextRunAdvances(paint, textArray, 0, textLength, textLength,
[all...]
/frameworks/base/core/java/android/text/
H A DLayout.java243 int textLength = buf.length();
257 spanEnd = sp.nextSpanTransition(start, textLength,
370 int textLength = buffer.length();
371 mLineBackgroundSpans.init(buffer, 0, textLength);
394 spanEnd = mLineBackgroundSpans.getNextTransition(start, textLength);
/frameworks/base/core/java/android/widget/
H A DEditor.java685 final int textLength = mTextView.getText().length();
686 if (offset + 1 < textLength) {
693 if (offset < textLength) {
1854 final int textLength = text.length();
1857 text.setSpan(mKeyListener, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
1863 text.setSpan(mEasyEditSpanController, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
H A DTextView.java3660 final int textLength = text.length();
3674 sp.setSpan(mChangeWatcher, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE |
3680 sp.setSpan(mTransformation, 0, textLength, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
3699 sendOnTextChanged(text, 0, oldlen, textLength);
3700 onTextChanged(text, 0, oldlen, textLength);
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java489 int textLength = text.length();
494 if (textLength > originalLength) {
495 isCharacterAdd = (textLength == originalLength + 1)
498 } else if (originalLength > textLength) {
499 isCharacterDelete = (textLength == originalLength - 1)
501 textLength);
505 sendCharacter(text.charAt(textLength - 1));
508 } else if ((textLength != originalLength) ||
510 textLength)) {
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientEditTextView.java1617 int textLength = displayText.length()-1;
1623 chipText.setSpan(chip, 0, textLength,

Completed in 524 milliseconds