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

1234567

/packages/apps/Email/src/com/android/email/
H A DEmailAddressValidator.java30 public boolean isValid(CharSequence text) { argument
31 return Address.parse(text.toString()).length == 1;
/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/Camera2/tests/exiftool_parser/
H A Dparser.py19 text = sys.stdin.read() variable
39 tags = p.findall(text)
/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/ContactsCommon/src/com/android/contacts/common/
H A DClipboardUtils.java22 import android.text.TextUtils;
31 * Copy a text to clipboard.
35 * @param text Text to copy.
38 public static void copyText(Context context, CharSequence label, CharSequence text, argument
40 if (TextUtils.isEmpty(text)) return;
44 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text);
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DMultiLineTexture.java21 import android.text.Layout;
22 import android.text.StaticLayout;
23 import android.text.TextPaint;
39 String text, int maxWidth, float textSize, int color,
42 Layout layout = new StaticLayout(text, 0, text.length(), paint,
38 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/apps/UnifiedEmail/src/com/android/mail/ui/
H A DEllipsizedMultilineTextView.java21 import android.text.Layout;
22 import android.text.Layout.Alignment;
23 import android.text.SpannableStringBuilder;
24 import android.text.Spanned;
25 import android.text.StaticLayout;
26 import android.text.TextUtils;
32 * line of text, such that the last line may be shorter than any previous lines.
54 * Ellipsize just the last line of text in this view and set the text to the
56 * @param text Tex
62 setText(final CharSequence text, int avail) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DSuggestionSpanUtils.java20 import android.text.Spannable;
21 import android.text.SpannableString;
22 import android.text.Spanned;
23 import android.text.TextUtils;
24 import android.text.style.SuggestionSpan;
55 final Context context, final String text) {
56 if (TextUtils.isEmpty(text) || OBJ_FLAG_AUTO_CORRECTION == null) {
57 return text;
59 final Spannable spannable = new SpannableString(text);
63 spannable.setSpan(suggestionSpan, 0, text
54 getTextWithAutoCorrectionIndicatorUnderline( final Context context, final String text) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DSpannableStringUtils.java19 import android.text.Spannable;
20 import android.text.SpannableString;
21 import android.text.Spanned;
22 import android.text.SpannedString;
23 import android.text.TextUtils;
24 import android.text.style.SuggestionSpan;
70 public static CharSequence concatWithNonParagraphSuggestionSpansOnly(CharSequence... text) { argument
71 if (text.length == 0) {
75 if (text.length == 1) {
76 return text[
[all...]
/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/ContactsCommon/src/com/android/contacts/common/format/
H A DTextHighlighter.java20 import android.text.SpannableString;
21 import android.text.style.CharacterStyle;
22 import android.text.style.ForegroundColorSpan;
23 import android.text.style.StyleSpan;
29 * Highlights the text in a text field.
45 * Sets the text on the given text view, highlighting the word that matches the given prefix.
47 * @param view the view on which to set the text
48 * @param text th
51 setPrefixText(TextView view, String text, String prefix) argument
65 applyMaskingHighlight(SpannableString text, int start, int end) argument
76 applyPrefixHighlight(CharSequence text, String prefix) argument
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DEditQuickResponseDialog.java29 import android.text.Editable;
30 import android.text.TextWatcher;
36 * Dialog to edit the text of a given or new quick response
57 public static EditQuickResponseDialog newInstance(String text, argument
62 args.putString(QUICK_RESPONSE_STRING, text);
110 final String text = mQuickResponseEditText.getText().toString();
112 values.put(UIProvider.QuickResponseColumns.TEXT, 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/UnifiedEmail/src/com/android/mail/photomanager/
H A DMemInfoReader.java30 private static boolean matchText(byte[] buffer, int index, String text) { argument
31 int N = text.length();
36 if (buffer[index + i] != text.charAt(i)) {
/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/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
H A DToastService.java51 if (intent.hasExtra("text")) {
52 final String text = intent.getStringExtra("text");
56 Toast.makeText(ToastService.this, text, Toast.LENGTH_LONG).show();
57 Log.v(TAG, "toast " + text);
63 public static PendingIntent getPendingIntent(Context context, String text) { argument
66 toastIntent.setAction(ACTION_TOAST + ":" + text); // one per toast message
67 toastIntent.putExtra("text", text);
/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();

Completed in 480 milliseconds

1234567