/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewTest.java | 75 private TextView mTextView; field in TextViewTest 87 mTextView = new TextView(mActivity); in testArray() 92 mTextView.setText(c, 1, 4); in testArray() 93 CharSequence oldText = mTextView.getText(); in testArray() 95 mTextView.setText(c, 4, 5); in testArray() 96 CharSequence newText = mTextView.getText(); in testArray() 118 mTextView = new TextView(mActivity); in testHyphenationWidth() 119 mTextView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL); in testHyphenationWidth() 120 mTextView.setTextLocale(Locale.US); in testHyphenationWidth() 122 Paint paint = mTextView.getPaint(); in testHyphenationWidth() [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 | TextViewProcessTextTest.java | 49 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 …]
|
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/inputmethod/ |
D | EditableInputConnection.java | 68 private final TextView mTextView; field in EditableInputConnection 77 mTextView = textview; in EditableInputConnection() 82 TextView tv = mTextView; in getEditable() 93 mTextView.beginBatchEdit(); in beginBatchEdit() 109 mTextView.endBatchEdit(); in endBatchEdit() 120 mTextView.notifyContentCaptureTextChanged(); in endComposingRegionEditInternal() 139 KeyListener kl = mTextView.getKeyListener(); in clearMetaKeyStates() 142 kl.clearMetaKeyState(mTextView, content, states); in clearMetaKeyStates() 154 mTextView.beginBatchEdit(); in commitCompletion() 155 mTextView.onCommitCompletion(text); in commitCompletion() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 279 mTextView.post(mUpdateMagnifierRunnable); 424 private final TextView mTextView; field in Editor 480 mTextView = textView; in Editor() 482 mTextView.setFilters(mTextView.getFilters()); in Editor() 484 mA11ySmartActions = new AccessibilitySmartActions(mTextView); in Editor() 485 mHapticTextHandleEnabled = mTextView.getContext().getResources().getBoolean( in Editor() 521 mTextView.getContext().getResources().getDisplayMetrics()); in Editor() 524 mTextView.getContext().getResources().getDisplayMetrics()); in Editor() 560 : Magnifier.createBuilderWithOldMagnifierDefaults(mTextView); in getMagnifierAnimator() 567 final Magnifier.Builder params = new Magnifier.Builder(mTextView); in createBuilderWithInlineMagnifierDefaults() [all …]
|
D | SelectionActionModeHelper.java | 78 private final TextView mTextView; field in SelectionActionModeHelper 92 mTextView = mEditor.getTextView(); in SelectionActionModeHelper() 94 mTextView.getContext(), in SelectionActionModeHelper() 95 mTextView::getTextClassificationSession, in SelectionActionModeHelper() 96 getText(mTextView), in SelectionActionModeHelper() 97 0, 1, mTextView.getTextLocales()); in SelectionActionModeHelper() 98 mSelectionTracker = new SelectionTracker(mTextView); in SelectionActionModeHelper() 101 mSmartSelectSprite = new SmartSelectSprite(mTextView.getContext(), in SelectionActionModeHelper() 102 editor.getTextView().mHighlightColor, mTextView::invalidate); in SelectionActionModeHelper() 140 int[] sortedSelectionIndices = sortSelectionIndicesFromTextView(mTextView); in startSelectionActionModeAsync() [all …]
|
D | SpellChecker.java | 71 private final TextView mTextView; field in SpellChecker 102 mTextView = textView; in SpellChecker() 109 setLocale(mTextView.getSpellCheckerLocale()); in SpellChecker() 117 mTextServicesManager = mTextView.getTextServicesManagerForUser(); in resetSession() 120 || mTextView.length() == 0 in resetSession() 134 params, mTextView.getContext().getMainExecutor(), this); in resetSession() 144 mTextView.removeMisspelledSpans((Editable) mTextView.getText()); in resetSession() 159 mTextView.onLocaleChanged(); in setLocale() 181 mTextView.removeCallbacks(mSpellRunnable); in closeSession() 222 final int end = mTextView.length(); in onPerformSpellCheck() [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/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/apct-tests/perftests/core/src/android/text/ |
D | TextViewCursorAnchorInfoPerfTest.java | 71 private PerfTextView mTextView; field in TextViewCursorAnchorInfoPerfTest 81 mTextView = new PerfTextView(activity); in setUpTextView() 83 mTextView.setHeight(TEXT_HEIGHT); in setUpTextView() 84 mTextView.setWidth(TEXT_WIDTH); in setUpTextView() 86 mTextView.setLayoutParams(p); in setUpTextView() 87 activity.setContentView(mTextView); in setUpTextView() 89 mTextView.setText(mTextUtil.nextRandomParagraph(WORD_LENGTH, mTextLength)); in setUpTextView() 90 mTextView.invalidate(); in setUpTextView() 91 mTextView.mySetFrame(TEXT_WIDTH, TEXT_HEIGHT); in setUpTextView() 92 mTextView.measure(View.MeasureSpec.makeMeasureSpec(TEXT_WIDTH, View.MeasureSpec.EXACTLY), in setUpTextView() [all …]
|
/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/src/com/android/systemui/statusbar/notification/row/ |
D | HybridNotificationView.java | 47 protected TextView mTextView; field in HybridNotificationView 73 return mTextView; in getTextView() 81 mTextView = findViewById(R.id.notification_text); in onFinishInflate() 83 applyTextColor(mTextView, mSecondaryTextColor); in onFinishInflate() 85 new FadeOutAndDownWithTitleTransformation(mTextView), in onFinishInflate() 88 mTransformationHelper.addTransformedView(TRANSFORMING_VIEW_TEXT, mTextView); in onFinishInflate() 115 mTextView.setVisibility(GONE); in bind() 116 mTextView.setText(null); in bind() 118 mTextView.setVisibility(VISIBLE); in bind() 119 mTextView.setText(text.toString()); in bind()
|
/frameworks/base/core/java/com/android/internal/widget/ |
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/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarMenuItemView.java | 35 private TextView mTextView; field in BubbleBarMenuItemView 58 mTextView = findViewById(R.id.bubble_bar_menu_item_title); in onFinishInflate() 68 mTextView.setTextColor(typedArray.getColor(0, Color.BLACK)); in update() 71 mTextView.setTextColor(tint); in update() 75 mTextView.setText(title); in update()
|
/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/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuMessageView.java | 50 private final TextView mTextView; field in MenuMessageView 69 mTextView = new TextView(context); in MenuMessageView() 72 addView(mTextView, Index.TEXT_VIEW, in MenuMessageView() 167 mTextView.setPadding(/* left= */ 0, textPadding, /* right= */ 0, textPadding); in updateResources() 168 mTextView.setTextSize(COMPLEX_UNIT_PX, textSize); in updateResources() 169 mTextView.setTextColor(textColor); in updateResources() 170 mTextView.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NORMAL); in updateResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | OverlayActionChip.java | 43 private TextView mTextView; field in OverlayActionChip 66 mTextView = requireNonNull(findViewById(R.id.overlay_action_chip_text)); in onFinishInflate() 67 updatePadding(mTextView.getText().length() > 0); in onFinishInflate() 90 mTextView.setText(text); in setText() 124 (LinearLayout.LayoutParams) mTextView.getLayoutParams(); in updatePadding() 142 mTextView.setLayoutParams(textParams); in updatePadding()
|
/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/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/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/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/packages/SettingsLib/MainSwitchPreference/src/com/android/settingslib/widget/ |
D | MainSwitchBar.java | 54 protected TextView mTextView; field in MainSwitchBar 95 mTextView = findViewById(R.id.switch_text); in MainSwitchBar() 150 if (mTextView != null) { in setTitle() 151 mTextView.setText(text); in setTitle() 159 if (mTextView != null && (Build.VERSION.SDK_INT < VERSION_CODES.S)) { in setIconSpaceReserved() 160 LayoutParams params = (LayoutParams) mTextView.getLayoutParams(); in setIconSpaceReserved() 164 mTextView.setLayoutParams(params); in setIconSpaceReserved() 215 mTextView.setEnabled(enabled); in setEnabled()
|