Searched defs:steps (Results 1 - 13 of 13) 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/src/com/android/uiautomator/core/
H A DInteractionController.java383 final int steps) {
385 + upY + ", " + steps +")");
390 swipe(downX, downY, upX, upY, steps);
407 public boolean swipe(int downX, int downY, int upX, int upY, int steps) { argument
409 int swipeSteps = steps;
426 // set some known constant delay between steps as without it this
439 * @param segmentSteps steps to inject between two Points
469 // set some known constant delay between steps as without it this
382 scrollSwipe(final int downX, final int downY, final int upX, final int upY, final int steps) argument
H A DUiObject.java166 * @param steps indicates the number of injected move steps into the system. Steps are
167 * injected about 5ms apart. So a 100 steps may take about 1/2 second to complete.
171 public boolean swipeUp(int steps) throws UiObjectNotFoundException { argument
177 steps);
187 * @param steps indicates the number of injected move steps into the system. Steps are
188 * injected about 5ms apart. So a 100 steps may take about 1/2 second to complete.
192 public boolean swipeDown(int steps) throws UiObjectNotFoundException { argument
198 rect.bottom - SWIPE_MARGIN_LIMIT, steps);
213 swipeLeft(int steps) argument
233 swipeRight(int steps) argument
[all...]
H A DUiScrollable.java29 // More steps slows the swipe and prevents contents from being flung too far
304 * @param steps use steps to control the speed, so that it may be a scroll, or fling
307 public boolean scrollForward(int steps) throws UiObjectNotFoundException { argument
339 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps);
367 * @param steps use steps to control the speed, so that it may be a scroll, or fling
370 public boolean scrollBackward(int steps) throws UiObjectNotFoundException { argument
404 return getInteractionController().scrollSwipe(downX, downY, upX, upY, steps);
412 * @param steps us
415 scrollToBeginning(int maxSwipes, int steps) argument
454 scrollToEnd(int maxSwipes, int steps) argument
[all...]
H A DUiDevice.java343 * Performs a swipe from one coordinate to another using the number of steps
345 * per step. So for a 100 steps, the swipe will take about 1/2 second to complete.
351 * @param steps is the number of move steps sent to the system
354 public boolean swipe(int startX, int startY, int endX, int endY, int steps) { argument
356 .scrollSwipe(startX, startY, endX, endY, steps);
361 * to 5ms per step. So for a 100 steps, the swipe will take about 1/2 second to complete
364 * @param segmentSteps steps to inject between two Points
/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 DBrowserFrame.java340 * Go back or forward the number of steps given.
341 * @param steps A negative or positive number indicating the direction
342 * and number of steps to move.
344 public void goBackOrForward(int steps) { argument
346 nativeGoBackOrForward(steps);
1250 * Go back or forward the number of steps given.
1251 * @param steps A negative or positive number indicating the direction
1252 * and number of steps to move.
1254 private native void nativeGoBackOrForward(int steps); argument
H A DWebViewProvider.java132 public boolean canGoBackOrForward(int steps); argument
134 public void goBackOrForward(int steps); argument
H A DWebView.java944 * number of steps.
946 * @param steps the negative or positive number of steps to move the
949 public boolean canGoBackOrForward(int steps) { argument
951 return mProvider.canGoBackOrForward(steps);
955 * Goes to the history item that is the number of steps away from
959 * @param steps the number of steps to take back or forward in the back
962 public void goBackOrForward(int steps) { argument
964 mProvider.goBackOrForward(steps);
[all...]
H A DWebViewClassic.java2708 public boolean canGoBackOrForward(int steps) { argument
2714 int newIndex = l.getCurrentIndex() + steps;
2724 public void goBackOrForward(int steps) { argument
2725 goBackOrForwardImpl(steps);
2728 private void goBackOrForwardImpl(int steps) { argument
2729 goBackOrForward(steps, false);
2732 private void goBackOrForward(int steps, boolean ignoreSnapshot) { argument
2733 if (steps != 0) {
2735 mWebViewCore.sendMessage(EventHub.GO_BACK_FORWARD, steps,
/frameworks/base/media/java/android/media/
H A DAudioManager.java625 * @param steps The number of volume steps to adjust. A positive
630 public void adjustMasterVolume(int steps, int flags) { argument
633 service.adjustMasterVolume(steps, flags);
H A DAudioService.java192 // Maximum volume adjust steps allowed in a single batch call.
893 public void adjustMasterVolume(int steps, int flags) { argument
894 ensureValidSteps(steps);
897 int numSteps = Math.abs(steps);
898 int direction = steps > 0 ? AudioManager.ADJUST_RAISE : AudioManager.ADJUST_LOWER;
904 //Log.d(TAG, "adjustMasterVolume volume: " + volume + " steps: " + steps);
2406 private void ensureValidSteps(int steps) { argument
2407 if (Math.abs(steps) > MAX_BATCH_VOLUME_ADJUST_STEPS) {
2408 throw new IllegalArgumentException("Bad volume adjust steps "
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java3399 int steps = getCpuSpeedSteps();
3400 mSpeedBins = new SamplingCounter[bins >= steps ? bins : steps];
4132 public void setNumSpeedSteps(int steps) { argument
4133 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps;

Completed in 1052 milliseconds