Lines Matching defs:length
78 Object[] sps = text.getSpans(0, text.length(), Object.class);
80 for (int i=sps.length-1; i>=0; i--) {
90 setComposingSpans(text, 0, text.length());
97 for (int i=sps.length-1; i>=0; i--) {
252 if (end > content.length()) end = content.length();
314 public CharSequence getTextBeforeCursor(int length, int flags) {
331 if (length > a) {
332 length = a;
336 return content.subSequence(a - length, a);
338 return TextUtils.substring(content, a - length, a);
370 public CharSequence getTextAfterCursor(int length, int flags) {
388 if (b + length > content.length()) {
389 length = content.length() - b;
394 return content.subSequence(b, b + length);
396 return TextUtils.substring(content, b, b + length);
463 final int length = content.length();
466 if (a > length) a = length;
467 if (b > length) b = length;
471 for (int i = 0; i < mDefaultComposingSpans.length; ++i) {
495 int len = content.length();
549 final int N = content.length();
563 for (int i=0; i<events.length; i++) {
600 0, style.length(), Object.class);
648 for (int i = 0; i < mDefaultComposingSpans.length; ++i) {
649 sp.setSpan(mDefaultComposingSpans[i], 0, sp.length(),
681 if (newCursorPosition > content.length())
682 newCursorPosition = content.length();