/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | autocorrection_threshold_utils.cpp | 75 const int distance = editDistance(before, beforeLength, after, afterLength); local 87 if (score <= 0 || distance >= afterLength) { 89 // or if the edit distance is larger than or equal to afterLength. 92 // add a weight based on edit distance. 93 const float weight = 1.0f - static_cast<float>(distance) / static_cast<float>(afterLength);
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
H A D | ManeuverPanel.java | 49 public void setDistanceToNextManeuver(String distance, String units) { argument 50 mDistance.setText(distance);
|
/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 89 int newPosition = Utils.clamp(finalPosition + distance, min, max); 95 return finalPosition + distance - newPosition;
|
H A D | Paper.java | 36 public void overScroll(float distance) { argument 37 distance /= mWidth; // make it relative to width 38 if (distance < 0) { 39 mAnimationLeft.onPull(-distance); 41 mAnimationRight.onPull(distance);
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/ |
H A D | NavCard.java | 65 public void setDistanceToNextManeuver(String distance, String units) { argument 67 maneuver.setDistanceToNextManeuver(distance, units);
|
/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;
|
H A D | Workspace.java | 807 // As a ratio of screen height, the total distance we want the parallax effect to span 1458 * as its distance from a camera increases. When this interpolator is applied to a scale 2007 float distance = dropTargetLayout.getDistanceFromCell(mDragViewVisualCenter[0], 2010 mTargetCell, distance, true)) { 2014 mTargetCell, distance)) { 2045 distance, boolean considerTimeout) { 2046 if (distance > mMaxDistanceForFolderCreation) return false; 2074 float distance) { 2075 if (distance > mMaxDistanceForFolderCreation) return false; 2095 int[] targetCell, float distance, boolea 2044 willCreateUserFolder(ItemInfo info, CellLayout target, int[] targetCell, float distance, boolean considerTimeout) argument 2073 willAddToExistingUserFolder(Object dragInfo, CellLayout target, int[] targetCell, float distance) argument 2094 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView, Runnable postAnimationRunnable) argument 2147 addToExistingFolderIfNecessary(View newView, CellLayout target, int[] targetCell, float distance, DragObject d, boolean external) argument 2876 manageFolderFeedback(ItemInfo info, CellLayout targetLayout, int[] targetCell, float distance, View dragOverView) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | BogusMoveEventDetector.java | 63 // Accumulated distance from actual and artificial down keys. 84 public void onMoveKey(final int distance) { argument 85 mAccumulatedDistanceFromDownKey += distance;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
H A D | suggestions_output_utils.cpp | 204 // Get the distance for the first word of the suggestion 205 const float distance = terminalDicNode->getNormalizedCompoundDistanceAfterFirstWord(); local 217 // Expected distance is about 0.2 ~ 2.0, but consider 0.0 ~ 2.0 227 // The smaller the edit distance, the higher the contribution. MIN_EXPECTED_DISTANCE means 0 229 // weight of the distance. Clamp to avoid overflows. 230 const float clampedDistance = distance < MIN_EXPECTED_DISTANCE ? MIN_EXPECTED_DISTANCE 231 : distance > MAX_EXPECTED_DISTANCE ? MAX_EXPECTED_DISTANCE : distance;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/ |
H A D | typing_weighting.h | 123 const float distance = distance1 + distance2; local 125 distance * ScoringParams::DISTANCE_WEIGHT_LENGTH;
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
H A D | FadeAndShortSlide.java | 51 ViewGroup sceneRoot, View view, int[] position, int distance); 58 ViewGroup sceneRoot, View view, int[] position, int distance) { 63 x = view.getTranslationX() + distance; 65 x = view.getTranslationX() - distance; 75 ViewGroup sceneRoot, View view, int[] position, int distance) { 80 x = view.getTranslationX() - distance; 82 x = view.getTranslationX() + distance; 316 /** Sets the moving distance in pixel. */ 317 public void setDistance(int distance) { argument 318 mDistance = distance; 50 getGoneX( ViewGroup sceneRoot, View view, int[] position, int distance) argument [all...] |
/packages/experimental/KBars/app/src/main/java/js/kbars/ |
H A D | SystemGestureDebugger.java | 54 public int distance; field in class:SystemGestureDebugger.ThresholdInfo 213 out.distance = this.mSwipeDistanceThreshold;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
H A D | proximity_info_utils.h | 105 // Return point to the point distance. 168 const int distance = squaredLengthToEdge(keyXCoordinates, keyYCoordinates, local 170 if (onKey || distance < mostCommonKeyWidthSquare) {
|
H A D | proximity_info_state_utils.cpp | 312 // Calculating point to key distance for all near keys and returning the distance between 361 // If there is only one point, add this point. Besides, if the previous point's distance map 601 // This function basically converts from a length to an edit distance. Accordingly, it's obviously 639 const float distance = getPointToKeyByIdLength( local 641 if (distance < nearestKeyDistance) { 642 nearestKeyDistance = distance; 805 // Converting from raw probabilities to log probabilities to calculate spatial distance.
|
/packages/apps/Camera2/src/com/android/camera/one/ |
H A D | OneCamera.java | 203 * distance of the physical lens changes. 207 * Called when physical lens distance on the camera changes. 209 public void onFocusDistance(float distance, LinearScale lensRange); argument 220 * @param lensDistance The current focal distance.
|
/packages/apps/LegacyCamera/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/Messaging/jni/ |
H A D | GifTranscoder.cpp | 475 int distance = computeDistance(targetColor, indexedColor); local 476 if (distance < closestColorDistance) { 478 closestColorDistance = distance;
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | OverScroller.java | 156 * @return The new X offset as an absolute distance from the origin. 165 * @return The new Y offset as an absolute distance from the origin. 183 * @return The start X offset as an absolute distance from the origin. 192 * @return The start Y offset as an absolute distance from the origin. 201 * @return The final X offset as an absolute distance from the origin. 210 * @return The final Y offset as an absolute distance from the origin. 253 * @param newX The new X offset as an absolute distance from the origin. 271 * @param newY The new Y offset as an absolute distance from the origin. 343 * Start scrolling by providing a starting point and the distance to travel. 351 * @param dx Horizontal distance t 682 startScroll(int start, int distance, int duration) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 353 public static float distance(float x, float y, float sx, float sy) { method in class:CameraUtil
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | ScrollController.java | 44 * focus view kept at a fixed location, might see blank space. The distance of fixed location 53 * focus view kept at a fixed percentage distance from the left/top of the view, 64 * focus view kept at a fixed location, might see blank space. The distance of fixed location 990 final public int getScrollDuration(int distance, boolean isPage) { argument 991 int ms = (int)(distance * SCROLL_DURATION_MS_PER_PIX);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Workspace.java | 1649 float distance = dropTargetLayout.getDistanceFromCell(mDragViewVisualCenter[0], 1652 dropTargetLayout, mTargetCell, distance, true)) { 1657 dropTargetLayout, mTargetCell, distance)) { 1683 float distance, boolean considerTimeout) { 1684 if (distance > mMaxDistanceForFolderCreation) return false; 1716 float distance) { 1717 if (distance > mMaxDistanceForFolderCreation) return false; 1740 int[] targetCell, float distance, boolean external, DragView dragView) { 1741 if (distance > mMaxDistanceForFolderCreation) return false; 1797 float distance, DragObjec 1682 willCreateUserFolder(ItemInfo info, CellLayout target, int[] targetCell, float distance, boolean considerTimeout) argument 1715 willAddToExistingUserFolder(ItemInfo dragInfo, CellLayout target, int[] targetCell, float distance) argument 1739 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView) argument 1796 addToExistingFolderIfNecessary(View newView, CellLayout target, int[] targetCell, float distance, DragObject d, boolean external) argument 2387 manageFolderFeedback(CellLayout targetLayout, int[] targetCell, float distance, DragObject dragObject) argument [all...] |
/packages/services/Telecomm/libs/ |
H A D | guava.jar | META-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ... |
/packages/apps/Messaging/build/gcheckstyle/ |
H A D | google-style-checker_deploy.jar | META-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ... |