/frameworks/base/core/java/android/text/ |
D | Selection.java | 17 package android.text; 35 public static final int getSelectionStart(CharSequence text) { in getSelectionStart() argument 36 if (text instanceof Spanned) in getSelectionStart() 37 return ((Spanned) text).getSpanStart(SELECTION_START); in getSelectionStart() 46 public static final int getSelectionEnd(CharSequence text) { in getSelectionEnd() argument 47 if (text instanceof Spanned) in getSelectionEnd() 48 return ((Spanned) text).getSpanStart(SELECTION_END); in getSelectionEnd() 65 public static void setSelection(Spannable text, int start, int stop) { in setSelection() argument 70 int ostart = getSelectionStart(text); in setSelection() 71 int oend = getSelectionEnd(text); in setSelection() [all …]
|
D | Html.java | 17 package android.text; 32 import android.text.style.AbsoluteSizeSpan; 33 import android.text.style.AlignmentSpan; 34 import android.text.style.CharacterStyle; 35 import android.text.style.ForegroundColorSpan; 36 import android.text.style.ImageSpan; 37 import android.text.style.ParagraphStyle; 38 import android.text.style.QuoteSpan; 39 import android.text.style.RelativeSizeSpan; 40 import android.text.style.StrikethroughSpan; [all …]
|
D | Styled.java | 16 package android.text; 20 import android.text.style.CharacterStyle; 21 import android.text.style.MetricAffectingSpan; 22 import android.text.style.ReplacementSpan; 51 Spanned text, int start, int end, in drawUniformRun() argument 61 CharacterStyle[] spans = text.getSpans(start, end, CharacterStyle.class); in drawUniformRun() 90 tmp = TextUtils.getReverse(text, start, end); in drawUniformRun() 95 tmp = text; in drawUniformRun() 151 ret = replacement.getSize(workPaint, text, start, end, fmi); in drawUniformRun() 155 replacement.draw(canvas, text, start, end, in drawUniformRun() [all …]
|
D | TextUtils.java | 17 package android.text; 25 import android.text.method.TextKeyListener.Capitalize; 26 import android.text.style.AbsoluteSizeSpan; 27 import android.text.style.AlignmentSpan; 28 import android.text.style.BackgroundColorSpan; 29 import android.text.style.BulletSpan; 30 import android.text.style.CharacterStyle; 31 import android.text.style.ForegroundColorSpan; 32 import android.text.style.LeadingMarginSpan; 33 import android.text.style.MetricAffectingSpan; [all …]
|
D | Editable.java | 17 package android.text; 54 public Editable replace(int st, int en, CharSequence text); in replace() argument 60 public Editable insert(int where, CharSequence text, int start, int end); in insert() argument 66 public Editable insert(int where, CharSequence text); in insert() argument 78 public Editable append(CharSequence text); in append() argument 84 public Editable append(CharSequence text, int start, int end); in append() argument 90 public Editable append(char text); in append() argument
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 23 import android.text.Editable; 24 import android.text.Selection; 25 import android.text.Spanned; 26 import android.text.Spannable; 27 import android.text.SpannableString; 28 import android.text.TextUtils; 29 import android.text.method.QwertyKeyListener; 101 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() argument 104 int start = mTokenizer.findTokenStart(text, end); in performFiltering() 106 performFiltering(text, start, end, keyCode); in performFiltering() [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; 334 public void append(String text) { in append() argument [all …]
|
D | EditText.java | 20 import android.text.Editable; 21 import android.text.Selection; 22 import android.text.Spannable; 23 import android.text.TextUtils; 24 import android.text.method.ArrowKeyMovementMethod; 25 import android.text.method.MovementMethod; 77 public void setText(CharSequence text, BufferType type) { in setText() argument 78 super.setText(text, BufferType.EDITABLE); in setText()
|
/frameworks/base/telephony/java/android/telephony/ |
D | JapanesePhoneNumberFormatter.java | 19 import android.text.Editable; 155 public static void format(Editable text) { in format() argument 160 int length = text.length(); in format() 162 && text.subSequence(0, 3).toString().equals("+81")) { in format() 164 } else if (length < 1 || text.charAt(0) != '0') { in format() 168 CharSequence saved = text.subSequence(0, length); in format() 172 while (i < text.length()) { in format() 173 if (text.charAt(i) == '-') { in format() 174 text.delete(i, i + 1); in format() 180 length = text.length(); in format() [all …]
|
D | PhoneNumberFormattingTextWatcher.java | 19 import android.text.Editable; 20 import android.text.Selection; 21 import android.text.TextWatcher; 48 public synchronized void afterTextChanged(Editable text) { in afterTextChanged() argument 56 if (mHyphenStart - 1 < text.length()) { in afterTextChanged() 57 text.delete(mHyphenStart - 1, mHyphenStart); in afterTextChanged() 59 } else if (mHyphenStart < text.length()) { in afterTextChanged() 60 text.delete(mHyphenStart, mHyphenStart + 1); in afterTextChanged() 64 PhoneNumberUtils.formatNumber(text, sFormatType); in afterTextChanged()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 19 import android.text.TextUtils; 20 import android.text.SpannableString; 21 import android.text.SpannedString; 22 import android.text.GraphicsOperations; 1000 public float measureText(char[] text, int index, int count) { in measureText() argument 1001 if (!mHasCompatScaling) return native_measureText(text, index, count); in measureText() 1004 float w = native_measureText(text, index, count); in measureText() 1009 private native float native_measureText(char[] text, int index, int count); in native_measureText() argument 1019 public float measureText(String text, int start, int end) { in measureText() argument 1020 if (!mHasCompatScaling) return native_measureText(text, start, end); in measureText() [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/services/java/com/android/server/am/ |
D | AppWaitingForDebuggerDialog.java | 37 StringBuilder text = new StringBuilder(); in AppWaitingForDebuggerDialog() local 39 text.append("Application "); in AppWaitingForDebuggerDialog() 40 text.append(mAppName); in AppWaitingForDebuggerDialog() 41 text.append(" (process "); in AppWaitingForDebuggerDialog() 42 text.append(app.processName); in AppWaitingForDebuggerDialog() 43 text.append(")"); in AppWaitingForDebuggerDialog() 45 text.append("Process "); in AppWaitingForDebuggerDialog() 46 text.append(app.processName); in AppWaitingForDebuggerDialog() 49 text.append(" is waiting for the debugger to attach."); in AppWaitingForDebuggerDialog() 51 setMessage(text.toString()); in AppWaitingForDebuggerDialog()
|
/frameworks/base/core/java/android/text/method/ |
D | MovementMethod.java | 17 package android.text.method; 22 import android.text.*; 26 public void initialize(TextView widget, Spannable text); in initialize() argument 27 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyDown() argument 28 public boolean onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event); in onKeyUp() argument 35 public boolean onKeyOther(TextView view, Spannable text, KeyEvent event); in onKeyOther() argument 37 public void onTakeFocus(TextView widget, Spannable text, int direction); in onTakeFocus() argument 38 public boolean onTrackballEvent(TextView widget, Spannable text, in onTrackballEvent() argument 40 public boolean onTouchEvent(TextView widget, Spannable text, in onTouchEvent() argument
|
D | SingleLineTransformationMethod.java | 17 package android.text.method; 20 import android.text.Editable; 21 import android.text.GetChars; 22 import android.text.Spannable; 23 import android.text.Spanned; 24 import android.text.SpannedString; 25 import android.text.TextUtils;
|
/frameworks/base/core/java/android/pim/ |
D | ICalendar.java | 407 private static String normalizeText(String text) { in normalizeText() argument 409 text = text.replaceAll("\r\n", "\n"); in normalizeText() 410 text = text.replaceAll("\r", "\n"); in normalizeText() 415 text = text.replaceAll("\n ", ""); in normalizeText() 417 return text; in normalizeText() 429 String text) in parseComponentImpl() argument 436 String[] lines = text.split("\n"); in parseComponentImpl() 544 String text = state.line; in extractParameter() local 545 int len = text.length(); in extractParameter() 550 char c = text.charAt(state.index); in extractParameter() [all …]
|
/frameworks/base/core/java/android/view/inputmethod/ |
D | BaseInputConnection.java | 24 import android.text.Editable; 25 import android.text.NoCopySpan; 26 import android.text.Selection; 27 import android.text.Spannable; 28 import android.text.SpannableStringBuilder; 29 import android.text.Spanned; 30 import android.text.TextUtils; 31 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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | Ticker.java | 22 import android.text.StaticLayout; 23 import android.text.Layout.Alignment; 24 import android.text.TextPaint; 25 import android.text.TextUtils; 55 CharSequence text; field in Ticker.Segment 78 if (this.current > this.text.length()) { in getText() 81 CharSequence substr = this.text.subSequence(this.current, this.text.length()); in getText() 91 " text=" + text); in getText() 99 final int len = this.text.length(); in advance() 100 while (index < len && !TextUtils.isGraphic(this.text.charAt(index))) { in advance() [all …]
|
/frameworks/base/tools/localize/ |
D | Perforce.cpp | 104 string text; in GetResourceFileNames() local 114 err = RunCommand(cmd.str(), &text, printOnFailure); in GetResourceFileNames() 116 const char* str = text.c_str(); in GetResourceFileNames() 157 string text; in GetCurrentChange() local 159 err = RunCommand("p4 changes -m 1 \\#have", &text, printOnFailure); in GetCurrentChange() 165 int count = sscanf(text.c_str(), "Change %lld on", &n); in GetCurrentChange() 179 string text; in do_files() local 189 return Perforce::RunCommand(cmd.str(), &text, printOnFailure); in do_files() 214 string text; in Where() local 218 err = RunCommand(cmd, &text, printOnFailure); in Where() [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; 63 public boolean isValid(CharSequence text) { in isValid() argument 64 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(text); in isValid() 114 String text = tokens[i].getAddress(); in fixText() local 115 int index = text.indexOf('@'); in fixText() 118 tokens[i].setAddress(removeIllegalCharacters(text) + "@" + mDomain); in fixText() 121 String fix = removeIllegalCharacters(text.substring(0, index)); in fixText() 122 String domain = removeIllegalCharacters(text.substring(index + 1)); in fixText()
|
/frameworks/base/docs/html/guide/appendix/ |
D | media-formats.jd | 25 <td style="text-align: center;">X</td> 26 <td style="text-align: center;">X</td> 34 <td style="text-align: center;">X</td> 40 <td style="text-align: center;">X</td> 45 <td style="text-align: center;">X</td> 46 <td style="text-align: center;">X</td> 54 <td style="text-align: center;">X</td> 55 <td style="text-align: center;">X</td> 63 <td style="text-align: center;">X</td> 72 <td style="text-align: center;">X</td> [all …]
|
/frameworks/base/tools/aidl/ |
D | aidl_language_l.l | 13 static void append_extra_text(char* text); 112 extra_text_type* text = (extra_text_type*)malloc(sizeof(extra_text_type)); in begin_extra_text() local 113 text->lineno = lineno; in begin_extra_text() 114 text->which = which; in begin_extra_text() 115 text->data = NULL; in begin_extra_text() 116 text->len = 0; in begin_extra_text() 117 text->next = NULL; in begin_extra_text() 119 g_extraText = text; in begin_extra_text() 121 g_nextExtraText->next = text; in begin_extra_text() 123 g_nextExtraText = text; in begin_extra_text() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/ |
D | Item.java | 32 public String text; field in Item 36 public Item(int id, String text) { in Item() argument 38 this.text = text; in Item() 44 text = in.readString(); in Item() 54 dest.writeString(text); in writeToParcel() 69 return text; in toString()
|