Searched refs:steps (Results 1 - 13 of 13) sorted by relevance

/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
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 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 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...]
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...]
/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/base/tools/layoutlib/bridge/src/android/webkit/
H A DWebView.java140 public boolean canGoBackOrForward(int steps) { argument
144 public void goBackOrForward(int steps) { argument
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java132 public boolean canGoBackOrForward(int steps); argument
134 public void goBackOrForward(int steps); argument
H A DWebView.java932 * number of steps.
934 * @param steps the negative or positive number of steps to move the
937 public boolean canGoBackOrForward(int steps) { argument
939 return mProvider.canGoBackOrForward(steps);
943 * Goes to the history item that is the number of steps away from
947 * @param steps the number of steps to take back or forward in the back
950 public void goBackOrForward(int steps) { argument
952 mProvider.goBackOrForward(steps);
[all...]
H A DBrowserFrame.java338 * Go back or forward the number of steps given.
339 * @param steps A negative or positive number indicating the direction
340 * and number of steps to move.
342 public void goBackOrForward(int steps) { argument
344 nativeGoBackOrForward(steps);
1249 * Go back or forward the number of steps given.
1250 * @param steps A negative or positive number indicating the direction
1251 * and number of steps to move.
1253 private native void nativeGoBackOrForward(int steps); argument
H A DWebViewClassic.java2745 public boolean canGoBackOrForward(int steps) { argument
2751 int newIndex = l.getCurrentIndex() + steps;
2761 public void goBackOrForward(int steps) { argument
2762 goBackOrForwardImpl(steps);
2765 private void goBackOrForwardImpl(int steps) { argument
2766 goBackOrForward(steps, false);
2769 private void goBackOrForward(int steps, boolean ignoreSnapshot) { argument
2770 if (steps != 0) {
2772 mWebViewCore.sendMessage(EventHub.GO_BACK_FORWARD, steps,
/frameworks/base/media/java/android/media/
H A DAudioManager.java627 * @param steps The number of volume steps to adjust. A positive
632 public void adjustMasterVolume(int steps, int flags) { argument
635 service.adjustMasterVolume(steps, flags);
H A DAudioService.java201 // Maximum volume adjust steps allowed in a single batch call.
920 public void adjustMasterVolume(int steps, int flags) { argument
924 ensureValidSteps(steps);
927 int numSteps = Math.abs(steps);
928 int direction = steps > 0 ? AudioManager.ADJUST_RAISE : AudioManager.ADJUST_LOWER;
934 //Log.d(TAG, "adjustMasterVolume volume: " + volume + " steps: " + steps);
2520 private void ensureValidSteps(int steps) { argument
2521 if (Math.abs(steps) > MAX_BATCH_VOLUME_ADJUST_STEPS) {
2522 throw new IllegalArgumentException("Bad volume adjust steps "
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java3587 int steps = getCpuSpeedSteps();
3588 mSpeedBins = new SamplingCounter[bins >= steps ? bins : steps];
4319 public void setNumSpeedSteps(int steps) { argument
4320 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps;

Completed in 1822 milliseconds