Searched defs:text (Results 26 - 50 of 201) sorted by relevance

123456789

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DRomkanFullKatakana.java143 /** Max length of the target text */
155 public boolean convert(ComposingText text) { argument
156 return convert(text, mRomkanTable);
162 * @param text The input/output text
166 public static boolean convert(ComposingText text, HashMap<String, String> table) { argument
167 int cursor = text.getCursor(1);
177 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i);
196 text.replaceStrSegment(ComposingText.LAYER1, out, MAX_LENGTH - start);
203 text
[all...]
H A DRomkanHalfKatakana.java147 public boolean convert(ComposingText text) { argument
148 return RomkanFullKatakana.convert(text, mRomkanTable);
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/compat/
H A DEmbeddedSearchBoxEditListenerCompat.java28 public void onSearch(String text) { argument
29 mListener.onSearch(text);
33 public void onEdit(String text) { argument
34 mListener.onEdit(text);
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DCarListItemViewHolder.java33 public final TextView text; field in class:CarListItemViewHolder
44 text = (TextView) v.findViewById(R.id.text);
/packages/apps/UnifiedEmail/src/com/android/mail/text/
H A DFolderSpan.java18 package com.android.mail.text;
22 import android.support.v4.text.BidiFormatter;
23 import android.text.TextPaint;
24 import android.text.TextUtils;
25 import android.text.style.ReplacementSpan;
68 public int getSize(Paint p, CharSequence text, int start, int end, Paint.FontMetricsInt fm) { argument
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppLauncherActivity.java141 Log.w(TAG,"Error trying to do set text...File not created!");
263 * Convert the plain text to HTML
266 + " content=\"text/html; charset=UTF-8\"/></head><body>");
267 // Escape any inadvertent HTML in the text message
268 String text = escapeCharacterToDisplay(shareContent.toString());
278 Matcher m = pattern.matcher(text);
346 * @param text Text to be displayed using WebView.
349 private static String escapeCharacterToDisplay(String text) { argument
351 Matcher match = pattern.matcher(text);
358 out.append(text
[all...]
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DViewHelper.java23 * A helper class for handling text views in the dialogs.
43 void setText(int viewId, String text) { argument
44 if (text == null) return;
46 if (v != null) v.setText(text);
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
H A DTextHighlighter.java20 import android.text.SpannableString;
21 import android.text.style.CharacterStyle;
22 import android.text.style.ForegroundColorSpan;
23 import android.text.style.StyleSpan;
29 * Highlights the text in a text field.
45 * Sets the text on the given text view, highlighting the word that matches the given prefix.
47 * @param view the view on which to set the text
48 * @param text th
51 setPrefixText(TextView view, String text, String prefix) argument
65 applyMaskingHighlight(SpannableString text, int start, int end) argument
76 applyPrefixHighlight(CharSequence text, String prefix) argument
[all...]
H A DFormatUtils.java20 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/Email/src/com/android/email/activity/setup/
H A DEditQuickResponseDialog.java29 import android.text.Editable;
30 import android.text.TextWatcher;
36 * Dialog to edit the text of a given or new quick response
57 public static EditQuickResponseDialog newInstance(String text, argument
62 args.putString(QUICK_RESPONSE_STRING, text);
110 final String text = mQuickResponseEditText.getText().toString();
112 values.put(UIProvider.QuickResponseColumns.TEXT, text);
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
H A DPhoneNumberPreference.java21 import android.support.v4.text.BidiFormatter;
22 import android.support.v4.text.TextDirectionHeuristicsCompat;
23 import android.text.InputType;
24 import android.text.TextUtils;
109 public void setText(final String text) { argument
110 super.setText(text);
/packages/apps/PhoneCommon/src/com/android/phone/common/widget/
H A DResizingTextEditText.java28 * EditText which resizes dynamically with respect to text length.
44 protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { argument
45 super.onTextChanged(text, start, lengthBefore, lengthAfter);
H A DResizingTextTextView.java28 * TextView which resizes dynamically with respect to text length.
44 protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { argument
45 super.onTextChanged(text, start, lengthBefore, lengthAfter);
/packages/apps/Calendar/src/com/android/calendar/
H A DExpandableTextView.java88 // If the text fits in collapsed mode, we are done.
93 // Doesn't fit in collapsed mode. Collapse text view as needed. Show
111 public void setText(String text) { argument
116 String trimmedText = text.trim();
/packages/apps/Camera2/src/com/android/camera/
H A DOnScreenHint.java95 * Make a standard hint that just contains a text view.
102 * @param text The text to show. Can be formatted text.
105 public static OnScreenHint makeText(Activity activity, CharSequence text) { argument
112 tv.setText(text);
120 * Update the text in a OnScreenHint that was previously created using one
122 * @param s The new text for the OnScreenHint.
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
H A DIntegrationTestUtils.java138 * Gets all {@link TextView} objects whose {@link TextView#getText()} contains the given text as
141 public List<TextView> getTextViewsWithString(final Activity activity, final String text) argument
143 return getTextViewsWithString(getRootView(activity), text);
147 * Gets all {@link TextView} objects whose {@link TextView#getText()} contains the given text as
150 public List<TextView> getTextViewsWithString(final View rootView, final String text) argument
157 if (textView.getText().toString().contains(text)) {
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
H A DFormatUtilsTests.java57 private void checkCharArrayBufferToString(String text) { argument
59 FormatUtils.copyToCharArrayBuffer(text, buffer);
60 assertEquals(text, FormatUtils.charArrayBufferToString(buffer));
105 * Checks that getting the index of a word prefix in the given text returns the expected index.
107 * @param text the text in which to look for the word
111 private void checkIndexOfWordPrefix(String text, String wordPrefix, int expectedIndex) { argument
112 assertEquals(expectedIndex, FormatUtils.indexOfWordPrefix(text, wordPrefix));
/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DTextUtilitiesTests.java28 import android.text.SpannableStringBuilder;
29 import android.text.style.BackgroundColorSpan;
139 * We pass in HTML text in which an ampersand (@) is two chars ahead of the correct end position
141 * correct position. HTML text not containing an ampersand should generate a calculated end of
143 * @param text the HTML text to test
145 private void findTagEnd(String text, String tag) { argument
146 int calculatedEnd = TextUtilities.findTagEnd(text , tag, 0);
147 int knownEnd = text.indexOf('@') + 2;
160 findTagEnd("<tag foo=\"bar\">some text
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
H A DState.java31 public State(String text) { argument
32 this(text, StateView.DEFAULT);
35 public State(String text, int type) { argument
36 mText = text;
59 void setText(String text) { argument
60 mText = text;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DFramedTextButton.java56 public void setText(String text) { argument
57 mText = text;
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DStringTexture.java24 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,
66 text = TextUtils.ellipsize(
67 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString();
69 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
72 newInstance(String text, TextPaint paint) argument
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAddAdapter.java50 public final CharSequence text; field in class:AddAdapter.ListItem
55 text = res.getString(textResourceId);
86 textView.setText(item.text);
/packages/apps/Launcher3/src/com/android/launcher3/graphics/
H A DTintedDrawableSpan.java23 import android.text.style.DynamicDrawableSpan;
40 public int getSize(Paint paint, CharSequence text, int start, int end, FontMetricsInt fm) { argument
44 return super.getSize(paint, text, start, end, fm);
48 public void draw(Canvas canvas, CharSequence text, argument
55 super.draw(canvas, text, start, end, x, top, y, bottom, paint);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DOnScreenHint.java98 * Make a standard hint that just contains a text view.
103 * @param text The text to show. Can be formatted text.
106 public static OnScreenHint makeText(Context context, CharSequence text) { argument
114 tv.setText(text);
122 * Update the text in a OnScreenHint that was previously created using one
124 * @param s The new text for the OnScreenHint.
/packages/apps/Messaging/src/com/android/messaging/util/
H A DAccessibilityUtil.java22 import android.text.TextUtils;
57 final String text = Factory.get().getApplicationContext().getResources().getString(
59 announceForAccessibilityCompat(view, accessibilityManager, text);
64 final CharSequence text) {
75 // Jelly Bean added support for speaking text verbatim
82 event.getText().add(text);
62 announceForAccessibilityCompat( final View view, @Nullable AccessibilityManager accessibilityManager, final CharSequence text) argument

Completed in 1649 milliseconds

123456789