Home
last modified time | relevance | path

Searched refs:scrollView (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DHorizontalScrollViewTest.java78 HorizontalScrollView scrollView = new HorizontalScrollView(mActivity); in testGetMaxScrollAmount() local
79 scrollView.layout(0, 0, 100, 200); in testGetMaxScrollAmount()
80 assertEquals((100 - 0) / 2, scrollView.getMaxScrollAmount()); in testGetMaxScrollAmount()
82 scrollView.layout(0, 0, 150, 100); in testGetMaxScrollAmount()
83 assertEquals((150 - 0) / 2, scrollView.getMaxScrollAmount()); in testGetMaxScrollAmount()
87 HorizontalScrollView scrollView = new HorizontalScrollView(mActivity); in testAddView() local
89 scrollView.addView(child0); in testAddView()
90 assertSame(child0, scrollView.getChildAt(0)); in testAddView()
92 assertEquals(1, scrollView.getChildCount()); in testAddView()
95 scrollView.addView(child1); in testAddView()
[all …]
DScrollViewTest.java96 ScrollView scrollView = new ScrollView(mActivity); in testGetMaxScrollAmount() local
97 scrollView.layout(0, 0, 100, 200); in testGetMaxScrollAmount()
98 assertEquals((200 - 0) / 2, scrollView.getMaxScrollAmount()); in testGetMaxScrollAmount()
100 scrollView.layout(0, 0, 150, 100); in testGetMaxScrollAmount()
101 assertEquals((100 - 0) / 2, scrollView.getMaxScrollAmount()); in testGetMaxScrollAmount()
105 ScrollView scrollView = new ScrollView(mActivity); in testAddView() local
107 scrollView.addView(child0); in testAddView()
108 assertSame(child0, scrollView.getChildAt(0)); in testAddView()
110 assertEquals(1, scrollView.getChildCount()); in testAddView()
113 scrollView.addView(child1); in testAddView()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewTreeObserverTest.java313 final ScrollView scrollView = (ScrollView) mActivity.findViewById(R.id.scroll_view); in testAccessOnScrollChangedListener() local
315 mViewTreeObserver = scrollView.getViewTreeObserver(); in testAccessOnScrollChangedListener()
324 scrollView.fullScroll(View.FOCUS_DOWN); in testAccessOnScrollChangedListener()
342 scrollView.fullScroll(View.FOCUS_UP); in testAccessOnScrollChangedListener()
DViewTest.java318 MockView scrollView = (MockView) mActivity.findViewById(R.id.scroll_view); in testAccessTag() local
333 scrollView.setTag(viewGroup); in testAccessTag()
334 assertSame(viewGroup, scrollView.getTag()); in testAccessTag()
338 assertSame(scrollView, viewGroup.findViewWithTag(viewGroup)); in testAccessTag()
1683 View scrollView = mActivity.findViewById(R.id.scroll_view); in testGetLocationInWindow() local
1684 scrollView.getLocationInWindow(location); in testGetLocationInWindow()
1715 View scrollView = mActivity.findViewById(R.id.scroll_view); in testGetLocationOnScreen() local
1716 scrollView.getLocationOnScreen(location); in testGetLocationOnScreen()
1721 scrollView.getLocationOnScreen(null); in testGetLocationOnScreen()
1727 scrollView.getLocationOnScreen(new int[] { 0 }); in testGetLocationOnScreen()
[all …]