/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/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/ContactsCommon/src/com/android/contacts/common/list/ |
D | ViewPagerTabs.java | 153 final TextView textView = new TextView(getContext()); in addTab() local 154 textView.setText(tabTitle); in addTab() 155 textView.setBackgroundResource(R.drawable.view_pager_tab_background); in addTab() 156 textView.setGravity(Gravity.CENTER); in addTab() 157 textView.setOnClickListener(new OnClickListener() { in addTab() 164 textView.setOnLongClickListener(new OnTabLongClickListener(position)); in addTab() 168 textView.setTypeface(textView.getTypeface(), mTextStyle); in addTab() 171 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize); in addTab() 174 textView.setTextColor(mTextColor); in addTab() 176 textView.setAllCaps(mTextAllCaps); in addTab() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CursorAnchorInfoUtils.java | 85 public static CursorAnchorInfo getCursorAnchorInfo(final TextView textView) { in getCursorAnchorInfo() argument 86 Layout layout = textView.getLayout(); in getCursorAnchorInfo() 93 final int selectionStart = textView.getSelectionStart(); in getCursorAnchorInfo() 94 builder.setSelectionRange(selectionStart, textView.getSelectionEnd()); in getCursorAnchorInfo() 97 final Matrix viewToScreenMatrix = new Matrix(textView.getMatrix()); in getCursorAnchorInfo() 99 textView.getLocationOnScreen(viewOriginInScreen); in getCursorAnchorInfo() 109 textView.getLineBounds(0, lineBoundsWithOffset); in getCursorAnchorInfo() 111 - lineBoundsWithoutOffset.left - textView.getScrollX(); in getCursorAnchorInfo() 113 - lineBoundsWithoutOffset.top - textView.getScrollY(); in getCursorAnchorInfo() 115 final CharSequence text = textView.getText(); in getCursorAnchorInfo() [all …]
|
/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/apps/ContactsCommon/src/com/android/contacts/common/ |
D | MoreContactUtils.java | 190 final TextView textView = (TextView) View.inflate(context, R.layout.list_separator, null); in createHeaderView() local 191 textView.setText(context.getString(textResourceId)); in createHeaderView() 192 return textView; in createHeaderView() 199 public static void setHeaderViewBottomPadding(Context context, TextView textView, in setHeaderViewBottomPadding() argument 209 textView.setPaddingRelative(textView.getPaddingStart(), topPadding, in setHeaderViewBottomPadding() 210 textView.getPaddingEnd(), textView.getPaddingBottom()); in setHeaderViewBottomPadding()
|
/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/Calculator/src/com/android/calculator2/ |
D | Calculator.java | 277 public void onTextSizeChanged(final TextView textView, float oldSize) { in onTextSizeChanged() argument 285 final float textScale = oldSize / textView.getTextSize(); in onTextSizeChanged() 287 (textView.getWidth() / 2.0f - textView.getPaddingEnd()); in onTextSizeChanged() 289 (textView.getHeight() / 2.0f - textView.getPaddingBottom()); in onTextSizeChanged() 293 ObjectAnimator.ofFloat(textView, View.SCALE_X, textScale, 1.0f), in onTextSizeChanged() 294 ObjectAnimator.ofFloat(textView, View.SCALE_Y, textScale, 1.0f), in onTextSizeChanged() 295 ObjectAnimator.ofFloat(textView, View.TRANSLATION_X, translationX, 0.0f), in onTextSizeChanged() 296 ObjectAnimator.ofFloat(textView, View.TRANSLATION_Y, translationY, 0.0f)); in onTextSizeChanged()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | LabeledEditorView.java | 557 TextView textView; in createViewFromResource() local 560 textView = (TextView) mInflater.inflate(resource, parent, false); in createViewFromResource() 561 textView.setAllCaps(true); in createViewFromResource() 562 textView.setGravity(Gravity.END | Gravity.CENTER_VERTICAL); in createViewFromResource() 563 textView.setTextAppearance(mContext, android.R.style.TextAppearance_Small); in createViewFromResource() 564 textView.setTextColor(mTextColor); in createViewFromResource() 565 textView.setEllipsize(TruncateAt.MIDDLE); in createViewFromResource() 567 textView = (TextView) convertView; in createViewFromResource() 577 textView.setText(text); in createViewFromResource() 578 return textView; in createViewFromResource()
|
/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/apps/Browser/src/com/android/browser/addbookmark/ |
D | FolderSpinnerAdapter.java | 90 TextView textView = (TextView) view; in bindView() local 92 textView.setText(mRecentFolderName); in bindView() 95 textView.setText(mOtherFolderDisplayText); in bindView() 97 textView.setText(labelResource); in bindView() 99 textView.setGravity(Gravity.CENTER_VERTICAL); in bindView() 101 textView.setCompoundDrawablesWithIntrinsicBounds(drawable, null, in bindView()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactEditorAccountsChangedActivity.java | 92 final TextView textView = (TextView) findViewById(R.id.text); in onCreate() local 93 textView.setText(getString(R.string.contact_editor_prompt_multiple_accounts)); in onCreate() 109 final TextView textView = (TextView) findViewById(R.id.text); in onCreate() local 114 textView.setText(getString(R.string.contact_editor_prompt_one_account, in onCreate() 136 final TextView textView = (TextView) findViewById(R.id.text); in onCreate() local 140 textView.setText(getString(R.string.contact_editor_prompt_zero_accounts)); in onCreate()
|
/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() 39 final URLSpan[] urls = textView.getUrls(); in stripUnderlinesAndLinkUrls() 54 public static void stripUnderlinesAndUrl(TextView textView) { in stripUnderlinesAndUrl() argument 55 stripUnderlinesAndLinkUrls(textView, null /* onClickListener */); in stripUnderlinesAndUrl()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Folder.java | 522 final TextView textView = in createAndAddShortcut() local 524 textView.setCompoundDrawablesWithIntrinsicBounds(null, in createAndAddShortcut() 526 textView.setText(item.title); in createAndAddShortcut() 528 textView.setContentDescription(item.contentDescription); in createAndAddShortcut() 530 textView.setTag(item); in createAndAddShortcut() 532 textView.setOnClickListener(this); in createAndAddShortcut() 533 textView.setOnLongClickListener(this); in createAndAddShortcut() 549 textView.setOnKeyListener(new FolderKeyEventListener()); in createAndAddShortcut() 550 mContent.addViewToCellLayout(textView, insert ? 0 : -1, (int)item.id, lp, true); in createAndAddShortcut()
|
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/ContactsCommon/src/com/android/contacts/common/util/ |
D | PhoneNumberFormatter.java | 37 public TextWatcherLoadAsyncTask(String countryCode, TextView textView) { in TextWatcherLoadAsyncTask() argument 39 mTextView = textView; in TextWatcherLoadAsyncTask() 69 TextView textView) { in setPhoneNumberFormattingTextWatcher() argument 70 new TextWatcherLoadAsyncTask(GeoUtil.getCurrentCountryIso(context), textView) in setPhoneNumberFormattingTextWatcher()
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | PhoneNumberFormatter.java | 37 public TextWatcherLoadAsyncTask(String countryCode, TextView textView) { in TextWatcherLoadAsyncTask() argument 39 mTextView = textView; in TextWatcherLoadAsyncTask() 69 TextView textView) { in setPhoneNumberFormattingTextWatcher() argument 70 new TextWatcherLoadAsyncTask(MmsApp.getApplication().getCurrentCountryIso(), textView) in setPhoneNumberFormattingTextWatcher()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | EventInfoFragment.java | 1576 final TextView textView = mWhere; in updateEvent() local 1577 if (textView != null) { in updateEvent() 1578 textView.setAutoLinkMask(0); in updateEvent() 1579 textView.setText(location.trim()); in updateEvent() 1581 textView.setText(Utils.extendedLinkify(textView.getText().toString(), true)); in updateEvent() 1586 MovementMethod mm = textView.getMovementMethod(); in updateEvent() 1588 if (textView.getLinksClickable()) { in updateEvent() 1589 textView.setMovementMethod(LinkMovementMethod.getInstance()); in updateEvent() 1597 textView.setOnTouchListener(new OnTouchListener() { in updateEvent() 2009 TextView textView = (TextView) view.findViewById(id); in setTextCommon() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerView.java | 82 private void addStartPadding(TextView textView) { in addStartPadding() argument 87 paint.setTextSize(textView.getTextSize()); in addStartPadding() 88 paint.setTypeface(textView.getTypeface()); in addStartPadding() 99 textView.setPadding((int) (gapPadding * widths[largest]), 0, 0, 0); in addStartPadding()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Folder.java | 642 final BubbleTextView textView = in createAndAddShortcut() local 644 textView.applyFromShortcutInfo(item, mIconCache, false); in createAndAddShortcut() 646 textView.setOnClickListener(this); in createAndAddShortcut() 647 textView.setOnLongClickListener(this); in createAndAddShortcut() 648 textView.setOnFocusChangeListener(mFocusIndicatorHandler); in createAndAddShortcut() 664 textView.setOnKeyListener(new FolderKeyEventListener()); in createAndAddShortcut() 665 mContent.addViewToCellLayout(textView, insert ? 0 : -1, (int)item.id, lp, true); in createAndAddShortcut() 666 return textView; in createAndAddShortcut()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | BaseContentFragment.java | 283 TextView textView = (TextView) parent.findViewById(textViewResourceId); in setText() local 284 if (textView != null && text != null) { in setText() 285 textView.setText(text); in setText() 294 textView.setFocusable(true); in setText() 295 textView.setFocusableInTouchMode(true); in setText()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MenuItemPresenter.java | 147 private boolean prepareTextView(TextView textView, String title) { in prepareTextView() argument 150 textView.setText(title); in prepareTextView() 151 textView.setVisibility(View.VISIBLE); in prepareTextView() 153 textView.setVisibility(View.GONE); in prepareTextView()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
D | ContactFragment.java | 786 private void setMaxLines(TextView textView, int maxLines) { in setMaxLines() argument 788 textView.setSingleLine(true); in setMaxLines() 789 textView.setEllipsize(TextUtils.TruncateAt.END); in setMaxLines() 791 textView.setSingleLine(false); in setMaxLines() 792 textView.setMaxLines(maxLines); in setMaxLines() 793 textView.setEllipsize(null); in setMaxLines()
|
/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()
|