Searched refs:text (Results 176 - 200 of 1350) sorted by relevance

1234567891011>>

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipRegion2Activity.java35 final TextView text = new TextView(this);
36 text.setText(buildText());
37 group.addView(text);
H A DClipRegion3Activity.java35 final TextView text = new TextView(this);
36 text.setText(buildText());
37 group.addView(text);
H A DTextPathActivity.java70 private void drawTextAsPath(Canvas canvas, String text, Path path) { argument
71 int count = text.length();
72 mHugePaint.getTextPath(text, 0, count, 0, 0, path);
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
H A DAutoCompleteTextViewBindingAdapter.java43 public boolean isValid(CharSequence text) {
45 return isValid.isValid(text);
76 boolean isValid(CharSequence text); argument
H A DTextViewBindingAdapter.java27 import android.text.Editable;
28 import android.text.InputFilter;
29 import android.text.InputType;
30 import android.text.Spanned;
31 import android.text.SpannableString;
32 import android.text.SpannableStringBuilder;
33 import android.text.TextWatcher;
34 import android.text.method.DialerKeyListener;
35 import android.text.method.DigitsKeyListener;
36 import android.text
63 setText(TextView view, CharSequence text) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
H A DUtil.java26 * @param text The announcement text
30 final CharSequence text) {
31 // Jelly Bean added support for speaking text verbatim
33 view.announceForAccessibility(text);
52 event.getText().add(text);
28 announceForAccessibility( final View view, AccessibilityManager accessibilityManager, final CharSequence text) argument
/frameworks/support/v4/kitkat/android/support/v4/view/accessibility/
H A DAccessibilityNodeProviderCompatKitKat.java32 public List<Object> findAccessibilityNodeInfosByText(String text, argument
48 String text, int virtualViewId) {
51 bridge.findAccessibilityNodeInfosByText(text, virtualViewId);
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java17 package android.text.format;
22 import android.text.SpannableStringBuilder;
23 import android.text.Spanned;
24 import android.text.SpannedString;
31 import java.text.SimpleDateFormat;
42 * appropriately-localized {@link java.text.DateFormat} instances, suitable
44 * of format strings, see {@link java.text.SimpleDateFormat}.
56 * <p>See {@link java.text.SimpleDateFormat} for more documentation
192 java.text.DateFormat natural =
193 java.text
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
H A DMIMEContainer.java71 else if (mContentType.startsWith("text/")) {
112 for (String text : encoding) {
113 if (text.equalsIgnoreCase("quoted-printable")) {
117 else if (text.equalsIgnoreCase("base64")) {
256 StringBuilder text = new StringBuilder();
264 return text.toString();
271 return text.toString();
276 text.append(unescape(line.substring(line.length() - 1), in.getLineNumber()));
279 text.append(unescape(line, in.getLineNumber()));
283 text
309 unescape(String text, int line) argument
[all...]
/frameworks/support/v4/java/android/support/v4/text/
H A DBidiFormatter.java17 package android.support.v4.text;
23 import static android.support.v4.text.TextDirectionHeuristicsCompat.FIRSTSTRONG_LTR;
26 * Utility class for formatting text for display in a potentially opposite-directionality context
28 * directionality of the text can be either estimated or passed in when known. Provides the
32 * When text in one language is mixed into a document in another, opposite-directionality language,
34 * and the text surrounding it may be displayed incorrectly unless the inserted string is explicitly
35 * separated from the surrounding text in a "wrapper" that:
45 * separate opposite-direction text that happens to follow it in-line (even if separated by
47 * happen there, but only with more opposite-direction text, not a number. One approach is to
49 * direction text i
519 private final String text; field in class:BidiFormatter.DirectionalityEstimator
552 DirectionalityEstimator(String text, boolean isHtml) argument
[all...]
H A DTextDirectionHeuristicsCompat.java17 package android.support.v4.text;
33 public static final android.support.v4.text.TextDirectionHeuristicCompat LTR =
39 public static final android.support.v4.text.TextDirectionHeuristicCompat RTL =
47 public static final android.support.v4.text.TextDirectionHeuristicCompat FIRSTSTRONG_LTR =
55 public static final android.support.v4.text.TextDirectionHeuristicCompat FIRSTSTRONG_RTL =
59 * If the text contains any strong right to left non-format character, determines that the
62 public static final android.support.v4.text.TextDirectionHeuristicCompat ANYRTL_LTR =
68 public static final android.support.v4.text.TextDirectionHeuristicCompat LOCALE =
107 * Computes the text direction based on an algorithm. Subclasses implement
109 * direction from the text alon
[all...]
/frameworks/base/core/java/android/text/method/
H A DBaseKeyListener.java17 package android.text.method;
24 import android.text.*;
25 import android.text.method.TextKeyListener.Capitalize;
26 import android.text.style.ReplacementSpan;
31 import java.text.BreakIterator;
39 * Provides a basic foundation for entering and editing text.
90 private static int adjustReplacementSpan(CharSequence text, int offset, boolean moveToStart) { argument
91 if (!(text instanceof Spanned)) {
95 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset, ReplacementSpan.class);
97 final int start = ((Spanned) text)
108 getOffsetForBackspaceKey(CharSequence text, int offset) argument
282 getOffsetForForwardDeleteKey(CharSequence text, int offset, Paint paint) argument
[all...]
H A DReplacementTransformationMethod.java17 package android.text.method;
20 import android.text.Editable;
21 import android.text.GetChars;
22 import android.text.Spannable;
23 import android.text.Spanned;
24 import android.text.SpannedString;
25 import android.text.TextUtils;
57 * Short circuit for faster display if the text will never change.
61 * Check whether the text does not contain any of the
78 * The text contain
[all...]
/frameworks/base/tools/aapt/
H A Dpseudolocalize.cpp40 String16 Pseudolocalizer::text(const String16& text) { argument
44 const size_t length= text.size();
45 const char16_t* str = text.string();
72 String16 chunk = String16(text, size, lastpos);
74 chunk = mImpl->text(chunk);
237 String16 PseudoMethodAccent::text(const String16& source) function in class:PseudoMethodAccent
334 // This is a pure text that should be pseudolocalized
357 String16 PseudoMethodBidi::text(const String16& source) function in class:PseudoMethodBidi
/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DStaticLayout_Delegate.java1 package android.text;
11 import android.icu.text.BreakIterator;
13 import android.text.Primitive.PrimitiveType;
14 import android.text.StaticLayout.LineBreaks;
21 import javax.swing.text.Segment;
24 * Delegate that provides implementation for native methods in {@link android.text.StaticLayout}
75 /*package*/ static void nSetupParagraph(long nativeBuilder, char[] text, int length, argument
84 builder.mText = text;
176 private static List<Primitive> computePrimitives(@NonNull char[] text, @NonNull float[] widths, argument
184 char c = text[
212 measureText(long nativePaint, char []text, int index, int count, float[] widths, int bidiFlags) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DSimpleCursorAdapter.java150 String text = cursor.getString(from[i]);
151 if (text == null) {
152 text = "";
156 setViewText((TextView) v, text);
158 setViewImage((ImageView) v, text);
217 * Called by bindView() to set the text for a TextView but only if
224 * @param v TextView to receive text
225 * @param text the text to be set for the TextView
227 public void setViewText(TextView v, String text) { argument
[all...]
H A DSimpleCursorTreeAdapter.java224 String text = cursor.getString(from[i]);
225 if (text == null) {
226 text = "";
229 setViewText((TextView) v, text);
231 setViewImage((ImageView) v, text);
284 * Called by bindView() to set the text for a TextView but only if
291 * @param v TextView to receive text
292 * @param text the text to be set for the TextView
294 public void setViewText(TextView v, String text) { argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/method/
H A DEditorState.java17 package android.text.method;
21 import android.text.Editable;
22 import android.text.Spannable;
23 import android.text.SpannableString;
24 import android.text.style.ReplacementSpan;
63 * A mocked {@link android.text.style.ReplacementSpan} for testing purpose.
66 public int getSize(Paint paint, CharSequence text, int start, int end, argument
70 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument
/frameworks/base/tools/layoutlib/rename_font/
H A Dbuild_font_single.py137 font.family = namerecord.text.strip()
139 font.style = namerecord.text.strip()
141 font.ends_in_regular = ends_in_regular(namerecord.text)
142 font.fullname = namerecord.text.strip()
144 font.version = get_version(namerecord.text)
162 namerecord.text = font.family
164 namerecord.text = font.fullname
/frameworks/support/v4/java/android/support/v4/widget/
H A DSimpleCursorAdapter.java134 String text = cursor.getString(from[i]);
135 if (text == null) {
136 text = "";
140 setViewText((TextView) v, text);
142 setViewImage((ImageView) v, text);
201 * Called by bindView() to set the text for a TextView but only if
208 * @param v TextView to receive text
209 * @param text the text to be set for the TextView
211 public void setViewText(TextView v, String text) { argument
[all...]
/frameworks/base/core/java/android/text/
H A DBoringLayout.java17 package android.text;
22 import android.text.style.ParagraphStyle;
25 * A BoringLayout is a very simple Layout implementation for text that
29 * the text meets the criteria.
30 * <p>This class is used by widgets to control text layout. You should not need
60 * Returns a BoringLayout for the specified text, potentially reusing
82 * Returns a BoringLayout for the specified text, potentially reusing
200 * full text, not the ellipsized form.
218 public static Metrics isBoring(CharSequence text, argument
220 return isBoring(text, pain
227 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir) argument
238 isBoring(CharSequence text, TextPaint paint, Metrics metrics) argument
248 isBoring(CharSequence text, TextPaint paint, TextDirectionHeuristic textDir, Metrics metrics) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java24 import android.text.GraphicsOperations;
25 import android.text.SpannableString;
26 import android.text.SpannedString;
27 import android.text.TextUtils;
40 * Path, text, Bitmap), and a paint (to describe the colors and styles for the
1639 * Draw the text, with origin at (x,y), using the specified paint. The
1642 * @param text The text to be drawn
1643 * @param x The x-coordinate of the origin of the text being drawn
1644 * @param y The y-coordinate of the baseline of the text bein
1647 drawText(@onNull char[] text, int index, int count, float x, float y, @NonNull Paint paint) argument
1666 drawText(@onNull String text, float x, float y, @NonNull Paint paint) argument
1682 drawText(@onNull String text, int start, int end, float x, float y, @NonNull Paint paint) argument
1704 drawText(@onNull CharSequence text, int start, int end, float x, float y, @NonNull Paint paint) argument
1748 drawTextRun(@onNull char[] text, int index, int count, int contextIndex, int contextCount, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1802 drawTextRun(@onNull CharSequence text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, @NonNull Paint paint) argument
1850 drawPosText(@onNull char[] text, int index, int count, @NonNull @Size(multiple=2) float[] pos, @NonNull Paint paint) argument
1874 drawPosText(@onNull String text, @NonNull @Size(multiple=2) float[] pos, @NonNull Paint paint) argument
1892 drawTextOnPath(@onNull char[] text, int index, int count, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
1915 drawTextOnPath(@onNull String text, @NonNull Path path, float hOffset, float vOffset, @NonNull Paint paint) argument
2118 native_drawText(long nativeCanvas, char[] text, int index, int count, float x, float y, int flags, long nativePaint, long nativeTypeface) argument
2122 native_drawText(long nativeCanvas, String text, int start, int end, float x, float y, int flags, long nativePaint, long nativeTypeface) argument
2127 native_drawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument
2131 native_drawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long nativePaint, long nativeTypeface) argument
2135 native_drawTextOnPath(long nativeCanvas, char[] text, int index, int count, long nativePath, float hOffset, float vOffset, int bidiFlags, long nativePaint, long nativeTypeface) argument
2141 native_drawTextOnPath(long nativeCanvas, String text, long nativePath, float hOffset, float vOffset, int flags, long nativePaint, long nativeTypeface) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java250 public void drawText(char[] text, int index, int count, float x, float y, Paint paint) { argument
254 public void drawText(String text, float x, float y, Paint paint) { argument
258 public void drawText(String text, int start, int end, float x, float y, Paint paint) { argument
262 public void drawText(CharSequence text, int start, int end, float x, float y, Paint paint) { argument
266 public void drawTextRun(char[] text, int index, int count, int contextIndex, int contextCount, argument
271 public void drawTextRun(CharSequence text, int start, int end, int contextStart, int contextEnd, argument
276 public void drawPosText(char[] text, int index, int count, float[] pos, Paint paint) { argument
280 public void drawPosText(String text, float[] pos, Paint paint) { argument
284 public void drawTextOnPath(char[] text, int index, int count, Path path, float hOffset, argument
289 public void drawTextOnPath(String text, Pat argument
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFastXmlSerializer.java183 public void cdsect(String text) throws IOException, IllegalArgumentException, argument
188 public void comment(String text) throws IOException, IllegalArgumentException, argument
193 public void docdecl(String text) throws IOException, IllegalArgumentException, argument
224 public void entityRef(String text) throws IOException, IllegalArgumentException, argument
289 public void ignorableWhitespace(String text) throws IOException, IllegalArgumentException, argument
294 public void processingInstruction(String text) throws IOException, IllegalArgumentException, argument
375 public XmlSerializer text(char[] buf, int start, int len) throws IOException, method in class:FastXmlSerializer
388 public XmlSerializer text(String text) throws IOException, IllegalArgumentException, argument
394 escapeAndAppendString(text);
[all...]
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
H A DSerialChat.java108 String text = v.getText().toString();
109 Log.d(TAG, "write: " + text);
110 byte[] bytes = text.getBytes();
142 String text = new String(buffer, 0, ret);
143 Log.d(TAG, "chat: " + text);
144 m.obj = text;

Completed in 952 milliseconds

1234567891011>>