/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 63 private TextView mTextView; field in TextViewTest 75 mTextView = new TextView(mActivity); in testArray() 80 mTextView.setText(c, 1, 4); in testArray() 81 CharSequence oldText = mTextView.getText(); in testArray() 83 mTextView.setText(c, 4, 5); in testArray() 84 CharSequence newText = mTextView.getText(); in testArray() 105 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testProcessTextActivityResultNonEditable() 108 mTextView.setText(originalText, TextView.BufferType.SPANNABLE); in testProcessTextActivityResultNonEditable() 109 assertEquals(originalText, mTextView.getText().toString()); in testProcessTextActivityResultNonEditable() 110 mTextView.setTextIsSelectable(true); in testProcessTextActivityResultNonEditable() [all …]
|
D | TextViewPerformanceTest.java | 41 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 …]
|
D | AutoCompleteTextViewSimple.java | 33 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/ |
D | EditableInputConnection.java | 36 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 …]
|
D | TextViewInputDisabler.java | 30 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/ |
D | Editor.java | 241 mTextView.post(mUpdateMagnifierRunnable); 369 private final TextView mTextView; field in Editor 416 mTextView = textView; in Editor() 418 mTextView.setFilters(mTextView.getFilters()); in Editor() 420 mHapticTextHandleEnabled = mTextView.getContext().getResources().getBoolean( in Editor() 443 mTextView.getContext().getResources().getDisplayMetrics()); in Editor() 446 mTextView.getContext().getResources().getDisplayMetrics()); in Editor() 477 : Magnifier.createBuilderWithOldMagnifierDefaults(mTextView); in getMagnifierAnimator() 484 final Magnifier.Builder params = new Magnifier.Builder(mTextView); in createBuilderWithInlineMagnifierDefaults() 503 mTextView.getContext().getResources().getDisplayMetrics()); in createBuilderWithInlineMagnifierDefaults() [all …]
|
D | SelectionActionModeHelper.java | 76 private final TextView mTextView; field in SelectionActionModeHelper 90 mTextView = mEditor.getTextView(); in SelectionActionModeHelper() 92 mTextView.getContext(), in SelectionActionModeHelper() 93 mTextView::getTextClassificationSession, in SelectionActionModeHelper() 94 getText(mTextView), in SelectionActionModeHelper() 95 0, 1, mTextView.getTextLocales()); in SelectionActionModeHelper() 96 mSelectionTracker = new SelectionTracker(mTextView); in SelectionActionModeHelper() 99 mSmartSelectSprite = new SmartSelectSprite(mTextView.getContext(), in SelectionActionModeHelper() 100 editor.getTextView().mHighlightColor, mTextView::invalidate); in SelectionActionModeHelper() 138 int[] sortedSelectionIndices = sortSelctionIndicesFromTextView(mTextView); in startSelectionActionModeAsync() [all …]
|
D | SpellChecker.java | 69 private final TextView mTextView; field in SpellChecker 106 mTextView = textView; in SpellChecker() 113 setLocale(mTextView.getSpellCheckerLocale()); in SpellChecker() 121 mTextServicesManager = mTextView.getTextServicesManagerForUser(); in resetSession() 124 || mTextView.length() == 0 in resetSession() 143 mTextView.removeMisspelledSpans((Editable) mTextView.getText()); in resetSession() 158 mTextView.onLocaleChanged(); in setLocale() 180 mTextView.removeCallbacks(mSpellRunnable); in closeSession() 222 final Locale locale = mTextView.getSpellCheckerLocale(); in spellCheck() 228 end = mTextView.getText().length(); in spellCheck() [all …]
|
/frameworks/opt/setupwizard/library/gingerbread/test/instrumentation/src/com/android/setupwizardlib/util/ |
D | LinkAccessibilityHelperTest.java | 57 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/ |
D | RvBoxAdapter.java | 36 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 …]
|
D | RvArrayAdapter.java | 29 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/ |
D | HybridNotificationView.java | 41 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/ |
D | ImageFloatingTextViewTest.java | 38 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/ |
D | TextViewTarget.java | 30 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/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 121 private KeyguardIndicationTextView mTextView; field in KeyguardIndicationControllerTest 132 mTextView = new KeyguardIndicationTextView(mContext); in setUp() 147 when(mIndicationArea.findViewById(R.id.keyguard_indication_text)).thenReturn(mTextView); in setUp() 189 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_showsSlowChargingIndication() 191 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_showsSlowChargingIndication() 206 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_showsNotChargingIndication() 208 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_showsNotChargingIndication() 224 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 226 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 242 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsNotChargingIndication() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 98 private KeyguardIndicationTextView mTextView; field in KeyguardIndicationController 175 mTextView = indicationArea.findViewById(R.id.keyguard_indication_text); in setIndicationArea() 176 mInitialTextColorState = mTextView != null ? in setIndicationArea() 177 mTextView.getTextColors() : ColorStateList.valueOf(Color.WHITE); in setIndicationArea() 398 mTextView.setTextColor(Color.WHITE); in updateIndication() 400 mTextView.switchIndication(mTransientIndication); in updateIndication() 402 mTextView.switchIndication(mAlignmentIndication); in updateIndication() 403 mTextView.setTextColor(mContext.getColor(R.color.misalignment_text_color)); in updateIndication() 407 animateText(mTextView, indication); in updateIndication() 409 mTextView.switchIndication(indication); in updateIndication() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | MultiPageTextWithPaddingTest.java | 34 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/ |
D | TextViewActions.java | 466 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/ |
D | TitleBar.java | 28 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/ |
D | ForwardDeleteTest.java | 44 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()
|
D | BackspaceTest.java | 45 private EditText mTextView; field in BackspaceTest 55 mTextView = new EditText(InstrumentationRegistry.getInstrumentation().getContext()); in setup() 62 mTextView.setText(state.mText, BufferType.EDITABLE); in backspace() 63 mTextView.setKeyListener(mKeyListener); in backspace() 64 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 68 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in backspace() 70 state.mText = mTextView.getText(); in backspace() 71 state.mSelectionStart = mTextView.getSelectionStart(); in backspace() 72 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | NumPadKey.java | 45 private PasswordTextView mTextView; field in NumPadKey 50 if (mTextView == null && mTextViewResId > 0) { 53 mTextView = (PasswordTextView) v; 56 if (mTextView != null && mTextView.isEnabled()) { 57 mTextView.append(Character.forDigit(mDigit, 10));
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DrawableBgMinSizeTest.java | 44 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()
|
D | DrawableBgMinSize.java | 45 private TextView mTextView; field in DrawableBgMinSize 63 mTextView = findViewById(R.id.text_view); in onCreate() 73 mTextView.setBackgroundDrawable(newBg); in changeBackgrounds()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | CrossfadeMultiple.java | 40 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()
|