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

/frameworks/base/core/tests/coretests/src/android/view/
H A DVelocityTest.java115 // 100px, 2 steps, 100ms => 1000px/s
131 drag(vt, 100, 200, 100, 200, 10, t, 400); // 10 steps over 400ms
136 drag(vt, 100, 200, 100, 200, 20, t, 400); // 20 steps over 400ms
232 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
234 drag(vt, startX, endX, startY, endY, steps, startime, duration, new LinearInterpolator());
241 private void drag(VelocityTracker vt, int startX, int endX, int startY, int endY, int steps, argument
244 float dt = duration / (float)steps;
247 for (int i=1; i<steps-1; i++) {
248 float ii = interpolator.getInterpolation(i / (float)steps);
/frameworks/base/cmds/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
924 pinchOut(int percent, int steps) argument
962 pinchIn(int percent, int steps) argument
1000 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/av/services/audioflinger/
H A DAudioResamplerFirGen.h25 * generates a sine wave at equal steps.
27 * As most of our functions use sine or cosine at equal steps,
89 * generates a series of sine generators, phase offset by fixed steps.
445 * We use the basic recursion to incorporate the cosine steps into real sequence x[n]:
452 * The summation contains the frequency steps we want multiplied by the source
514 * @param steps is the number of steps to take (sampling) between frequency start and end
525 double fstart, double fend, int steps, double &firMin, double &firMax) {
528 double wstep = (wend - wstart)/steps;
536 for (int i=1; i<steps;
524 testFir(const T* coef, int L, int halfNumCoef, double fstart, double fend, int steps, double &firMin, double &firMax) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewProvider.java145 public boolean canGoBackOrForward(int steps); argument
147 public void goBackOrForward(int steps); argument
H A DWebView.java1078 * number of steps.
1080 * @param steps the negative or positive number of steps to move the
1083 public boolean canGoBackOrForward(int steps) { argument
1085 return mProvider.canGoBackOrForward(steps);
1089 * Goes to the history item that is the number of steps away from
1093 * @param steps the number of steps to take back or forward in the back
1096 public void goBackOrForward(int steps) { argument
1098 mProvider.goBackOrForward(steps);
[all...]
/frameworks/base/core/java/android/os/
H A DBatteryStats.java616 public LevelStepTracker(int numSteps, long[] steps) { argument
619 System.arraycopy(steps, 0, mStepDurations, 0, numSteps);
777 final long[] steps = mStepDurations;
780 // For now we'll do a simple average across all steps.
786 total += steps[i] & STEP_LEVEL_TIME_MASK;
798 totalTime += steps[i+j] & STEP_LEVEL_TIME_MASK;
819 final long[] steps = mStepDurations;
827 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK)
829 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK)
837 total += steps[
4629 dumpDurationSteps(PrintWriter pw, String prefix, String header, LevelStepTracker steps, boolean checkin) argument
4801 dumpDailyLevelStepSummary(PrintWriter pw, String prefix, String label, LevelStepTracker steps, StringBuilder tmpSb, int[] tmpOutInt) argument
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java5657 int steps = getCpuSpeedSteps();
5658 mSpeedBins = new LongSamplingCounter[bins >= steps ? bins : steps];
6884 public void setNumSpeedSteps(int steps) { argument
6885 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps;
7015 private void writeDailyLevelSteps(XmlSerializer out, String tag, LevelStepTracker steps, argument
7017 if (steps != null) {
7019 out.attribute(null, "n", Integer.toString(steps.mNumStepDurations));
7020 for (int i=0; i<steps.mNumStepDurations; i++) {
7023 steps
8546 computeTimePerLevel(long[] steps, int numSteps) argument
[all...]

Completed in 595 milliseconds