Searched refs:textView (Results 1 - 25 of 93) sorted by relevance

1234

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
H A DAccessibilityContextMenuMaker.java53 * @param textView target TextView potentially containing links.
55 public void registerWithActivity(TextView textView) { argument
56 if (getSpans(getText(textView)).length == 0) {
57 mActivity.unregisterForContextMenu(textView);
58 textView.setAccessibilityDelegate(null);
59 textView.setClickable(false);
60 textView.setLongClickable(false);
64 mActivity.registerForContextMenu(textView);
65 textView.setOnClickListener(View::showContextMenu);
66 textView
86 populateMenuContent(ContextMenu menu, TextView textView) argument
117 getText(TextView textView) argument
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
H A DTextViewCompatUtils.java35 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView, argument
38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom);
41 CompatUtils.invoke(textView, null, METHOD_setCompoundDrawablesRelativeWithIntrinsicBounds,
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DStyleUtils.java36 public static void stripUnderlinesAndLinkUrls(TextView textView, argument
38 final Spannable spannable = (Spannable) textView.getText();
63 public static void stripUnderlinesAndUrl(TextView textView) { argument
64 stripUnderlinesAndLinkUrls(textView, null /* onClickListener */);
/packages/apps/Dialer/java/com/android/dialer/about/
H A DLicenseActivity.java43 TextView textView = (TextView) findViewById(R.id.license_activity_textview);
49 textView.setText(licenseText);
56 TextView textView = (TextView) findViewById(R.id.license_activity_textview);
57 int firstVisibleLine = textView.getLayout().getLineForVertical(scrollView.getScrollY());
58 int firstVisibleChar = textView.getLayout().getLineStart(firstVisibleLine);
71 TextView textView = (TextView) findViewById(R.id.license_activity_textview);
72 int firstVisibleLine = textView.getLayout().getLineForOffset(firstVisibleChar);
73 int offset = textView.getLayout().getLineTop(firstVisibleLine);
/packages/apps/Contacts/src/com/android/contacts/util/
H A DPhoneNumberFormatter.java40 String countryCode, TextView textView, boolean formatAfterWatcherSet) {
42 mTextView = textView;
71 TextView textView) {
72 setPhoneNumberFormattingTextWatcher(context, textView,
84 Context context, TextView textView, boolean formatAfterWatcherSet) {
86 textView, formatAfterWatcherSet)
39 TextWatcherLoadAsyncTask( String countryCode, TextView textView, boolean formatAfterWatcherSet) argument
70 setPhoneNumberFormattingTextWatcher(Context context, TextView textView) argument
83 setPhoneNumberFormattingTextWatcher( Context context, TextView textView, boolean formatAfterWatcherSet) argument
/packages/apps/Settings/src/com/android/settings/
H A DLinkifyUtils.java49 public static boolean linkify(TextView textView, StringBuilder text, argument
54 textView.setText(text);
60 textView.setText(text);
65 textView.setText(text.toString(), BufferType.SPANNABLE);
66 textView.setMovementMethod(LinkMovementMethod.getInstance());
67 Spannable spannableContent = (Spannable) textView.getText();
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiDetailPreference.java49 TextView textView = ((TextView) view.findViewById(R.id.widget_summary));
50 textView.setText(mDetailText);
51 textView.setPadding(0, 0, 10, 0);
H A DLinkablePreference.java58 TextView textView = (TextView) view.findViewById(android.R.id.title);
59 if (textView == null) {
62 textView.setSingleLine(false);
74 boolean linked = LinkifyUtils.linkify(textView, contentBuilder, mClickListener);
77 Spannable boldSpan = (Spannable) textView.getText();
84 textView.setText(boldSpan);
85 textView.setMovementMethod(new LinkMovementMethod());
/packages/services/Telecomm/src/com/android/server/telecom/
H A DMultiLineTitleEditTextPreference.java68 TextView textView = (TextView) view.findViewById(com.android.internal.R.id.title);
69 if (textView != null) {
70 textView.setSingleLine(false);
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DViewUtil.java95 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { argument
96 final Paint paint = textView.getPaint();
97 final int width = textView.getWidth();
99 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize);
100 float ratio = width / paint.measureText(textView.getText().toString());
102 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX,
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
H A DCopyContactDetailDialog.java58 TextView textView = (TextView) inflater.inflate(R.layout.copy_contact_dialog_view, null,
60 textView.setText(mContactDetail);
63 textView.setContentDescription(vocalizedDisplayName);
64 return textView;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DCursorAnchorInfoUtils.java90 * @param textView the target text view from which {@link CursorAnchorInfoCompatWrapper} is to
98 @Nonnull final TextView textView) {
102 return CursorAnchorInfoCompatWrapper.wrap(extractFromTextViewInternal(textView));
107 * @param textView the target text view from which {@link CursorAnchorInfo} is to be extracted.
113 private static CursorAnchorInfo extractFromTextViewInternal(@Nonnull final TextView textView) { argument
114 final Layout layout = textView.getLayout();
121 final int selectionStart = textView.getSelectionStart();
122 builder.setSelectionRange(selectionStart, textView.getSelectionEnd());
125 final Matrix viewToScreenMatrix = new Matrix(textView.getMatrix());
127 textView
97 extractFromTextView( @onnull final TextView textView) argument
[all...]
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A DFileAdapter.java46 vh.textView = (TextView) convertView.findViewById(R.id.text);
53 vh.textView.setText(mLocations[position].getAbsolutePath());
56 vh.textView.setTextColor(Color.GREEN);
58 vh.textView.setTextColor(Color.GRAY);
75 TextView textView; field in class:FileAdapter.ViewHolder
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
H A DSmsBottomSheetFragment.java94 TextView textView = new TextView(context);
95 textView.setText(text == null ? getString(R.string.call_incoming_message_custom) : text);
97 textView.setPadding(padding, padding, padding, padding);
98 textView.setBackground(background);
99 textView.setTextColor(context.getColor(R.color.blue_grey_100));
100 textView.setTextAppearance(R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large);
104 textView.setLayoutParams(params);
106 textView.setOnClickListener(
115 return textView;
/packages/apps/Dialer/java/com/android/dialer/util/
H A DViewUtil.java74 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { argument
75 final Paint paint = textView.getPaint();
76 final int width = textView.getWidth();
80 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize);
81 float ratio = width / paint.measureText(textView.getText().toString());
83 textView.setTextSize(
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDisplayUtils.java177 public static void setDisplayName(Context context, Contact contactData, TextView textView) { argument
178 if (textView == null) {
181 setDataOrHideIfNone(getDisplayName(context, contactData), textView);
188 public static void setCompanyName(Context context, Contact contactData, TextView textView) { argument
189 if (textView == null) {
192 setDataOrHideIfNone(getCompany(context, contactData), textView);
199 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { argument
200 if (textView == null) {
203 setDataOrHideIfNone(getPhoneticName(context, contactData), textView);
210 public static void setAttribution(Context context, Contact contactData, TextView textView) { argument
221 setDataOrHideIfNone(CharSequence textToDisplay, TextView textView) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DViewPagerTabs.java158 final TextView textView = new TextView(getContext());
159 textView.setText(tabTitle);
160 textView.setBackgroundResource(R.drawable.contact_picker_tab_background_selector);
161 textView.setGravity(Gravity.CENTER);
162 textView.setOnClickListener(new OnClickListener() {
171 textView.setTypeface(textView.getTypeface(), mTextStyle);
174 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize);
177 textView.setTextColor(mTextColor);
179 textView
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DMoreContactUtils.java198 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null);
199 textView.setText(context.getString(textResourceId));
200 return textView;
207 public static void setHeaderViewBottomPadding(Context context, TextView textView, argument
217 textView.setPaddingRelative(textView.getPaddingStart(), topPadding,
218 textView.getPaddingEnd(), textView.getPaddingBottom());
/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerTextController.java32 public TimerTextController(TextView textView) { argument
33 mTextView = textView;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAddAdapter.java84 TextView textView = (TextView) convertView;
85 textView.setTag(item);
86 textView.setText(item.text);
87 textView.setCompoundDrawablesWithIntrinsicBounds(item.image, null, null, null);
/packages/apps/Launcher3/src/com/android/launcher3/views/
H A DDoubleShadowBubbleTextView.java101 public boolean skipDoubleShadow(TextView textView) { argument
102 int textAlpha = Color.alpha(textView.getCurrentTextColor());
106 textView.getPaint().clearShadowLayer();
109 textView.getPaint().setShadowLayer(ambientShadowBlur, 0, 0,
113 textView.getPaint().setShadowLayer(keyShadowBlur, 0.0f, keyShadowOffset,
/packages/apps/TV/src/com/android/tv/license/
H A DLicenseDialogFragment.java72 TextView textView = new TextView(getActivity());
74 textView.setText(licenseText != null ? licenseText : "");
75 textView.setMovementMethod(new ScrollingMovementMethod());
80 textView.setPadding(
82 return textView;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
H A DTermsListAdapter.java116 TextView textView = groupView.findViewById(R.id.header_text);
117 textView.setText(heading);
143 TextView textView = view.findViewById(R.id.disclaimer_content);
145 textView.setText(content);
146 textView.setContentDescription(
149 textView.setMovementMethod(LinkMovementMethod.getInstance()); // makes html links clickable
150 mContextMenuMaker.registerWithActivity(textView);
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DViewPagerTabs.java147 TextView textView = (TextView) layout.findViewById(R.id.count);
149 textView.setText(Integer.toString(mUnreadCounts[position]));
150 textView.setVisibility(View.VISIBLE);
159 textView.setVisibility(View.INVISIBLE);
164 final TextView textView = new TextView(getContext());
165 textView.setText(tabTitle);
166 textView.setBackgroundResource(R.drawable.view_pager_tab_background);
170 textView.setTypeface(textView.getTypeface(), mTextStyle);
173 textView
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/format/
H A DSpannedTestUtils.java36 * @param textView the text view from which to get the text
38 public static void checkHtmlText(String expectedHtmlText, TextView textView) { argument
39 String actualHtmlText = Html.toHtml((Spanned) textView.getText());

Completed in 627 milliseconds

1234