Home
last modified time | relevance | path

Searched refs:edgeEffect (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/
DScrollViewFunctionalTest.java71 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingTop() local
72 mScrollView.mEdgeGlowTop = edgeEffect; in testScrollAfterFlingTop()
75 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingTop()
77 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingTop()
83 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingBottom() local
84 mScrollView.mEdgeGlowBottom = edgeEffect; in testScrollAfterFlingBottom()
89 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingBottom()
91 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingBottom()
DHorizontalScrollViewFunctionalTest.java71 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingLeft() local
72 mHorizontalScrollView.mEdgeGlowLeft = edgeEffect; in testScrollAfterFlingLeft()
75 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingLeft()
77 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingLeft()
83 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingRight() local
84 mHorizontalScrollView.mEdgeGlowRight = edgeEffect; in testScrollAfterFlingRight()
89 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingRight()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java1853 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument
1857 float distance = edgeEffect.getDistance() * getWidth(); in shouldAbsorb()
DScrollView.java1946 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument
1950 float distance = edgeEffect.getDistance() * getHeight(); in shouldAbsorb()
DAbsListView.java4403 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument
4407 float distance = edgeEffect.getDistance() * getHeight(); in shouldAbsorb()