Home
last modified time | relevance | path

Searched refs:MockTextView (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DMockTextView.java26 public class MockTextView extends TextView { class
28 public MockTextView(Context context) { in MockTextView() method in MockTextView
32 public MockTextView(Context context, @Nullable AttributeSet attrs) { in MockTextView() method in MockTextView
36 public MockTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { in MockTextView() method in MockTextView
DTextViewFadingEdgeTest.java148 MockTextView textView = createTextView(data.text, data.horizontalFadingEnabled, in testFadingEdge()
158 private final MockTextView createTextView(String text, boolean horizontalFadingEnabled, in createTextView()
160 final MockTextView textView = new MockTextView(mActivity); in createTextView()
DTextViewTest.java699 final MockTextView mockTextView = new MockTextView(mActivity); in testSetShadowLayer()
3033 mActivityRule.runOnUiThread(() -> mTextView = spy(new MockTextView(mActivity))); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3043 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(0, text.length()); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3048 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(1, 5); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3053 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(-1, -1); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
5062 mActivityRule.runOnUiThread(() -> mTextView = new MockTextView(mActivity)); in testComputeHorizontalScrollRange()
5067 ((MockTextView) mTextView).computeHorizontalScrollRange()); in testComputeHorizontalScrollRange()
5069 mActivityRule.runOnUiThread(() -> ((MockTextView) mTextView).setFrame(0, 0, 40, 50)); in testComputeHorizontalScrollRange()
5072 ((MockTextView) mTextView).computeHorizontalScrollRange()); in testComputeHorizontalScrollRange()
5077 ((MockTextView) mTextView).computeHorizontalScrollRange()); in testComputeHorizontalScrollRange()
[all …]
/cts/tests/app/app/src/android/app/stubs/
DInstrumentationTestActivity.java57 private MockTextView mTextView;
64 mTextView = new MockTextView(this); in onCreate()
72 class MockTextView extends TextView { class in InstrumentationTestActivity
74 public MockTextView(Context context) { in MockTextView() method in InstrumentationTestActivity.MockTextView
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java109 private MockTextView mMockTextView;
126 mMockTextView = new MockTextView(mContext); in setup()
1279 MockTextView textView1 = new MockTextView(mContext); in testMeasureChildren()
1286 MockTextView textView2 = new MockTextView(mContext); in testMeasureChildren()
1935 mMockTextView = new MockTextView(mContext); in testAddViewWithDefaultFocus()
2891 static class MockTextView extends TextView { class in ViewGroupTest
2899 public MockTextView(Context context) { in MockTextView() method in ViewGroupTest.MockTextView