Home
last modified time | relevance | path

Searched refs:textView (Results 1 – 25 of 116) sorted by relevance

12345

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAccessibilityContextMenuMaker.java55 public void registerWithActivity(TextView textView) { in registerWithActivity() argument
56 if (getSpans(getText(textView)).length == 0) { in registerWithActivity()
57 mActivity.unregisterForContextMenu(textView); in registerWithActivity()
58 textView.setAccessibilityDelegate(null); in registerWithActivity()
59 textView.setClickable(false); in registerWithActivity()
60 textView.setLongClickable(false); in registerWithActivity()
64 mActivity.registerForContextMenu(textView); in registerWithActivity()
65 textView.setOnClickListener(View::showContextMenu); in registerWithActivity()
66 textView.setLongClickable(false); in registerWithActivity()
67 textView.setAccessibilityDelegate( in registerWithActivity()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCursorAnchorInfoUtils.java98 @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/
DContactDisplayUtils.java177 public static void setDisplayName(Context context, Contact contactData, TextView textView) { in setDisplayName() argument
178 if (textView == null) { in setDisplayName()
181 setDataOrHideIfNone(getDisplayName(context, contactData), textView); in setDisplayName() local
188 public static void setCompanyName(Context context, Contact contactData, TextView textView) { in setCompanyName() argument
189 if (textView == null) { in setCompanyName()
192 setDataOrHideIfNone(getCompany(context, contactData), textView); in setCompanyName() local
199 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { in setPhoneticName() argument
200 if (textView == null) { in setPhoneticName()
203 setDataOrHideIfNone(getPhoneticName(context, contactData), textView); in setPhoneticName() local
210 public static void setAttribution(Context context, Contact contactData, TextView textView) { in setAttribution() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DViewPagerTabs.java158 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/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java110 final TextView textView = new TextView(mActivity); in testSetAdminSupportTitle() local
111 textView.setId(R.id.admin_support_dialog_title); in testSetAdminSupportTitle()
112 view.addView(textView); in testSetAdminSupportTitle()
115 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
119 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
123 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
127 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
131 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
135 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
139 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
[all …]
/packages/apps/Dialer/java/com/android/incallui/audioroute/
DAudioRouteSelectorDialogFragment.java109 TextView textView = createBluetoothItem(device, selected); in onCreateView() local
110 ((LinearLayout) view).addView(textView, 0); in onCreateView()
114 TextView textView = in onCreateView() local
116 textView.setText(getString(R.string.audioroute_bluetooth)); in onCreateView()
118 textView, in onCreateView()
122 ((LinearLayout) view).addView(textView, 0); in onCreateView()
179 TextView textView = in createBluetoothItem() local
181 textView.setText(getAliasName(bluetoothDevice)); in createBluetoothItem()
183 textView.setSelected(true); in createBluetoothItem()
184 textView.setTextColor(selectedColor); in createBluetoothItem()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/list/
DViewPagerTabs.java147 TextView textView = (TextView) layout.findViewById(R.id.count); in addTab() local
149 textView.setText(Integer.toString(mUnreadCounts[position])); in addTab()
150 textView.setVisibility(View.VISIBLE); in addTab()
159 textView.setVisibility(View.INVISIBLE); in addTab()
164 final TextView textView = new TextView(getContext()); in addTab() local
165 textView.setText(tabTitle); in addTab()
166 textView.setClickable(true); in addTab()
170 textView.setTypeface(textView.getTypeface(), mTextStyle); in addTab()
173 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTextSize); in addTab()
176 textView.setTextColor(mTextColor); in addTab()
[all …]
/packages/apps/Dialer/java/com/android/dialer/about/
DLicenseActivity.java43 TextView textView = (TextView) findViewById(R.id.license_activity_textview); in onCreate() local
49 textView.setText(licenseText); in onCreate()
56 TextView textView = (TextView) findViewById(R.id.license_activity_textview); in onSaveInstanceState() local
57 int firstVisibleLine = textView.getLayout().getLineForVertical(scrollView.getScrollY()); in onSaveInstanceState()
58 int firstVisibleChar = textView.getLayout().getLineStart(firstVisibleLine); in onSaveInstanceState()
71 TextView textView = (TextView) findViewById(R.id.license_activity_textview); in onRestoreInstanceState()
72 int firstVisibleLine = textView.getLayout().getLineForOffset(firstVisibleChar); in onRestoreInstanceState()
73 int offset = textView.getLayout().getLineTop(firstVisibleLine); in onRestoreInstanceState()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DSmsBottomSheetFragment.java101 TextView textView = new TextView(context); in newTextViewItem() local
102 textView.setText(text == null ? getString(R.string.call_incoming_message_custom) : text); in newTextViewItem()
104 textView.setPadding(padding, padding, padding, padding); in newTextViewItem()
105 textView.setBackground(background); in newTextViewItem()
106 textView.setTextColor(context.getColor(R.color.blue_grey_100)); in newTextViewItem()
107 textView.setTextAppearance(R.style.TextAppearance_AppCompat_Widget_PopupMenu_Large); in newTextViewItem()
111 textView.setLayoutParams(params); in newTextViewItem()
113 textView.setOnClickListener( in newTextViewItem()
122 return textView; in newTextViewItem()
/packages/apps/Contacts/src/com/android/contacts/
DMoreContactUtils.java198 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/Settings/src/com/android/settings/wifi/
DLinkablePreference.java63 TextView textView = (TextView) view.findViewById(android.R.id.title); in onBindViewHolder() local
64 if (textView == null) { in onBindViewHolder()
67 textView.setSingleLine(false); in onBindViewHolder()
79 boolean linked = LinkifyUtils.linkify(textView, contentBuilder, mClickListener); in onBindViewHolder()
81 Spannable spannableContent = (Spannable) textView.getText(); in onBindViewHolder()
87 textView.setText(spannableContent); in onBindViewHolder()
88 textView.setMovementMethod(new LinkMovementMethod()); in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DLinkablePreference.java63 TextView textView = (TextView) view.findViewById(android.R.id.title); in onBindViewHolder() local
64 if (textView == null) { in onBindViewHolder()
67 textView.setSingleLine(false); in onBindViewHolder()
79 boolean linked = LinkifyUtils.linkify(textView, contentBuilder, mClickListener); in onBindViewHolder()
81 Spannable spannableContent = (Spannable) textView.getText(); in onBindViewHolder()
87 textView.setText(spannableContent); in onBindViewHolder()
88 textView.setMovementMethod(new LinkMovementMethod()); in onBindViewHolder()
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneNumberFormatter.java40 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/
DLinkifyUtils.java49 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DLinkifyUtils.java49 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()
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
DViewUtil.java95 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/Dialer/java/com/android/dialer/util/
DViewUtil.java74 public static void resizeText(TextView textView, int originalTextSize, int minTextSize) { in resizeText() argument
75 final Paint paint = textView.getPaint(); in resizeText()
76 final int width = textView.getWidth(); in resizeText()
80 textView.setTextSize(TypedValue.COMPLEX_UNIT_PX, originalTextSize); in resizeText()
81 float ratio = width / paint.measureText(textView.getText().toString()); in resizeText()
83 textView.setTextSize( in resizeText()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertDialog.java361 TextView textView = findViewById(R.id.message); in onCreate() local
362 if (textView != null) { in onCreate()
363 textView.setOnLongClickListener(v -> copyMessageToClipboard(message, in onCreate()
486 private void addLinks(@NonNull TextView textView, @NonNull String messageText, in addLinks() argument
491 textView.setMovementMethod(LinkMovementMethod.getInstance()); in addLinks()
492 textView.setText(text); in addLinks()
496 final TextClassifier classifier = textView.getTextClassifier(); in addLinks()
520 textView.setMovementMethod(LinkMovementMethod.getInstance()); in addLinks()
521 textView.setText(text); in addLinks()
552 TextView textView = findViewById(R.id.message); in updateAlertText() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/widget/
DTextViewPreference.java41 private TextView textView; field in TextViewPreference
106 textView = (TextView) view.findViewById(R.id.text); in onBindView()
125 if (textView == null) { in setTitle()
129 textView.setMovementMethod(LinkMovementMethod.getInstance()); in setTitle()
130 textView.setText(text); in setTitle()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DValidatedEditTextPreferenceTest.java124 final TextView textView = spy(new TextView(RuntimeEnvironment.application)); in bindViewHolder_isPassword_shouldSetInputType() local
125 when(mViewHolder.findViewById(android.R.id.summary)).thenReturn(textView); in bindViewHolder_isPassword_shouldSetInputType()
130 assertThat(textView.getInputType() in bindViewHolder_isPassword_shouldSetInputType()
137 final TextView textView = spy(new TextView(RuntimeEnvironment.application)); in bindViewHolder_isNotPassword_shouldNotAutoCorrectText() local
138 when(mViewHolder.findViewById(android.R.id.summary)).thenReturn(textView); in bindViewHolder_isNotPassword_shouldNotAutoCorrectText()
143 assertThat(textView.getInputType()).isEqualTo( in bindViewHolder_isNotPassword_shouldNotAutoCorrectText()
/packages/services/Telephony/src/com/android/phone/
DEmergencyActionGroup.java226 TextView textView = (TextView) selectedView; in decreaseAutoSizeMinTextSize() local
227 textView.setEllipsize(TextUtils.TruncateAt.END); in decreaseAutoSizeMinTextSize()
231 Layout layout = textView.getLayout(); in decreaseAutoSizeMinTextSize()
233 if (layout.getEllipsisCount(textView.getMaxLines() - 1) > 0) { in decreaseAutoSizeMinTextSize()
234 textView.setAutoSizeTextTypeUniformWithConfiguration( in decreaseAutoSizeMinTextSize()
236 textView.getAutoSizeMaxTextSize(), in decreaseAutoSizeMinTextSize()
237 textView.getAutoSizeStepGranularity(), in decreaseAutoSizeMinTextSize()
239 textView.setGravity(Gravity.CENTER); in decreaseAutoSizeMinTextSize()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerAdapter.java240 final TextView textView = (TextView) result.findViewById(R.id.title); in getHeaderItemView() local
241 textView.setText(item.text); in getHeaderItemView()
274 final TextView textView = ((TextView) result.findViewById(R.id.title)); in getAccountItemView() local
275 textView.setText(account.accountName); in getAccountItemView()
278 textView.setTextAppearance(mActivity, activated in getAccountItemView()
299 final TextView textView = (TextView) result.findViewById(R.id.title); in getDrawerItemView() local
300 textView.setText(item.text); in getDrawerItemView()
304 updateSelectedStatus(textView, iconView, false); in getDrawerItemView()
313 private void updateSelectedStatus(TextView textView, ImageView imageView, boolean activated) { in updateSelectedStatus() argument
314 textView.setTextAppearance(mActivity, activated in updateSelectedStatus()
/packages/apps/TV/src/com/android/tv/license/
DLicenseDialogFragment.java71 TextView textView = new TextView(getActivity()); in onCreateView() local
73 textView.setText(licenseText != null ? licenseText : ""); in onCreateView()
74 textView.setMovementMethod(new ScrollingMovementMethod()); in onCreateView()
79 textView.setPadding( in onCreateView()
81 return textView; in onCreateView()
/packages/apps/Launcher3/src/com/android/launcher3/views/
DDoubleShadowBubbleTextView.java101 public boolean skipDoubleShadow(TextView textView) { in skipDoubleShadow() argument
102 int textAlpha = Color.alpha(textView.getCurrentTextColor()); in skipDoubleShadow()
106 textView.getPaint().clearShadowLayer(); in skipDoubleShadow()
109 textView.getPaint().setShadowLayer(ambientShadowBlur, 0, 0, in skipDoubleShadow()
113 textView.getPaint().setShadowLayer(keyShadowBlur, 0.0f, keyShadowOffset, in skipDoubleShadow()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorAccountsChangedActivity.java133 final TextView textView = (TextView) view.findViewById(R.id.text); in updateDisplayedAccounts() local
134 textView.setText(getString(R.string.contact_editor_prompt_multiple_accounts)); in updateDisplayedAccounts()
150 final TextView textView = (TextView) view.findViewById(R.id.text); in updateDisplayedAccounts() local
155 textView.setText(getString(R.string.contact_editor_prompt_one_account, in updateDisplayedAccounts()
178 final TextView textView = (TextView) view.findViewById(R.id.text); in updateDisplayedAccounts() local
182 textView.setText(getString(R.string.contact_editor_prompt_zero_accounts)); in updateDisplayedAccounts()

12345