Home
last modified time | relevance | path

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

12345678910>>...73

/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;
25 import android.text.style.AbsoluteSizeSpan;
26 import android.text.style.AlignmentSpan;
27 import android.text.style.BackgroundColorSpan;
28 import android.text.style.BulletSpan;
29 import android.text.style.CharacterStyle;
30 import android.text.style.EasyEditSpan;
31 import android.text.style.ForegroundColorSpan;
32 import android.text.style.LeadingMarginSpan;
33 import android.text.style.LocaleSpan;
[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;
94 protected void performFiltering(CharSequence text, int keyCode) { in performFiltering() argument
97 int start = mTokenizer.findTokenStart(text, end); in performFiltering()
99 performFiltering(text, start, end, keyCode); in performFiltering()
119 Editable text = getText(); in enoughToFilter() local
126 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;
320 public void append(String text) { in append() argument
[all …]
DEditText.java21 import android.text.Editable;
22 import android.text.Selection;
23 import android.text.Spannable;
24 import android.text.TextUtils;
25 import android.text.method.ArrowKeyMovementMethod;
26 import android.text.method.MovementMethod;
83 public void setText(CharSequence text, BufferType type) { in setText() argument
84 super.setText(text, BufferType.EDITABLE); in setText()
134 CharSequence text = (arguments != null) ? arguments.getCharSequence( in performAccessibilityActionInternal() local
136 setText(text); in performAccessibilityActionInternal()
[all …]
/frameworks/base/graphics/java/android/graphics/
DPaint.java20 import android.text.GraphicsOperations;
21 import android.text.SpannableString;
22 import android.text.SpannedString;
23 import android.text.TextUtils;
1481 public float measureText(char[] text, int index, int count) { in measureText() argument
1482 if (text == null) { in measureText()
1485 if ((index | count) < 0 || index + count > text.length) { in measureText()
1489 if (text.length == 0 || count == 0) { in measureText()
1493 return (float) Math.ceil(native_measureText(text, index, count, mBidiFlags)); in measureText()
1498 float w = native_measureText(text, index, count, mBidiFlags); in measureText()
[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/tools/aapt/
Dpseudolocalize.h12 virtual String16 text(const String16& text) = 0;
13 virtual String16 placeholder(const String16& text) = 0;
19 String16 text(const String16& text) { return text; } in text() function
20 String16 placeholder(const String16& text) { return text; } in placeholder() argument
27 String16 text(const String16& text);
28 String16 placeholder(const String16& text);
36 String16 text(const String16& text);
37 String16 placeholder(const String16& text);
51 String16 text(const String16& text);
/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;
207 public static final boolean addLinks(Spannable text, int mask) { in addLinks() argument
212 URLSpan[] old = text.getSpans(0, text.length(), URLSpan.class); in addLinks()
215 text.removeSpan(old[i]); in addLinks()
[all …]
/frameworks/base/cmds/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.java115 public UiObject getChildByDescription(UiSelector childPattern, String text) in getChildByDescription() argument
117 Tracer.trace(childPattern, text); in getChildByDescription()
118 return getChildByDescription(childPattern, text, true); in getChildByDescription()
137 public UiObject getChildByDescription(UiSelector childPattern, String text, in getChildByDescription() argument
139 Tracer.trace(childPattern, text, allowScrollSearch); in getChildByDescription()
140 if (text != null) { in getChildByDescription()
142 scrollIntoView(new UiSelector().descriptionContains(text)); in getChildByDescription()
144 return super.getChildByDescription(childPattern, text); in getChildByDescription()
146 throw new UiObjectNotFoundException("for description= \"" + text + "\""); in getChildByDescription()
186 public UiObject getChildByText(UiSelector childPattern, String text) in getChildByText() argument
[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/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
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;
144 public static void resetMetaState(Spannable text) { in resetMetaState() argument
145 text.removeSpan(CAP); in resetMetaState()
146 text.removeSpan(ALT); in resetMetaState()
147 text.removeSpan(SYM); in resetMetaState()
148 text.removeSpan(SELECTING); in resetMetaState()
[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/core/java/android/view/textservice/
DTextInfo.java21 import android.text.ParcelableSpan;
22 import android.text.SpannableStringBuilder;
23 import android.text.TextUtils;
24 import android.text.style.SpellCheckSpan;
41 public TextInfo(String text) { in TextInfo() argument
42 this(text, 0, getStringLengthOrZero(text), DEFAULT_COOKIE, DEFAULT_SEQUENCE_NUMBER); in TextInfo()
51 public TextInfo(String text, int cookie, int sequenceNumber) { in TextInfo() argument
52 this(text, 0, getStringLengthOrZero(text), cookie, sequenceNumber); in TextInfo()
55 private static int getStringLengthOrZero(final String text) { in getStringLengthOrZero() argument
56 return TextUtils.isEmpty(text) ? 0 : text.length(); in getStringLengthOrZero()
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/adapter/
DInstanceAdapter.java31 public void setInstanceAttr0(TextView view, String text) { in setInstanceAttr0() argument
32 view.setText(String.format(format, text, "foo", "bar", "baz")); in setInstanceAttr0()
36 public void setInstanceAttr1(TextView view, String text, String text2) { in setInstanceAttr1() argument
37 view.setText(String.format(format, text, text2, "foo", "bar")); in setInstanceAttr1()
41 public void setInstanceAttr3(TextView view, String oldText, String text) { in setInstanceAttr3() argument
42 view.setText(String.format(format, oldText, text, "foo", "bar")); in setInstanceAttr3()
52 … public static void setInstanceAttr6(DataBindingComponent component, TextView view, String text) { in setInstanceAttr6() argument
53 view.setText(String.format("%s %s", text, component == null ? "null" : "component")); in setInstanceAttr6()
57 public void setInstanceAttr7(DataBindingComponent component, TextView view, String text) { in setInstanceAttr7() argument
58 … view.setText(String.format(format, text, component == null ? "null" : "component", "bar", "baz")); in setInstanceAttr7()
[all …]
/frameworks/base/core/java/android/content/
DClipData.java26 import android.text.Html;
27 import android.text.Spannable;
28 import android.text.SpannableStringBuilder;
29 import android.text.Spanned;
30 import android.text.TextUtils;
31 import android.text.style.URLSpan;
195 public Item(CharSequence text) { in Item() argument
196 mText = text; in Item()
208 public Item(CharSequence text, String htmlText) { in Item() argument
209 mText = text; in Item()
[all …]
/frameworks/base/services/core/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/opt/telephony/src/java/com/android/internal/telephony/cat/
DItem.java32 public String text; field in Item
36 public Item(int id, String text) { in Item() argument
37 this(id, text, null); in Item()
40 public Item(int id, String text, Bitmap icon) { in Item() argument
42 this.text = text; in Item()
48 text = in.readString(); in Item()
60 dest.writeString(text); in writeToParcel()
78 return text; in toString()
/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/ex/common/java/com/android/common/
DRfc822Validator.java19 import android.text.TextUtils;
20 import android.text.util.Rfc822Token;
21 import android.text.util.Rfc822Tokenizer;
96 public boolean isValid(CharSequence text) { in isValid() argument
97 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(text); in isValid()
158 String text = tokens[i].getAddress(); in fixText() local
160 if (mRemoveInvalid && !isValid(text)) { in fixText()
163 int index = text.indexOf('@'); in fixText()
167 tokens[i].setAddress(removeIllegalCharacters(text) + "@" + mDomain); in fixText()
171 String fix = removeIllegalCharacters(text.substring(0, index)); in fixText()
[all …]

12345678910>>...73