Searched defs:text (Results 1 - 25 of 130) sorted by relevance

123456

/packages/apps/Email/src/com/android/email/
H A DEmailAddressValidator.java28 public boolean isValid(CharSequence text) { argument
29 return Address.parse(text.toString()).length > 0;
/packages/apps/Email/src/com/android/email/mail/internet/
H A DEmailHtmlUtil.java31 * @param text Text to be displayed using WebView.
34 public static String escapeCharacterToDisplay(String text) { argument
36 Matcher match = pattern.matcher(text);
43 out.append(text.substring(end, start));
45 int c = text.codePointAt(start);
62 out.append(text.substring(end));
63 text = out.toString();
65 return text;
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DLetterConverter.java31 * Convert the layer #0 text(pressed key sequence) to layer #1 text(pre converted string).
38 * @param text The text data includes input sequence(layer #0) and output area(layer #1)
41 public boolean convert(ComposingText text); argument
/packages/apps/Browser/src/com/android/browser/
H A DDataUri.java60 * Returns true if the text passed in appears to be a data URI.
62 public static boolean isDataUri(String text) argument
64 return text.startsWith(DATA_URI_PREFIX);
/packages/apps/Contacts/src/com/android/contacts/format/
H A DPrefixHighlighter.java19 import android.text.SpannableString;
20 import android.text.style.ForegroundColorSpan;
24 * Highlights the text in a text field.
36 * Sets the text on the given text view, highlighting the word that matches the given prefix.
38 * @param view the view on which to set the text
39 * @param text the string to use as the text
42 public void setText(TextView view, String text, cha argument
52 apply(CharSequence text, char[] prefix) argument
[all...]
H A DFormatUtils.java20 import android.text.SpannableString;
21 import android.text.style.StyleSpan;
28 * Assorted utility methods related to text formatting in Contacts.
101 * @param flags Bitmask for configuring behavior of the span. See {@link android.text.Spanned}.
109 SpannableString text = new SpannableString(input);
110 text.setSpan(new StyleSpan(style), start, end, flags);
111 return text;
115 public static void copyToCharArrayBuffer(String text, CharArrayBuffer buffer) { argument
116 if (text != null) {
118 if (data == null || data.length < text
143 indexOfWordPrefix(CharSequence text, char[] prefix) argument
187 forceLeftToRight(CharSequence text) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/
H A DClipboardUtils.java22 import android.text.TextUtils;
33 * Copy a text to clipboard.
37 * @param text Text to copy.
40 public static void copyText(Context context, CharSequence label, CharSequence text, argument
42 if (TextUtils.isEmpty(text)) return;
46 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text);
H A DHtmlUtils.java21 import android.text.Html;
22 import android.text.Html.ImageGetter;
23 import android.text.Html.TagHandler;
24 import android.text.SpannableStringBuilder;
25 import android.text.Spanned;
26 import android.text.TextUtils;
27 import android.text.style.ImageSpan;
28 import android.text.style.QuoteSpan;
34 * Provides static functions to perform custom HTML to text conversions.
41 * Converts HTML string to a {@link Spanned} text, adjustin
44 fromHtml(Context context, String text) argument
56 fromHtml(Context context, String text, ImageGetter imageGetter, TagHandler tagHandler) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DHtmlUtilsTest.java22 import android.text.SpannableStringBuilder;
23 import android.text.Spanned;
24 import android.text.SpannedString;
25 import android.text.style.ImageSpan;
26 import android.text.style.QuoteSpan;
54 private final void checkTrimNewLines(String expectedString, CharSequence text) { argument
57 HtmlUtils.postprocess(getContext(), new SpannedString(text)).toString());
60 HtmlUtils.postprocess(getContext(), new SpannableStringBuilder(text)).toString());
76 * Same as {@link #testPostProcess_with_newlines}, but text has no newlines.
/packages/apps/Email/src/com/android/email/activity/
H A DChipsAddressTextView.java36 public boolean isValid(CharSequence text) { argument
37 return mValidator != null ? mValidator.isValid(text) : true;
H A DAddressTextView.java38 public boolean isValid(CharSequence text) { argument
39 return mValidator != null ? mValidator.isValid(text) : true;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DMultiLineTexture.java21 import android.text.Layout;
22 import android.text.StaticLayout;
23 import android.text.TextPaint;
38 String text, int maxWidth, float textSize, int color,
41 Layout layout = new StaticLayout(text, 0, text.length(), paint,
37 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSuggestionFormatter.java19 import android.text.Spannable;
38 * @return Formatted suggestion text.
42 protected void applyQueryTextStyle(Spannable text, int start, int end) { argument
44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance());
47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { argument
49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance());
52 private void setSpans(Spannable text, int start, int end, Object[] spans) { argument
54 text.setSpan(span, start, end, 0);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DRomkan.java147 /** Max length of the target text */
162 public boolean convert(ComposingText text) { argument
163 int cursor = text.getCursor(1);
173 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i);
192 text.replaceStrSegment(ComposingText.LAYER1, out, MAX_LENGTH - start);
199 text.replaceStrSegment(1, out, MAX_LENGTH - start);
H A DRomkanFullKatakana.java143 /** Max length of the target text */
155 public boolean convert(ComposingText text) { argument
156 return convert(text, mRomkanTable);
162 * @param text The input/output text
166 public static boolean convert(ComposingText text, HashMap<String, String> table) { argument
167 int cursor = text.getCursor(1);
177 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i);
196 text.replaceStrSegment(ComposingText.LAYER1, out, MAX_LENGTH - start);
203 text
[all...]
H A DRomkanHalfKatakana.java147 public boolean convert(ComposingText text) { argument
148 return RomkanFullKatakana.convert(text, mRomkanTable);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DViewHelper.java23 * A helper class for handling text views in the dialogs.
43 void setText(int viewId, String text) { argument
44 if (text == null) return;
46 if (v != null) v.setText(text);
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigUiBase.java36 public void setSubmitButton(CharSequence text); argument
37 public void setForgetButton(CharSequence text); argument
38 public void setCancelButton(CharSequence text); argument
/packages/apps/VideoEditor/src/com/android/videoeditor/util/
H A DStringUtils.java171 * Trim text to a maximum size
173 * @param text The text
177 * @return The text
179 public static String trimText(String text, Paint p, int maxSize) { argument
180 final int textSize = (int)p.measureText(text);
182 final int chars = p.breakText(text, true, maxSize - 12, null);
183 text = text.substring(0, chars);
184 text
[all...]
/packages/apps/Calculator/src/com/android/calculator2/
H A DColorButton.java62 protected void onTextChanged(CharSequence text, int start, int before, int after) { argument
H A DHistory.java74 void update(String text) { argument
75 current().setEdited(text);
94 void enter(String text) { argument
100 !text.equals(mEntries.elementAt(mEntries.size() - 2).getBase())) {
101 mEntries.insertElementAt(new HistoryEntry(text), mEntries.size() - 1);
/packages/apps/Calendar/src/com/android/calendar/
H A DExpandableTextView.java88 // If the text fits in collapsed mode, we are done.
93 // Doesn't fit in collapsed mode. Collapse text view as needed. Show
111 public void setText(String text) { argument
116 String trimmedText = text.trim();
/packages/apps/Camera/src/com/android/camera/
H A DOnScreenHint.java95 * Make a standard hint that just contains a text view.
100 * @param text The text to show. Can be formatted text.
103 public static OnScreenHint makeText(Context context, CharSequence text) { argument
111 tv.setText(text);
119 * Update the text in a OnScreenHint that was previously created using one
121 * @param s The new text for the OnScreenHint.
/packages/apps/Camera/src/com/android/camera/drawable/
H A DTextDrawable.java40 public TextDrawable(Resources res, CharSequence text) { argument
41 mText = text;
/packages/apps/Contacts/src/com/android/contacts/
H A DPhoneCallDetailsHelper.java23 import android.text.SpannableString;
24 import android.text.Spanned;
25 import android.text.TextUtils;
26 import android.text.format.DateUtils;
27 import android.text.style.ForegroundColorSpan;
28 import android.text.style.StyleSpan;
130 /** Sets the text of the header view for the details page of a phone call. */
167 final CharSequence text;
169 text = mResources.getString(
172 text
187 addBoldAndColor(CharSequence text, int color) argument
[all...]

Completed in 745 milliseconds

123456