Searched refs:text (Results 226 - 250 of 1350) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/text/
H A DBidiFormatter.java17 package android.text;
22 import static android.text.TextDirectionHeuristics.FIRSTSTRONG_LTR;
27 * Utility class for formatting text for display in a potentially opposite-directionality context
29 * directionality of the text can be either estimated or passed in when known.
32 * you can use the support library's {@link android.support.v4.text.BidiFormatter} class.
37 * When text in one language is mixed into a document in another, opposite-directionality language,
38 * e.g. when an English business name is embedded in some Hebrew text, both the inserted string
39 * and the text surrounding it may be displayed incorrectly unless the inserted string is explicitly
40 * separated from the surrounding text in a "wrapper" that:
50 * separate opposite-direction text tha
575 private final CharSequence text; field in class:BidiFormatter.DirectionalityEstimator
608 DirectionalityEstimator(CharSequence text, boolean isHtml) argument
[all...]
H A DInputType.java17 package android.text;
19 import android.text.TextUtils;
22 * Bit definitions for an integer defining the basic content type of text
46 * of text being given. Currently supported classes are:
70 * is not rich, it can not process and show things like candidate text nor
71 * retrieve the current text, so the input method will need to run in a
84 * Class for normal text. This class supports the following flags (only
127 * text that should have auto-correction applied to it. Without this flag,
140 * Flag for {@link #TYPE_CLASS_TEXT}: the text editor (which means
141 * the application) is performing auto-completion of the text bein
[all...]
/frameworks/base/core/java/android/text/method/
H A DArrowKeyMovementMethod.java17 package android.text.method;
20 import android.text.Layout;
21 import android.text.Selection;
22 import android.text.Spannable;
311 public void initialize(TextView widget, Spannable text) { argument
312 Selection.setSelection(text, 0);
316 public void onTakeFocus(TextView view, Spannable text, int dir) { argument
320 Selection.setSelection(text, text.length());
323 Selection.setSelection(text, tex
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java30 import android.text.Layout.Alignment;
31 import android.text.SpannableStringBuilder;
32 import android.text.StaticLayout;
33 import android.text.TextPaint;
58 /** Reusable spannable string builder used for holding text. */
96 CharSequence text = "";
105 text = a.getText(attr);
135 setText(text);
140 final CharSequence text = getContext().getText(resId);
141 setText(text);
144 setText(CharSequence text) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DCarrierText.java31 import android.text.TextUtils;
32 import android.text.method.SingleLineTransformationMethod;
144 // This depends on mPlmn containing the text "Emergency calls only" when the radio
147 // Grab the first subscripton, because they all should contain the emergency text,
157 CharSequence text =
172 text = plmn;
174 text = concatenate(plmn, spn);
178 getContext().getText(R.string.keyguard_missing_sim_message_short), text);
207 // Don't listen and clear out the text when the device isn't a phone.
222 * Top-level function for creating carrier text
230 getCarrierTextForSimState(IccCardConstants.State simState, CharSequence text) argument
[all...]
/frameworks/base/core/java/android/content/pm/
H A DPackageItemInfo.java27 import android.text.BidiFormatter;
28 import android.text.Html;
29 import android.text.TextPaint;
30 import android.text.TextUtils;
32 import android.text.BidiFormatter;
33 import android.text.TextPaint;
34 import android.text.Html;
35 import java.text.Collator;
/frameworks/base/core/java/android/view/
H A DViewStructure.java157 * Set the text that is associated with this view. There is no selection
158 * associated with the text. The text may have style spans to supply additional
161 public abstract void setText(CharSequence text); argument
167 public abstract void setText(CharSequence text, int selectionStart, int selectionEnd); argument
170 * Explicitly set default global style information for text that was previously set with
173 * @param size The size, in pixels, of the text.
182 * {@link #setText(CharSequence)}. This provides the line breaking of the text as it
192 * Set optional hint text associated with this view; this is for example the text tha
[all...]
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java20 import android.text.Editable;
21 import android.text.Selection;
22 import android.text.Spanned;
23 import android.text.TextUtils;
24 import android.text.method.WordIterator;
25 import android.text.style.SpellCheckSpan;
26 import android.text.style.SuggestionSpan;
39 import java.text.BreakIterator;
85 // Parsers on chunk of text, cutting text int
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTextMeasuringTest.java17 package android.text;
19 import android.text.Layout.Alignment;
23 * Tests for text measuring methods of StaticLayout.
H A DTextUtilsTest.java17 package android.text;
25 import android.text.style.StyleSpan;
26 import android.text.util.Rfc822Token;
27 import android.text.util.Rfc822Tokenizer;
137 /** Fail unless text+spans contains a span 'spanName' with the given start and end. */
138 private void checkContains(Spanned text, String[] spans, String spanName, argument
142 assertEquals(start, text.getSpanStart(i));
143 assertEquals(end, text.getSpanEnd(i));
354 CharSequence text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(p);
355 assertNull("null CharSequence should generate null from parcel", text);
[all...]
/frameworks/base/core/tests/coretests/src/android/text/util/
H A DLinkifyTest.java17 package android.text.util;
21 import android.text.method.LinkMovementMethod;
/frameworks/base/libs/hwui/tests/common/scenes/
H A DGlyphStressAnimation.cpp45 std::unique_ptr<uint16_t[]> text = TestUtils::asciiToUtf16( variable
58 canvas.drawText(text.get(), 0, textLength, textLength,
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectParameter.java47 String text = Integer.toString(value)+" "+mUnit;
48 mValueText.setText(text);
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
H A DUiBot.java57 UiObject2 o = find(By.text(expected));
117 public void setDialogText(String text) throws UiObjectNotFoundException { argument
118 findDialogEditText().setText(text);
179 UiSelector selector = new UiSelector().text("Couldn't download");
198 UiSelector selector = new UiSelector().text(label);
209 UiObject2 text = menuItem.findObject(By.text(label));
210 if(text != null) {
/frameworks/opt/chips/src/com/android/ex/chips/
H A DCopyDialog.java19 private static final String ARG_TEXT = "text";
23 public static CopyDialog newInstance(String text) { argument
26 args.putString(ARG_TEXT, text);
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/
H A DVisibleRecipientChip.java83 public void setOriginalText(final String text) { argument
84 mDelegate.setOriginalText(text);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/span/
H A DLinkSpan.java22 import android.text.TextPaint;
23 import android.text.style.ClickableSpan;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DValueParser.java122 String text = IccUtils.adnStringFieldToString(rawValue,
124 item = new Item(id, text);
209 * Retrieves text attribute information from the Text Attribute
312 * Retrieves text from the Text COMPREHENSION-TLV object, and decodes it
323 String text = null;
326 // In case the text length is 0, return a null string.
328 return text;
338 text = GsmAlphabet.gsm7BitPackedToString(rawValue,
341 text = GsmAlphabet.gsm8BitUnpackedToString(rawValue,
344 text
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerTitleStrip.java25 import android.text.TextUtils.TruncateAt;
86 void setSingleLineAllCaps(TextView text); argument
90 public void setSingleLineAllCaps(TextView text) { argument
91 text.setSingleLine();
96 public void setSingleLineAllCaps(TextView text) { argument
97 PagerTitleStripIcs.setSingleLineAllCaps(text);
110 private static void setSingleLineAllCaps(TextView text) { argument
111 IMPL.setSingleLineAllCaps(text);
217 * Set the default text size to a given unit and value.
220 * <p>Example: to set the text siz
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DCreateViewTest.java76 TextView text = new TextView(mContext);
77 text.setText("S");
82 TextView text = new TextView(mContext);
83 text.setText("S");
86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DMultiUserSwitch.java24 import android.text.TextUtils;
155 String text = null;
158 text = mContext.getString(
163 if (!TextUtils.equals(getContentDescription(), text)) {
164 setContentDescription(text);
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZonePickerUtils.java22 import android.text.Spannable;
23 import android.text.Spannable.Factory;
24 import android.text.format.DateUtils;
25 import android.text.format.Time;
26 import android.text.style.ForegroundColorSpan;
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeProviderCompat.java59 String text, int virtualViewId) {
61 compat.findAccessibilityNodeInfosByText(text, virtualViewId);
105 String text, int virtualViewId) {
107 compat.findAccessibilityNodeInfosByText(text, virtualViewId);
228 * Finds {@link AccessibilityNodeInfoCompat}s by text. The match is case insensitive
235 * @param text The searched text.
242 public List<AccessibilityNodeInfoCompat> findAccessibilityNodeInfosByText(String text, argument
/frameworks/rs/
H A DrsScriptC_LibGL.cpp218 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); local
220 rsc->mStateFont.renderText(text, allocSize, x, y);
224 void rsrDrawText(Context *rsc, const char *text, int x, int y) { argument
225 size_t textLen = strlen(text);
226 rsc->mStateFont.renderText(text, textLen, x, y);
248 const char *text = (const char *)rsc->mHal.funcs.allocation.lock1D(rsc, a); local
251 rsc->mStateFont.measureText(text, textLen, &metrics);
256 void rsrMeasureText(Context *rsc, const char *text, argument
258 size_t textLen = strlen(text);
260 rsc->mStateFont.measureText(text, textLe
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmSmsTest.java95 * Multi-part text SMS with septet data.
242 // Valid 160 character 7-bit text.
243 String text = "123456789012345678901234567890123456789012345678901234567890" +
246 GsmAlphabet.TextEncodingDetails ted = SmsMessage.calculateLength(text, false);
253 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text);
257 // Valid 161 character 7-bit text.
258 text = "123456789012345678901234567890123456789012345678901234567890" +
261 ted = SmsMessage.calculateLength(text, false);
268 ArrayList<String> fragments = android.telephony.SmsMessage.fragmentText(text);
270 assertEquals(text, fragment
[all...]

Completed in 1135 milliseconds

1234567891011>>