Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 1261) sorted by relevance

12345678910>>...51

/frameworks/base/core/java/android/text/
DSelection.java17 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 …]
DHtml.java17 package android.text;
34 import android.text.style.AbsoluteSizeSpan;
35 import android.text.style.AlignmentSpan;
36 import android.text.style.CharacterStyle;
37 import android.text.style.ForegroundColorSpan;
38 import android.text.style.ImageSpan;
39 import android.text.style.ParagraphStyle;
40 import android.text.style.QuoteSpan;
41 import android.text.style.RelativeSizeSpan;
42 import android.text.style.StrikethroughSpan;
[all …]
DTextUtils.java17 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/
DPaint.java19 import android.text.GraphicsOperations;
20 import android.text.SpannableString;
21 import android.text.SpannedString;
22 import android.text.TextUtils;
1286 public float measureText(char[] text, int index, int count) { in measureText() argument
1287 if (text == null) { in measureText()
1290 if ((index | count) < 0 || index + count > text.length) { in measureText()
1294 if (text.length == 0 || count == 0) { in measureText()
1298 return (float) Math.ceil(native_measureText(text, index, count, mBidiFlags)); in measureText()
1303 float w = native_measureText(text, index, count, mBidiFlags); in measureText()
[all …]
DCanvas.java19 import android.text.GraphicsOperations;
20 import android.text.SpannableString;
21 import android.text.SpannedString;
22 import android.text.TextUtils;
1358 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) { in drawText() argument
1360 (text.length - index - count)) < 0) { in drawText()
1363 native_drawText(mNativeCanvas, text, index, count, x, y, paint.mBidiFlags, in drawText()
1376 public void drawText(String text, float x, float y, Paint paint) { in drawText() argument
1377 native_drawText(mNativeCanvas, text, 0, text.length(), x, y, paint.mBidiFlags, in drawText()
1392 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/
DMultiAutoCompleteTextView.java20 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 …]
DDialerFilter.java21 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/
DJapanesePhoneNumberFormatter.java19 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/
DAbstractMessageParser.java69 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/
DRfc822Tokenizer.java17 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 …]
DLinkify.java17 package android.text.util;
20 import android.text.method.LinkMovementMethod;
21 import android.text.method.MovementMethod;
22 import android.text.style.URLSpan;
23 import android.text.Spannable;
24 import android.text.SpannableString;
25 import android.text.Spanned;
204 public static final boolean addLinks(Spannable text, int mask) { in addLinks() argument
209 URLSpan[] old = text.getSpans(0, text.length(), URLSpan.class); in addLinks()
212 text.removeSpan(old[i]); in addLinks()
[all …]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiCollection.java50 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 …]
DUiScrollable.java113 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 …]
/frameworks/base/core/java/android/text/method/
DMovementMethod.java17 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
DSingleLineTransformationMethod.java17 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;
DMetaKeyKeyListener.java17 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/core/java/android/content/
DClipData.java25 import android.text.Html;
26 import android.text.Spannable;
27 import android.text.SpannableStringBuilder;
28 import android.text.Spanned;
29 import android.text.TextUtils;
30 import android.text.style.URLSpan;
194 public Item(CharSequence text) { in Item() argument
195 mText = text; in Item()
207 public Item(CharSequence text, String htmlText) { in Item() argument
208 mText = text; in Item()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DICalendar.java406 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/base/core/java/android/view/inputmethod/
DBaseInputConnection.java23 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;
76 public static final void removeComposingSpans(Spannable text) { in removeComposingSpans() argument
77 text.removeSpan(COMPOSING); in removeComposingSpans()
[all …]
/frameworks/base/services/java/com/android/server/am/
DAppWaitingForDebuggerDialog.java39 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DTicker.java24 import android.text.StaticLayout;
25 import android.text.Layout.Alignment;
26 import android.text.TextPaint;
66 CharSequence text; field in Ticker.Segment
89 if (this.current > this.text.length()) { in getText()
92 CharSequence substr = this.text.subSequence(this.current, this.text.length()); in getText()
102 " text=" + text); in getText()
110 final int len = this.text.length(); in advance()
111 while (index < len && !isGraphicOrEmoji(this.text.charAt(index))) { in advance()
118 CharSequence substr = this.text.subSequence(index, this.text.length()); in advance()
[all …]
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java19 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/core/java/com/android/internal/widget/
DEditableInputConnection.java20 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/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewPropertyAlphaActivity.java27 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 …]
/frameworks/base/tools/aidl/
Daidl_language_l.l13 static void append_extra_text(char* text);
116 extra_text_type* text = (extra_text_type*)malloc(sizeof(extra_text_type)); in begin_extra_text() local
117 text->lineno = lineno; in begin_extra_text()
118 text->which = which; in begin_extra_text()
119 text->data = NULL; in begin_extra_text()
120 text->len = 0; in begin_extra_text()
121 text->next = NULL; in begin_extra_text()
123 g_extraText = text; in begin_extra_text()
125 g_nextExtraText->next = text; in begin_extra_text()
127 g_nextExtraText = text; in begin_extra_text()
[all …]

12345678910>>...51