Home
last modified time | relevance | path

Searched refs:scrollY (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DTextViewActivity.java47 int scrollX, scrollY; in onReceivedEventFromCaller() local
49 scrollY = results.getInt(Utils.SCROLL_Y_POSITION, 0); in onReceivedEventFromCaller()
51 Log.i(TAG, "Scrolling textview to (" + scrollX + "," + scrollY + ")"); in onReceivedEventFromCaller()
52 if (scrollX < 0 || scrollY < 0) { in onReceivedEventFromCaller()
55 scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) in onReceivedEventFromCaller()
58 TextViewActivity.this.mTextView.scrollTo(scrollX, scrollY); in onReceivedEventFromCaller()
60 Log.i(TAG, "Scrolling scrollview to (" + scrollX + "," + scrollY + ")"); in onReceivedEventFromCaller()
61 if (scrollX < 0 || scrollY < 0) { in onReceivedEventFromCaller()
66 TextViewActivity.this.mScrollView.scrollTo(scrollX, scrollY); in onReceivedEventFromCaller()
/cts/tests/tests/assist/src/android/assist/cts/
DTestStartActivity.java112 public void scrollText(int scrollX, int scrollY, boolean scrollTextView, in scrollText() argument
114 if (scrollX < 0 || scrollY < 0) { in scrollText()
116scrollY = mTextView.getLayout().getLineTop(mTextView.getLineCount()) - mTextView.getHeight(); in scrollText()
119 int finalScrollY = scrollY; in scrollText()
DTextViewTest.java79 protected void scrollTestApp(int scrollX, int scrollY, boolean scrollTextView, in scrollTestApp() argument
81 super.scrollTestApp(scrollX, scrollY, scrollTextView, scrollScrollView); in scrollTestApp()
89 bundle.putInt(Utils.SCROLL_Y_POSITION, scrollY); in scrollTestApp()
DAssistTestBase.java321 protected void scrollTestApp(int scrollX, int scrollY, boolean scrollTextView, in scrollTestApp() argument
323 mTestActivity.scrollText(scrollX, scrollY, scrollTextView, scrollScrollView); in scrollTestApp()
331 intent.putExtra(Utils.SCROLL_Y_POSITION, scrollY); in scrollTestApp()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeScrollTest.java71 final int scrollY = view.getScrollY(); in testChangeScroll() local
74 assertTrue(scrollY > 0); in testChangeScroll()
75 assertTrue(scrollY < 300); in testChangeScroll()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java708 int scrollY = mScrollViewCustom.getScrollY(); in testRequestChildFocus() local
711 assertTrue(mScrollViewCustom.getScrollY() > scrollY); in testRequestChildFocus()
713 scrollY = mScrollViewCustom.getScrollY(); in testRequestChildFocus()
716 assertTrue(mScrollViewCustom.getScrollY() < scrollY); in testRequestChildFocus()
/cts/tests/tests/text/src/android/text/method/cts/
DScrollingMovementMethodTest.java724 final int scrollY = mTextView.getScrollY(); in verifyVisibleLineInTextView() local
726 assertTrue(layout.getLineForVertical(scrollY) <= line); in verifyVisibleLineInTextView()
727 assertTrue(layout.getLineForVertical(scrollY + mTextView.getHeight() - padding) >= line); in verifyVisibleLineInTextView()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewTest.java2804 int scrollY = previousScrollY; in waitForScrollingComplete() local
2812 int oldScrollY = scrollY; in waitForScrollingComplete()
2813 scrollY = mOnUiThread.getScrollY(); in waitForScrollingComplete()
2814 scrollChanging = (scrollY != oldScrollY); in waitForScrollingComplete()
2815 scrollChanged = (scrollY != previousScrollY); in waitForScrollingComplete()