/frameworks/base/core/java/android/text/style/ |
H A D | TabStopSpan.java | 17 package android.text.style;
|
H A D | LeadingMarginSpan.java | 17 package android.text.style; 22 import android.text.Layout; 23 import android.text.ParcelableSpan; 24 import android.text.TextUtils; 54 * is to the right of the text, otherwise it is to the left. 58 * @param text the text 67 CharSequence text, int start, int end, 73 * the implementor to specify the number of lines of text to which 79 * Returns the number of lines of text t 64 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument 137 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument [all...] |
H A D | BulletSpan.java | 17 package android.text.style; 22 import android.text.Layout; 23 import android.text.ParcelableSpan; 24 import android.text.Spanned; 25 import android.text.TextUtils; 79 CharSequence text, int start, int end, 81 if (((Spanned) text).getSpanStart(this) == start) { 77 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout l) argument
|
H A D | DrawableMarginSpan.java | 17 package android.text.style; 23 import android.text.Spanned; 24 import android.text.Layout; 44 CharSequence text, int start, int end, 46 int st = ((Spanned) text).getSpanStart(this); 61 public void chooseHeight(CharSequence text, int start, int end, argument 64 if (end == ((Spanned) text).getSpanEnd(this)) { 42 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | QuoteSpan.java | 17 package android.text.style; 22 import android.text.Layout; 23 import android.text.ParcelableSpan; 24 import android.text.TextUtils; 68 CharSequence text, int start, int end, 66 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | CharacterStyle.java | 17 package android.text.style; 19 import android.text.TextPaint; 22 * The classes that affect character-level text formatting extend this
|
H A D | MetricAffectingSpan.java | 17 package android.text.style; 20 import android.text.TextPaint; 23 * The classes that affect character-level text formatting in a way that
|
/frameworks/base/core/java/android/widget/ |
H A D | TextSwitcher.java | 30 * {@link #setText(CharSequence)} is called, TextSwitcher animates the current text 31 * out and animates the new text in. 71 * Sets the text of the next view and switches to the next view. This can 72 * be used to animate the old text out and animate the next text in. 74 * @param text the new text to display 76 public void setText(CharSequence text) { argument 78 t.setText(text); 83 * Sets the text o 88 setCurrentText(CharSequence text) argument [all...] |
H A D | DialerFilter.java | 21 import android.text.Editable; 22 import android.text.InputFilter; 23 import android.text.Selection; 24 import android.text.Spannable; 25 import android.text.Spanned; 26 import android.text.TextWatcher; 27 import android.text.method.DialerKeyListener; 28 import android.text.method.KeyListener; 29 import android.text.method.TextKeyListener; 334 public void append(String text) { argument [all...] |
/frameworks/base/core/java/android/text/util/ |
H A D | Linkify.java | 17 package android.text.util; 19 import android.text.method.LinkMovementMethod; 20 import android.text.method.MovementMethod; 21 import android.text.style.URLSpan; 22 import android.text.Spannable; 23 import android.text.SpannableString; 24 import android.text.Spanned; 39 * Linkify take a piece of text and a regular expression and turns all of the 40 * regex matches in the text into clickable links. This is particularly 46 * will have the scheme prepended to the matched text whe 198 addLinks(Spannable text, int mask) argument 252 addLinks(TextView text, int mask) argument 302 addLinks(TextView text, Pattern pattern, String scheme) argument 321 addLinks(TextView text, Pattern p, String scheme, MatchFilter matchFilter, TransformFilter transformFilter) argument 342 addLinks(Spannable text, Pattern pattern, String scheme) argument 388 applyLink(String url, int start, int end, Spannable text) argument [all...] |
H A D | Rfc822Tokenizer.java | 17 package android.text.util; 45 public static void tokenize(CharSequence text, Collection<Rfc822Token> out) { argument 51 int cursor = text.length(); 54 char c = text.charAt(i); 59 while (i < cursor && text.charAt(i) == ' ') { 82 c = text.charAt(i); 89 name.append(text.charAt(i + 1)); 102 c = text.charAt(i); 117 comment.append(text.charAt(i + 1)); 129 c = text 171 tokenize(CharSequence text) argument 210 findTokenStart(CharSequence text, int cursor) argument 241 findTokenEnd(CharSequence text, int cursor) argument 311 terminateToken(CharSequence text) argument [all...] |
/frameworks/base/core/java/android/text/ |
H A D | Html.java | 17 package android.text; 32 import android.text.style.AbsoluteSizeSpan; 33 import android.text.style.AlignmentSpan; 34 import android.text.style.CharacterStyle; 35 import android.text.style.ForegroundColorSpan; 36 import android.text.style.ImageSpan; 37 import android.text.style.ParagraphStyle; 38 import android.text.style.QuoteSpan; 39 import android.text.style.RelativeSizeSpan; 40 import android.text 145 toHtml(Spanned text) argument 151 withinHtml(StringBuilder out, Spanned text) argument 187 withinDiv(StringBuilder out, Spanned text, int start, int end) argument 206 withinBlockquote(StringBuilder out, Spanned text, int start, int end) argument 230 withinParagraph(StringBuilder out, Spanned text, int start, int end, int nl, boolean last) argument 358 withinStyle(StringBuilder out, Spanned text, int start, int end) argument 544 handleP(SpannableStringBuilder text) argument 561 handleBr(SpannableStringBuilder text) argument 565 getLast(Spanned text, Class kind) argument 579 start(SpannableStringBuilder text, Object mark) argument 584 end(SpannableStringBuilder text, Class kind, Object repl) argument 599 startImg(SpannableStringBuilder text, Attributes attributes, Html.ImageGetter img) argument 621 startFont(SpannableStringBuilder text, Attributes attributes) argument 630 endFont(SpannableStringBuilder text) argument 668 startA(SpannableStringBuilder text, Attributes attributes) argument 675 endA(SpannableStringBuilder text) argument 692 endHeader(SpannableStringBuilder text) argument [all...] |
H A D | Styled.java | 16 package android.text; 20 import android.text.style.CharacterStyle; 21 import android.text.style.MetricAffectingSpan; 22 import android.text.style.ReplacementSpan; 25 * This class provides static methods for drawing and measuring styled text, 26 * like {@link android.text.Spanned} object with 27 * {@link android.text.style.ReplacementSpan}. 34 * Draws and/or measures a uniform run of text on a single line. No span of 39 * <p>The x position is the leading edge of the text. In a right-to-left 40 * paragraph, this will be to the right of the text t 50 drawUniformRun(Canvas canvas, Spanned text, int start, int end, int dir, boolean runIsRtl, float x, int top, int y, int bottom, Paint.FontMetricsInt fmi, TextPaint paint, TextPaint workPaint, boolean needWidth) argument 186 getTextWidths(TextPaint paint, TextPaint workPaint, Spanned text, int start, int end, float[] widths, Paint.FontMetricsInt fmi) argument 237 drawDirectionalRun(Canvas canvas, CharSequence text, int start, int end, int dir, boolean runIsRtl, float x, int top, int y, int bottom, Paint.FontMetricsInt fmi, TextPaint paint, TextPaint workPaint, boolean needWidth) argument 334 drawText(Canvas canvas, CharSequence text, int start, int end, int dir, boolean runIsRtl, float x, int top, int y, int bottom, TextPaint paint, TextPaint workPaint, boolean needWidth) argument 392 drawText(Canvas canvas, CharSequence text, int start, int end, int direction, float x, int top, int y, int bottom, TextPaint paint, TextPaint workPaint, boolean needWidth) argument 426 measureText(TextPaint paint, TextPaint workPaint, CharSequence text, int start, int end, Paint.FontMetricsInt fmi) argument [all...] |
H A D | ClipboardManager.java | 17 package android.text; 27 * Interface to the clipboard service, for placing and retrieving text in 56 * Returns the text on the clipboard. It will eventually be possible 57 * to store types other than text too, in which case this will return 58 * null if the type cannot be coerced to text. 69 * Sets the contents of the clipboard to the specified text. 71 public void setText(CharSequence text) { argument 73 getService().setClipboardText(text); 79 * Returns true if the clipboard contains text; false otherwise.
|
/frameworks/base/core/java/android/pim/ |
H A D | ICalendar.java | 397 public String line; // TODO: just point to original text 406 // the text. 407 private static String normalizeText(String text) { argument 409 text = text.replaceAll("\r\n", "\n"); 410 text = text.replaceAll("\r", "\n"); 415 text = text.replaceAll("\n ", ""); 417 return text; 428 parseComponentImpl(Component component, String text) argument 612 parseCalendar(String text) argument 628 parseEvent(String text) argument 643 parseComponent(String text) argument 656 parseComponent(Component component, String text) argument [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CompletionInfo.java | 21 import android.text.TextUtils; 24 * Information about a single text completion that an editor has reported to 36 * Create a simple completion with just text, no label. 38 public CompletionInfo(long id, int index, CharSequence text) { argument 41 mText = text; 46 * Create a full completion with both text and label. 48 public CompletionInfo(long id, int index, CharSequence text, CharSequence label) { argument 51 mText = text; 79 * Return the actual text associated with this completion. This is the 80 * real text tha [all...] |
H A D | InputConnection.java | 26 * is used to perform such things as reading text around the cursor, 27 * committing text to the text box, and sending raw key events to the application. 36 * with the text. If not set, you will receive only the raw text. If 37 * set, you may receive a complex CharSequence of both text and style 44 * like to receive updates when the extracted text changes. 49 * Get <var>n</var> characters of text before the current cursor position. 53 * respond with the text (it is given a couple seconds to return). 56 * @param n The expected length of the text 177 setComposingText(CharSequence text, int newCursorPosition) argument 218 commitText(CharSequence text, int newCursorPosition) argument 232 commitCompletion(CompletionInfo text) argument [all...] |
H A D | InputConnectionWrapper.java | 70 public boolean setComposingText(CharSequence text, int newCursorPosition) { argument 71 return mTarget.setComposingText(text, newCursorPosition); 82 public boolean commitText(CharSequence text, int newCursorPosition) { argument 83 return mTarget.commitText(text, newCursorPosition); 86 public boolean commitCompletion(CompletionInfo text) { argument 87 return mTarget.commitCompletion(text);
|
/frameworks/base/core/java/com/google/android/util/ |
H A D | SmileyParser.java | 20 import android.text.Spannable; 21 import android.text.SpannableStringBuilder; 22 import android.text.style.ImageSpan; 27 * Parses a text message typed by the user looking for smileys. 33 public SmileyParser(String text, SmileyResources res) { argument 34 super(text, 40 false // me text 51 * Retrieves the parsed text as a spannable string object.
|
H A D | AbstractMessageParser.java | 29 * Logic for parsing a text message typed by the user looking for smileys, 33 * It constructs an array, which breaks the text up into its 69 private String text; field in class:AbstractMessageParser 84 * /me text and music 86 * @param text the text to parse 88 public AbstractMessageParser(String text) { argument 89 this(text, true, true, true, true, true, true); 93 * Create a message parser, specifying the kinds of text to parse 95 * @param text th 98 AbstractMessageParser(String text, boolean parseSmilies, boolean parseAcronyms, boolean parseFormatting, boolean parseUrls, boolean parseMusic, boolean parseMeText) argument 195 tokenForUrl(String url, String text) argument 464 addURLToken(String url, String text) argument 684 protected String text; field in class:AbstractMessageParser.Token 686 Token(Type type, String text) argument 724 Html(String text, String html) argument 750 trimLeadingWhitespace(String text) argument 759 trimTrailingWhitespace(String text) argument 792 Link(String url, String text) argument 818 Video(String docid, String text) argument 829 matchURL(String url, String text) argument 877 YouTubeVideo(String docid, String text) argument 888 matchURL(String url, String text) argument 964 Photo(String user, String album, String photo, String text) argument 979 matchURL(String url, String text) argument 1035 FlickrPhoto(String user, String photo, String grouping, String groupingId, String text) argument 1066 matchURL(String url, String text) argument 1141 Smiley(String text) argument 1159 Acronym(String text, String value) argument 1341 private String text; field in class:AbstractMessageParser.TrieNode 1345 TrieNode(String text) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | Ticker.java | 22 import android.text.StaticLayout; 23 import android.text.Layout.Alignment; 24 import android.text.TextPaint; 25 import android.text.TextUtils; 55 CharSequence text; field in class:Ticker.Segment 76 /** returns null if there is no more text */ 78 if (this.current > this.text.length()) { 81 CharSequence substr = this.text.subSequence(this.current, this.text.length()); 91 " text 129 Segment(StatusBarNotification n, Drawable icon, CharSequence text) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | SpannableTest.java | 17 package android.text; 22 import android.text.Spannable; 26 protected abstract Spannable newSpannableWithText(String text); argument
|
/frameworks/base/tools/localize/ |
H A D | file_utils.cpp | 101 string text; local 104 err = Perforce::GetFile(filename, versionString, &text, printOnFailure); 105 if (err != 0 || text == "") { 109 ValuesFile* result = ValuesFile::ParseString(filename, text, configuration, version, 123 string text; local 135 text.append(buf, amt); 140 if (text == "") { 144 ValuesFile* result = ValuesFile::ParseString(filename, text, configuration, version, 161 write_to_file(const string& filename, const string& text) argument 171 ssize_t amt = write(fd, text [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | Signature.java | 44 * Create Signature from a text representation previously returned by 47 public Signature(String text) { argument 48 final int N = text.length()/2; 51 char c = text.charAt(i*2); 54 c = text.charAt(i*2 + 1); 62 * Encode the Signature as ASCII text. 69 * Encode the Signature as ASCII text in to an existing array. 82 char[] text = existingArray == null || N2 > existingArray.length 87 text[j*2] = (char)(d >= 10 ? ('a' + d - 10) : ('0' + d)); 89 text[ [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | EditableInputConnection.java | 20 import android.text.Editable; 21 import android.text.method.KeyListener; 73 public boolean commitCompletion(CompletionInfo text) { argument 74 if (DEBUG) Log.v(TAG, "commitCompletion " + text); 76 mTextView.onCommitCompletion(text); 114 public boolean commitText(CharSequence text, int newCursorPosition) { argument 116 return super.commitText(text, newCursorPosition); 120 boolean success = super.commitText(text, newCursorPosition);
|