Home
last modified time | relevance | path

Searched refs:mScrollView (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DButtonsWithTallTextViewInBetweenTest.java33 private ScrollView mScrollView; field in ButtonsWithTallTextViewInBetweenTest
46 mScrollView = getActivity().getScrollView(); in setUp()
56 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getTopWithinScrollView()
62 mScrollView.offsetDescendantRectToMyCoords(descendant, mTempRect); in getBottomWithinScrollView()
70 mScrollView.getMaxScrollAmount()); in testPreconditions()
72 …getTopWithinScrollView(mBottomButton)- mScrollView.getBottom() > mScrollView.getMaxScrollAmount()); in testPreconditions()
81 mScrollView.getMaxScrollAmount(), in testPanTopButtonOffScreenLosesFocus()
82 mScrollView.getScrollY()); in testPanTopButtonOffScreenLosesFocus()
85 getBottomWithinScrollView(mTopButton) < mScrollView.getScrollY()); in testPanTopButtonOffScreenLosesFocus()
90 assertTrue("scroll view should be focused", mScrollView.isFocused()); in testPanTopButtonOffScreenLosesFocus()
[all …]
DMultiPageTextWithPaddingTest.java30 private ScrollView mScrollView; field in MultiPageTextWithPaddingTest
42 mScrollView = getActivity().getScrollView(); in setUp()
49 mTextView.getHeight() > mScrollView.getHeight()); in testPreconditions()
56 (mTextView.getHeight() - mScrollView.getHeight())) in testScrollDownToBottom()
57 / mScrollView.getMaxScrollAmount()); in testScrollDownToBottom()
65 - (mScrollView.getHeight() - mScrollView.getPaddingTop() - mScrollView in testScrollDownToBottom()
66 .getPaddingBottom()), mScrollView.getScrollY()); in testScrollDownToBottom()
DShortButtonsTest.java31 private ScrollView mScrollView; field in ShortButtonsTest
41 mScrollView = getActivity().getScrollView(); in setUp()
48 < mScrollView.getHeight()); in testPreconditions()
68 getActivity().getLinearLayout().getHeight() - mScrollView.getHeight(), in testScrollDownToBottomThroughButtons()
69 mScrollView.getScrollY()); in testScrollDownToBottomThroughButtons()
98 mScrollView.getScrollY()); in testScrollFromBottomToTopThroughButtons()
104 mScrollView.offsetDescendantRectToMyCoords(b, mTempRect); in isButtonOnScreen()
105 return mTempRect.bottom >= mScrollView.getScrollY() in isButtonOnScreen()
106 && mTempRect.top <= (mScrollView.getScrollY() + mScrollView.getHeight()); in isButtonOnScreen()
DTallTextAboveButtonTest.java28 private ScrollView mScrollView; field in TallTextAboveButtonTest
36 mScrollView = getActivity().getScrollView(); in setUp()
48 mTopText.getHeight() > mScrollView.getHeight()); in testPreconditions()
59 mBottomButton.getBottom() >= mScrollView.getBottom()); in testGainFocusAsScrolledOntoScreen()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisibleTest.java38 private ScrollView mScrollView; field in RequestRectangleVisibleTest
60 mScrollView = (ScrollView) a.findViewById(R.id.scrollView); in setUp()
75 assertNotNull(mScrollView); in testPreconditions()
86 mTopBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
90 mBottomBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
93 mTopBlob.getTop() > mScrollView.getVerticalFadingEdgeLength()); in testPreconditions()
100 ViewAsserts.assertOffScreenBelow(mScrollView, mChildToScrollTo); in testScrollToOffScreenRectangleFromTop()
108 ViewAsserts.assertOnScreen(mScrollView, mChildToScrollTo); in testScrollToOffScreenRectangleFromTop()
110 mScrollView, mChildToScrollTo, in testScrollToOffScreenRectangleFromTop()
112 mScrollView.getHeight() in testScrollToOffScreenRectangleFromTop()
[all …]
DRequestRectangleVisibleWithInternalScrollTest.java39 private ScrollView mScrollView; field in RequestRectangleVisibleWithInternalScrollTest
54 mScrollView = (ScrollView) getActivity().findViewById(R.id.scrollView); in setUp()
66 ViewAsserts.assertOffScreenBelow(mScrollView, mTextBlob); in testMoveToChildWithScrollYBelow()
74 ViewAsserts.assertOnScreen(mScrollView, mTextBlob); in testMoveToChildWithScrollYBelow()
76 mScrollView, mTextBlob, in testMoveToChildWithScrollYBelow()
78 mScrollView.getHeight() in testMoveToChildWithScrollYBelow()
80 - mScrollView.getVerticalFadingEdgeLength()); in testMoveToChildWithScrollYBelow()
DScrollViewButtonsAndLabelsTest.java33 private ScrollView mScrollView; field in ScrollViewButtonsAndLabelsTest
46 mScrollView = getActivity().getScrollView(); in setUp()
50 mScrollView.getLocationOnScreen(origin); in setUp()
52 mScreenBottom = origin[1] + mScrollView.getHeight(); in setUp()
59 mScrollView.getVerticalFadingEdgeLength() > 0); in testPreconditions()
86 int verticalFadingEdgeLength = mScrollView in testArrowScrollDownOffScreenVerticalFadingEdge()
138 mScreenTop + mScrollView.getVerticalFadingEdgeLength(), buttonLoc[1]); in testArrowScrollUpOffScreenVerticalFadingEdge()
179 mScrollView.getLocationOnScreen(origin); in findFirstButtonOffScreenTop2Bottom()
180 int screenHeight = mScrollView.getHeight(); in findFirstButtonOffScreenTop2Bottom()
198 mScrollView.getLocationOnScreen(origin); in findFirstButtonOffScreenBottom2Top()
DScrollViewButtonsAndLabels.java34 private ScrollView mScrollView; field in ScrollViewButtonsAndLabels
41 return mScrollView; in getScrollView()
69 mScrollView = (ScrollView) findViewById(R.id.scrollView); in onCreate()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DRequireScrollHelperTest.java30 private TestBottomScrollView mScrollView; field in RequireScrollHelperTest
36 mScrollView = new TestBottomScrollView(getContext()); in setUp()
42 RequireScrollHelper.requireScroll(mNavigationBar, mScrollView); in testRequireScroll()
48 mScrollView.listener.onRequiresScroll(); in testRequireScroll()
57 RequireScrollHelper.requireScroll(mNavigationBar, mScrollView); in testScrolledToBottom()
58 mScrollView.listener.onRequiresScroll(); in testScrolledToBottom()
64 mScrollView.listener.onScrolledToBottom(); in testScrolledToBottom()
73 RequireScrollHelper.requireScroll(mNavigationBar, mScrollView); in testClickScrollButton()
74 assertEquals("ScrollView page should be initially 0", 0, mScrollView.page); in testClickScrollButton()
75 mScrollView.listener.onRequiresScroll(); in testClickScrollButton()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DScrollViewScenario.java49 private ScrollView mScrollView; field in ScrollViewScenario
213 return mScrollView; in getScrollView()
262 mScrollView = createScrollView(); in onCreate()
263 mScrollView.setPadding(0, params.mTopPadding, 0, params.mBottomPadding); in onCreate()
264 mScrollView.addView(mLinearLayout, new ViewGroup.LayoutParams( in onCreate()
269 mScrollView.setSmoothScrollingEnabled(false); in onCreate()
271 setContentView(mScrollView); in onCreate()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DRequireScrollHelper.java49 private final BottomScrollView mScrollView; field in RequireScrollHelper
56 mScrollView = scrollView; in RequireScrollHelper()
61 mScrollView.setBottomScrollListener(this); in requireScroll()
84 mScrollView.pageScroll(ScrollView.FOCUS_DOWN); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationsQuickSettingsContainer.java35 private View mScrollView; field in NotificationsQuickSettingsContainer
49 mScrollView = findViewById(R.id.scroll_view); in onFinishInflate()
68 View stackQsTop = mQsExpanded ? mStackScroller : mScrollView; in drawChild()
69 View stackQsBottom = !mQsExpanded ? mStackScroller : mScrollView; in drawChild()
72 if (child == mScrollView) { in drawChild()
DNotificationPanelView.java95 private ObservableScrollView mScrollView; field in NotificationPanelView
238 mScrollView = (ObservableScrollView) findViewById(R.id.scroll_view); in onFinishInflate()
239 mScrollView.setListener(this); in onFinishInflate()
240 mScrollView.setFocusable(false); in onFinishInflate()
249 mNotificationStackScroller.setScrollView(mScrollView); in onFinishInflate()
316 lp = (FrameLayout.LayoutParams) mScrollView.getLayoutParams(); in updateResources()
320 mScrollView.setLayoutParams(lp); in updateResources()
676 if (mScrollView.isHandlingTouchEvent()) { in requestDisallowInterceptTouchEvent()
797 return (x >= mScrollView.getX() && x <= mScrollView.getX() + mScrollView.getWidth()) && in isInQsArea()
975 float height = mQsExpansionHeight - mScrollView.getScrollY() - overscrollAmount; in onQsExpansionStarted()
[all …]
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
DInputTypeActivity.java35 private ScrollView mScrollView; field in InputTypeActivity
43 mScrollView = new ScrollView(this); in onCreate()
138 mScrollView.addView(mLayout); in onCreate()
139 setContentView(mScrollView); in onCreate()
DEditTextActivityDialog.java38 private ScrollView mScrollView; field in EditTextActivityDialog
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertController.java87 private ScrollView mScrollView; field in AlertController
398 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyDown()
403 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyUp()
522 mScrollView = (ScrollView) mWindow.findViewById(R.id.scrollView); in setupContent()
523 mScrollView.setFocusable(false); in setupContent()
535 mScrollView.removeView(mMessageView); in setupContent()
538 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
539 final int childIndex = scrollParent.indexOfChild(mScrollView); in setupContent()
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java95 private ScrollView mScrollView; field in AlertController
422 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyDown()
427 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyUp()
531 if (mScrollView != null) { in setupView()
532 mScrollView.setClipToPadding(true); in setupView()
550 final View content = mListView != null ? mListView : mScrollView; in setupView()
647 mScrollView = (ScrollView) contentPanel.findViewById(R.id.scrollView); in setupContent()
648 mScrollView.setFocusable(false); in setupContent()
660 mScrollView.removeView(mMessageView); in setupContent()
663 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DNotificationStackScrollLayout.java206 private ViewGroup mScrollView; field in NotificationStackScrollLayout
568 mScrollView = scrollView; in setScrollView()
814 transformTouchEvent(ev, this, mScrollView); in onTouchEvent()
815 return mScrollView.onTouchEvent(ev); in onTouchEvent()
1556 transformTouchEvent(ev, this, mScrollView); in onInterceptTouchEvent()
1557 if (mScrollView.onInterceptTouchEvent(ev)) { in onInterceptTouchEvent()
1562 transformTouchEvent(ev, mScrollView, this); in onInterceptTouchEvent()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java218 private ScrollView mScrollView; field in RecipientEditTextView
559 if (mScrollView != null && mShouldShrink) { in scrollBottomIntoView()
566 mScrollView.getLocationInWindow(mCoords); in scrollBottomIntoView()
569 mScrollView.scrollBy(0, currentPos - desiredPos); in scrollBottomIntoView()
575 return mScrollView; in getScrollView()
1060 if (mScrollView == null && !mTriedGettingScrollView) { in onSizeChanged()
1066 mScrollView = (ScrollView) parent; in onSizeChanged()