Searched refs:text (Results 276 - 300 of 1920) sorted by relevance

<<11121314151617181920>>

/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DCandidatesViewManager.java168 TextView text = (TextView)mViewLongPressDialog.findViewById(R.id.candidate_longpress_dialog_text);
169 text.setText(word.candidate);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsIcuTest.java18 import android.icu.text.AlphabeticIndex;
19 import android.icu.text.AlphabeticIndex.ImmutableIndex;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
H A DKitchenSinkActivity.java72 OnClickMenuEntry(String text, ClickHandler clickHandler) { argument
73 mText = text;
112 FragmentMenuEntry(String text, Class<T> clazz) { argument
113 mText = text;
158 <T extends Fragment> void add(String text, Class<T> clazz) {
159 add(new FragmentMenuEntry(text, clazz));
161 void add(String text, ClickHandler onClick) {
162 add(new OnClickMenuEntry(text, onClick));
/packages/apps/Contacts/src/com/android/contacts/util/
H A DDateUtils.java20 import android.text.format.DateFormat;
22 import java.text.ParsePosition;
23 import java.text.SimpleDateFormat;
169 final java.text.DateFormat outFormat;
203 public static java.text.DateFormat getLocalizedDateFormatWithoutYear(Context context) {
205 java.text.DateFormat.LONG)).toPattern();
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DAlbumLabelMaker.java26 import android.text.TextPaint;
27 import android.text.TextUtils;
123 int x, int y, String text, int lengthLimit, TextPaint p) {
126 text = TextUtils.ellipsize(
127 text, p, lengthLimit, TextUtils.TruncateAt.END).toString();
128 canvas.drawText(text, x, y - p.getFontMetricsInt().ascent, p);
122 drawText(Canvas canvas, int x, int y, String text, int lengthLimit, TextPaint p) argument
/packages/apps/Settings/src/com/android/settings/
H A DRestrictedListPreference.java157 CheckedTextView text = (CheckedTextView) root.findViewById(R.id.text1);
160 text.setEnabled(false);
161 text.setChecked(false);
165 text.setChecked(position == mSelectedIndex);
167 if (!text.isEnabled()) {
168 text.setEnabled(true);
H A DCredentialStorage.java38 import android.text.Editable;
39 import android.text.TextUtils;
40 import android.text.TextWatcher;
488 CharSequence text;
490 text = getResources().getText(R.string.credentials_unlock_hint);
492 text = getResources().getText(R.string.credentials_wrong_password);
494 text = getResources().getText(R.string.credentials_reset_warning);
496 text = getString(R.string.credentials_reset_warning_plural, mRetriesRemaining);
499 ((TextView) view.findViewById(R.id.hint)).setText(text);
/packages/apps/Settings/src/com/android/settings/support/
H A DSupportDisclaimerDialogFragment.java26 import android.text.Annotation;
27 import android.text.Spannable;
28 import android.text.Spanned;
29 import android.text.TextPaint;
30 import android.text.TextUtils;
31 import android.text.style.URLSpan;
121 * Removes the underlines of {@link android.text.style.URLSpan}s.
199 * @param msg The text to turn into a link
200 * @param parent The dialog the text is in
201 * @return A CharSequence containing the original text conten
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartGridView.java26 import android.text.Layout;
27 import android.text.StaticLayout;
28 import android.text.TextPaint;
165 private Layout makeLabel(CharSequence text) { argument
173 return new StaticLayout(text, paint,
174 (int) Math.ceil(Layout.getDesiredWidth(text, paint)),
/packages/apps/TV/src/com/android/tv/menu/
H A DBaseCardView.java25 import android.text.TextUtils;
141 * Sets text of this card view.
159 * Sets text of this card view.
161 public void setText(String text) { argument
162 if (!TextUtils.equals(text, mTextString)) {
163 mTextString = text;
167 mTextViewFocused.setText(text);
170 mTextView.setText(text);
192 * Enables or disables text view of this card view.
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
H A DSpannableStringUtilsTests.java21 import android.text.style.SuggestionSpan;
22 import android.text.style.URLSpan;
23 import android.text.SpannableString;
24 import android.text.SpannableStringBuilder;
25 import android.text.Spanned;
26 import android.text.SpannedString;
91 // text: " a bcd efg hij "
114 // text: ""
125 // text: "a"
136 // text
[all...]
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
H A DTelecomUtils.java37 import android.text.TextUtils;
38 import android.text.format.DateUtils;
280 String text;
285 text = context.getString(R.string.phone_label_with_info, label, durationString);
287 text = durationString;
289 text = (String) label;
291 text = "";
296 text = context.getString(R.string.phone_label_with_info, label, state);
298 text = state;
301 return text;
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java21 import android.text.TextUtils;
43 import java.text.SimpleDateFormat;
68 /** Index of the plain text version of the message body */
90 * Gets both the plain text and HTML versions of the message body.
119 * @param useSmartReply whether or not quoted text is appended to a reply/forward
167 // Simplified case for no multipart - just emit text and be done.
260 // switch to output stream for base64 text output
355 * Write the body text.
358 * US-ASCII text, but handles all formats even when non-ascii chars are involved. A small
363 * @param bodyText Plain text an
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DExportDialog.java26 import android.text.Editable;
27 import android.text.TextWatcher;
74 Watcher(EditText text) { argument
75 mEditText = text;
200 private void textChanged(EditText text) { argument
207 if (text.getId() == R.id.editableWidth) {
224 } else if (text.getId() == R.id.editableHeight) {
/packages/apps/Nfc/src/com/android/nfc/
H A DBeamShareActivity.java142 void tryText(String text) { argument
143 if (URLUtil.isValidUrl(text)) {
144 Uri parsedUri = Uri.parse(text);
147 mNdefMessage = new NdefMessage(NdefRecord.createTextRecord(null, text));
174 if (DBG) Log.d(TAG, "Found text in ClipData.");
183 final CharSequence text = intent.getCharSequenceExtra(Intent.EXTRA_TEXT);
187 } else if (text != null) {
189 tryText(text.toString());
205 if (DBG) Log.d(TAG, "Found text in ACTION_SEND_MULTIPLE intent.");
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothPairingDialogFragment.java24 import android.text.Editable;
25 import android.text.InputFilter;
26 import android.text.InputFilter.LengthFilter;
27 import android.text.InputType;
28 import android.text.TextUtils;
29 import android.text.TextWatcher;
191 * Helper method to return the text of the pin entry field - this exists primarily to help us
192 * simulate having existing text when the dialog is recreated, for example after a screen
240 EditText pairingView = (EditText) view.findViewById(R.id.text);
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlDocument.java35 * text, toXHTML for printing out XHTML text and toString() which prints out in
168 public static Text createText(String text) { argument
169 return createText(text, null);
176 public static Text createText(String text, String original) { argument
177 return new UnescapedText(text, original);
200 public static CDATA createCDATA(String text) { argument
201 return new CDATA(text);
350 * Gets the plain, unescaped text.
356 String text
446 protected final String text; field in class:HtmlDocument.UnescapedText
465 private String text; field in class:HtmlDocument.EscapedText
484 CDATA(String text) argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapbMessageMime.java20 import java.text.SimpleDateFormat;
27 import android.text.util.Rfc822Token;
28 import android.text.util.Rfc822Tokenizer;
37 public String mContentType = null; /* The mime type, e.g. text/plain */
46 * jpeg data or the text.getBytes("utf-8") */
94 the below use of UTF-8 is not allowed, Base64 should be used for text. */
99 String text = new String(mData,"UTF-8");
100 if(text.getBytes().length == text.getBytes("UTF-8").length){
106 text
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppLauncherActivity.java133 Log.w(TAG,"Error trying to do set text...File not created!");
262 * Convert the plain text to HTML
265 + " content=\"text/html; charset=UTF-8\"/></head><body>");
266 // Escape any inadvertent HTML in the text message
267 String text = escapeCharacterToDisplay(shareContent.toString());
277 Matcher m = pattern.matcher(text);
345 * @param text Text to be displayed using WebView.
348 private static String escapeCharacterToDisplay(String text) { argument
350 Matcher match = pattern.matcher(text);
357 out.append(text
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapActivity.java46 import android.text.InputFilter;
47 import android.text.TextWatcher;
48 import android.text.InputFilter.LengthFilter;
161 mKeyView = (EditText)mView.findViewById(R.id.text);
277 public void afterTextChanged(android.text.Editable s) {
/packages/apps/Car/libs/car-stream-lib/src/com/android/car/stream/
H A DStreamCard.java23 import java.text.SimpleDateFormat;
60 /** Primary text of the stream card */
62 /** Secondary text of the stream card */
243 * Set the primary text of this Stream Card.
245 public Builder setPrimaryText(CharSequence text) { argument
246 this.primaryText = text;
251 * Set the secondary text of this Stream Card.
253 public Builder setSecondaryText(CharSequence text) { argument
254 this.secondaryText = text;
/packages/apps/DevCamera/src/com/android/devcamera/
H A DPreviewOverlay.java188 String text = "NOT IN CAF";
191 text = "CAF SCAN";
195 text = "CAF FOCUSED";
199 text = "CAF UNFOCUSED";
204 canvas.drawText(text, x2, y2 - mLens * 0.25f * previewW - 7f, mPaint);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
H A DAppsSearchContainerLayout.java25 import android.text.Selection;
26 import android.text.Spannable;
27 import android.text.SpannableString;
28 import android.text.SpannableStringBuilder;
29 import android.text.method.TextKeyListener;
155 // Determine if the key event was actual text, if so, focus the search bar and then dispatch
/packages/apps/Messaging/src/com/android/messaging/util/
H A DDates.java20 import android.text.format.DateUtils;
21 import android.text.format.Time;
27 import java.text.SimpleDateFormat;
103 if (android.text.format.DateFormat.is24HourFormat(context)) {
117 if (android.text.format.DateFormat.is24HourFormat(context)) {
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/
H A DGrantPermissionsWatchViewHandler.java15 import android.text.SpannableStringBuilder;
16 import android.text.Spanned;
17 import android.text.style.ImageSpan;
18 import android.text.style.TextAppearanceSpan;
19 import android.text.TextUtils;

Completed in 5554 milliseconds

<<11121314151617181920>>