/frameworks/base/core/java/android/text/ |
D | Selection.java | 17 package android.text; 19 import java.text.BreakIterator; 37 public static final int getSelectionStart(CharSequence text) { in getSelectionStart() argument 38 if (text instanceof Spanned) in getSelectionStart() 39 return ((Spanned) text).getSpanStart(SELECTION_START); in getSelectionStart() 48 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() argument 49 if (text instanceof Spanned) in getSelectionEnd() 50 return ((Spanned) text).getSpanStart(SELECTION_END); in getSelectionEnd() 67 public static void setSelection(Spannable text, int start, int stop) { in setSelection() argument 72 int ostart = getSelectionStart(text); in setSelection() [all …]
|
D | Html.java | 17 package android.text; 33 import android.text.style.AbsoluteSizeSpan; 34 import android.text.style.AlignmentSpan; 35 import android.text.style.CharacterStyle; 36 import android.text.style.ForegroundColorSpan; 37 import android.text.style.ImageSpan; 38 import android.text.style.ParagraphStyle; 39 import android.text.style.QuoteSpan; 40 import android.text.style.RelativeSizeSpan; 41 import android.text.style.StrikethroughSpan; [all …]
|
D | TextUtils.java | 17 package android.text; 22 import android.text.style.AbsoluteSizeSpan; 23 import android.text.style.AlignmentSpan; 24 import android.text.style.BackgroundColorSpan; 25 import android.text.style.BulletSpan; 26 import android.text.style.CharacterStyle; 27 import android.text.style.EasyEditSpan; 28 import android.text.style.ForegroundColorSpan; 29 import android.text.style.LeadingMarginSpan; 30 import android.text.style.LocaleSpan; [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 19 import android.text.GraphicsOperations; 20 import android.text.SpannableString; 21 import android.text.SpannedString; 22 import android.text.TextUtils; 1288 public float measureText(char[] text, int index, int count) { in measureText() argument 1289 if (text == null) { in measureText() 1292 if ((index | count) < 0 || index + count > text.length) { in measureText() 1296 if (text.length == 0 || count == 0) { in measureText() 1300 return native_measureText(text, index, count); in measureText() 1305 float w = native_measureText(text, index, count); in measureText() [all …]
|
D | Canvas.java | 19 import android.text.GraphicsOperations; 20 import android.text.SpannableString; 21 import android.text.SpannedString; 22 import android.text.TextUtils; 1326 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) { in drawText() argument 1328 (text.length - index - count)) < 0) { in drawText() 1331 native_drawText(mNativeCanvas, text, index, count, x, y, paint.mBidiFlags, in drawText() 1344 public void drawText(String text, float x, float y, Paint paint) { in drawText() argument 1345 native_drawText(mNativeCanvas, text, 0, text.length(), x, y, paint.mBidiFlags, in drawText() 1360 public void drawText(String text, int start, int end, float x, float y, Paint paint) { in drawText() argument [all …]
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 20 import android.text.Editable; 21 import android.text.SpannableString; 22 import android.text.Spanned; 23 import android.text.TextUtils; 24 import android.text.method.QwertyKeyListener; 91 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() argument 94 int start = mTokenizer.findTokenStart(text, end); in performFiltering() 96 performFiltering(text, start, end, keyCode); in performFiltering() 116 Editable text = getText(); in enoughToFilter() local 123 int start = mTokenizer.findTokenStart(text, end); in enoughToFilter() [all …]
|
D | DialerFilter.java | 21 import android.text.Editable; 22 import android.text.InputFilter; 23 import android.text.Selection; 24 import android.text.Spannable; 25 import android.text.Spanned; 26 import android.text.TextWatcher; 27 import android.text.method.DialerKeyListener; 28 import android.text.method.KeyListener; 29 import android.text.method.TextKeyListener; 322 public void append(String text) { in append() argument [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | JapanesePhoneNumberFormatter.java | 19 import android.text.Editable; 157 public static void format(Editable text) { in format() argument 162 int length = text.length(); in format() 164 && text.subSequence(0, 3).toString().equals("+81")) { in format() 166 } else if (length < 1 || text.charAt(0) != '0') { in format() 170 CharSequence saved = text.subSequence(0, length); in format() 174 while (i < text.length()) { in format() 175 if (text.charAt(i) == '-') { in format() 176 text.delete(i, i + 1); in format() 182 length = text.length(); in format() [all …]
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 69 private String text; field in AbstractMessageParser 88 public AbstractMessageParser(String text) { in AbstractMessageParser() argument 89 this(text, true, true, true, true, true, true); in AbstractMessageParser() 98 public AbstractMessageParser(String text, boolean parseSmilies, in AbstractMessageParser() argument 101 this.text = text; in AbstractMessageParser() 116 public final String getRawText() { return text; } in getRawText() 138 if (parseMeText && text.startsWith("/me") && (text.length() > 3) && in parse() 139 Character.isWhitespace(text.charAt(3))) { in parse() 140 meText = text.substring(0, 4); in parse() 141 text = text.substring(4); in parse() [all …]
|
/frameworks/base/core/java/android/text/util/ |
D | Rfc822Tokenizer.java | 17 package android.text.util; 45 public static void tokenize(CharSequence text, Collection<Rfc822Token> out) { in tokenize() argument 51 int cursor = text.length(); in tokenize() 54 char c = text.charAt(i); in tokenize() 59 while (i < cursor && text.charAt(i) == ' ') { in tokenize() 82 c = text.charAt(i); in tokenize() 89 name.append(text.charAt(i + 1)); in tokenize() 102 c = text.charAt(i); in tokenize() 117 comment.append(text.charAt(i + 1)); in tokenize() 129 c = text.charAt(i); in tokenize() [all …]
|
D | Linkify.java | 17 package android.text.util; 19 import android.text.method.LinkMovementMethod; 20 import android.text.method.MovementMethod; 21 import android.text.style.URLSpan; 22 import android.text.Spannable; 23 import android.text.SpannableString; 24 import android.text.Spanned; 198 public static final boolean addLinks(Spannable text, int mask) { in addLinks() argument 203 URLSpan[] old = text.getSpans(0, text.length(), URLSpan.class); in addLinks() 206 text.removeSpan(old[i]); in addLinks() [all …]
|
/frameworks/base/core/java/android/content/ |
D | ClipData.java | 24 import android.text.Html; 25 import android.text.Spannable; 26 import android.text.SpannableStringBuilder; 27 import android.text.Spanned; 28 import android.text.TextUtils; 29 import android.text.style.URLSpan; 193 public Item(CharSequence text) { in Item() argument 194 mText = text; in Item() 206 public Item(CharSequence text, String htmlText) { in Item() argument 207 mText = text; in Item() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | ICalendar.java | 406 private static String normalizeText(String text) { in normalizeText() argument 408 text = text.replaceAll("\r\n", "\n"); in normalizeText() 409 text = text.replaceAll("\r", "\n"); in normalizeText() 414 text = text.replaceAll("\n ", ""); in normalizeText() 416 return text; in normalizeText() 428 String text) in parseComponentImpl() argument 435 String[] lines = text.split("\n"); in parseComponentImpl() 543 String text = state.line; in extractParameter() local 544 int len = text.length(); in extractParameter() 549 char c = text.charAt(state.index); in extractParameter() [all …]
|
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/ |
D | UiScrollable.java | 113 public UiObject getChildByDescription(UiSelector childPattern, String text) in getChildByDescription() argument 115 Tracer.trace(childPattern, text); in getChildByDescription() 116 return getChildByDescription(childPattern, text, true); in getChildByDescription() 129 public UiObject getChildByDescription(UiSelector childPattern, String text, in getChildByDescription() argument 131 Tracer.trace(childPattern, text, allowScrollSearch); in getChildByDescription() 132 if (text != null) { in getChildByDescription() 134 scrollIntoView(new UiSelector().descriptionContains(text)); in getChildByDescription() 136 return super.getChildByDescription(childPattern, text); in getChildByDescription() 138 throw new UiObjectNotFoundException("for description= \"" + text + "\""); in getChildByDescription() 178 public UiObject getChildByText(UiSelector childPattern, String text) in getChildByText() argument [all …]
|
D | UiCollection.java | 50 public UiObject getChildByDescription(UiSelector childPattern, String text) in getChildByDescription() argument 52 Tracer.trace(childPattern, text); in getChildByDescription() 53 if (text != null) { in getChildByDescription() 58 if(nodeDesc != null && nodeDesc.contains(text)) { in getChildByDescription() 61 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); in getChildByDescription() 67 throw new UiObjectNotFoundException("for description= \"" + text + "\""); in getChildByDescription() 108 public UiObject getChildByText(UiSelector childPattern, String text) in getChildByText() argument 110 Tracer.trace(childPattern, text); in getChildByText() 111 if (text != null) { in getChildByText() 116 if(text.equals(nodeText)) { in getChildByText() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 23 import android.text.Editable; 24 import android.text.NoCopySpan; 25 import android.text.Selection; 26 import android.text.Spannable; 27 import android.text.SpannableStringBuilder; 28 import android.text.Spanned; 29 import android.text.TextUtils; 30 import android.text.method.MetaKeyKeyListener; 75 public static final void removeComposingSpans(Spannable text) { in removeComposingSpans() argument 76 text.removeSpan(COMPOSING); in removeComposingSpans() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | MovementMethod.java | 17 package android.text.method; 22 import android.text.*; 36 public void initialize(TextView widget, Spannable text); in initialize() argument 37 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyDown() argument 38 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyUp() argument 45 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); in onKeyOther() argument 47 public void onTakeFocus(TextView widget, Spannable text, int direction); in onTakeFocus() argument 48 public boolean onTrackballEvent(TextView widget, Spannable text, MotionEvent event); in onTrackballEvent() argument 49 public boolean onTouchEvent(TextView widget, Spannable text, MotionEvent event); in onTouchEvent() argument 50 public boolean onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event); in onGenericMotionEvent() argument
|
D | MetaKeyKeyListener.java | 17 package android.text.method; 19 import android.text.Editable; 20 import android.text.NoCopySpan; 21 import android.text.Spannable; 22 import android.text.Spanned; 141 public static void resetMetaState(Spannable text) { in resetMetaState() argument 142 text.removeSpan(CAP); in resetMetaState() 143 text.removeSpan(ALT); in resetMetaState() 144 text.removeSpan(SYM); in resetMetaState() 145 text.removeSpan(SELECTING); in resetMetaState() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | Ticker.java | 23 import android.text.StaticLayout; 24 import android.text.Layout.Alignment; 25 import android.text.TextPaint; 26 import android.text.TextUtils; 69 CharSequence text; field in Ticker.Segment 92 if (this.current > this.text.length()) { in getText() 95 CharSequence substr = this.text.subSequence(this.current, this.text.length()); in getText() 105 " text=" + text); in getText() 113 final int len = this.text.length(); in advance() 114 while (index < len && !isGraphicOrEmoji(this.text.charAt(index))) { in advance() [all …]
|
/frameworks/base/services/java/com/android/server/am/ |
D | AppWaitingForDebuggerDialog.java | 39 StringBuilder text = new StringBuilder(); in AppWaitingForDebuggerDialog() local 41 text.append("Application "); in AppWaitingForDebuggerDialog() 42 text.append(mAppName); in AppWaitingForDebuggerDialog() 43 text.append(" (process "); in AppWaitingForDebuggerDialog() 44 text.append(app.processName); in AppWaitingForDebuggerDialog() 45 text.append(")"); in AppWaitingForDebuggerDialog() 47 text.append("Process "); in AppWaitingForDebuggerDialog() 48 text.append(app.processName); in AppWaitingForDebuggerDialog() 51 text.append(" is waiting for the debugger to attach."); in AppWaitingForDebuggerDialog() 53 setMessage(text.toString()); in AppWaitingForDebuggerDialog()
|
/frameworks/base/core/jni/android/graphics/ |
D | TextLayout.cpp | 35 bool TextLayout::needsLayout(const jchar* text, jint len, jint bidiFlags) { in needsLayout() argument 44 if (text[i] >= UNICODE_FIRST_RTL_CHAR) { in needsLayout() 54 void TextLayout::handleText(SkPaint *paint, const jchar* text, jsize len, in handleText() argument 57 text, 0, len, len, bidiFlags); in handleText() 91 void TextLayout::getTextPath(SkPaint *paint, const jchar *text, jsize len, in getTextPath() argument 93 handleText(paint, text, len, bidiFlags, x, y, path); in getTextPath() 97 void TextLayout::drawTextOnPath(SkPaint* paint, const jchar* text, int count, in drawTextOnPath() argument 105 text, 0, count, count, bidiFlags); in drawTextOnPath() 124 const jchar* text; in computeAdvancesWithICU() local 139 text = buffer + start; in computeAdvancesWithICU() [all …]
|
D | Paint.cpp | 386 …static jfloat measureText_CII(JNIEnv* env, jobject jpaint, jcharArray text, int index, int count) { in measureText_CII() argument 388 NPE_CHECK_RETURN_ZERO(env, text); in measureText_CII() 390 size_t textLength = env->GetArrayLength(text); in measureText_CII() 400 const jchar* textArray = env->GetCharArrayElements(text, NULL); in measureText_CII() 406 env->ReleaseCharArrayElements(text, const_cast<jchar*>(textArray), JNI_ABORT); in measureText_CII() 410 …static jfloat measureText_StringII(JNIEnv* env, jobject jpaint, jstring text, int start, int end) { in measureText_StringII() argument 412 NPE_CHECK_RETURN_ZERO(env, text); in measureText_StringII() 414 size_t textLength = env->GetStringLength(text); in measureText_StringII() 424 const jchar* textArray = env->GetStringChars(text, NULL); in measureText_StringII() 431 env->ReleaseStringChars(text, textArray); in measureText_StringII() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | EditableInputConnection.java | 20 import android.text.Editable; 21 import android.text.Spanned; 22 import android.text.method.KeyListener; 23 import android.text.style.SuggestionSpan; 115 public boolean commitCompletion(CompletionInfo text) { in commitCompletion() argument 116 if (DEBUG) Log.v(TAG, "commitCompletion " + text); in commitCompletion() 118 mTextView.onCommitCompletion(text); in commitCompletion() 172 public boolean commitText(CharSequence text, int newCursorPosition) { in commitText() argument 174 return super.commitText(text, newCursorPosition); in commitText() 176 if (text instanceof Spanned) { in commitText() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | Rfc822Validator.java | 19 import android.text.TextUtils; 20 import android.text.util.Rfc822Token; 21 import android.text.util.Rfc822Tokenizer; 65 public boolean isValid(CharSequence text) { in isValid() argument 66 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(text); in isValid() 128 String text = tokens[i].getAddress(); in fixText() local 130 if (mRemoveInvalid && !isValid(text)) { in fixText() 133 int index = text.indexOf('@'); in fixText() 137 tokens[i].setAddress(removeIllegalCharacters(text) + "@" + mDomain); in fixText() 141 String fix = removeIllegalCharacters(text.substring(0, index)); in fixText() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewPropertyAlphaActivity.java | 27 import android.text.Spannable; 28 import android.text.SpannableStringBuilder; 29 import android.text.style.BackgroundColorSpan; 30 import android.text.style.ForegroundColorSpan; 31 import android.text.style.ImageSpan; 32 import android.text.style.SuggestionSpan; 33 import android.text.style.UnderlineSpan; 79 SpannableStringBuilder text = in onCreate() local 82 text.setSpan(new BackgroundColorSpan(Color.RED), 0, 3, in onCreate() 84 text.setSpan(new ForegroundColorSpan(Color.BLUE), 4, 9, in onCreate() [all …]
|