/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/media/java/android/media/ |
H A D | AudioManagerInternal.java | 41 public abstract void adjustMasterVolumeForUid(int steps, int flags, String callingPackage, argument
|
H A D | AudioManager.java | 907 * @param steps The number of volume steps to adjust. A positive 912 public void adjustMasterVolume(int steps, int flags) { argument 915 service.adjustMasterVolume(steps, flags, mContext.getOpPackageName());
|
H A D | AudioService.java | 240 // Maximum volume adjust steps allowed in a single batch call. 1174 public void adjustMasterVolume(int steps, int flags, String callingPackage) { argument 1175 adjustMasterVolume(steps, flags, callingPackage, Binder.getCallingUid()); 1178 public void adjustMasterVolume(int steps, int flags, String callingPackage, int uid) { argument 1182 ensureValidSteps(steps); 1185 int numSteps = Math.abs(steps); 1186 int direction = steps > 0 ? AudioManager.ADJUST_RAISE : AudioManager.ADJUST_LOWER; 1192 //Log.d(TAG, "adjustMasterVolume volume: " + volume + " steps: " + steps); 3236 private void ensureValidSteps(int steps) { argument 5821 adjustMasterVolumeForUid(int steps, int flags, String callingPackage, int uid) argument [all...] |
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
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 | 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...] |
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 | 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...] |
/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/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/base/core/java/android/webkit/ |
H A D | WebViewProvider.java | 139 public boolean canGoBackOrForward(int steps); argument 141 public void goBackOrForward(int steps); argument
|
H A D | WebView.java | 1053 * number of steps. 1055 * @param steps the negative or positive number of steps to move the 1058 public boolean canGoBackOrForward(int steps) { argument 1060 return mProvider.canGoBackOrForward(steps); 1064 * Goes to the history item that is the number of steps away from 1068 * @param steps the number of steps to take back or forward in the back 1071 public void goBackOrForward(int steps) { argument 1073 if (TRACE) Log.d(LOGTAG, "goBackOrForwad=" + steps); [all...] |
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebViewChromium.java | 660 // loading steps such as decoding URL-encoded entities. We achieve this same behavior by 806 public boolean canGoBackOrForward(final int steps) { argument 812 return canGoBackOrForward(steps); 817 return mAwContents.canGoBackOrForward(steps); 821 public void goBackOrForward(final int steps) { argument 826 goBackOrForward(steps); 831 mAwContents.goBackOrForward(steps);
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 1661 * Return the historical number of discharge steps we currently have. 1683 * Return the historical number of charge steps we currently have. 3728 private static boolean dumpTimeEstimate(PrintWriter pw, String label, long[] steps, argument 3736 long initMode = (steps[i] & STEP_LEVEL_INITIAL_MODE_MASK) 3738 long modMode = (steps[i] & STEP_LEVEL_MODIFIED_MODE_MASK) 3746 total += steps[i] & STEP_LEVEL_TIME_MASK; 3767 private static boolean dumpDurationSteps(PrintWriter pw, String header, long[] steps, argument 3777 long duration = steps[i] & STEP_LEVEL_TIME_MASK; 3778 int level = (int)((steps[i] & STEP_LEVEL_LEVEL_MASK) 3780 long initMode = (steps[ [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | BatteryStatsImpl.java | 5666 int steps = getCpuSpeedSteps(); 5667 mSpeedBins = new SamplingCounter[bins >= steps ? bins : steps]; 6479 public void setNumSpeedSteps(int steps) { argument 6480 if (sNumSpeedSteps == 0) sNumSpeedSteps = steps; 6972 private static int addLevelSteps(long[] steps, int stepCount, long lastStepTime, argument 6977 System.arraycopy(steps, 0, steps, 1, steps.length-1); 6983 steps[ 7310 computeTimePerLevel(long[] steps, int numSteps) argument [all...] |