Home
last modified time | relevance | path

Searched refs:mScrollView (Results 1 – 16 of 16) 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.java40 private ScrollView mScrollView; field in RequestRectangleVisibleWithInternalScrollTest
55 mScrollView = (ScrollView) getActivity().findViewById(R.id.scrollView); in setUp()
67 ViewAsserts.assertOffScreenBelow(mScrollView, mTextBlob); in testMoveToChildWithScrollYBelow()
75 ViewAsserts.assertOnScreen(mScrollView, mTextBlob); in testMoveToChildWithScrollYBelow()
77 mScrollView, mTextBlob, in testMoveToChildWithScrollYBelow()
79 mScrollView.getHeight() in testMoveToChildWithScrollYBelow()
81 - 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.java33 private ScrollView mScrollView; field in ScrollViewButtonsAndLabels
40 return mScrollView; in getScrollView()
68 mScrollView = findViewById(R.id.scrollView); in onCreate()
/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/packages/SettingsLib/ActionBarShadow/src/com/android/settingslib/widget/
DActionBarShadowController.java43 private View mScrollView; field in ActionBarShadowController
65 mScrollView = scrollView; in ActionBarShadowController()
72 mScrollView = scrollView; in ActionBarShadowController()
81 mScrollView.setOnScrollChangeListener(mScrollChangeWatcher); in attachScrollWatcher()
82 mScrollChangeWatcher.updateDropShadow(mScrollView); in attachScrollWatcher()
88 mScrollView.setOnScrollChangeListener(null); in detachScrollWatcher()
/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
483 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyDown()
489 return mScrollView != null && mScrollView.executeKeyEvent(event); in onKeyUp()
572 if (mScrollView != null) { in setupView()
573 mScrollView.setClipToPadding(true); in setupView()
608 final View content = mListView != null ? mListView : mScrollView; in setupView()
705 mScrollView = (ScrollView) contentPanel.findViewById(R.id.scrollView); in setupContent()
706 mScrollView.setFocusable(false); in setupContent()
724 mScrollView.removeView(mMessageView); in setupContent()
727 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionBarShadowControllerTest.java53 private View mScrollView; field in ActionBarShadowControllerTest
82 when(mScrollView.canScrollVertically(-1)).thenReturn(false); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar()
84 ActionBarShadowController.attachToView(mActivity, mLifecycle, mScrollView); in attachToView_scrollView_shouldAddScrollWatcherAndUpdateActionBar()
/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
704 if (mScrollView != null && mShouldShrink) { in scrollBottomIntoView()
711 mScrollView.getLocationInWindow(mCoords); in scrollBottomIntoView()
714 mScrollView.scrollBy(0, currentPos - desiredPos); in scrollBottomIntoView()
720 return mScrollView; in getScrollView()
1312 if (mScrollView == null && !mTriedGettingScrollView) { in onSizeChanged()
1318 mScrollView = (ScrollView) parent; in onSizeChanged()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt86679 Lcom/android/internal/app/AlertController;->mScrollView:Landroid/widget/ScrollView;