/packages/apps/Contacts/src/com/android/contacts/format/ |
H A D | PrefixHighlighter.java | 19 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 D | FormatUtils.java | 22 import android.text.SpannableString; 23 import android.text.style.StyleSpan; 28 * Assorted utility methods related to text formatting in Contacts. 99 * @param flags Bitmask for configuring behavior of the span. See {@link android.text.Spanned}. 107 SpannableString text = new SpannableString(input); 108 text.setSpan(new StyleSpan(style), start, end, flags); 109 return text; 113 public static void copyToCharArrayBuffer(String text, CharArrayBuffer buffer) { argument 114 if (text != null) { 116 if (data == null || data.length < text 141 indexOfWordPrefix(CharSequence text, char[] prefix) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionFormatter.java | 19 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/Gallery2/src/com/android/gallery3d/ui/ |
H A D | StringTexture.java | 24 import android.text.TextPaint; 25 import android.text.TextUtils; 36 private StringTexture(String text, TextPaint paint, argument 39 mText = text; 54 String text, float textSize, int color) { 55 return newInstance(text, getDefaultPaint(textSize, color)); 59 String text, float textSize, int color, 65 text = TextUtils.ellipsize( 66 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString(); 67 return newInstance(text, pain 53 newInstance( String text, float textSize, int color) argument 58 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument 70 newInstance(String text, TextPaint paint) argument [all...] |
H A D | MultiLineTexture.java | 21 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/Email/tests/src/com/android/emailcommon/utility/ |
H A D | TextUtilitiesTests.java | 26 import android.text.SpannableStringBuilder; 27 import android.text.style.BackgroundColorSpan; 136 * We pass in HTML text in which an ampersand (@) is two chars ahead of the correct end position 138 * correct position. HTML text not containing an ampersand should generate a calculated end of 140 * @param text the HTML text to test 142 private void findTagEnd(String text, String tag) { argument 143 int calculatedEnd = TextUtilities.findTagEnd(text , tag, 0); 144 int knownEnd = text.indexOf('@') + 2; 157 findTagEnd("<tag foo=\"bar\">some text [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiConfigUiBase.java | 36 public void setSubmitButton(CharSequence text); argument 37 public void setForgetButton(CharSequence text); argument 38 public void setCancelButton(CharSequence text); argument
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | LetterConverter.java | 31 * 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/Mms/src/com/android/mms/ |
H A D | MmsConfig.java | 286 String text = null; 288 text = parser.getText(); 293 text); 299 mMmsEnabled = "true".equalsIgnoreCase(text) ? 1 : 0; 301 mTransIdEnabled = "true".equalsIgnoreCase(text); 303 mNotifyWapMMSC = "true".equalsIgnoreCase(text); 305 mAliasEnabled = "true".equalsIgnoreCase(text); 307 mAllowAttachAudio = "true".equalsIgnoreCase(text); 309 mEnableMultipartSMS = "true".equalsIgnoreCase(text); 311 mEnableSlideDuration = "true".equalsIgnoreCase(text); [all...] |
/packages/apps/Email/src/com/android/email/ |
H A D | EmailAddressValidator.java | 28 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 D | EmailHtmlUtil.java | 31 * @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/apps/Calculator/src/com/android/calculator2/ |
H A D | CalculatorEditable.java | 19 import android.text.SpannableStringBuilder; 20 import android.text.Editable; 62 char text = delta.charAt(0); 65 if (text == '.') { 78 if (text == Logic.MINUS && prevChar == Logic.MINUS) { 83 if (Logic.isOperator(text)) { 85 (text != Logic.MINUS || prevChar == '+')) { 92 if (start == 0 && Logic.isOperator(text) && text != Logic.MINUS) {
|
H A D | Logic.java | 21 import android.text.TextUtils; 114 String text = mHistory.getText(); 115 if (MARKER_EVALUATE_ON_RESUME.equals(text)) { 117 text = ""; 119 text = mHistory.getText(); 120 evaluateAndShowResult(text, CalculatorDisplay.Scroll.NONE); 124 text, scroll ? CalculatorDisplay.Scroll.UP : CalculatorDisplay.Scroll.NONE); 144 String text = getText(); 146 (!mResult.equals(text) || 148 mDisplay.getSelectionStart() != text 172 evaluateAndShowResult(String text, Scroll scroll) argument 292 isOperator(String text) argument [all...] |
H A D | CalculatorDisplay.java | 21 import android.text.Editable; 22 import android.text.Spanned; 23 import android.text.method.NumberKeyListener; 88 EditText text = (EditText) getChildAt(i); 89 text.setBackgroundDrawable(null); 90 text.setEditableFactory(factory); 91 text.setKeyListener(calculatorKeyListener); 92 text.setSingleLine(); 126 EditText text = (EditText) getCurrentView(); 127 return text 130 setText(CharSequence text, Scroll dir) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/format/ |
H A D | SpannedTestUtils.java | 19 import android.text.Html; 20 import android.text.Spanned; 21 import android.text.TextUtils; 27 * Utility class to check the value of spanned text in text views. 31 * Checks that the text contained in the text view matches the given HTML text. 33 * @param expectedHtmlText the expected text to be in the text vie [all...] |
/packages/apps/Tag/src/com/android/apps/tag/record/ |
H A D | UnknownRecord.java | 31 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false); 32 text.setText(R.string.tag_unknown); 33 return text;
|
H A D | TextRecord.java | 33 import android.text.TextUtils; 57 private TextRecord(String languageCode, String text) { argument 59 mText = Preconditions.checkNotNull(text); 64 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false); 65 text.setText(mText); 66 return text; 79 * Returns the ISO/IANA language code associated with this text element. 88 // TODO: deal with text fields which span multiple NdefRecords 103 * if (Bit_7 == 0): The text is encoded in UTF-8 104 * if (Bit_7 == 1): The text i 138 newTextRecord(String text, Locale locale) argument 142 newTextRecord(String text, Locale locale, boolean encodeInUtf8) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | TextWithHighlighting.java | 19 import android.text.Spanned; 22 * A Spanned that highlights a part of text by dimming another part of that text.
|
/packages/experimental/UiAutomation/service/src/com/android/testing/uiautomation/ |
H A D | Provider.aidl | 32 boolean setTextFieldByLabel(String label, String text); 33 boolean sendText(String text);
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | ICalendarTest.java | 33 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/apps/Mms/src/com/android/mms/ui/ |
H A D | RecipientsEditor.java | 27 import android.text.Annotation; 28 import android.text.Editable; 29 import android.text.Layout; 30 import android.text.Spannable; 31 import android.text.SpannableString; 32 import android.text.SpannableStringBuilder; 33 import android.text.Spanned; 34 import android.text.TextUtils; 35 import android.text.TextWatcher; 65 * back and edits that part of the text, i 342 findTokenStart(CharSequence text, int cursor) argument 361 findTokenEnd(CharSequence text, int cursor) argument 382 terminateToken(CharSequence text) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | HtmlUtils.java | 24 import android.text.Html; 25 import android.text.Html.ImageGetter; 26 import android.text.Html.TagHandler; 27 import android.text.SpannableStringBuilder; 28 import android.text.Spanned; 29 import android.text.TextUtils; 30 import android.text.style.ImageSpan; 31 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/Email/emailcommon/src/com/android/emailcommon/utility/ |
H A D | ConversionUtilities.java | 25 import android.text.TextUtils; 38 * Helper function to append text to a StringBuffer, creating it if necessary. 58 * Copy body text (plain and/or HTML) from MimeMessage to provider Message 73 String text = MimeUtility.getTextFromPart(viewable); 79 // Deploy text as marked by the various tags 80 boolean isHtml = "text/html".equalsIgnoreCase(viewable.getMimeType()); 89 sbHtmlReply = appendTextPart(sbHtmlReply, text); 91 sbTextReply = appendTextPart(sbTextReply, text); 101 sbIntroText = appendTextPart(sbIntroText, text); 108 sbHtml = appendTextPart(sbHtml, text); [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | ViewHelper.java | 23 * A helper class for handling text views in the dialogs. 42 void setText(int viewId, String text) { argument 43 if (text == null) return; 45 if (v != null) v.setText(text);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | SuggestionSpanUtils.java | 24 import android.text.Spannable; 25 import android.text.SpannableString; 26 import android.text.Spanned; 27 import android.text.TextUtils; 39 "android.text.style.SUGGESTION_PICKED"; 46 .getClass("android.text.style.SuggestionSpan"); 72 Context context, CharSequence text) { 73 if (TextUtils.isEmpty(text) || CONSTRUCTOR_SuggestionSpan == null 75 return text; 77 final Spannable spannable = text instanceo 71 getTextWithAutoCorrectionIndicatorUnderline( Context context, CharSequence text) argument [all...] |