/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 | 233 mTextView.post(mUpdateMagnifierRunnable); 369 private final TextView mTextView; field in Editor 390 mTextView = textView; in Editor() 392 mTextView.setFilters(mTextView.getFilters()); in Editor() 394 mHapticTextHandleEnabled = mTextView.getContext().getResources().getBoolean( in Editor() 399 Magnifier.createBuilderWithOldMagnifierDefaults(mTextView).build(); in Editor() 462 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace() 463 Selection.setSelection((Spannable) mTextView.getText(), middle); in replace() 472 final ViewTreeObserver observer = mTextView.getViewTreeObserver(); in onAttachedToWindow() 488 updateSpellCheckSpans(0, mTextView.getText().length(), in onAttachedToWindow() [all …]
|
D | SelectionActionModeHelper.java | 77 private final TextView mTextView; field in SelectionActionModeHelper 91 mTextView = mEditor.getTextView(); in SelectionActionModeHelper() 93 mTextView.getContext(), in SelectionActionModeHelper() 94 mTextView::getTextClassifier, 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 …]
|
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 | 42 protected TextView mTextView; field in HybridNotificationView 66 return mTextView; in getTextView() 73 mTextView = (TextView) findViewById(R.id.notification_text); in onFinishInflate() 83 CrossFadeHelper.fadeOut(mTextView, transformationAmount); in onFinishInflate() 97 CrossFadeHelper.fadeIn(mTextView, transformationAmount); in onFinishInflate() 106 mTransformationHelper.addTransformedView(TRANSFORMING_VIEW_TEXT, mTextView); in onFinishInflate() 117 mTextView.setVisibility(GONE); in bind() 118 mTextView.setText(null); in bind() 120 mTextView.setVisibility(VISIBLE); in bind() 121 mTextView.setText(text.toString()); in bind()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestResultActivity.java | 34 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/ |
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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationController.java | 94 private KeyguardIndicationTextView mTextView; field in KeyguardIndicationController 200 mTextView = indicationArea.findViewById(R.id.keyguard_indication_text); in setIndicationArea() 201 mInitialTextColorState = mTextView != null ? in setIndicationArea() 202 mTextView.getTextColors() : ColorStateList.valueOf(Color.WHITE); in setIndicationArea() 390 mTextView.setTextColor(Color.WHITE); in updateIndication() 392 mTextView.switchIndication(mTransientIndication); in updateIndication() 394 mTextView.switchIndication(mAlignmentIndication); in updateIndication() 395 mTextView.setTextColor(Utils.getColorError(mContext)); in updateIndication() 399 animateText(mTextView, indication); in updateIndication() 401 mTextView.switchIndication(indication); in updateIndication() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 110 private KeyguardIndicationTextView mTextView; field in KeyguardIndicationControllerTest 120 mTextView = new KeyguardIndicationTextView(mContext); in setUp() 133 when(mIndicationArea.findViewById(R.id.keyguard_indication_text)).thenReturn(mTextView); in setUp() 235 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_showsSlowChargingIndication() 237 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_showsSlowChargingIndication() 252 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_showsNotChargingIndication() 254 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_showsNotChargingIndication() 270 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 272 assertThat(mTextView.getCurrentTextColor()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication() 288 assertThat(mTextView.getText()).isEqualTo( in onAlignmentStateChanged_whileDozing_showsNotChargingIndication() [all …]
|
/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/core/tests/coretests/src/android/widget/espresso/ |
D | TextViewActions.java | 365 private final TextView mTextView; field in TextViewActions.CurrentHandleCoordinates 370 mTextView = textView; in CurrentHandleCoordinates() 391 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandle() 418 private final TextView mTextView; field in TextViewActions.HandleCoordinates 425 mTextView = textView; in HandleCoordinates() 456 mTextView.getSelectionStart() : mTextView.getSelectionEnd(); in locateHandlePointsTextIndex() 458 final Layout layout = mTextView.getLayout(); in locateHandlePointsTextIndex() 465 TextCoordinates.convertToScreenCoordinates(mTextView, currentX, currentY); in locateHandlePointsTextIndex() 467 (new TextCoordinates(mIndex, mPrimary)).calculateCoordinates(mTextView); in locateHandlePointsTextIndex() 471 mTextView.getWindowVisibleDisplayFrame(visibleDisplayBounds); in locateHandlePointsTextIndex() [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/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()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | NumPadKey.java | 40 private PasswordTextView mTextView; field in NumPadKey 49 if (mTextView == null && mTextViewResId > 0) { 52 mTextView = (PasswordTextView) v; 55 if (mTextView != null && mTextView.isEnabled()) { 56 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()
|
/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()
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | NumericalWatcher.java | 27 private final TextView mTextView; field in NumericalWatcher 33 mTextView = textView; in NumericalWatcher() 42 String s = mTextView.getText().toString(); in afterTextChanged()
|