Searched defs:distance (Results 1 - 22 of 22) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dautocorrection_threshold_utils.cpp75 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 DManeuverPanel.java49 public void setDistanceToNextManeuver(String distance, String units) { argument
50 mDistance.setText(distance);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DScrollerHelper.java84 // 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 DPaper.java36 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 DNavCard.java65 public void setDistanceToNextManeuver(String distance, String units) { argument
67 maneuver.setDistanceToNextManeuver(distance, units);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DSmoothPagedView.java46 public void setDistance(int distance) { argument
47 mTension = distance > 0 ? DEFAULT_TENSION / distance : DEFAULT_TENSION;
H A DWorkspace.java807 // 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 DBogusMoveEventDetector.java63 // 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 Dsuggestions_output_utils.cpp204 // 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 Dtyping_weighting.h123 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 DFadeAndShortSlide.java54 int distance);
59 public float getGoneX(ViewGroup sceneRoot, View view, int[] position, int distance) {
63 x = view.getTranslationX() + distance;
65 x = view.getTranslationX() - distance;
73 public float getGoneX(ViewGroup sceneRoot, View view, int[] position, int distance) {
77 x = view.getTranslationX() - distance;
79 x = view.getTranslationX() + distance;
304 * Sets the moving distance in pixel.
306 public void setDistance(int distance) { argument
307 mDistance = distance;
53 getGoneX(ViewGroup sceneRoot, View view, int[] position, int distance) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
H A Dproximity_info_utils.h105 // Return point to the point distance.
168 const int distance = squaredLengthToEdge(keyXCoordinates, keyYCoordinates, local
170 if (onKey || distance < mostCommonKeyWidthSquare) {
H A Dproximity_info_state_utils.cpp312 // 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 DOneCamera.java203 * 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 DUtil.java314 public static float distance(float x, float y, float sx, float sy) { method in class:Util
/packages/apps/Messaging/jni/
H A DGifTranscoder.cpp475 int distance = computeDistance(targetColor, indexedColor); local
476 if (distance < closestColorDistance) {
478 closestColorDistance = distance;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DOverScroller.java156 * @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 DCameraUtil.java353 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 DScrollController.java44 * 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 DWorkspace.java2247 float distance = dropTargetLayout.getDistanceFromCell(mDragViewVisualCenter[0],
2250 dropTargetLayout, mTargetCell, distance, true)) {
2255 dropTargetLayout, mTargetCell, distance)) {
2281 float distance, boolean considerTimeout) {
2282 if (distance > mMaxDistanceForFolderCreation) return false;
2314 float distance) {
2315 if (distance > mMaxDistanceForFolderCreation) return false;
2338 int[] targetCell, float distance, boolean external, DragView dragView,
2340 if (distance > mMaxDistanceForFolderCreation) return false;
2396 float distance, DragObjec
2280 willCreateUserFolder(ItemInfo info, CellLayout target, int[] targetCell, float distance, boolean considerTimeout) argument
2313 willAddToExistingUserFolder(ItemInfo dragInfo, CellLayout target, int[] targetCell, float distance) argument
2337 createUserFolderIfNecessary(View newView, long container, CellLayout target, int[] targetCell, float distance, boolean external, DragView dragView, Runnable postAnimationRunnable) argument
2395 addToExistingFolderIfNecessary(View newView, CellLayout target, int[] targetCell, float distance, DragObject d, boolean external) argument
3007 manageFolderFeedback(CellLayout targetLayout, int[] targetCell, float distance, DragObject dragObject) argument
[all...]
/packages/services/Telecomm/libs/
H A Dguava.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/common/ com/google/common/util/ ...
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 2951 milliseconds