HomeSort by relevance Sort by last modified time
    Searched defs:fling (Results 1 - 25 of 96) sorted by null

1 2 3 4

  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
ScrollerHelper.java 74 public void fling(int velocity, int min, int max) { method in class:ScrollerHelper
76 mScroller.fling(
FlingScroller.java 21 // android.widget.Scroller. It does fling only, not scroll.
32 // The fling duration (in milliseconds) when velocity is 1 pixel/second
76 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:FlingScroller
  /frameworks/support/compat/java/android/support/v4/widget/
ScrollerCompat.java 27 * current device's preferred scroll physics and fling behavior. It offers a subset of
187 * Start scrolling based on a fling gesture. The distance travelled will
188 * depend on the initial velocity of the fling.
192 * @param velocityX Initial velocity of the fling (X) measured in pixels per
194 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
205 * @deprecated Use {@link OverScroller#fling(int, int, int, int, int, int, int, int)} directly.
208 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
210 mScroller.fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY);
214 * Start scrolling based on a fling gesture. The distance travelled will
215 * depend on the initial velocity of the fling
240 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:ScrollerCompat
    [all...]
  /platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
UiBenchTextJankTests.java 94 // Test Layout Cache High Hitrate fling
108 layoutCacheHighHitrateContents.fling(Direction.DOWN, 5000);
113 layoutCacheHighHitrateContents.fling(Direction.UP, 5000);
127 // Test Layout Cache Low Hitrate fling
141 layoutCacheLowHitrateContents.fling(Direction.DOWN, 5000);
146 layoutCacheLowHitrateContents.fling(Direction.UP, 5000);
UiBenchJankTests.java 134 // Test trivialListView fling
150 trivialListViewContents.fling(Direction.DOWN, mHelper.CW_FLING_RATE);
155 trivialListViewContents.fling(Direction.UP, mHelper.CW_FLING_RATE);
165 // Test trivialRecyclerListView fling
183 trivialRecyclerViewContents.fling(Direction.DOWN, mHelper.CW_FLING_RATE);
188 trivialRecyclerViewContents.fling(Direction.UP, mHelper.CW_FLING_RATE);
200 // Test Inflating List View fling
218 inflatingListViewContents.fling(Direction.DOWN, mHelper.CW_FLING_RATE);
223 inflatingListViewContents.fling(Direction.UP, mHelper.CW_FLING_RATE);
UiBenchRenderingJankTests.java 88 // Test Shadow Grid fling
100 shadowGridContents.fling(Direction.DOWN, 5000);
104 shadowGridContents.fling(Direction.UP, 5000);
  /platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
LauncherJankTests.java 142 allApps.fling(dir, FLING_SPEED);
143 allApps.fling(Direction.reverse(dir), FLING_SPEED);
185 workspace.fling(dir);
186 workspace.fling(Direction.reverse(dir));
212 allWidgets.fling(dir, FLING_SPEED);
213 allWidgets.fling(Direction.reverse(dir), FLING_SPEED);
  /frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
GridLayoutManagerSnappingTest.java 121 assertTrue(fling(velocityDir, velocityDir)); method
148 assertTrue(fling(velocityDir, velocityDir)); method
222 private boolean fling(final int velocityX, final int velocityY) method in class:GridLayoutManagerSnappingTest
228 boolean result = mRecyclerView.fling(velocityX, velocityY);
LinearLayoutManagerSnappingTest.java 143 assertTrue(fling(velocityDir, velocityDir)); method
168 assertTrue(fling(velocityDir, velocityDir)); method
239 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:LinearLayoutManagerSnappingTest
244 boolean result = mRecyclerView.fling(velocityX, velocityY);
PagerSnapHelperTest.java 136 // Scroll at one pixel in the correct direction to allow fling snapping to the next view.
144 assertTrue(fling(velocityDir, velocityDir)); method
187 // Scroll at one pixel in the correct direction to allow fling snapping to the next view.
195 assertTrue(fling(velocityDir, velocityDir)); method
270 private boolean fling(final int velocityX, final int velocityY) throws Throwable { method in class:PagerSnapHelperTest
275 boolean result = mRecyclerView.fling(velocityX, velocityY);
StaggeredGridLayoutManagerSnappingTest.java 161 assertTrue(fling(velocityDir, velocityDir)); method
188 assertTrue(fling(velocityDir, velocityDir)); method
278 private boolean fling(final int velocityX, final int velocityY) method in class:StaggeredGridLayoutManagerSnappingTest
284 boolean result = mRecyclerView.fling(velocityX, velocityY);
  /packages/apps/Camera2/src/com/android/camera/filmstrip/
FilmstripController.java 102 public void fling(float velocity); method in interface:FilmstripController
  /packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/
CarRecyclerView.java 33 * Custom {@link RecyclerView} that helps {@link CarLayoutManager} properly fling and paginate.
45 * If the user releases the list with a velocity of 0, {@link #fling(int, int)} will not be
88 public boolean fling(int velocityX, int velocityY) { method in class:CarRecyclerView
  /platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
AppLauncherFlingJankTest.java 35 * Jank tests to fling through apps available in the launcher [1st page]
62 * page) before running the fling test on apps.
82 recyclerViewContents.fling(Direction.DOWN, SysAppTestHelper.FLING_SPEED);
83 recyclerViewContents.fling(Direction.UP, SysAppTestHelper.FLING_SPEED);
SettingsFlingJankTest.java 33 * Jank tests to fling through Settings app on clockwork device
57 // Prepare device to launch Settings app and scroll through bottom to start fling test
74 listViewContents.fling(Direction.DOWN, SysAppTestHelper.FLING_SPEED);
75 listViewContents.fling(Direction.UP, SysAppTestHelper.FLING_SPEED);
  /platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
UiBenchJankTestsHelper.java 45 * Only to be used for initial-fling tests, or similar cases
105 * To perform the fling down and up on given content for flingCount number
115 content.fling(reverse ? Direction.UP : Direction.DOWN);
117 content.fling(reverse ? Direction.DOWN : Direction.UP);
136 content.fling(Direction.DOWN, (int)(SLOW_FLING_SPEED * mDisplayMetrics.density));
  /frameworks/base/core/java/android/widget/
OverScroller.java 68 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
110 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
207 * Returns where the scroll will end. Valid only for "fling" scrolls.
216 * Returns where the scroll will end. Valid only for "fling" scrolls.
401 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
403 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); method
407 * Start scrolling based on a fling gesture. The distance traveled will
408 * depend on the initial velocity of the fling.
412 * @param velocityX Initial velocity of the fling (X) measured in pixels per
414 * @param velocityY Initial velocity of the fling (Y) measured in pixels pe
433 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
746 void fling(int start, int velocity, int min, int max, int over) { method in class:OverScroller.SplineOverScroller
835 fling(start, velocity, positive ? min : start, positive ? start : max, mOver); method
    [all...]
Scroller.java 30 * animation—for example, in response to a fling gesture. Scrollers track
51 * whether the scroller is finished. If it isn't, it means that a fling or
278 * Returns where the scroll will end. Valid only for "fling" scrolls.
287 * Returns where the scroll will end. Valid only for "fling" scrolls.
401 * Start scrolling based on a fling gesture. The distance travelled will
402 * depend on the initial velocity of the fling.
406 * @param velocityX Initial velocity of the fling (X) measured in pixels per
408 * @param velocityY Initial velocity of the fling (Y) measured in pixels per
419 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:Scroller
421 // Continue a scroll or fling in progres
    [all...]
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
OverScroller.java 68 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
107 * @param flywheel If true, successive fling motions will keep on increasing scroll speed.
199 * Returns where the scroll will end. Valid only for "fling" scrolls.
208 * Returns where the scroll will end. Valid only for "fling" scrolls.
400 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
402 fling(startX, startY, velocityX, velocityY, minX, maxX, minY, maxY, 0, 0); method
406 * Start scrolling based on a fling gesture. The distance traveled will
407 * depend on the initial velocity of the fling.
411 * @param velocityX Initial velocity of the fling (X) measured in pixels per
413 * @param velocityY Initial velocity of the fling (Y) measured in pixels pe
432 public void fling(int startX, int startY, int velocityX, int velocityY, method in class:OverScroller
748 void fling(int start, int velocity, int min, int max, int over) { method in class:OverScroller.SplineOverScroller
835 fling(start, velocity, positive ? min : start, positive ? start : max, mOver); method
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
ObservableScrollView.java 132 public void fling(int velocityY) { method in class:ObservableScrollView
134 super.fling(velocityY);
  /frameworks/support/design/src/android/support/design/widget/
HeaderBehavior.java 170 fling(parent, child, -getScrollRangeForDragFling(child), 0, yvel); method
226 final boolean fling(CoordinatorLayout coordinatorLayout, V layout, int minOffset, method in class:HeaderBehavior
237 mScroller.fling(
254 * Called when a fling has finished, or the fling was initiated but there wasn't enough
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
TaskStackViewScroller.java 157 * Starts a fling that is coordinated with the {@link TaskStackViewTouchHandler}.
159 public void fling(float downScrollP, int downY, int y, int velY, int minY, int maxY, method in class:TaskStackViewScroller
162 Log.d(TAG, "fling: " + downScrollP + ", downY: " + downY + ", y: " + y +
167 mScroller.fling(0, y, 0, velY, 0, 0, minY, maxY, 0, overscroll);
220 // Calculate the fling and snap to closest task from final y position, computeScroll()
223 fling(0 /* downScrollP */, 0 /* downY */, algorithm.percentageToScroll(stackScroll),
335 /** Stops the scroller and any current fling. */
  /packages/apps/Dialer/java/com/android/dialershared/bubble/
MoveHandler.java 237 // Find where a fling would end vertically
238 scroller.fling(startX, startY, (int) xVelocity, (int) yVelocity, minX, maxX, minY, maxY);
242 // If the x component of the velocity is above the minimum fling velocity, use velocity to
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoTouchListener.java 92 log("fling " + dX + ", " + dY);
118 mTable.fling(target, x1 - x0, y1 - y0, (int) (1000f * n / 60f), false);
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
FlingUpDownTouchHandler.java 103 // Progress at which a fling in the opposite direction will recenter instead of
207 * Sets whether fling velocity is used to affect accept/reject behavior
209 * @param flingEnabled whether fling velocity will be used when determining whether to
319 fling(vel, target, falseTouch); method
342 // Not a fling
394 private void fling(float velocity, @FlingTarget int target, boolean centerBecauseOfFalsing) { method in class:FlingUpDownTouchHandler

Completed in 329 milliseconds

1 2 3 4