Searched refs:edgeEffect (Results 1 – 5 of 5) sorted by relevance
71 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingTop() local72 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() local84 mScrollView.mEdgeGlowBottom = edgeEffect; in testScrollAfterFlingBottom()89 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingBottom()91 PollingCheck.waitFor(() -> edgeEffect.getDistance() == 0f); in testScrollAfterFlingBottom()
71 WatchedEdgeEffect edgeEffect = new WatchedEdgeEffect(mActivity); in testScrollAfterFlingLeft() local72 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() local84 mHorizontalScrollView.mEdgeGlowRight = edgeEffect; in testScrollAfterFlingRight()89 assertTrue(edgeEffect.onAbsorbLatch.await(1, TimeUnit.SECONDS)); in testScrollAfterFlingRight()
1853 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument1857 float distance = edgeEffect.getDistance() * getWidth(); in shouldAbsorb()
1946 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument1950 float distance = edgeEffect.getDistance() * getHeight(); in shouldAbsorb()
4403 private boolean shouldAbsorb(EdgeEffect edgeEffect, int velocity) { in shouldAbsorb() argument4407 float distance = edgeEffect.getDistance() * getHeight(); in shouldAbsorb()