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.java822 final MockTextView mockTextView = new MockTextView(mActivity); in testSetShadowLayer()
3156 mActivityRule.runOnUiThread(() -> mTextView = spy(new MockTextView(mActivity))); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3166 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(0, text.length()); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3171 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(1, 5); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
3176 ((MockTextView) verify(mTextView, times(1))).onSelectionChanged(-1, -1); in testOnSelectionChangedIsTriggeredWhenSelectionChanges()
5210 mActivityRule.runOnUiThread(() -> mTextView = new MockTextView(mActivity)); in testComputeHorizontalScrollRange()
5215 ((MockTextView) mTextView).computeHorizontalScrollRange()); in testComputeHorizontalScrollRange()
5217 mActivityRule.runOnUiThread(() -> ((MockTextView) mTextView).setFrame(0, 0, 40, 50)); in testComputeHorizontalScrollRange()
5220 ((MockTextView) mTextView).computeHorizontalScrollRange()); in testComputeHorizontalScrollRange()
5225 ((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.java110 private MockTextView mMockTextView;
127 mMockTextView = new MockTextView(mContext); in setup()
1283 MockTextView textView1 = new MockTextView(mContext); in testMeasureChildren()
1290 MockTextView textView2 = new MockTextView(mContext); in testMeasureChildren()
1939 mMockTextView = new MockTextView(mContext); in testAddViewWithDefaultFocus()
2894 static class MockTextView extends TextView { class in ViewGroupTest
2902 public MockTextView(Context context) { in MockTextView() method in ViewGroupTest.MockTextView