/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/ |
D | SwipeButtonHelper.java | 181 float distance = (float) Math.hypot(xDist, yDist); in onTouchEvent() local 182 if (!touchSlopExeeded && distance > touchSlop) { in onTouchEvent() 187 distance = translationOnDown - distance; in onTouchEvent() 188 distance = Math.min(0, distance); in onTouchEvent() 190 distance = translationOnDown + distance; in onTouchEvent() 191 distance = Math.max(0, distance); in onTouchEvent() 193 setTranslation(distance, false /* isReset */, false /* animateReset */); in onTouchEvent() 235 double distance = Math.hypot(x - iconX, y - iconY); in isOnIcon() local 236 return distance <= touchTargetSize / 2; in isOnIcon()
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
D | OverScroller.java | 682 void startScroll(int start, int distance, int duration) { in startScroll() argument 686 mFinal = start + distance; in startScroll() 855 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local 858 if (distance > mOver) { in onEdgeReached() 861 distance = mOver; in onEdgeReached() 864 mOver = (int) distance; in onEdgeReached() 866 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached() 912 double distance = 0.0; in update() local 928 distance = distanceCoef * mSplineDistance; in update() 936 distance = mVelocity * t + mDeceleration * t * t / 2.0f; in update() [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | FadeAndShortSlide.java | 54 int distance); in getGoneX() argument 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; 306 public void setDistance(int distance) { in setDistance() argument 307 mDistance = distance; in setDistance()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistance.java | 77 int distance = distTab[s-1][t] + 1; in calculate() local 81 if (d + 1 < distance ) { in calculate() 82 distance = d + 1; in calculate() 87 if (d + cost < distance) { in calculate() 88 distance = d + cost; in calculate() 91 distTab[s][t] = distance; in calculate()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | Paper.java | 36 public void overScroll(float distance) { in overScroll() argument 37 distance /= mWidth; // make it relative to width in overScroll() 38 if (distance < 0) { in overScroll() 39 mAnimationLeft.onPull(-distance); in overScroll() 41 mAnimationRight.onPull(distance); in overScroll()
|
D | ScrollerHelper.java | 85 public int startScroll(int distance, int min, int max) { in startScroll() argument 89 int newPosition = Utils.clamp(finalPosition + distance, min, max); in startScroll() 95 return finalPosition + distance - newPosition; in startScroll()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyDetector.java | 103 final int distance = key.squaredDistanceToEdge(touchX, touchY); in detectHitKey() local 104 if (distance > minDistance) { in detectHitKey() 108 if (primaryKey == null || distance < minDistance in detectHitKey() 110 minDistance = distance; in detectHitKey()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocationClustering.java | 255 float distance = (float) GalleryUtils.fastDistanceMeters( in kMeans() local 260 if (distance < 1) { in kMeans() 261 distance = 0; in kMeans() 263 if (distance < bestDistance) { in kMeans() 264 bestDistance = distance; in kMeans()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/ |
D | suggestions_output_utils.cpp | 205 const float distance = terminalDicNode->getNormalizedCompoundDistanceAfterFirstWord(); in computeFirstWordConfidence() local 230 const float clampedDistance = distance < MIN_EXPECTED_DISTANCE ? MIN_EXPECTED_DISTANCE in computeFirstWordConfidence() 231 : distance > MAX_EXPECTED_DISTANCE ? MAX_EXPECTED_DISTANCE : distance; in computeFirstWordConfidence()
|
/packages/services/Car/evs/app/ |
D | config.json.readme | 17 "wheelBase" : 117.9, // The distance between the front and read axel 33 "x" : 0.0, // Optical center distance right of vehicle center 34 "y" : -40.0, // Optical center distance forward of rear axel 35 "z" : 48, // Optical center distance above ground
|
/packages/apps/PackageInstaller/src/android/support/wearable/view/ |
D | WearableListView.java | 321 float distance = (deltaX * deltaX) + (deltaY * deltaY); in handlePossibleVerticalSwipe() local 324 if (distance > (mTouchSlop * mTouchSlop)) { in handlePossibleVerticalSwipe() 632 final int distance = Math.abs(centerY - childCenterY); in findCenterViewIndex() local 633 if (distance < closest) { in findCenterViewIndex() 634 closest = distance; in findCenterViewIndex() 852 final int distance = Math.abs(centerY - childCenterY); in findCenterViewIndex() local 853 if (distance < closest) { in findCenterViewIndex() 854 closest = distance; in findCenterViewIndex()
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
D | AgendaByDayAdapter.java | 545 long distance = Math.abs(millis - row.mEventStartTimeMilli); in findEventPositionNearestTime() local 546 if (distance < idFoundMinDistance) { in findEventPositionNearestTime() 547 idFoundMinDistance = distance; in findEventPositionNearestTime() 565 long distance = Math.abs(millis - row.mEventStartTimeMilli); in findEventPositionNearestTime() local 566 if (distance < minDistance) { in findEventPositionNearestTime() 567 minDistance = distance; in findEventPositionNearestTime()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Workspace.java | 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, boolean external, DragView dragView, 2097 if (distance > mMaxDistanceForFolderCreation) return false; 2148 float distance, DragObject d, boolean external) { [all …]
|
D | SmoothPagedView.java | 46 public void setDistance(int distance) { in setDistance() argument 47 mTension = distance > 0 ? DEFAULT_TENSION / distance : DEFAULT_TENSION; in setDistance()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | autocorrection_threshold_utils.cpp | 75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore() local 87 if (score <= 0 || distance >= afterLength) { in calcNormalizedScore() 93 const float weight = 1.0f - static_cast<float>(distance) / static_cast<float>(afterLength); in calcNormalizedScore()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | DayView.java | 3318 int distance = startTime - neighbor.endTime; in computeNeighbors() local 3319 if (distance < upDistanceMin) { in computeNeighbors() 3320 upDistanceMin = distance; in computeNeighbors() 3322 } else if (distance == upDistanceMin) { in computeNeighbors() 3340 upDistanceMin = distance; in computeNeighbors() 3349 int distance = neighbor.startTime - endTime; in computeNeighbors() local 3350 if (distance < downDistanceMin) { in computeNeighbors() 3351 downDistanceMin = distance; in computeNeighbors() 3353 } else if (distance == downDistanceMin) { in computeNeighbors() 3371 downDistanceMin = distance; in computeNeighbors() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Workspace.java | 2247 float distance = dropTargetLayout.getDistanceFromCell(mDragViewVisualCenter[0], in acceptDrop() local 2250 dropTargetLayout, mTargetCell, distance, true)) { in acceptDrop() 2255 dropTargetLayout, mTargetCell, distance)) { in acceptDrop() 2281 float distance, boolean considerTimeout) { in willCreateUserFolder() argument 2282 if (distance > mMaxDistanceForFolderCreation) return false; in willCreateUserFolder() 2314 float distance) { in willAddToExistingUserFolder() argument 2315 if (distance > mMaxDistanceForFolderCreation) return false; in willAddToExistingUserFolder() 2338 int[] targetCell, float distance, boolean external, DragView dragView, in createUserFolderIfNecessary() argument 2340 if (distance > mMaxDistanceForFolderCreation) return false; in createUserFolderIfNecessary() 2396 float distance, DragObject d, boolean external) { in addToExistingFolderIfNecessary() argument [all …]
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 43 LevenshteinDistance distance = new LevenshteinDistance(sourceTokens, targetTokens); in verifyTargetOperations() local 45 assertEquals(expectedDistance, distance.calculate()); in verifyTargetOperations() 46 EditOperation[] ops = distance.getTargetOperations(); in verifyTargetOperations()
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | MaterialColorMapUtils.java | 93 final float distance = Math.abs(comparedHue - colorHue); in calculatePrimaryAndSecondaryColor() local 94 if (distance < minimumDistance) { in calculatePrimaryAndSecondaryColor() 95 minimumDistance = distance; in calculatePrimaryAndSecondaryColor()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | MaterialColorMapUtils.java | 124 final float distance = Math.abs(comparedHue - colorHue); in calculatePrimaryAndSecondaryColor() local 125 if (distance < minimumDistance) { in calculatePrimaryAndSecondaryColor() 126 minimumDistance = distance; in calculatePrimaryAndSecondaryColor()
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | CalculatorResult.java | 190 int distance = (int)distanceX; in CalculatorResult() 198 if (mCurrentPos + distance < mMinPos) { in CalculatorResult() 199 distance = mMinPos - mCurrentPos; in CalculatorResult() 200 } else if (mCurrentPos + distance > mMaxPos) { in CalculatorResult() 201 distance = mMaxPos - mCurrentPos; in CalculatorResult() 205 mScroller.startScroll(mCurrentPos, 0, distance, 0, (int)duration); in CalculatorResult()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PhotoTouchListener.java | 208 double distance = Math.hypot(x0 - mInitialTouchX, in onTouch() local 211 if (distance < mTouchSlop) { in onTouch() 221 distance < mTouchSlop) { in onTouch()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | EyePosition.java | 146 float distance = (gx > 0 ? gx : -gx) + (gy > 0 ? gy : - gy); in onGyroscopeChanged() local 147 if (distance < GYROSCOPE_THRESHOLD in onGyroscopeChanged() 148 || distance > GYROSCOPE_LIMIT || mGyroscopeCountdown > 0) { in onGyroscopeChanged()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcher.java | 229 float distance = nameDistance.getDistance(decodedCandidateName, decodedName); in matchName() local 235 if (distance > threshold) { in matchName() 236 score = (int)(minScore + (maxScore - minScore) * (1.0f - distance)); in matchName()
|
D | RawContactMatcher.java | 227 float distance = nameDistance.getDistance(decodedCandidateName, decodedName); in matchName() local 233 if (distance > threshold) { in matchName() 234 score = (int)(minScore + (maxScore - minScore) * (1.0f - distance)); in matchName()
|