/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/glrenderer/ |
H A D | StringTexture.java | 24 import android.text.TextPaint; 25 import android.text.TextUtils; 37 private StringTexture(String text, TextPaint paint, argument 40 mText = text; 55 String text, float textSize, int color) { 56 return newInstance(text, getDefaultPaint(textSize, color)); 60 String text, float textSize, int color, 67 text = TextUtils.ellipsize( 68 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString(); 70 return newInstance(text, pain 54 newInstance( String text, float textSize, int color) argument 59 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument 73 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; 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/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/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | State.java | 30 public State(String text) { argument 31 this(text, StateView.DEFAULT); 34 public State(String text, int type) { argument 35 mText = text; 55 void setText(String text) { argument 56 mText = text;
|
/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/ContactsCommon/src/com/android/contacts/common/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, Strin argument 52 apply(CharSequence text, String prefix) argument [all...] |
H A D | FormatUtils.java | 20 import android.text.SpannableString; 21 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, String prefix) argument [all...] |
/packages/apps/Mms/src/com/android/mms/ |
H A D | MmsConfig.java | 296 String text = null; 298 text = parser.getText(); 303 text); 309 mMmsEnabled = "true".equalsIgnoreCase(text) ? 1 : 0; 311 mTransIdEnabled = "true".equalsIgnoreCase(text); 313 mNotifyWapMMSC = "true".equalsIgnoreCase(text); 315 mAliasEnabled = "true".equalsIgnoreCase(text); 317 mAllowAttachAudio = "true".equalsIgnoreCase(text); 319 mEnableMultipartSMS = "true".equalsIgnoreCase(text); 321 mEnableSlideDuration = "true".equalsIgnoreCase(text); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | StringUtils.java | 19 import android.text.TextUtils; 33 public static int codePointCount(final String text) { argument 34 if (TextUtils.isEmpty(text)) return 0; 35 return text.codePointCount(0, text.length()); 134 public static String[] parseCsvString(final String text) { argument 135 final int size = text.length(); 139 if (codePointCount(text) == 1) { 140 return text.codePointAt(0) == Constants.CSV_SEPARATOR ? null : new String[] { text }; 173 getCapitalizationType(final String text) argument 209 isIdenticalAfterUpcase(final String text) argument 220 isIdenticalAfterDowncase(final String text) argument 231 isIdenticalAfterCapitalizeEachWord(final String text, final String separators) argument 251 capitalizeEachWord(final String text, final String separators, final Locale locale) argument 286 lastPartLooksLikeURL(final CharSequence text) argument [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 | CalculatorDisplay.java | 21 import android.text.Editable; 22 import android.text.InputType; 23 import android.text.Spanned; 24 import android.text.method.NumberKeyListener; 86 EditText text = (EditText) getChildAt(i); 87 text.setBackground(null); 88 text.setEditableFactory(factory); 89 text.setKeyListener(calculatorKeyListener); 90 text.setSingleLine(); 124 EditText text 128 setText(CharSequence text, Scroll dir) argument [all...] |
H A D | Logic.java | 21 import android.text.TextUtils; 120 String text = mHistory.getText(); 121 if (MARKER_EVALUATE_ON_RESUME.equals(text)) { 123 text = ""; 125 text = mHistory.getText(); 126 evaluateAndShowResult(text, CalculatorDisplay.Scroll.NONE); 130 text, scroll ? CalculatorDisplay.Scroll.UP : CalculatorDisplay.Scroll.NONE); 150 String text = getText(); 152 (!mResult.equals(text) || 154 mDisplay.getSelectionStart() != text 178 evaluateAndShowResult(String text, Scroll scroll) argument 324 isOperator(String text) argument [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;
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | PhonebookCollatorFactory.java | 19 import java.text.Collator;
|
H A D | HtmlUtils.java | 21 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/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/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | ClipboardUtils.java | 22 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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
H A D | SuggestionSpanUtils.java | 20 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; 57 final Context context, final String text) { 58 if (TextUtils.isEmpty(text) || OBJ_FLAG_AUTO_CORRECTION == null) { 59 return text; 61 final Spannable spannable = new SpannableString(text); 65 spannable.setSpan(suggestionSpan, 0, text 56 getTextWithAutoCorrectionIndicatorUnderline( final Context context, final String text) 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeySpecParser.java | 22 import android.text.TextUtils; 38 * - Label reference should be a string representation of label (!text/label_name) 39 * - String resource reference should be a string representation of resource (!text/resource_name) 57 private static final String PREFIX_TEXT = "!text/"; 80 private static String parseEscape(final String text) { argument 81 if (text.indexOf(Constants.CSV_ESCAPE) < 0) { 82 return text; 84 final int length = text.length(); 87 final char c = text.charAt(pos); 91 sb.append(text 193 parseCode(final String text, final KeyboardCodesSet codesSet, final int defCode) argument 373 searchTextNameEnd(final String text, final int start) argument 439 toUpperCaseOfStringForLocale(final String text, final boolean needsToUpperCase, final Locale locale) argument [all...] |