/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CursorAnchorInfoUtils.java | 98 @Nonnull final TextView textView) { in extractFromTextView() 102 return CursorAnchorInfoCompatWrapper.wrap(extractFromTextViewInternal(textView)); in extractFromTextView() 113 private static CursorAnchorInfo extractFromTextViewInternal(@Nonnull final TextView textView) { in extractFromTextViewInternal() argument 114 final Layout layout = textView.getLayout(); in extractFromTextViewInternal() 121 final int selectionStart = textView.getSelectionStart(); in extractFromTextViewInternal() 122 builder.setSelectionRange(selectionStart, textView.getSelectionEnd()); in extractFromTextViewInternal() 125 final Matrix viewToScreenMatrix = new Matrix(textView.getMatrix()); in extractFromTextViewInternal() 127 textView.getLocationOnScreen(viewOriginInScreen); in extractFromTextViewInternal() 137 textView.getLineBounds(0, lineBoundsWithOffset); in extractFromTextViewInternal() 139 - lineBoundsWithoutOffset.left - textView.getScrollX(); in extractFromTextViewInternal() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDisplayUtils.java | 199 public static void setDisplayName(Context context, Contact contactData, TextView textView) { in setDisplayName() argument 200 if (textView == null) { in setDisplayName() 203 setDataOrHideIfNone(getDisplayName(context, contactData), textView); in setDisplayName() local 210 public static void setCompanyName(Context context, Contact contactData, TextView textView) { in setCompanyName() argument 211 if (textView == null) { in setCompanyName() 214 setDataOrHideIfNone(getCompany(context, contactData), textView); in setCompanyName() local 221 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { in setPhoneticName() argument 222 if (textView == null) { in setPhoneticName() 225 setDataOrHideIfNone(getPhoneticName(context, contactData), textView); in setPhoneticName() local 232 public static void setAttribution(Context context, Contact contactData, TextView textView) { in setAttribution() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | ViewPagerTabs.java | 158 final TextView textView = new TextView(getContext()); in addTab() local 159 textView.setText(tabTitle); in addTab() 160 textView.setBackgroundResource(R.drawable.contact_picker_tab_background_selector); in addTab() 161 textView.setGravity(Gravity.CENTER); in addTab() 162 textView.setOnClickListener(new OnClickListener() { in addTab() 171 textView.setTypeface(textView.getTypeface(), mTextStyle); in addTab() 174 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize); in addTab() 177 textView.setTextColor(mTextColor); in addTab() 179 textView.setAllCaps(mTextAllCaps); in addTab() 180 textView.setPadding(mSidePadding, 0, mSidePadding, 0); in addTab() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 192 TextView textView = (TextView) layout.findViewById(R.id.count); in addTab() local 194 textView.setText(Integer.toString(mUnreadCounts[position])); in addTab() 195 textView.setVisibility(View.VISIBLE); in addTab() 202 textView.setVisibility(View.INVISIBLE); in addTab() 207 final TextView textView = new TextView(getContext()); in addTab() local 208 textView.setText(tabTitle); in addTab() 209 textView.setBackgroundResource(R.drawable.view_pager_tab_background); in addTab() 213 textView.setTypeface(textView.getTypeface(), mTextStyle); in addTab() 216 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize); in addTab() 219 textView.setTextColor(mTextColor); in addTab() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | TextCandidatesViewManager.java | 887 TextView textView; in setCandidate() local 931 textView = (TextView) layout.getChildAt(mFullViewWordCount); in setCandidate() 932 if (textView == null) { in setCandidate() 933 textView = createCandidateView(); in setCandidate() 934 textView.setLayoutParams(params); in setCandidate() 936 mViewCandidateList2nd.addView(textView); in setCandidate() 938 mViewCandidateList2nd.updateViewLayout(textView, params); in setCandidate() 943 mFullViewPrevView = textView; in setCandidate() 978 textView = (TextView) lineView.getChildAt(mNormalViewWordCountOfLine); in setCandidate() 993 textView.setText(word.candidate); in setCandidate() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | PhoneNumberFormatter.java | 40 String countryCode, TextView textView, boolean formatAfterWatcherSet) { in TextWatcherLoadAsyncTask() argument 42 mTextView = textView; in TextWatcherLoadAsyncTask() 71 TextView textView) { in setPhoneNumberFormattingTextWatcher() argument 72 setPhoneNumberFormattingTextWatcher(context, textView, in setPhoneNumberFormattingTextWatcher() 84 Context context, TextView textView, boolean formatAfterWatcherSet) { in setPhoneNumberFormattingTextWatcher() argument 86 textView, formatAfterWatcherSet) in setPhoneNumberFormattingTextWatcher() local
|
/packages/apps/Settings/src/com/android/settings/ |
D | LinkifyUtils.java | 49 public static boolean linkify(TextView textView, StringBuilder text, in linkify() argument 54 textView.setText(text); in linkify() 60 textView.setText(text); in linkify() 65 textView.setText(text.toString(), BufferType.SPANNABLE); in linkify() 66 textView.setMovementMethod(LinkMovementMethod.getInstance()); in linkify() 67 Spannable spannableContent = (Spannable) textView.getText(); in linkify()
|
D | MultiLinePreference.java | 44 TextView textView = (TextView) view.findViewById(android.R.id.title); in onBindViewHolder() local 45 if (textView != null) { in onBindViewHolder() 46 textView.setSingleLine(false); in onBindViewHolder()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
D | MoreContactUtils.java | 198 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null); in createHeaderView() local 199 textView.setText(context.getString(textResourceId)); in createHeaderView() 200 return textView; in createHeaderView() 207 public static void setHeaderViewBottomPadding(Context context, TextView textView, in setHeaderViewBottomPadding() argument 217 textView.setPaddingRelative(textView.getPaddingStart(), topPadding, in setHeaderViewBottomPadding() 218 textView.getPaddingEnd(), textView.getPaddingBottom()); in setHeaderViewBottomPadding()
|
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
D | ViewUtil.java | 95 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { in resizeText() argument 96 final Paint paint = textView.getPaint(); in resizeText() 97 final int width = textView.getWidth(); in resizeText() 99 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize); in resizeText() 100 float ratio = width / paint.measureText(textView.getText().toString()); in resizeText() 102 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, in resizeText()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | TutorialEN.java | 91 TextView textView; field in TutorialEN.Bubble 125 textView = (TextView) inflate.inflate(R.layout.bubble_text, null); in init() 126 textView.setBackgroundDrawable(bubbleBackground); in init() 127 textView.setText(text); in init() 129 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); in init() 131 window.setContentView(textView); in init() 163 int textHeight = chooseSize(window, inputView, text, textView); in show() 164 offy -= textView.getPaddingTop() + textHeight; in show() 170 textView.setOnTouchListener(new View.OnTouchListener() { in show() 195 textView.setOnTouchListener(null); in hide()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | TutorialJAJP.java | 93 TextView textView; field in TutorialJAJP.Bubble 127 textView = (TextView) inflate.inflate(R.layout.bubble_text, null); in init() 128 textView.setBackgroundDrawable(bubbleBackground); in init() 129 textView.setText(text); in init() 131 textView.setGravity(Gravity.CENTER_VERTICAL | Gravity.LEFT); in init() 133 window.setContentView(textView); in init() 165 int textHeight = chooseSize(window, inputView, text, textView); in show() 166 offy -= textView.getPaddingTop() + textHeight; in show() 172 textView.setOnTouchListener(new View.OnTouchListener() { in show() 198 textView.setOnTouchListener(null); in hide()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | StyleUtils.java | 36 public static void stripUnderlinesAndLinkUrls(TextView textView, in stripUnderlinesAndLinkUrls() argument 38 final Spannable spannable = (Spannable) textView.getText(); in stripUnderlinesAndLinkUrls() 63 public static void stripUnderlinesAndUrl(TextView textView) { in stripUnderlinesAndUrl() argument 64 stripUnderlinesAndLinkUrls(textView, null /* onClickListener */); in stripUnderlinesAndUrl()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
D | CopyContactDetailDialog.java | 58 TextView textView = (TextView) inflater.inflate(R.layout.copy_contact_dialog_view, null, in createBodyView() local 60 textView.setText(mContactDetail); in createBodyView() 63 textView.setContentDescription(vocalizedDisplayName); in createBodyView() 64 return textView; in createBodyView()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactEditorAccountsChangedActivity.java | 97 final TextView textView = (TextView) view.findViewById(R.id.text); in onCreate() local 98 textView.setText(getString(R.string.contact_editor_prompt_multiple_accounts)); in onCreate() 115 final TextView textView = (TextView) view.findViewById(R.id.text); in onCreate() local 120 textView.setText(getString(R.string.contact_editor_prompt_one_account, in onCreate() 143 final TextView textView = (TextView) view.findViewById(R.id.text); in onCreate() local 147 textView.setText(getString(R.string.contact_editor_prompt_zero_accounts)); in onCreate()
|
/packages/apps/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 272 public void onTextSizeChanged(final TextView textView, float oldSize) { in onTextSizeChanged() argument 280 final float textScale = oldSize / textView.getTextSize(); in onTextSizeChanged() 282 (textView.getWidth() / 2.0f - textView.getPaddingEnd()); in onTextSizeChanged() 284 (textView.getHeight() / 2.0f - textView.getPaddingBottom()); in onTextSizeChanged() 288 ObjectAnimator.ofFloat(textView, View.SCALE_X, textScale, 1.0f), in onTextSizeChanged() 289 ObjectAnimator.ofFloat(textView, View.SCALE_Y, textScale, 1.0f), in onTextSizeChanged() 290 ObjectAnimator.ofFloat(textView, View.TRANSLATION_X, translationX, 0.0f), in onTextSizeChanged() 291 ObjectAnimator.ofFloat(textView, View.TRANSLATION_Y, translationY, 0.0f)); in onTextSizeChanged()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AddAdapter.java | 84 TextView textView = (TextView) convertView; in getView() local 85 textView.setTag(item); in getView() 86 textView.setText(item.text); in getView() 87 textView.setCompoundDrawablesWithIntrinsicBounds(item.image, null, null, null); in getView()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | Calculator.java | 116 public Integer get(TextView textView) { 117 return textView.getCurrentTextColor(); 121 public void set(TextView textView, Integer textColor) { 122 textView.setTextColor(textColor); 601 public void onTextSizeChanged(final TextView textView, float oldSize) { in onTextSizeChanged() argument 609 final float textScale = oldSize / textView.getTextSize(); in onTextSizeChanged() 611 (textView.getWidth() / 2.0f - textView.getPaddingEnd()); in onTextSizeChanged() 613 (textView.getHeight() / 2.0f - textView.getPaddingBottom()); in onTextSizeChanged() 617 ObjectAnimator.ofFloat(textView, View.SCALE_X, textScale, 1.0f), in onTextSizeChanged() 618 ObjectAnimator.ofFloat(textView, View.SCALE_Y, textScale, 1.0f), in onTextSizeChanged() [all …]
|
D | AlertDialogFragment.java | 81 final TextView textView = (TextView) inflater.inflate(R.layout.dialog_message, in onCreateDialog() local 83 textView.setText(args.getCharSequence(KEY_MESSAGE)); in onCreateDialog() 85 .setView(textView) in onCreateDialog()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
D | TextViewCompatUtils.java | 35 public static void setCompoundDrawablesRelativeWithIntrinsicBounds(final TextView textView, in setCompoundDrawablesRelativeWithIntrinsicBounds() argument 38 textView.setCompoundDrawablesWithIntrinsicBounds(start, top, end, bottom); in setCompoundDrawablesRelativeWithIntrinsicBounds() 41 CompatUtils.invoke(textView, null, METHOD_setCompoundDrawablesRelativeWithIntrinsicBounds, in setCompoundDrawablesRelativeWithIntrinsicBounds()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | MultiLineTitleEditTextPreference.java | 68 TextView textView = (TextView) view.findViewById(com.android.internal.R.id.title); in onBindView() local 69 if (textView != null) { in onBindView() 70 textView.setSingleLine(false); in onBindView()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrPlayActivity.java | 40 TextView textView = (TextView) findViewById(R.id.placeHolderText); in onCreate() local 42 textView.setText(scheduledRecording.toString()); in onCreate() 44 textView.setText(R.string.ut_result_not_found_title); // TODO(DVR) update error text in onCreate()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerView.java | 79 private void addStartPadding(TextView textView) { in addStartPadding() argument 84 paint.setTextSize(textView.getTextSize()); in addStartPadding() 85 paint.setTypeface(textView.getTypeface()); in addStartPadding() 96 textView.setPadding((int) (gapPadding * widths[largest]), 0, 0, 0); in addStartPadding()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | AddContactsConfirmationDialog.java | 76 final TextView textView = (TextView) view.findViewById(R.id.participant_name); in createBodyView() local 77 textView.setText(mNormalizedDestination); in createBodyView() 82 textView.setContentDescription(vocalizedDisplayName); in createBodyView()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | FolderPagedView.java | 211 final BubbleTextView textView = (BubbleTextView) mInflater.inflate( in createNewView() local 213 textView.applyFromShortcutInfo(item, mIconCache); in createNewView() 214 textView.setOnClickListener(mFolder); in createNewView() 215 textView.setOnLongClickListener(mFolder); in createNewView() 216 textView.setOnFocusChangeListener(mFocusIndicatorView); in createNewView() 217 textView.setOnKeyListener(mKeyListener); in createNewView() 219 textView.setLayoutParams(new CellLayout.LayoutParams( in createNewView() 221 return textView; in createNewView()
|