/frameworks/base/core/tests/coretests/src/android/widget/ |
D | TextViewPerformanceTest.java | 35 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 …]
|
D | AutoCompleteTextViewSimple.java | 33 private AutoCompleteTextView mTextView; field in AutoCompleteTextViewSimple 50 mTextView = (AutoCompleteTextView) 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 | 37 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 | 29 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/ |
D | Editor.java | 277 private TextView mTextView; field in Editor 297 mTextView = textView; in Editor() 299 mTextView.setFilters(mTextView.getFilters()); in Editor() 361 int middle = (mTextView.getSelectionStart() + mTextView.getSelectionEnd()) / 2; in replace() 362 Selection.setSelection((Spannable) mTextView.getText(), middle); in replace() 371 final ViewTreeObserver observer = mTextView.getViewTreeObserver(); in onAttachedToWindow() 381 updateSpellCheckSpans(0, mTextView.getText().length(), in onAttachedToWindow() 384 if (mTextView.hasSelection()) { in onAttachedToWindow() 410 mTextView.removeCallbacks(mShowSuggestionRunnable); in onDetachedFromWindow() 415 mTextView.removeCallbacks(mInsertionActionModeRunnable); in onDetachedFromWindow() [all …]
|
D | SpellChecker.java | 69 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/v4/tests/java/android/support/v4/widget/ |
D | TextViewCompatTest.java | 43 private TextView mTextView; field in TextViewCompatTest 72 mTextView = (TextView) mActivityTestRule.getActivity().findViewById(R.id.text_view); in setUp() 81 assertEquals("Empty view: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines() 85 assertEquals("Short text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines() 89 assertEquals("Medium text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines() 93 assertEquals("Long text: Max lines must match", TextViewCompat.getMaxLines(mTextView), in testMaxLines() 103 assertEquals("Empty view: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines() 107 assertEquals("Short text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines() 111 assertEquals("Medium text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines() 115 assertEquals("Long text: Min lines must match", TextViewCompat.getMinLines(mTextView), in testMinLines() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | HybridNotificationView.java | 43 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/ |
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/support/design/src/android/support/design/internal/ |
D | NavigationMenuItemView.java | 47 private final CheckedTextView mTextView; field in NavigationMenuItemView 69 mTextView = (CheckedTextView) findViewById(R.id.design_menu_item_text); in NavigationMenuItemView() 70 mTextView.setDuplicateParentStateEnabled(true); in NavigationMenuItemView() 95 mTextView.setCompoundDrawables(null, null, null, null); in recycle() 128 mTextView.setText(title); in setTitle() 139 mTextView.setChecked(checked); in setChecked() 154 TextViewCompat.setCompoundDrawablesRelative(mTextView, icon, null, null, null); in setIcon() 185 mTextView.setTextAppearance(context, textAppearance); in setTextAppearance() 189 mTextView.setTextColor(colors); in setTextColor()
|
/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 | 348 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/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
D | LinkAccessibilityHelperTest.java | 40 private TextView mTextView; field in LinkAccessibilityHelperTest 53 mTextView = new TextView(getContext()); in setUp() 54 mTextView.setText(ssb); in setUp() 55 mTextView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 15); in setUp() 56 mHelper = new TestLinkAccessibilityHelper(mTextView); in setUp() 58 mTextView.measure(dp2Px(500), dp2Px(500)); in setUp() 59 mTextView.layout(dp2Px(0), dp2Px(0), dp2Px(500), dp2Px(500)); in setUp()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | TitleView.java | 36 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/ |
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/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | ErrorFragment.java | 41 private TextView mTextView; field in ErrorFragment 173 mTextView = (TextView) root.findViewById(R.id.message); in onCreateView() 179 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() 182 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 205 if (mTextView != null) { in updateMessage() 206 mTextView.setText(mMessage); in updateMessage() 207 mTextView.setVisibility(TextUtils.isEmpty(mMessage) ? View.GONE : View.VISIBLE); in updateMessage()
|
D | ErrorSupportFragment.java | 43 private TextView mTextView; field in ErrorSupportFragment 175 mTextView = (TextView) root.findViewById(R.id.message); in onCreateView() 181 FontMetricsInt metrics = getFontMetricsInt(mTextView); in onCreateView() 184 setTopMargin(mTextView, underImageBaselineMargin + metrics.ascent); in onCreateView() 207 if (mTextView != null) { in updateMessage() 208 mTextView.setText(mMessage); in updateMessage() 209 mTextView.setVisibility(TextUtils.isEmpty(mMessage) ? View.GONE : View.VISIBLE); in updateMessage()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
D | TitleBar.java | 28 private TextView mTextView; field in TitleBar 37 mTextView = setText(0, label, true); in TitleBar() 44 return mTextView; in getStyleableTextView()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | NumPadKey.java | 38 private PasswordTextView mTextView; field in NumPadKey 47 if (mTextView == null && mTextViewResId > 0) { 50 mTextView = (PasswordTextView) v; 53 if (mTextView != null && mTextView.isEnabled()) { 54 mTextView.append(Character.forDigit(mDigit, 10));
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DrawableBgMinSizeTest.java | 45 private TextView mTextView; field in DrawableBgMinSizeTest 64 mTextView = (TextView) a.findViewById(R.id.text_view); in setUp() 76 assertNotNull(mTextView); in testSetUpConditions() 92 doMinimumSizeTest(mTextView); in testTextViewMinimumSize() 129 doDiffBgMinimumSizeTest(mTextView); in testTextViewDiffBgMinimumSize()
|
/frameworks/base/core/tests/coretests/src/android/text/method/ |
D | ForwardDeleteTest.java | 47 mTextView.setText(state.mText, BufferType.EDITABLE); in forwardDelete() 48 mTextView.setKeyListener(mKeyListener); in forwardDelete() 49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in forwardDelete() 53 assertTrue(mTextView.hasWindowFocus()); in forwardDelete() 58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in forwardDelete() 63 state.mText = mTextView.getText(); in forwardDelete() 64 state.mSelectionStart = mTextView.getSelectionStart(); in forwardDelete() 65 state.mSelectionEnd = mTextView.getSelectionEnd(); in forwardDelete()
|
D | KeyListenerTestCase.java | 33 protected EditText mTextView; field in KeyListenerTestCase 45 mTextView = (EditText) mActivity.findViewById(R.id.textview); in setUp() 50 mTextView.setKeepScreenOn(true); in setUp()
|
D | BackspaceTest.java | 47 mTextView.setText(state.mText, BufferType.EDITABLE); in backspace() 48 mTextView.setKeyListener(mKeyListener); in backspace() 49 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd); in backspace() 53 assertTrue(mTextView.hasWindowFocus()); in backspace() 58 mTextView.onKeyDown(keyEvent.getKeyCode(), keyEvent); in backspace() 63 state.mText = mTextView.getText(); in backspace() 64 state.mSelectionStart = mTextView.getSelectionStart(); in backspace() 65 state.mSelectionEnd = mTextView.getSelectionEnd(); in backspace()
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
D | CrossfadeMultiple.java | 40 TextView mTextView; field in CrossfadeMultiple 57 mTextView = (TextView) 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/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
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()
|