/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/action/ |
H A D | Swipe.java | 64 private static float[][] interpolate(float[] start, float[] end, int steps) { argument 68 float[][] res = new float[steps][2]; 70 for (int i = 1; i < steps + 1; i++) { 71 res[i - 1][0] = start[0] + (end[0] - start[0]) * i / (steps + 2f); 72 res[i - 1][1] = start[1] + (end[1] - start[1]) * i / (steps + 2f); 85 float[][] steps = interpolate(startCoordinates, endCoordinates, SWIPE_EVENT_COUNT); 86 final int delayBetweenMovements = duration / steps.length; 88 MotionEvent downEvent = MotionEvents.sendDown(uiController, steps[0], precision).down; 90 for (int i = 1; i < steps.length; i++) { 91 if (!MotionEvents.sendMovement(uiController, downEvent, steps[ [all...] |
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiObject.java | 185 * 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 D | UiScrollable.java | 31 // 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 D | UiDevice.java | 415 * 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 D | InteractionController.java | 345 * @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/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
H A D | Histogram.java | 37 int steps = (h + step - 1) / step; 42 mScript.set_gSteps(steps); 45 tb.setX(256).setY(steps);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | VelocityTest.java | 115 // 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/tools/layoutlib/bridge/src/android/webkit/ |
H A D | WebView.java | 132 public boolean canGoBackOrForward(int steps) { argument 136 public void goBackOrForward(int steps) { argument
|
/frameworks/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 137 public boolean canGoBackOrForward(int steps); argument 139 public void goBackOrForward(int steps); argument
|
H A D | WebView.java | 1047 * number of steps. 1049 * @param steps the negative or positive number of steps to move the 1052 public boolean canGoBackOrForward(int steps) { argument 1054 return mProvider.canGoBackOrForward(steps); 1058 * Goes to the history item that is the number of steps away from 1062 * @param steps the number of steps to take back or forward in the back 1065 public void goBackOrForward(int steps) { argument 1067 if (DebugFlags.TRACE_API) Log.d(LOGTAG, "goBackOrForwad=" + steps); [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirGen.h | 23 * generates a sine wave at equal steps. 25 * As most of our functions use sine or cosine at equal steps, 87 * generates a series of sine generators, phase offset by fixed steps. 442 * We use the basic recursion to incorporate the cosine steps into real sequence x[n]: 449 * The summation contains the frequency steps we want multiplied by the source 511 * @param steps is the number of steps to take (sampling) between frequency start and end 522 double fstart, double fend, int steps, double &firMin, double &firMax) { 525 double wstep = (wend - wstart)/steps; 533 for (int i=1; i<steps; 521 testFir(const T* coef, int L, int halfNumCoef, double fstart, double fend, int steps, double &firMin, double &firMax) argument [all...] |
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebViewChromium.java | 659 // loading steps such as decoding URL-encoded entities. We achieve this same behavior by 805 public boolean canGoBackOrForward(final int steps) { argument 811 return canGoBackOrForward(steps); 816 return mAwContents.canGoBackOrForward(steps); 820 public void goBackOrForward(final int steps) { argument 825 goBackOrForward(steps); 830 mAwContents.goBackOrForward(steps);
|
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHardwareManager.java | 714 int steps = (sourceGain.maxValue() - sourceGain.minValue()) 718 gainValue += sourceGain.stepValue() * (int) (mVolume * steps + 0.5);
|
/frameworks/base/media/java/android/media/ |
H A D | AudioService.java | 238 // Maximum volume adjust steps allowed in a single batch call. 1125 public void adjustMasterVolume(int steps, int flags, String callingPackage) { argument 1129 ensureValidSteps(steps); 1132 int numSteps = Math.abs(steps); 1133 int direction = steps > 0 ? AudioManager.ADJUST_RAISE : AudioManager.ADJUST_LOWER; 1139 //Log.d(TAG, "adjustMasterVolume volume: " + volume + " steps: " + steps); 3087 private void ensureValidSteps(int steps) { argument 3088 if (Math.abs(steps) > MAX_BATCH_VOLUME_ADJUST_STEPS) { 3089 throw new IllegalArgumentException("Bad volume adjust steps " [all...] |
H A D | AudioManager.java | 847 * @param steps The number of volume steps to adjust. A positive 852 public void adjustMasterVolume(int steps, int flags) { argument 855 service.adjustMasterVolume(steps, flags, mContext.getOpPackageName());
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 5610 int steps = getCpuSpeedSteps(); 5611 mSpeedBins = new SamplingCounter[bins >= steps ? bins : steps]; 6393 public void setNumSpeedSteps(int steps) { argument 6394 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps; 6874 private static int addLevelSteps(long[] steps, int stepCount, long lastStepTime, argument 6879 System.arraycopy(steps, 0, steps, 1, steps.length-1); 6885 steps[ 7212 computeTimePerLevel(long[] steps, int numSteps) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1637 * Return the historical number of discharge steps we currently have. 1659 * Return the historical number of charge steps we currently have. 3672 private static boolean dumpDurationSteps(PrintWriter pw, String header, long[] steps, argument 3682 long duration = steps[i] & STEP_LEVEL_TIME_MASK; 3683 int level = (int)((steps[i] & STEP_LEVEL_LEVEL_MASK) 3685 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK) 3687 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK)
|