/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | AccountWithDataSet.java | 20 import android.text.TextUtils; 40 private static final String emptyToNull(String text) { argument 41 return TextUtils.isEmpty(text) ? null : text;
|
/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/DeskClock/src/com/android/deskclock/ |
H A D | StopwatchTextController.java | 24 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 25 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 26 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
|
H A D | AlarmUtils.java | 22 import android.text.format.DateFormat; 23 import android.text.format.DateUtils; 97 final String text = formatElapsedTimeUntilAlarm(context, alarmTimeDelta); 98 Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG); 105 final String text = formatElapsedTimeUntilAlarm( 107 SnackbarManager.show(Snackbar.make(snackbarAnchor, text, Snackbar.LENGTH_SHORT)); 108 snackbarAnchor.announceForAccessibility(text);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeySpecParser.java | 38 * - Label reference represented by (!text/label_name), see {@link KeyboardTextsSet}. 39 * - String resource reference represented by (!text/resource_name), see {@link KeyboardTextsSet}. 79 private static String parseEscape(@Nonnull final String text) { argument 80 if (text.indexOf(BACKSLASH) < 0) { 81 return text; 83 final int length = text.length(); 86 final char c = text.charAt(pos); 90 sb.append(text.charAt(pos)); 179 // If output text is one code point, it should be treated as a code. 208 // If output text i 223 parseCode(@ullable final String text, final int defaultCode) argument [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | RichInputConnectionAndTextRangeTests.java | 25 import android.text.SpannableString; 26 import android.text.TextUtils; 27 import android.text.style.SuggestionSpan; 68 public MockConnection(final CharSequence text, final int cursorPosition) { argument 76 TextUtils.writeToParcel(text.subSequence(0, cursorPosition), p, 0 /* flags */); 77 TextUtils.writeToParcel(text.subSequence(cursorPosition, text.length()), p, 275 new MockConnection("text" + GREEK_WORD, "text", et)); 302 SpannableString text [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | AccessibilityContextMenuMaker.java | 23 import android.text.Spanned; 24 import android.text.style.ClickableSpan; 118 CharSequence text = textView.getText(); 119 return (text instanceof Spanned) ? (Spanned) text : null;
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ClearDefaultsPreference.java | 30 import android.text.SpannableString; 31 import android.text.TextUtils; 32 import android.text.style.BulletSpan; 138 CharSequence text = null; 148 text = (text == null) ? 149 TextUtils.concat(s, "\n") : TextUtils.concat(text, "\n", s, "\n"); 159 text = (text == null) ? 160 TextUtils.concat(s, "\n") : TextUtils.concat(text, "\ [all...] |
/packages/apps/Tag/src/com/android/apps/tag/record/ |
H A D | RecordUtils.java | 71 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false); 72 text.setText(description); 73 return text; 120 TextView text = (TextView) item.findViewById(R.id.secondary); 121 text.setText(resolveInfo.loadLabel(pm)); 123 text = (TextView) item.findViewById(R.id.primary); 124 text.setText(defaultText);
|
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
H A D | DialerPhoneNumberListAdapter.java | 25 import android.text.BidiFormatter; 26 import android.text.TextDirectionHeuristics; 170 final CharSequence text; 176 text = 184 text = resources.getString(R.string.search_shortcut_create_new_contact); 190 text = resources.getString(R.string.search_shortcut_add_to_contact); 195 text = resources.getString(R.string.search_shortcut_send_sms_message); 200 text = resources.getString(R.string.search_shortcut_make_video_call); 205 text = resources.getString(R.string.search_shortcut_block_number); 213 v.setDisplayName(text); [all...] |
/packages/apps/EmergencyInfo/src/com/android/emergency/preferences/ |
H A D | AutoCompleteEditTextPreference.java | 27 import android.text.TextUtils; 51 * The edit text shown in the dialog. 106 * Saves the text to the {@link SharedPreferences}. 108 * @param text The text to save 110 public void setText(String text) { argument 112 final boolean changed = !TextUtils.equals(mText, text); 114 mText = text; 116 persistString(text); 131 * Gets the text fro 224 String text; field in class:AutoCompleteEditTextPreference.SavedState [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | SubjectAndFolderView.java | 25 import android.support.v4.text.BidiFormatter; 26 import android.text.Layout; 27 import android.text.SpannableStringBuilder; 28 import android.text.Spanned; 29 import android.text.method.LinkMovementMethod; 30 import android.text.style.ReplacementSpan; 40 import com.android.mail.text.ChangeLabelsSpan; 41 import com.android.mail.text.FolderSpan; 46 * The view knows the widest that any of its containing {@link com.android.mail.text.FolderSpan}s 119 public int getSize(Paint paint, CharSequence text, in [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
H A D | WidgetConversationListItemViewBuilder.java | 24 import android.text.Spannable; 25 import android.text.SpannableStringBuilder; 26 import android.text.style.AbsoluteSizeSpan; 27 import android.text.style.CharacterStyle; 28 import android.text.style.ForegroundColorSpan; 29 import android.text.style.StyleSpan; 129 * Add size, color and style to a given text 131 private static SpannableStringBuilder addStyle(CharSequence text, int size, int color) { argument 132 final SpannableStringBuilder builder = new SpannableStringBuilder(text); 134 new AbsoluteSizeSpan(size), 0, text [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | CursorAnchorInfoUtils.java | 25 import android.text.Layout; 26 import android.text.Spannable; 27 import android.text.Spanned; 90 * @param textView the target text view from which {@link CursorAnchorInfoCompatWrapper} is to 107 * @param textView the target text view from which {@link CursorAnchorInfo} is to be extracted. 143 final CharSequence text = textView.getText(); 144 if (text instanceof Spannable) { 145 // Here we assume that the composing text is marked as SPAN_COMPOSING flag. This is not 147 int composingTextStart = text.length(); 149 final Spannable spannable = (Spannable) text; [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
H A D | SimImportActivityTest.java | 143 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); 145 assertTrue(mDevice.hasObject(By.text("Sim One"))); 146 assertTrue(mDevice.hasObject(By.text("Sim Two"))); 147 assertTrue(mDevice.hasObject(By.text("5550103"))); 265 assertTrue(mDevice.wait(Until.hasObject(By.text("Skip Two")), TIMEOUT)); 267 mDevice.findObject(By.text("Skip Two")).click(); 268 mDevice.findObject(By.text("Skip Four")).click(); 269 mDevice.findObject(By.text("Skip Five")).click(); 272 assertTrue(mDevice.hasObject(By.text("Skip Two").checked(false))); 273 assertTrue(mDevice.hasObject(By.text("Ski [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | OpenWnnEngineJAJP.java | 313 * @param text Input text 317 private int setSearchKey(ComposingText text, int maxLen) { argument 318 String input = text.toString(ComposingText.LAYER1); 333 mInputRomaji = text.toString(ComposingText.LAYER0); 378 public int predict(ComposingText text, int minLen, int maxLen) { argument 380 if (text == null) { return 0; } 383 int len = setSearchKey(text, maxLen); 410 public int convert(ComposingText text) { argument 413 if (text [all...] |
H A D | TutorialJAJP.java | 41 import android.text.Layout; 42 import android.text.SpannableStringBuilder; 43 import android.text.StaticLayout; 44 import android.text.Spanned; 45 import android.text.style.ImageSpan; 46 import android.text.style.DynamicDrawableSpan; 89 CharSequence text; field in class:TutorialJAJP.Bubble 99 CharSequence text = context.getResources().getText(description); 100 init(context, inputView, backgroundResource, bx, by, text, guide, false); 115 text 139 chooseSize(PopupWindow pop, View parentView, CharSequence text, TextView tv) 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/Settings/src/com/android/settings/utils/ |
H A D | FileSizeFormatter.java | 23 import android.icu.text.DecimalFormat; 24 import android.icu.text.MeasureFormat; 25 import android.icu.text.NumberFormat; 28 import android.text.BidiFormatter; 29 import android.text.TextUtils; 30 import android.text.format.Formatter; 38 * android.text.format.Formatter to fit this purpose.
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiDialog.java | 156 public void setSubmitButton(CharSequence text) { argument 157 setButton(BUTTON_SUBMIT, text, this); 161 public void setForgetButton(CharSequence text) { argument 162 setButton(BUTTON_FORGET, text, this); 166 public void setCancelButton(CharSequence text) { argument 167 setButton(BUTTON_NEGATIVE, text, this);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationSyncDisabledTipView.java | 23 import android.text.Html; 24 import android.text.Spannable; 25 import android.text.SpannableString; 26 import android.text.Spanned; 27 import android.text.TextUtils; 28 import android.text.style.TextAppearanceSpan; 164 // Create the "Turn on in Account settings." text where "Account settings" appear as
|
H A D | ConversationsInOutboxTipView.java | 25 import android.text.SpannableString; 26 import android.text.Spanned; 27 import android.text.style.TextAppearanceSpan; 133 // Update the display text to reflect current mOutboxCount 138 final SpannableString text = new SpannableString(entireString); 140 text.setSpan(new TextAppearanceSpan(getContext(), R.style.LinksInTipTextAppearance), index, 142 setText(text);
|
/packages/inputmethods/LatinIME/tools/make-keyboard-text/res/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardTextsTable.tmpl | 25 * This file is generated by tools/make-keyboard-text. The base template file is 26 * tools/make-keyboard-text/res/src/com/android/inputmethod/keyboard/internal/ 29 * This file must be updated when any text resources in keyboard layout files have been changed. 30 * These text resources are referred as "!text/<resource_name>" in keyboard XML definitions, 32 * tools/make-keyboard-text/res/values-<locale>/donottranslate-more-keys.xml 36 * $ mmm packages/inputmethods/LatinIME/tools/make-keyboard-text 37 * $ make-keyboard-text -java packages/inputmethods/LatinIME/java 55 throw new RuntimeException("Unknown text name=" + name + " locale=" 59 final String text [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarDebug.java | 53 private static final String KEY_TEXT = "text"; 122 String text; 124 text = mActivity.getString(R.string.calendar_info_events, 127 text = mActivity.getString(R.string.calendar_info_events_dirty, 131 addItem(items, displayName, text); 184 * @param text Text of the item 186 protected void addItem(List<Map<String, String>> items, String title, String text) { argument 189 itemMap.put(KEY_TEXT, text);
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
H A D | ChangeDefaultDialerDialog.java | 30 import android.text.Spannable; 31 import android.text.SpannableString; 32 import android.text.SpannableStringBuilder; 33 import android.text.TextUtils; 34 import android.text.style.ForegroundColorSpan; 35 import android.text.style.StyleSpan;
|