Searched refs:text (Results 26 - 50 of 1920) sorted by relevance

1234567891011>>

/packages/apps/UnifiedEmail/src/com/android/mail/text/
H A DLinkStyleSpan.java18 package com.android.mail.text;
20 import android.text.TextPaint;
21 import android.text.style.ClickableSpan;
25 * A span that makes text look like a link. It uses link color and
29 * saves and restores its text since TextView can only save
30 * and restore {@link android.text.ParcelableSpan}s which
52 * Makes the text in the link color and not underlined.
H A DEmailAddressSpan.java18 package com.android.mail.text;
20 import android.text.TextPaint;
21 import android.text.style.URLSpan;
44 * Makes the text in the link color and not underlined.
/packages/apps/Contacts/src/com/android/contacts/
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/Contacts/src/com/android/contacts/util/
H A DPhonebookCollatorFactory.java19 import java.text.Collator;
/packages/apps/Dialer/java/com/android/contacts/common/
H A DClipboardUtils.java22 import android.text.TextUtils;
30 * Copy a text to clipboard.
34 * @param text Text to copy.
38 Context context, CharSequence label, CharSequence text, boolean showToast) {
39 if (TextUtils.isEmpty(text)) {
45 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text);
37 copyText( Context context, CharSequence label, CharSequence text, boolean showToast) argument
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiDetailPreference.java22 import android.text.TextUtils;
29 * A Preference to be used with the Wifi Network Detail Fragment that allows a summary text to be
40 public void setDetailText(String text) { argument
41 if (TextUtils.equals(mDetailText, text)) return;
42 mDetailText = text;
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStyleUtils.java20 import android.text.Spannable;
21 import android.text.Spanned;
22 import android.text.style.URLSpan;
26 import com.android.mail.text.LinkStyleSpan;
33 * Removes any {@link android.text.style.URLSpan}s from the text view and replaces them with a
43 * Removes any {@link android.text.style.URLSpan}s from the Spannable and replaces them with a
60 * Removes any {@link android.text.style.URLSpan}s from the text view and replaces them with a
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DBadgeSpan.java24 import android.text.Spanned;
25 import android.text.TextPaint;
26 import android.text.style.CharacterStyle;
27 import android.text.style.ReplacementSpan;
31 * A badge will be some piece of text with a colored background and rounded
39 * horizontal padding surrounding the text inside the background color.
63 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument
66 // The magic set of measurements to vertically center text within a colored region!
69 return measureWidth(paint, text, start, end);
72 private int measureWidth(Paint paint, CharSequence text, in argument
77 draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DTextRange.java19 import android.text.Spanned;
20 import android.text.style.SuggestionSpan;
25 * Represents a range of text, relative to the current cursor position.
57 final Spanned text = (Spanned)mTextAtCursor;
75 final SuggestionSpan[] spans = text.getSpans(mWordAtCursorStartIndex - 1,
86 int spanStart = text.getSpanStart(span);
87 int spanEnd = text.getSpanEnd(span);
92 spanStart = Math.min(spanStart, text.getSpanStart(spans[i]));
93 spanEnd = Math.max(spanEnd, text.getSpanEnd(spans[i]));
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
H A DState.java31 public State(String text) { argument
32 this(text, StateView.DEFAULT);
35 public State(String text, int type) { argument
36 mText = text;
59 void setText(String text) { argument
60 mText = text;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DHtmlToSpannedParser.java18 import static android.text.Spanned.SPAN_EXCLUSIVE_EXCLUSIVE;
24 import android.text.Html;
25 import android.text.SpannableStringBuilder;
26 import android.text.Spanned;
27 import android.text.style.ClickableSpan;
28 import android.text.style.URLSpan;
33 * Parses HTML text using {@link Html} and sets URL links to be handled by {@link WebActivity}
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
H A DICalendarTest.java33 String text = "BEGIN:DUMMY\n" +
44 assertEquals(text, component.toString());
49 String text = "BEGIN:DUMMY\n" +
64 assertEquals(text, parent.toString());
69 String text = "BEGIN:DUMMY\n" +
75 ICalendar.Component component = ICalendar.parseComponent(text);
125 "FOO;PARAM=text-not-allowed\"before-quote:value");
155 String text = "BEGIN:VEVENT\nEND:VEVENT\n";
156 ICalendar.Component event = ICalendar.parseEvent(text);
165 String text
[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;
61 final Context context, final String text, @Nonnull final Locale locale) {
62 if (TextUtils.isEmpty(text) || OBJ_FLAG_AUTO_CORRECTION == null) {
63 return text;
65 final Spannable spannable = new SpannableString(text);
68 spannable.setSpan(suggestionSpan, 0, text
60 getTextWithAutoCorrectionIndicatorUnderline( final Context context, final String text, @Nonnull final Locale locale) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/format/
H A DSpannedTestUtils.java19 import android.text.Html;
20 import android.text.SpannableString;
21 import android.text.Spanned;
22 import android.text.TextUtils;
23 import android.text.style.StyleSpan;
29 * Utility class to check the value of spanned text in text views.
33 * Checks that the text contained in the text view matches the given HTML text
[all...]
/packages/apps/Dialer/java/com/android/dialer/contactactions/
H A DIntentModule.java33 private final @StringRes int text; field in class:IntentModule
36 public IntentModule(Context context, Intent intent, @StringRes int text, @DrawableRes int image) { argument
39 this.text = text;
45 return text;
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java23 import android.text.style.DynamicDrawableSpan;
41 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument
45 return super.getSize(paint, text, start, end, fm);
49 public void draw(Canvas canvas, CharSequence text, argument
56 super.draw(canvas, text, start, end, x, top, y, bottom, paint);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DPlainTextEditText.java25 * We want the EditText used in Conversations to convert text to plain text on paste. This
28 * plain text.
41 // We can use this to know where the text position was originally before we pasted
46 // if we want to get the text from the clipboard ourselves and then modify it.
49 CharSequence text = getText();
60 if (pasteStringLength == 1 && text.charAt(startIndex) == OBJECT_UNICODE) {
66 StringBuilder sb = new StringBuilder(text);
69 text = sb.toString();
76 setText(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);
64 String text = context.getString(resId);
68 toastIntent.putExtra("text", text);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerTextController.java21 import static android.text.format.DateUtils.HOUR_IN_MILLIS;
22 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
23 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DTextRecord.java48 private TextRecord(String languageCode, String text) { argument
50 mText = Preconditions.checkNotNull(text);
55 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false);
56 text.setText(mText);
57 return text;
70 * Returns the ISO/IANA language code associated with this text element.
79 // TODO: deal with text fields which span multiple NdefRecords
94 * if (Bit_7 == 0): The text is encoded in UTF-8
95 * if (Bit_7 == 1): The text is encoded in UTF16
107 String text
129 newTextRecord(String text, Locale locale) argument
133 newTextRecord(String text, Locale locale, boolean encodeInUtf8) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java95 * Encoded word is used to replace a 'text' token in any Subject or
148 // dot-atom = [CFWS] dot-atom-text [CFWS]
181 * Shortcut method that encodes the specified text into an encoded-word if
182 * the text has to be encoded.
184 * @param text
185 * text to encode.
187 * whether the encoded-word is to be used to replace a text token
191 * @return the specified text if encoding is not necessary or an encoded
194 public static String encodeIfNecessary(String text, Usage usage, argument
196 if (hasToBeEncoded(text, usedCharacter
216 hasToBeEncoded(String text, int usedCharacters) argument
268 encodeEncodedWord(String text, Usage usage) argument
291 encodeEncodedWord(String text, Usage usage, int usedCharacters) argument
320 encodeEncodedWord(String text, Usage usage, int usedCharacters, Charset charset, Encoding encoding) argument
512 encodeB(String prefix, String text, int usedCharacters, Charset charset, byte[] bytes) argument
540 encodeQ(String prefix, String text, Usage usage, int usedCharacters, Charset charset, byte[] bytes) argument
584 encode(String text, Charset charset) argument
591 determineCharset(String text) argument
[all...]
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/
H A DEmergencyEditTextPreference.java22 import android.text.TextUtils;
61 String text = getText();
62 return TextUtils.isEmpty(text) ? super.getSummary() : text;
75 String text = (String) newValue;
76 setSummary(text);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DBaseSuggestionView.java23 import android.text.TextUtils;
79 * Sets the first text line.
81 protected void setText1(CharSequence text) { argument
82 mText1.setText(text);
86 * Sets the second text line.
88 protected void setText2(CharSequence text) { argument
89 mText2.setText(text);
90 if (TextUtils.isEmpty(text)) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/
H A DZonePickerTest.java21 import android.text.Spanned;
22 import android.text.style.TtsSpan;
66 final CharSequence text = text2.getText();
67 assertThat(text).isInstanceOf(Spanned.class);
68 final TtsSpan[] spans = ((Spanned) text).getSpans(0, text.length(), TtsSpan.class);
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DHistoryItem.java19 import android.text.Spannable;
20 import android.text.format.DateUtils;

Completed in 4839 milliseconds

1234567891011>>