/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | RomkanFullKatakana.java | 143 /** 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 D | RomkanHalfKatakana.java | 147 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 D | EmbeddedSearchBoxEditListenerCompat.java | 28 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 D | CarListItemViewHolder.java | 33 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 D | FolderSpan.java | 18 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 D | BluetoothOppLauncherActivity.java | 141 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 D | ViewHelper.java | 23 * 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 D | TextHighlighter.java | 20 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 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/Email/src/com/android/email/activity/setup/ |
H A D | EditQuickResponseDialog.java | 29 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 D | PhoneNumberPreference.java | 21 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 D | ResizingTextEditText.java | 28 * 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 D | ResizingTextTextView.java | 28 * 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 D | ExpandableTextView.java | 88 // 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 D | OnScreenHint.java | 95 * 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 D | IntegrationTestUtils.java | 138 * 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 D | FormatUtilsTests.java | 57 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 D | TextUtilitiesTests.java | 28 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 D | State.java | 31 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 D | FramedTextButton.java | 56 public void setText(String text) { argument 57 mText = text;
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | StringTexture.java | 24 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 D | AddAdapter.java | 50 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 D | TintedDrawableSpan.java | 23 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 D | OnScreenHint.java | 98 * 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 D | AccessibilityUtil.java | 22 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
|