Home
last modified time | relevance | path

Searched refs:mTextView (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewPerformanceTest.java35 private PerformanceTextView mTextView; field in TextViewPerformanceTest
57 mTextView = new PerformanceTextView(mContext); in setUp()
58 mTextView.setLayoutParams(p); in setUp()
59 mTextView.setText(mString); in setUp()
60 mTextView.mySetFrame(320, 240); in setUp()
61 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
66 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
67 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
68 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
69 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
[all …]
DTextViewTest.java38 private TextView mTextView; field in TextViewTest
50 mTextView = new TextView(getActivity()); in testArray()
58 mTextView.setText(c, 1, 4); in testArray()
59 CharSequence oldText = mTextView.getText(); in testArray()
61 mTextView.setText(c, 4, 5); in testArray()
62 CharSequence newText = mTextView.getText(); in testArray()
86 mTextView = new TextView(getActivity()); in testProcessTextActivityResultNonEditable()
91 mTextView.setText(originalText, TextView.BufferType.SPANNABLE); in testProcessTextActivityResultNonEditable()
92 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
93 mTextView.setTextIsSelectable(true); in testProcessTextActivityResultNonEditable()
[all …]
DAutoCompleteTextViewSimple.java33 private AutoCompleteTextView mTextView; field in AutoCompleteTextViewSimple
50 mTextView = findViewById(R.id.autocompletetextview1); in onCreate()
53 mTextView.setOnItemClickListener(this); in onCreate()
54 mTextView.setOnItemSelectedListener(this); in onCreate()
64 return mTextView; in getTextView()
80 mTextView.setAdapter(adapter); in setStringAdapter()
/frameworks/base/core/java/com/android/internal/widget/
DEditableInputConnection.java37 private final TextView mTextView; field in EditableInputConnection
46 mTextView = textview; in EditableInputConnection()
51 TextView tv = mTextView; in getEditable()
62 mTextView.beginBatchEdit(); in beginBatchEdit()
78 mTextView.endBatchEdit(); in endBatchEdit()
102 KeyListener kl = mTextView.getKeyListener(); in clearMetaKeyStates()
105 kl.clearMetaKeyState(mTextView, content, states); in clearMetaKeyStates()
117 mTextView.beginBatchEdit(); in commitCompletion()
118 mTextView.onCommitCompletion(text); in commitCompletion()
119 mTextView.endBatchEdit(); in commitCompletion()
[all …]
DTextViewInputDisabler.java29 private TextView mTextView; field in TextViewInputDisabler
42 mTextView = textView; in TextViewInputDisabler()
43 mDefaultFilters = mTextView.getFilters(); in TextViewInputDisabler()
47 mTextView.setFilters(enabled ? mDefaultFilters : mNoInputFilters); in setInputEnabled()
/frameworks/base/core/java/android/widget/
DEditor.java298 private final TextView mTextView; field in Editor
319 mTextView = textView; in Editor()
321 mTextView.setFilters(mTextView.getFilters()); in Editor()
383 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace()
384 Selection.setSelection((Spannable) mTextView.getText(), middle); in replace()
393 final ViewTreeObserver observer = mTextView.getViewTreeObserver(); in onAttachedToWindow()
403 updateSpellCheckSpans(0, mTextView.getText().length(), in onAttachedToWindow()
406 if (mTextView.hasSelection()) { in onAttachedToWindow()
432 mTextView.removeCallbacks(mShowSuggestionRunnable); in onDetachedFromWindow()
437 mTextView.removeCallbacks(mInsertionActionModeRunnable); in onDetachedFromWindow()
[all …]
DSpellChecker.java69 private final TextView mTextView; field in SpellChecker
105 mTextView = textView; in SpellChecker()
112 setLocale(mTextView.getSpellCheckerLocale()); in SpellChecker()
120 mTextServicesManager = (TextServicesManager) mTextView.getContext(). in resetSession()
141 mTextView.removeMisspelledSpans((Editable) mTextView.getText()); in resetSession()
156 mTextView.onLocaleChanged(); in setLocale()
178 mTextView.removeCallbacks(mSpellRunnable); in closeSession()
220 final Locale locale = mTextView.getSpellCheckerLocale(); in spellCheck()
226 end = mTextView.getText().length(); in spellCheck()
263 Editable editable = (Editable) mTextView.getText(); in spellCheck()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatTextViewAutoSizeHelper.java90 private final TextView mTextView; field in AppCompatTextViewAutoSizeHelper
94 mTextView = textView; in AppCompatTextViewAutoSizeHelper()
95 mContext = mTextView.getContext(); in AppCompatTextViewAutoSizeHelper()
541 if (mTextView.getMeasuredHeight() <= 0 || mTextView.getMeasuredWidth() <= 0) { in autoSizeText()
545 final int maxWidth = mTextView.getWidth() - mTextView.getTotalPaddingLeft() in autoSizeText()
546 - mTextView.getTotalPaddingRight(); in autoSizeText()
548 ? mTextView.getHeight() - mTextView.getExtendedPaddingBottom() in autoSizeText()
549 - mTextView.getExtendedPaddingBottom() in autoSizeText()
550 : mTextView.getHeight() - mTextView.getCompoundPaddingBottom() in autoSizeText()
551 - mTextView.getCompoundPaddingTop(); in autoSizeText()
[all …]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiTextViewHelperTest.java51 TextView mTextView; field in EmojiTextViewHelperTest
55 mTextView = new TextView(InstrumentationRegistry.getTargetContext()); in setup()
56 mTextViewHelper = new EmojiTextViewHelper(mTextView); in setup()
61 mTextView.setTransformationMethod(mock(TransformationMethod.class)); in testUpdateTransformationMethod()
65 assertThat(mTextView.getTransformationMethod(), in testUpdateTransformationMethod()
73 mTextView.setTransformationMethod(transformationMethod); in testUpdateTransformationMethod_doesNotUpdateForPasswordTransformation()
77 assertEquals(transformationMethod, mTextView.getTransformationMethod()); in testUpdateTransformationMethod_doesNotUpdateForPasswordTransformation()
82 mTextView.setTransformationMethod(mock(TransformationMethod.class)); in testUpdateTransformationMethod_doesNotCreateNewInstance()
85 final TransformationMethod tm = mTextView.getTransformationMethod(); in testUpdateTransformationMethod_doesNotCreateNewInstance()
90 assertSame(tm, mTextView.getTransformationMethod()); in testUpdateTransformationMethod_doesNotCreateNewInstance()
[all …]
DEmojiTextViewHelperPre19Test.java40 TextView mTextView; field in EmojiTextViewHelperPre19Test
44 mTextView = new TextView(InstrumentationRegistry.getTargetContext()); in setup()
45 mTextViewHelper = new EmojiTextViewHelper(mTextView); in setup()
51 mTextView.setTransformationMethod(tm); in testUpdateTransformationMethod_doesNotUpdateTransformationMethod()
55 assertSame(tm, mTextView.getTransformationMethod()); in testUpdateTransformationMethod_doesNotUpdateTransformationMethod()
79 mTextView.setTransformationMethod(tm); in testSetAllCaps_doesNotUpdateTransformationMethod()
81 assertSame(tm, mTextView.getTransformationMethod()); in testSetAllCaps_doesNotUpdateTransformationMethod()
84 assertSame(tm, mTextView.getTransformationMethod()); in testSetAllCaps_doesNotUpdateTransformationMethod()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvBoxAdapter.java36 public TextView mTextView; field in RvBoxAdapter.ViewHolder
40 mTextView = v; in ViewHolder()
45 return super.toString() + " '" + mTextView.getText(); in toString()
63 h.mTextView.setMinimumHeight(128); in onCreateViewHolder()
64 h.mTextView.setPadding(20, 0, 20, 0); in onCreateViewHolder()
65 h.mTextView.setFocusable(true); in onCreateViewHolder()
66 h.mTextView.setBackgroundResource(mBackground); in onCreateViewHolder()
74 h.mTextView.setLayoutParams(lp); in onCreateViewHolder()
80 holder.mTextView.setText(position + ":" + mValues.get(position)); in onBindViewHolder()
81 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10)); in onBindViewHolder()
[all …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/adapter/
DSimpleStringAdapter.java41 public TextView mTextView; field in SimpleStringAdapter.ViewHolder
45 mTextView = v; in ViewHolder()
50 return super.toString() + " '" + mTextView.getText(); in toString()
80 h.mTextView.setMinimumHeight(128); in onCreateViewHolder()
81 h.mTextView.setPadding(20, 0, 20, 0); in onCreateViewHolder()
82 h.mTextView.setFocusable(true); in onCreateViewHolder()
83 h.mTextView.setBackgroundResource(mBackground); in onCreateViewHolder()
85 h.mTextView.setLayoutParams(lp); in onCreateViewHolder()
92 holder.mTextView.setText(position + ":" + mValues.get(position)); in onBindViewHolder()
93 holder.mTextView.setMinHeight((200 + mValues.get(position).length() * 10)); in onBindViewHolder()
[all …]
/frameworks/support/compat/tests/java/android/support/v4/widget/
DTextViewCompatTest.java52 private TextView mTextView; field in TextViewCompatTest
81 mTextView = (TextView) mActivityTestRule.getActivity().findViewById(R.id.text_view); in setUp()
89 assertEquals("Empty view: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines()
93 assertEquals("Short text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines()
97 assertEquals("Medium text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines()
101 assertEquals("Long text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines()
110 assertEquals("Empty view: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines()
114 assertEquals("Short text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines()
118 assertEquals("Medium text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines()
122 assertEquals("Long text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DHybridNotificationView.java43 protected TextView mTextView; field in HybridNotificationView
68 return mTextView; in getTextView()
75 mTextView = (TextView) findViewById(R.id.notification_text); in onFinishInflate()
86 CrossFadeHelper.fadeOut(mTextView, transformationAmount); in onFinishInflate()
100 CrossFadeHelper.fadeIn(mTextView, transformationAmount); in onFinishInflate()
109 mTransformationHelper.addTransformedView(TRANSFORMING_VIEW_TEXT, mTextView); in onFinishInflate()
120 mTextView.setVisibility(GONE); in bind()
121 mTextView.setText(null); in bind()
123 mTextView.setVisibility(VISIBLE); in bind()
124 mTextView.setText(text.toString()); in bind()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestResultActivity.java34 private TextView mTextView; field in TestResultActivity
52 mTextView = new TextView(this); in onCreate()
53 mTextView.setText(getIntent().getStringExtra("message") + "\n"); in onCreate()
55 mTextView, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); in onCreate()
61 mTextView.setText(mTextView.getText() + intent.getStringExtra("message") + "\n"); in onNewIntent()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java35 private TextView mTextView; field in ImageFloatingTextViewTest
42 mTextView = new TextView(mContext, null, 0, 0); in setup()
43 mTextView.setMaxLines(9); in setup()
109 mTextView.setText(text); in parametrizedTest()
112 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
118 mView.getMeasuredHeight() <= mTextView.getMeasuredHeight()); in parametrizedTest()
/frameworks/support/design/src/android/support/design/internal/
DNavigationMenuItemView.java61 private final CheckedTextView mTextView; field in NavigationMenuItemView
99 mTextView = findViewById(R.id.design_menu_item_text); in NavigationMenuItemView()
100 mTextView.setDuplicateParentStateEnabled(true); in NavigationMenuItemView()
101 ViewCompat.setAccessibilityDelegate(mTextView, mAccessibilityDelegate); in NavigationMenuItemView()
134 mTextView.setVisibility(View.GONE); in adjustAppearance()
141 mTextView.setVisibility(View.VISIBLE); in adjustAppearance()
154 mTextView.setCompoundDrawables(null, null, null, null); in recycle()
187 mTextView.setText(title); in setTitle()
195 mAccessibilityDelegate.sendAccessibilityEvent(mTextView, in setCheckable()
203 mTextView.setChecked(checked); in setChecked()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DTextViewTarget.java30 private TextView mTextView = null; field in TextViewTarget
39 mTextView = (TextView)view; in onBindToView()
56 if (mTextView != null) { in onProcess()
57 mTextView.post(new Runnable() { in onProcess()
60 mTextView.setText(text); in onProcess()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java348 private final TextView mTextView; field in TextViewActions.CurrentHandleCoordinates
353 mTextView = textView; in CurrentHandleCoordinates()
374 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandle()
401 private final TextView mTextView; field in TextViewActions.HandleCoordinates
408 mTextView = textView; in HandleCoordinates()
439 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex()
441 final Layout layout = mTextView.getLayout(); in locateHandlePointsTextIndex()
448 TextCoordinates.convertToScreenCoordinates(mTextView, currentX, currentY); in locateHandlePointsTextIndex()
450 (new TextCoordinates(mIndex, mPrimary)).calculateCoordinates(mTextView); in locateHandlePointsTextIndex()
454 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandlePointsTextIndex()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DTitleView.java36 private TextView mTextView; field in TitleView
108 mTextView = (TextView) rootView.findViewById(R.id.title_text); in TitleView()
119 mTextView.setText(titleText); in setTitle()
127 return mTextView.getText(); in getTitle()
199 mTextView.setVisibility(View.GONE); in updateComponentsVisibility()
214 mTextView.setVisibility(View.GONE); in updateBadgeVisibility()
217 mTextView.setVisibility(View.VISIBLE); in updateBadgeVisibility()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DMultiPageTextWithPaddingTest.java34 private TextView mTextView; field in MultiPageTextWithPaddingTest
45 mTextView = getActivity().getContentChildAt(0); in setUp()
51 mTextView.getHeight() > mScrollView.getHeight()); in testPreconditions()
58 (mTextView.getHeight() - mScrollView.getHeight())) in testScrollDownToBottom()
/frameworks/support/samples/SupportEmojiDemos/src/com/example/android/support/text/emoji/
DListFragment.java76 holder.mTextView = view.findViewById(R.id.text); in getView()
81 holder.mTextView.setText(item.getCodepointString()); in getView()
82 holder.mTextView.setContentDescription(holder.mTextView.getText()); in getView()
89 TextView mTextView; field in ListFragment.ViewHolder
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java70 private final KeyguardIndicationTextView mTextView; field in KeyguardIndicationController
116 mTextView = (KeyguardIndicationTextView) indicationArea.findViewById( in KeyguardIndicationController()
264 mTextView.switchIndication(mTransientIndication); in updateIndication()
265 mTextView.setTextColor(mTransientTextColor); in updateIndication()
268 mTextView.switchIndication(null); in updateIndication()
274 mTextView.switchIndication(com.android.internal.R.string.lockscreen_storage_locked); in updateIndication()
275 mTextView.setTextColor(Color.WHITE); in updateIndication()
278 mTextView.switchIndication(mTransientIndication); in updateIndication()
279 mTextView.setTextColor(mTransientTextColor); in updateIndication()
286 mTextView.switchIndication(indication); in updateIndication()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DErrorSupportFragment.java40 private TextView mTextView; field in ErrorSupportFragment
172 mTextView = (TextView) root.findViewById(R.id.message); in onCreateView()
178 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView()
181 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
204 if (mTextView != null) { in updateMessage()
205 mTextView.setText(mMessage); in updateMessage()
206 mTextView.setVisibility(TextUtils.isEmpty(mMessage) ? View.GONE : View.VISIBLE); in updateMessage()
DErrorFragment.java37 private TextView mTextView; field in ErrorFragment
169 mTextView = (TextView) root.findViewById(R.id.message); in onCreateView()
175 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView()
178 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView()
201 if (mTextView != null) { in updateMessage()
202 mTextView.setText(mMessage); in updateMessage()
203 mTextView.setVisibility(TextUtils.isEmpty(mMessage) ? View.GONE : View.VISIBLE); in updateMessage()

123