/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | AccessibilityContextMenuMaker.java | 55 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 …]
|
D | SetupGlifLayoutActivity.java | 99 private void increaseMaxLinesIfNecessary(TextView textView, int initialMaxLines) { in increaseMaxLinesIfNecessary() argument 100 textView.setMaxLines(initialMaxLines); in increaseMaxLinesIfNecessary() 101 textView.post(() -> { in increaseMaxLinesIfNecessary() 102 Layout layout = textView.getLayout(); in increaseMaxLinesIfNecessary() 108 textView.setMaxLines(initialMaxLines + 1); in increaseMaxLinesIfNecessary()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelperTest.java | 87 final TextView textView = createAdminSupportDialogTitleTextView(view, mActivity); in testSetAdminSupportTitle() local 90 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 94 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 98 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 102 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 106 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 110 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 114 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 118 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle() 126 final TextView textView = createAdminSupportDialogTitleTextView(view, mActivity); in testSetAdminSupportTitleForFinancedDevice() local [all …]
|
/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 | 193 public static void setDisplayName(Context context, Contact contactData, TextView textView) { in setDisplayName() argument 194 if (textView == null) { in setDisplayName() 197 setDataOrHideIfNone(getDisplayName(context, contactData), textView); in setDisplayName() local 204 public static void setCompanyName(Context context, Contact contactData, TextView textView) { in setCompanyName() argument 205 if (textView == null) { in setCompanyName() 208 setDataOrHideIfNone(getCompany(context, contactData), textView); in setCompanyName() local 215 public static void setPhoneticName(Context context, Contact contactData, TextView textView) { in setPhoneticName() argument 216 if (textView == null) { in setPhoneticName() 219 setDataOrHideIfNone(getPhoneticName(context, contactData), textView); in setPhoneticName() local 226 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/Dialer/java/com/android/incallui/audioroute/ |
D | AudioRouteSelectorDialogFragment.java | 109 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/ |
D | ViewPagerTabs.java | 147 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/ |
D | LicenseActivity.java | 43 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/Settings/src/com/android/settings/applications/intentpicker/ |
D | SupportedLinksAdapter.java | 64 final CheckedTextView textView = convertView.findViewById(android.R.id.text1); in getView() local 65 textView.setText(mWrapperList.get(position).getDisplayTitle(mContext)); in getView() 66 textView.setEnabled(mWrapperList.get(position).isEnabled()); in getView() 67 textView.setChecked(mWrapperList.get(position).isChecked()); in getView() 68 textView.setOnClickListener(l -> { in getView() 69 textView.toggle(); in getView() 70 mWrapperList.get(position).setChecked(textView.isChecked()); in getView()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
D | SmsBottomSheetFragment.java | 101 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/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageSelectionPreferenceController.java | 130 TextView textView = null; in getView() local 132 textView = (TextView) view; in getView() 136 textView.setText(getItem(position).getDescription()); in getView() 137 return textView; in getView() 146 TextView textView = null; in getDropDownView() local 148 textView = (TextView) view; in getDropDownView() 152 textView.setText(getItem(position).getDescription()); in getDropDownView() 153 return textView; in getDropDownView()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | LinkablePreference.java | 63 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/ |
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/Contacts/src/com/android/contacts/ |
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/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()
|
/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/Dialer/java/com/android/dialer/util/ |
D | ViewUtil.java | 74 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/Dialer/java/com/android/dialer/widget/ |
D | TextViewPreference.java | 41 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/ThemePicker/src/com/android/customization/picker/clock/ui/fragment/ |
D | ClockCustomDemoFragment.kt | 62 class ViewHolder(val view: View, val textView: TextView, val onItemClicked: (Int) -> Unit) : constant in com.android.customization.picker.clock.ui.fragment.ClockCustomDemoFragment.ClockRecyclerAdapter.ViewHolder 71 val textView = in onCreateViewHolder() constant 73 textView.setPadding(ITEM_PADDING) in onCreateViewHolder() 74 rootView.addView(textView) in onCreateViewHolder() 80 return ViewHolder(rootView, textView) { onClockSelected(list[it]) } in onCreateViewHolder() 84 viewHolder.textView.text = list[position].name in onBindViewHolder()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/addappnetworks/ |
D | AddAppNetworksFragmentTest.java | 297 final TextView textView = (TextView) mAddAppNetworksFragment.mLayoutView.findViewById( in status_withOneNetworkSave_shouldShowOneNetworkSaving() local 299 assertThat(textView.getText()).isEqualTo(mAddAppNetworksFragment.getString( in status_withOneNetworkSave_shouldShowOneNetworkSaving() 313 final TextView textView = (TextView) mAddAppNetworksFragment.mLayoutView.findViewById( in status_withTwoNetworksSave_shouldShowMultipleNetworksSaving() local 315 assertThat(textView.getText()).isEqualTo( in status_withTwoNetworksSave_shouldShowMultipleNetworksSaving() 329 final TextView textView = (TextView) mAddAppNetworksFragment.mLayoutView.findViewById( in status_withOneNetworkSaved_shouldShowOneNetworkSaved() local 331 assertThat(textView.getText()).isEqualTo(mAddAppNetworksFragment.getString( in status_withOneNetworkSaved_shouldShowOneNetworkSaved() 345 final TextView textView = (TextView) mAddAppNetworksFragment.mLayoutView.findViewById( in status_withTwoNetworksSaved_shouldShowMultipleNetworksSaved() local 347 assertThat(textView.getText()).isEqualTo( in status_withTwoNetworksSaved_shouldShowMultipleNetworksSaved() 360 final TextView textView = (TextView) mAddAppNetworksFragment.mLayoutView.findViewById( in status_withOneNetworkSaveFailed_shouldShowOneNetworkFailed() local 362 assertThat(textView.getText()).isEqualTo(mAddAppNetworksFragment.getString( in status_withOneNetworkSaveFailed_shouldShowOneNetworkFailed() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | AccessibilityQuickSettingsTooltipWindow.java | 110 final TextView textView = getContentView().findViewById(R.id.qs_content); in setup() local 111 textView.setText(text); in setup() 112 setWidth(getWindowWidthWith(textView)); in setup() 169 private int getWindowWidthWith(TextView textView) { in getWindowWidthWith() argument 175 textView.measure(widthSpec, heightSpec); in getWindowWidthWith() 176 return textView.getMeasuredWidth(); in getWindowWidthWith()
|
D | PaletteListPreference.java | 142 final TextView textView = new TextView(context); in initPaletteView() local 143 textView.setText(paletteData.get(i)); in initPaletteView() 144 textView.setHeight(paletteItemHeight); in initPaletteView() 145 textView.setPaddingRelative(Math.round(textPadding), 0, 0, 0); in initPaletteView() 146 textView.setGravity(Gravity.CENTER_VERTICAL); in initPaletteView() 147 textView.setBackground(createGradientDrawable(rootView, paletteColors.get(i))); in initPaletteView() 149 rootView.addView(textView); in initPaletteView()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | ValidatedEditTextPreferenceTest.java | 124 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/apps/TV/src/com/android/tv/license/ |
D | LicenseDialogFragment.java | 71 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()
|