Searched defs:textView (Results 1 - 25 of 38) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/
H A DTimerTextController.java32 public TimerTextController(TextView textView) { argument
33 mTextView = textView;
/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/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/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/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/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/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/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());
/packages/apps/Dialer/java/com/android/contacts/common/format/testing/
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());
/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/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/Dialer/java/com/android/contacts/common/
H A DMoreContactUtils.java201 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null);
202 textView.setText(context.getString(textResourceId));
203 return textView;
211 Context context, TextView textView, boolean isFirstRow) {
223 textView.setPaddingRelative(
224 textView.getPaddingStart(),
226 textView.getPaddingEnd(),
227 textView.getPaddingBottom());
210 setHeaderViewBottomPadding( Context context, TextView textView, boolean isFirstRow) argument
/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/services/Car/TrustAgent/src/com/android/car/trust/
H A DPhoneUnlockController.java77 * @param textView A text view used to display results from various BLE actions
81 public void bind(TextView textView, Button scanButton, Button enrolButton) { argument
82 mTextView = textView;
H A DPhoneEnrolmentController.java79 * @param textView A text view used to display results from various BLE actions
83 public void bind(TextView textView, Button scanButton, Button enrolButton) { argument
84 mTextView = textView;
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
H A DPermissionsFrameFragment.java202 * @param textView the empty text view
204 protected void onSetEmptyText(TextView textView) { argument
H A DPermissionAppsFragment.java144 protected void onSetEmptyText(TextView textView) { argument
145 textView.setText(R.string.no_apps);
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DSchedulesHeaderRowPresenter.java184 private void setTextDrawable(TextView textView, Drawable drawableStart) { argument
186 textView.setCompoundDrawablesWithIntrinsicBounds(drawableStart, null, null, null);
188 textView.setCompoundDrawablesWithIntrinsicBounds(null, null, drawableStart, null);
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
H A DAddManualPrinterDialog.java169 public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) { argument
/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/TV/src/com/android/tv/dvr/ui/
H A DDetailsContentPresenter.java176 private FontMetricsInt getFontMetricsInt(TextView textView) { argument
178 paint.setTextSize(textView.getTextSize());
179 paint.setTypeface(textView.getTypeface());
/packages/apps/TV/src/com/android/tv/ui/
H A DBlockScreenView.java155 private static boolean isTextViewVisible(TextView textView) { argument
156 return textView.getVisibility() != GONE && !TextUtils.isEmpty(textView.getText());
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DMaterialSearchActionView.java231 public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) { argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DTutorialEN.java91 TextView textView; field in class:TutorialEN.Bubble
125 textView = (TextView) inflate.inflate(R.layout.bubble_text, null);
126 textView.setBackgroundDrawable(bubbleBackground);
127 textView.setText(text);
129 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT);
131 window.setContentView(textView);
163 int textHeight = chooseSize(window, inputView, text, textView);
164 offy -= textView.getPaddingTop() + textHeight;
170 textView.setOnTouchListener(new View.OnTouchListener() {
195 textView
[all...]

Completed in 1505 milliseconds

12