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.java32 private ScrollView mScrollView; field in MultiPageTextWithPaddingTest
44 mScrollView = getActivity().getScrollView(); in setUp()
51 mTextView.getHeight() > mScrollView.getHeight()); in testPreconditions()
58 (mTextView.getHeight() - mScrollView.getHeight())) in testScrollDownToBottom()
59 / mScrollView.getMaxScrollAmount()); in testScrollDownToBottom()
67 - (mScrollView.getHeight() - mScrollView.getPaddingTop() - mScrollView in testScrollDownToBottom()
68 .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.java40 private ScrollView mScrollView; field in RequestRectangleVisibleTest
62 mScrollView = (ScrollView) a.findViewById(R.id.scrollView); in setUp()
77 assertNotNull(mScrollView); in testPreconditions()
88 mTopBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
92 mBottomBlob.getHeight() > mScrollView.getHeight()); in testPreconditions()
95 mTopBlob.getTop() > mScrollView.getVerticalFadingEdgeLength()); in testPreconditions()
102 ViewAsserts.assertOffScreenBelow(mScrollView, mChildToScrollTo); in testScrollToOffScreenRectangleFromTop()
110 ViewAsserts.assertOnScreen(mScrollView, mChildToScrollTo); in testScrollToOffScreenRectangleFromTop()
112 mScrollView, mChildToScrollTo, in testScrollToOffScreenRectangleFromTop()
114 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.java32 private ScrollView mScrollView; field in ScrollViewButtonsAndLabelsTest
45 mScrollView = getActivity().getScrollView(); in setUp()
49 mScrollView.getLocationOnScreen(origin); in setUp()
51 mScreenBottom = origin[1] + mScrollView.getHeight(); in setUp()
59 mScrollView.getVerticalFadingEdgeLength() > 0); in testPreconditions()
89 int verticalFadingEdgeLength = mScrollView in testArrowScrollDownOffScreenVerticalFadingEdge()
141 mScreenTop + mScrollView.getVerticalFadingEdgeLength(), buttonLoc[1]); in testArrowScrollUpOffScreenVerticalFadingEdge()
182 mScrollView.getLocationOnScreen(origin); in findFirstButtonOffScreenTop2Bottom()
183 int screenHeight = mScrollView.getHeight(); in findFirstButtonOffScreenTop2Bottom()
201 mScrollView.getLocationOnScreen(origin); in findFirstButtonOffScreenBottom2Top()
DScrollViewButtonsAndLabels.java34 private ScrollView mScrollView; field in ScrollViewButtonsAndLabels
41 return mScrollView; in getScrollView()
69 mScrollView = findViewById(R.id.scrollView); in onCreate()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DScrollViewScrollHandlingDelegate.java41 private final BottomScrollView mScrollView; field in ScrollViewScrollHandlingDelegate
48 mScrollView = (BottomScrollView) scrollView; in ScrollViewScrollHandlingDelegate()
51 mScrollView = null; in ScrollViewScrollHandlingDelegate()
67 if (mScrollView != null) { in startListening()
68 mScrollView.setBottomScrollListener(this); in startListening()
76 if (mScrollView != null) { in pageScrollDown()
77 mScrollView.pageScroll(ScrollView.FOCUS_DOWN); in pageScrollDown()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/template/
DScrollViewScrollHandlingDelegateTest.java45 private BottomScrollView mScrollView; field in ScrollViewScrollHandlingDelegateTest
53 mScrollView = spy(new BottomScrollView(application)); in setUp()
54 mDelegate = new ScrollViewScrollHandlingDelegate(mRequireScrollMixin, mScrollView); in setUp()
57 doNothing().when(mScrollView).setBottomScrollListener(mListenerCaptor.capture()); in setUp()
59 mScrollView.layout(0, 0, 50, 50); in setUp()
85 verify(mScrollView).smoothScrollBy(anyInt(), eq(50)); in testPageScrollDown()
/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()
272 mScrollView.post(() -> mScrollView.restoreDefaultFocus()); in onCreate()
/frameworks/base/core/java/com/android/internal/app/
DMicroAlertController.java42 mScrollView = (ScrollView) mWindow.findViewById(R.id.scrollView); in setupContent()
61 View topPanel = mScrollView.findViewById(R.id.topPanel); in setupContent()
69 View buttonPanel = mScrollView.findViewById(R.id.buttonPanel); in setupContent()
77 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
78 final int childIndex = scrollParent.indexOfChild(mScrollView); in setupContent()
DAlertController.java99 protected ScrollView mScrollView; field in AlertController
468 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyDown()
473 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyUp()
556 if (mScrollView != null) { in setupView()
557 mScrollView.setClipToPadding(true); in setupView()
592 final View content = mListView != null ? mListView : mScrollView; in setupView()
689 mScrollView = (ScrollView) contentPanel.findViewById(R.id.scrollView); in setupContent()
690 mScrollView.setFocusable(false); in setupContent()
708 mScrollView.removeView(mMessageView); in setupContent()
711 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
[all …]
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
DScrollViewFlingWatcher.java48 private final WeakReference<ScrollView> mScrollView; field in ScrollViewFlingWatcher
58 mScrollView = new WeakReference<>(scrollView); in ScrollViewFlingWatcher()
67 ScrollView scrollView = mScrollView.get(); in watch()
87 ScrollView scrollView = mScrollView.get(); in onEndOfFlingFound()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/
DAlertController.java99 NestedScrollView mScrollView; field in AlertController
422 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyDown()
427 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyUp()
509 if (mScrollView != null) { in setupView()
510 mScrollView.setClipToPadding(true); in setupView()
537 final View content = mListView != null ? mListView : mScrollView; in setupView()
590 mScrollView.setOnScrollChangeListener( in setScrollIndicators()
600 mScrollView.post(new Runnable() { in setScrollIndicators()
603 manageScrollIndicators(mScrollView, top, bottom); in setScrollIndicators()
719 mScrollView = (NestedScrollView) mWindow.findViewById(R.id.scrollView); in setupContent()
[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/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerTestActivity.java68 private ScrollView mScrollView = null; field in SoundTriggerTestActivity
85 mScrollView = findViewById(R.id.scroller_id); in onCreate()
176 mScrollView.post(new Runnable() { in showMessage()
178 mScrollView.smoothScrollTo(0, mDebugView.getBottom()); in showMessage()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java210 private ScrollView mScrollView; field in RecipientEditTextView
701 if (mScrollView != null && mShouldShrink) { in scrollBottomIntoView()
708 mScrollView.getLocationInWindow(mCoords); in scrollBottomIntoView()
711 mScrollView.scrollBy(0, currentPos - desiredPos); in scrollBottomIntoView()
717 return mScrollView; in getScrollView()
1309 if (mScrollView == null && !mTriedGettingScrollView) { in onSizeChanged()
1315 mScrollView = (ScrollView) parent; in onSizeChanged()