Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java64 private TextView mTextView; field in TextViewTest
76 mTextView = new TextView(mActivity); in testArray()
81 mTextView.setText(c, 1, 4); in testArray()
82 CharSequence oldText = mTextView.getText(); in testArray()
84 mTextView.setText(c, 4, 5); in testArray()
85 CharSequence newText = mTextView.getText(); in testArray()
107 mTextView = new TextView(mActivity); in testHyphenationWidth()
108 mTextView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL); in testHyphenationWidth()
109 mTextView.setTextLocale(Locale.US); in testHyphenationWidth()
111 Paint paint = mTextView.getPaint(); in testHyphenationWidth()
[all …]
DTextViewPerformanceTest.java41 private PerformanceTextView mTextView; field in TextViewPerformanceTest
63 mTextView = new PerformanceTextView(context); in setUp()
64 mTextView.setLayoutParams(p); in setUp()
65 mTextView.setText(mString); in setUp()
66 mTextView.mySetFrame(320, 240); in setUp()
67 mTextView.measure(View.MeasureSpec.AT_MOST | 320, View.MeasureSpec.AT_MOST | 240); in setUp()
73 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
74 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
75 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
76 mTextView.myDraw(mCanvas); in testDrawTextViewLine()
[all …]
DTextViewProcessTextTest.java49 private TextView mTextView; field in TextViewProcessTextTest
59 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testProcessTextActivityResultNonEditable()
62 mTextView.setText(originalText, BufferType.SPANNABLE); in testProcessTextActivityResultNonEditable()
63 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
64 mTextView.setTextIsSelectable(true); in testProcessTextActivityResultNonEditable()
65 Selection.setSelection((Spannable) mTextView.getText(), 0, mTextView.getText().length()); in testProcessTextActivityResultNonEditable()
74 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable()
79 mActivityRule.runOnUiThread(() -> mTextView = new EditText(mActivity)); in testProcessTextActivityResultCancel()
82 mTextView.setText(originalText, BufferType.SPANNABLE); in testProcessTextActivityResultCancel()
83 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultCancel()
[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.java51 private final TextView mTextView; field in EditableInputConnection
61 mTextView = textview; in EditableInputConnection()
66 TextView tv = mTextView; in getEditable()
77 mTextView.beginBatchEdit(); in beginBatchEdit()
93 mTextView.endBatchEdit(); in endBatchEdit()
104 mTextView.notifyContentCaptureTextChanged(); in endComposingRegionEditInternal()
123 KeyListener kl = mTextView.getKeyListener(); in clearMetaKeyStates()
126 kl.clearMetaKeyState(mTextView, content, states); in clearMetaKeyStates()
138 mTextView.beginBatchEdit(); in commitCompletion()
139 mTextView.onCommitCompletion(text); in commitCompletion()
[all …]
DTextViewInputDisabler.java30 private TextView mTextView; field in TextViewInputDisabler
44 mTextView = textView; in TextViewInputDisabler()
45 mDefaultFilters = mTextView.getFilters(); in TextViewInputDisabler()
50 mTextView.setFilters(enabled ? mDefaultFilters : mNoInputFilters); in setInputEnabled()
/frameworks/base/core/java/android/widget/
DEditor.java254 mTextView.post(mUpdateMagnifierRunnable);
399 private final TextView mTextView; field in Editor
451 mTextView = textView; in Editor()
453 mTextView.setFilters(mTextView.getFilters()); in Editor()
455 mHapticTextHandleEnabled = mTextView.getContext().getResources().getBoolean( in Editor()
488 mTextView.getContext().getResources().getDisplayMetrics()); in Editor()
491 mTextView.getContext().getResources().getDisplayMetrics()); in Editor()
527 : Magnifier.createBuilderWithOldMagnifierDefaults(mTextView); in getMagnifierAnimator()
534 final Magnifier.Builder params = new Magnifier.Builder(mTextView); in createBuilderWithInlineMagnifierDefaults()
553 mTextView.getContext().getResources().getDisplayMetrics()); in createBuilderWithInlineMagnifierDefaults()
[all …]
DSelectionActionModeHelper.java77 private final TextView mTextView; field in SelectionActionModeHelper
91 mTextView = mEditor.getTextView(); in SelectionActionModeHelper()
93 mTextView.getContext(), in SelectionActionModeHelper()
94 mTextView::getTextClassificationSession, in SelectionActionModeHelper()
95 getText(mTextView), in SelectionActionModeHelper()
96 0, 1, mTextView.getTextLocales()); in SelectionActionModeHelper()
97 mSelectionTracker = new SelectionTracker(mTextView); in SelectionActionModeHelper()
100 mSmartSelectSprite = new SmartSelectSprite(mTextView.getContext(), in SelectionActionModeHelper()
101 editor.getTextView().mHighlightColor, mTextView::invalidate); in SelectionActionModeHelper()
139 int[] sortedSelectionIndices = sortSelectionIndicesFromTextView(mTextView); in startSelectionActionModeAsync()
[all …]
DSpellChecker.java70 private final TextView mTextView; field in SpellChecker
101 mTextView = textView; in SpellChecker()
108 setLocale(mTextView.getSpellCheckerLocale()); in SpellChecker()
116 mTextServicesManager = mTextView.getTextServicesManagerForUser(); in resetSession()
119 || mTextView.length() == 0 in resetSession()
133 params, mTextView.getContext().getMainExecutor(), this); in resetSession()
143 mTextView.removeMisspelledSpans((Editable) mTextView.getText()); in resetSession()
158 mTextView.onLocaleChanged(); in setLocale()
180 mTextView.removeCallbacks(mSpellRunnable); in closeSession()
221 final int end = mTextView.length(); in onPerformSpellCheck()
[all …]
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/
DLinkAccessibilityHelperTest.java57 private TextView mTextView; field in LinkAccessibilityHelperTest
137 mTextView.setPadding(1, 1, 1, 1); in testNullLayout()
265 helper.sendAccessibilityEvent(mTextView, AccessibilityEvent.TYPE_VIEW_CLICKED); in testMethodDelegation()
267 .sendAccessibilityEvent(same(mTextView), eq(AccessibilityEvent.TYPE_VIEW_CLICKED)); in testMethodDelegation()
269 helper.sendAccessibilityEventUnchecked(mTextView, accessibilityEvent); in testMethodDelegation()
270 verify(delegate).sendAccessibilityEventUnchecked(same(mTextView), same(accessibilityEvent)); in testMethodDelegation()
273 mTextView, AccessibilityActionCompat.ACTION_CLICK.getId(), Bundle.EMPTY); in testMethodDelegation()
276 same(mTextView), eq(AccessibilityActionCompat.ACTION_CLICK.getId()), eq(Bundle.EMPTY)); in testMethodDelegation()
278 helper.dispatchPopulateAccessibilityEvent(mTextView, accessibilityEvent); in testMethodDelegation()
279 verify(delegate).dispatchPopulateAccessibilityEvent(same(mTextView), same(accessibilityEvent)); in testMethodDelegation()
[all …]
/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 …]
DRvArrayAdapter.java29 private final TextView mTextView; field in RvArrayAdapter.ViewHolder
33 mTextView = (TextView) v.findViewById(android.R.id.text1); in ViewHolder()
37 return mTextView; in getTextView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DHybridNotificationView.java41 protected TextView mTextView; field in HybridNotificationView
65 return mTextView; in getTextView()
72 mTextView = findViewById(R.id.notification_text); in onFinishInflate()
81 CrossFadeHelper.fadeOut(mTextView, transformationAmount); in onFinishInflate()
95 CrossFadeHelper.fadeIn(mTextView, transformationAmount, true /* remap */); in onFinishInflate()
104 mTransformationHelper.addTransformedView(TRANSFORMING_VIEW_TEXT, mTextView); in onFinishInflate()
112 mTextView.setVisibility(GONE); in bind()
113 mTextView.setText(null); in bind()
115 mTextView.setVisibility(VISIBLE); in bind()
116 mTextView.setText(text.toString()); in bind()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DImageFloatingTextViewTest.java38 private TextView mTextView; field in ImageFloatingTextViewTest
45 mTextView = new TextView(mContext, null, 0, 0); in setup()
46 mTextView.setMaxLines(9); in setup()
122 mTextView.setText(text); in parametrizedTest()
125 mTextView.measure(widthMeasureSpec, heightMeasureSpec); in parametrizedTest()
131 mView.getMeasuredHeight() <= mTextView.getMeasuredHeight()); in parametrizedTest()
/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/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotActionChip.java40 private TextView mTextView; field in ScreenshotActionChip
63 mTextView = findViewById(R.id.screenshot_action_chip_text); in onFinishInflate()
64 updatePadding(mTextView.getText().length() > 0); in onFinishInflate()
81 mTextView.setText(text); in setText()
105 (LinearLayout.LayoutParams) mTextView.getLayoutParams(); in updatePadding()
120 mTextView.setVisibility(hasText ? View.VISIBLE : View.GONE); in updatePadding()
122 mTextView.setLayoutParams(textParams); in updatePadding()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DBaseTooltipView.java69 private TextView mTextView; field in BaseTooltipView
140 mTextView.setText(text); in setDescription()
144 mTextView.setMovementMethod(movement); in setMovementMethod()
156 mTextView = contentView.findViewById(R.id.text); in initViews()
211 mTextView.setTextSize(COMPLEX_UNIT_PX, mFontSize); in updateTextView()
212 mTextView.setPadding(mTextViewPadding, mTextViewPadding, mTextViewPadding, in updateTextView()
215 final GradientDrawable gradientDrawable = (GradientDrawable) mTextView.getBackground(); in updateTextView()
241 final ViewGroup.LayoutParams layoutParams = mTextView.getLayoutParams(); in updateWidthWith()
243 mTextView.setLayoutParams(layoutParams); in updateWidthWith()
278 mTextView.measure(widthSpec, heightSpec); in getTextWidthWith()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMigrationTooltipViewTest.java42 private TextView mTextView; field in MigrationTooltipViewTest
50 mTextView = toolTipView.findViewById(R.id.text); in setUp()
55 assertThat(mTextView.getMovementMethod()).isInstanceOf(LinkMovementMethod.class); in onCreate_setLinkMovementMethod()
63 final SpannableString spannableString = (SpannableString) mTextView.getText(); in onCreate_setDescription_matchTextAndSpanNum()
69 assertThat(mTextView.getText().toString().contentEquals(expectedTextWithoutSpan)).isTrue(); in onCreate_setDescription_matchTextAndSpanNum()
/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/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java466 private final TextView mTextView; field in TextViewActions.CurrentHandleCoordinates
471 mTextView = textView; in CurrentHandleCoordinates()
492 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandle()
519 private final TextView mTextView; field in TextViewActions.HandleCoordinates
526 mTextView = textView; in HandleCoordinates()
557 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex()
559 final Layout layout = mTextView.getLayout(); in locateHandlePointsTextIndex()
566 TextCoordinates.convertToScreenCoordinates(mTextView, currentX, currentY); in locateHandlePointsTextIndex()
568 (new TextCoordinates(mIndex, mPrimary)).calculateCoordinates(mTextView); in locateHandlePointsTextIndex()
572 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandlePointsTextIndex()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DTitleBar.java28 private TextView mTextView; field in TitleBar
36 mTextView = setText(0, label); in TitleBar()
43 return mTextView; in getStyleableTextView()
/frameworks/base/core/tests/coretests/src/android/text/method/
DForwardDeleteTest.java44 private EditText mTextView; field in ForwardDeleteTest
54 mTextView = new EditText(InstrumentationRegistry.getInstrumentation().getContext()); in setup()
60 mTextView.setText(state.mText, BufferType.EDITABLE); in forwardDelete()
61 mTextView.setKeyListener(mKeyListener); in forwardDelete()
62 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete()
66 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete()
68 state.mText = mTextView.getText(); in forwardDelete()
69 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete()
70 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()
/frameworks/base/core/tests/coretests/src/android/view/
DDrawableBgMinSizeTest.java44 private TextView mTextView; field in DrawableBgMinSizeTest
63 mTextView = (TextView) a.findViewById(R.id.text_view); in setUp()
75 assertNotNull(mTextView); in testSetUpConditions()
91 doMinimumSizeTest(mTextView); in testTextViewMinimumSize()
128 doDiffBgMinimumSizeTest(mTextView); in testTextViewDiffBgMinimumSize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DHeadsUpStatusBarView.java47 private TextView mTextView; field in HeadsUpStatusBarView
101 mTextView = textView; in HeadsUpStatusBarView()
108 mTextView = findViewById(R.id.text); in onFinishInflate()
122 mTextView.setText(text); in setEntry()
165 mTextView.setTextColor(DarkIconDispatcher.getTint(area, this, tint)); in onDarkChanged()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DCrossfadeMultiple.java40 TextView mTextView; field in CrossfadeMultiple
57 mTextView = findViewById(R.id.textview); in onCreate()
102 mTextView.setText("1111111"); in sendMessage()
108 mTextView.setText("2222222"); in sendMessage()
114 mTextView.setText("3333333"); in sendMessage()

12