Searched defs:steps (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/view/
H A DVelocityTest.java117 // 100px, 2 steps, 100ms => 1000px/s
133 drag(vt, 100, 200, 100, 200, 10, t, 400); // 10 steps over 400ms
138 drag(vt, 100, 200, 100, 200, 20, t, 400); // 20 steps over 400ms
234 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
236 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator());
243 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
246 float dt = duration / (float)steps;
249 for (int i=1; i<steps-1; i++) {
250 float ii = interpolator.getInterpolation(i / (float)steps);
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiScrollable.java31 // More steps slows the swipe and prevents contents from being flung too far
369 * Performs a forward fling with the default number of fling steps (5).
385 * Performs a forward scroll with the default number of scroll steps (55).
407 * @param steps number of steps. Use this to control the speed of the scroll action
411 public boolean scrollForward(int steps) throws UiObjectNotFoundException { argument
412 Tracer.trace(steps);
444 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps);
449 * steps (5). If the swipe direction is set to vertical,
464 * Performs a backward scroll with the default number of scroll steps (5
490 scrollBackward(int steps) argument
538 scrollToBeginning(int maxSwipes, int steps) argument
590 scrollToEnd(int maxSwipes, int steps) argument
[all...]
H A DInteractionController.java345 * @param steps
349 final int steps) {
351 + upY + ", " + steps +")");
356 swipe(downX, downY, upX, upY, steps);
421 * @param steps
424 public boolean swipe(int downX, int downY, int upX, int upY, int steps) { argument
425 return swipe(downX, downY, upX, upY, steps, false /*drag*/);
434 * @param steps
438 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) { argument
440 int swipeSteps = steps;
348 scrollSwipe(final int downX, final int downY, final int upX, final int upY, final int steps) argument
[all...]
H A DUiObject.java185 * The number of steps specified in your input parameter can influence the
190 * @param steps usually 40 steps. You can increase or decrease the steps to change the speed.
195 public boolean dragTo(UiObject destObj, int steps) throws UiObjectNotFoundException { argument
199 dstRect.centerX(), dstRect.centerY(), steps, true);
204 * The number of steps specified in your input parameter can influence the
210 * @param steps usually 40 steps. You can increase or decrease the steps t
215 dragTo(int destX, int destY, int steps) argument
237 swipeUp(int steps) argument
265 swipeDown(int steps) argument
293 swipeLeft(int steps) argument
320 swipeRight(int steps) argument
920 pinchOut(int percent, int steps) argument
958 pinchIn(int percent, int steps) argument
996 performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps) argument
[all...]
H A DUiDevice.java415 * Performs a swipe from one coordinate to another using the number of steps
417 * per step. So for a 100 steps, the swipe will take about 1/2 second to complete.
423 * @param steps is the number of move steps sent to the system
427 public boolean swipe(int startX, int startY, int endX, int endY, int steps) { argument
428 Tracer.trace(startX, startY, endX, endY, steps);
430 .swipe(startX, startY, endX, endY, steps);
435 * the smoothness and speed of the swipe by specifying the number of steps.
437 * steps, the swipe will take around 0.5 seconds to complete.
443 * @param steps i
448 drag(int startX, int startY, int endX, int endY, int steps) argument
[all...]
/frameworks/uiautomator/src/com/android/uiautomator/core/
H A DUiScrollable.java31 // More steps slows the swipe and prevents contents from being flung too far
369 * Performs a forward fling with the default number of fling steps (5).
385 * Performs a forward scroll with the default number of scroll steps (55).
407 * @param steps number of steps. Use this to control the speed of the scroll action
411 public boolean scrollForward(int steps) throws UiObjectNotFoundException { argument
412 Tracer.trace(steps);
444 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps);
449 * steps (5). If the swipe direction is set to vertical,
464 * Performs a backward scroll with the default number of scroll steps (5
490 scrollBackward(int steps) argument
538 scrollToBeginning(int maxSwipes, int steps) argument
590 scrollToEnd(int maxSwipes, int steps) argument
[all...]
H A DInteractionController.java345 * @param steps
349 final int steps) {
351 + upY + ", " + steps +")");
356 swipe(downX, downY, upX, upY, steps);
421 * @param steps
424 public boolean swipe(int downX, int downY, int upX, int upY, int steps) { argument
425 return swipe(downX, downY, upX, upY, steps, false /*drag*/);
434 * @param steps
438 public boolean swipe(int downX, int downY, int upX, int upY, int steps, boolean drag) { argument
440 int swipeSteps = steps;
348 scrollSwipe(final int downX, final int downY, final int upX, final int upY, final int steps) argument
[all...]
H A DUiObject.java185 * The number of steps specified in your input parameter can influence the
190 * @param steps usually 40 steps. You can increase or decrease the steps to change the speed.
195 public boolean dragTo(UiObject destObj, int steps) throws UiObjectNotFoundException { argument
199 dstRect.centerX(), dstRect.centerY(), steps, true);
204 * The number of steps specified in your input parameter can influence the
210 * @param steps usually 40 steps. You can increase or decrease the steps t
215 dragTo(int destX, int destY, int steps) argument
237 swipeUp(int steps) argument
265 swipeDown(int steps) argument
293 swipeLeft(int steps) argument
320 swipeRight(int steps) argument
920 pinchOut(int percent, int steps) argument
958 pinchIn(int percent, int steps) argument
996 performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, Point endPoint2, int steps) argument
[all...]
H A DUiDevice.java415 * Performs a swipe from one coordinate to another using the number of steps
417 * per step. So for a 100 steps, the swipe will take about 1/2 second to complete.
423 * @param steps is the number of move steps sent to the system
427 public boolean swipe(int startX, int startY, int endX, int endY, int steps) { argument
428 Tracer.trace(startX, startY, endX, endY, steps);
430 .swipe(startX, startY, endX, endY, steps);
435 * the smoothness and speed of the swipe by specifying the number of steps.
437 * steps, the swipe will take around 0.5 seconds to complete.
443 * @param steps i
448 drag(int startX, int startY, int endX, int endY, int steps) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/webkit/
H A DWebView.java132 public boolean canGoBackOrForward(int steps) { argument
136 public void goBackOrForward(int steps) { argument
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java136 public boolean canGoBackOrForward(int steps); argument
138 public void goBackOrForward(int steps); argument
H A DWebView.java986 * number of steps.
988 * @param steps the negative or positive number of steps to move the
991 public boolean canGoBackOrForward(int steps) { argument
993 return mProvider.canGoBackOrForward(steps);
997 * Goes to the history item that is the number of steps away from
1001 * @param steps the number of steps to take back or forward in the back
1004 public void goBackOrForward(int steps) { argument
1006 if (DebugFlags.TRACE_API) Log.d(LOGTAG, "goBackOrForwad=" + steps);
[all...]
/frameworks/base/media/java/android/media/
H A DAudioManager.java669 * @param steps The number of volume steps to adjust. A positive
674 public void adjustMasterVolume(int steps, int flags) { argument
677 service.adjustMasterVolume(steps, flags, mContext.getOpPackageName());
H A DAudioService.java192 // Maximum volume adjust steps allowed in a single batch call.
934 public void adjustMasterVolume(int steps, int flags, String callingPackage) { argument
938 ensureValidSteps(steps);
941 int numSteps = Math.abs(steps);
942 int direction = steps > 0 ? AudioManager.ADJUST_RAISE : AudioManager.ADJUST_LOWER;
948 //Log.d(TAG, "adjustMasterVolume volume: " + volume + " steps: " + steps);
2609 private void ensureValidSteps(int steps) { argument
2610 if (Math.abs(steps) > MAX_BATCH_VOLUME_ADJUST_STEPS) {
2611 throw new IllegalArgumentException("Bad volume adjust steps "
[all...]
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewChromium.java589 // loading steps such as decoding URL-encoded entities. We achieve this same behavior by
745 public boolean canGoBackOrForward(final int steps) { argument
751 return canGoBackOrForward(steps);
756 return mAwContents.canGoBackOrForward(steps);
760 public void goBackOrForward(final int steps) { argument
765 goBackOrForward(steps);
770 mAwContents.goBackOrForward(steps);
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java3806 int steps = getCpuSpeedSteps();
3807 mSpeedBins = new SamplingCounter[bins >= steps ? bins : steps];
4541 public void setNumSpeedSteps(int steps) { argument
4542 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps;

Completed in 283 milliseconds