Searched defs:distance (Results 1 - 10 of 10) sorted by relevance
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | ScrollerHelper.java | 84 // Returns the distance that over the scroll limit. 85 public int startScroll(int distance, int min, int max) { argument 88 int newPosition = Utils.clamp(finalPosition + distance, min, max); 94 return finalPosition + distance - newPosition;
|
H A D | Paper.java | 40 public void overScroll(float distance) { argument 41 distance /= mWidth; // make it relative to width 42 if (distance < 0) { 43 mAnimationLeft.onPull(-distance); 45 mAnimationRight.onPull(distance);
|
H A D | PositionController.java | 327 public void startHorizontalSlide(int distance) { argument 328 scrollBy(distance, 0, ANIM_KIND_SLIDE);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | SmoothPagedView.java | 46 public void setDistance(int distance) { argument 47 mTension = distance > 0 ? DEFAULT_TENSION / distance : DEFAULT_TENSION;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyDetector.java | 47 * @param keyHysteresisDistance if the pointer movement distance is smaller than this, the 129 * Insert the key into nearby keys buffer and sort nearby keys by ascending order of distance. 130 * If the distance of two keys are the same, the key which the point is on should be considered 134 * @param distance distance between the key's edge and user touched point. 138 private int sortNearbyKeys(int keyIndex, int distance, boolean isOnKey) { argument 143 if (distance < comparingDistance || (distance == comparingDistance && isOnKey)) { 151 distances[insertPos] = distance; 203 final int distance [all...] |
/packages/inputmethods/PinyinIME/jni/share/ |
H A D | ngram.cpp | 37 inline double distance(double freq, double code) { function in namespace:ime_pinyin 48 if (distance(freq, code_book[end]) > distance(freq, code_book[start])) 87 ret += distance(freqs[pos], code_book[code_idx[pos]]);
|
/packages/apps/Browser/src/com/android/browser/ |
H A D | NavTabScroller.java | 280 int distance = target - (mHorizontal ? v.getTop() : v.getLeft()); 281 long duration = (long) (Math.abs(distance) * 1000 / Math.abs(velocity)); 432 protected void onOrthoDrag(View v, float distance) { argument 434 offsetView(v, distance); 464 private void offsetView(View v, float distance) { argument 465 v.setAlpha(getAlpha(v, distance)); 467 v.setTranslationY(distance); 469 v.setTranslationX(distance); 473 private float getAlpha(View v, float distance) { argument 474 return 1 - (float) Math.abs(distance) / (mHorizonta [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | Util.java | 314 public static float distance(float x, float y, float sx, float sy) { method in class:Util
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | Utils.java | 107 // Returns the euclidean distance between (x, y) and (sx, sy). 108 public static float distance(float x, float y, float sx, float sy) { method in class:Utils
|
/packages/apps/Browser/src/com/android/browser/view/ |
H A D | ScrollerView.java | 856 protected void onOrthoDrag(View draggedView, float distance) { argument
|
Completed in 181 milliseconds