Home
last modified time | relevance | path

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

12345678

/packages/services/Telephony/testapps/TestSatelliteApp/src/com/android/phone/testapps/satellitetestapp/
DSatelliteControl.java99 TextView textView = findViewById(R.id.text_id); in enableSatelliteApp() local
103 textView.setText("Timed out to enable the satellite"); in enableSatelliteApp()
105 textView.setText("Failed to enable the satellite, error =" in enableSatelliteApp()
108 textView.setText("Successfully enabled the satellite"); in enableSatelliteApp()
111 textView.setText("Enable SatelliteService exception caught =" + e); in enableSatelliteApp()
119 TextView textView = findViewById(R.id.text_id); in disableSatelliteApp() local
123 textView.setText("Timed out to disable the satellite"); in disableSatelliteApp()
125 textView.setText("Failed to disable the satellite, error =" in disableSatelliteApp()
128 textView.setText("Successfully disabled the satellite"); in disableSatelliteApp()
131 textView.setText("Disable SatelliteService exception caught =" + e); in disableSatelliteApp()
[all …]
DDatagram.java179 TextView textView = findViewById(R.id.text_id); in startTransmissionUpdatesApp() local
204 textView.setText("Timed out to startSatelliteTransmissionUpdates"); in startTransmissionUpdatesApp()
206 textView.setText("Failed to startSatelliteTransmissionUpdates with error = " in startTransmissionUpdatesApp()
209 textView.setText("startSatelliteTransmissionUpdates is successful"); in startTransmissionUpdatesApp()
212 textView.setText("startSatelliteTransmissionUpdates exception caught =" + e); in startTransmissionUpdatesApp()
217 TextView textView = findViewById(R.id.text_id); in stopTransmissionUpdatesApp() local
223 textView.setText("Timed out to stopSatelliteTransmissionUpdates"); in stopTransmissionUpdatesApp()
225 textView.setText("Failed to stopSatelliteTransmissionUpdates with error = " in stopTransmissionUpdatesApp()
228 textView.setText("stopSatelliteTransmissionUpdates is successful"); in stopTransmissionUpdatesApp()
231 textView.setText("stopSatelliteTransmissionUpdates exception caught =" + e); in stopTransmissionUpdatesApp()
[all …]
DProvisioning.java88 TextView textView = findViewById(R.id.text_id); in provisionServiceApp() local
98 textView.setText("Timed out to provision the satellite"); in provisionServiceApp()
100 textView.setText("Failed to provision SatelliteService with error = " in provisionServiceApp()
103 textView.setText("Successfully provisioned the satellite"); in provisionServiceApp()
106 textView.setText("Provision SatelliteService exception caught =" + e); in provisionServiceApp()
111 TextView textView = findViewById(R.id.text_id); in deprovisionServiceApp() local
118 textView.setText("Timed out to deprovision the satellite"); in deprovisionServiceApp()
120 textView.setText("Failed to deprovision SatelliteService with error = " in deprovisionServiceApp()
123 textView.setText("Successfully deprovisioned the satellite"); in deprovisionServiceApp()
126 textView.setText("Deprovision SatelliteService exception caught =" + e); in deprovisionServiceApp()
[all …]
DMultipleSendReceive.java88 TextView textView = findViewById(R.id.text_id); in multiplePollPendingSatelliteDatagramsApp() local
90 textView.setText("multiplePollPendingSatelliteDatagrams is Successful"); in multiplePollPendingSatelliteDatagramsApp()
92 textView.setText("Status for multiplePollPendingSatelliteDatagrams : " in multiplePollPendingSatelliteDatagramsApp()
118 TextView textView = findViewById(R.id.text_id); in multipleSendSatelliteDatagramApp() local
120 textView.setText("multipleSendSatelliteDatagram is Successful"); in multipleSendSatelliteDatagramApp()
122 textView.setText("Status for multipleSendSatelliteDatagram : " in multipleSendSatelliteDatagramApp()
161 TextView textView = findViewById(R.id.text_id); in multipleSendReceiveSatelliteDatagramApp() local
163 textView.setText("multipleSendReceiveSatelliteDatagram is Successful"); in multipleSendReceiveSatelliteDatagramApp()
165 textView.setText("Status for multipleSendReceiveSatelliteDatagram : " in multipleSendReceiveSatelliteDatagramApp()
/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/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java89 final TextView textView = createAdminSupportDialogTitleTextView(view, mActivity); in testSetAdminSupportTitle() local
92 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
96 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
100 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
104 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
108 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
112 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
116 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
120 assertEquals(Shadows.shadowOf(textView).innerText(), in testSetAdminSupportTitle()
128 final TextView textView = createAdminSupportDialogTitleTextView(view, mActivity); in testSetAdminSupportTitleForFinancedDevice() local
[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/Settings/src/com/android/settings/applications/intentpicker/
DSupportedLinksAdapter.java67 final CheckedTextView textView = convertView.findViewById(android.R.id.text1); in getView() local
68 Drawable[] drawables = textView.getCompoundDrawables(); in getView()
73 textView.setCompoundDrawables(/* left= */ null, /* top= */ null, drawables[0], in getView()
76 textView.setText(mWrapperList.get(position).getDisplayTitle(mContext)); in getView()
77 textView.setEnabled(mWrapperList.get(position).isEnabled()); in getView()
78 textView.setChecked(mWrapperList.get(position).isChecked()); in getView()
79 textView.setOnClickListener(l -> { in getView()
80 textView.toggle(); in getView()
81 mWrapperList.get(position).setChecked(textView.isChecked()); in getView()
/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/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java193 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/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DTextFadeAnimator.kt58 fun animateChangeText(textView: TextView, text: String, onFinish: Runnable? = null) { in animateChangeText()
59 animateChangeText(listOf(textView to text), onFinish) in animateChangeText()
86 for ((textView, _) in textChanges) { in animateChangeText() method
87 textView.visibility = View.INVISIBLE in animateChangeText()
112 for ((textView, text) in textChanges) { in fadeTextIn() method
113 textView.text = text in fadeTextIn()
114 textView.visibility = View.VISIBLE in fadeTextIn()
119 fun cancelTextChangeAnimation(textView: TextView) { in cancelTextChangeAnimation()
120 TransitionManager.endTransitions(textView.parent as ViewGroup) in cancelTextChangeAnimation()
/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/TvSettings/Settings/src/com/android/tv/settings/accessibility/
DAccessibilityTimeoutInfoFragment.java43 TextView textView; in onCreateView() local
44 textView = (TextView) view.findViewById(R.id.info_title); in onCreateView()
45 textView.setText(R.string.accessibility_timeout_info_title); in onCreateView()
46 textView.setVisibility(View.VISIBLE); in onCreateView()
48 textView = (TextView) view.findViewById(R.id.info_summary); in onCreateView()
49 textView.setText(R.string.accessibility_timeout_info_description); in onCreateView()
50 textView.setVisibility(View.VISIBLE); in onCreateView()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageSelectionPreferenceController.java130 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/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/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/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/apps/Settings/src/com/android/settings/wifi/
DLinkablePreference.java64 TextView textView = (TextView) view.findViewById(android.R.id.title); in onBindViewHolder() local
65 if (textView == null) { in onBindViewHolder()
68 textView.setSingleLine(false); in onBindViewHolder()
80 boolean linked = LinkifyUtils.linkify(textView, contentBuilder, mClickListener); in onBindViewHolder()
82 Spannable spannableContent = (Spannable) textView.getText(); in onBindViewHolder()
88 textView.setText(spannableContent); in onBindViewHolder()
89 textView.setMovementMethod(new LinkMovementMethod()); in onBindViewHolder()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/occupantconnection/
DTextReceiverFragment.java65 TextView textView;
67 textView = (TextView) mReceivedTextContainer.getChildAt(i);
68 Object tag = textView.getTag();
72 textView.setText(text);
77 textView = new TextView(mActivity);
78 textView.setTag(zoneId);
79 textView.setText(text);
80 mReceivedTextContainer.addView(textView);
/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/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/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()

12345678