Home
last modified time | relevance | path

Searched refs:dist (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/app/
DOrientationManager.java145 int dist = Math.abs(orientation - orientationHistory);
146 dist = Math.min(dist, 360 - dist);
147 changeOrientation = (dist >= 45 + ORIENTATION_HYSTERESIS);
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DSpeedAnglesClassifier.java88 private float dist; field in SpeedAnglesClassifier.Data
98 dist = 0.0f; in Data()
104 dist += previousPoint.dist(point); in addPoint()
109 new Point((float) point.timeOffsetNano / DURATION_SCALE, dist / LENGTH_SCALE); in addPoint()
DPoint.java52 public float dist(Point a) { in dist() method in Point
79 float dist1 = dist(a); in getAngle()
80 float dist2 = dist(b); in getAngle()
DStroke.java44 length += points.get(points.size() - 1).dist(point); in addPoint()
58 return points.get(0).dist(points.get(points.size() - 1)); in getEndPointLength()
DAnglesClassifier.java123 && (lastThreePoints.get(lastThreePoints.size() - 1).dist(point) in addPoint()
126 length += lastThreePoints.get(lastThreePoints.size() - 1).dist(point); in addPoint()
/packages/apps/Camera2/src/com/android/camera/app/
DOrientationManagerImpl.java234 int dist = Math.abs(newRawOrientation - oldDeviceOrientation.getDegrees());
235 dist = Math.min(dist, 360 - dist);
236 boolean isOrientationChanged = (dist >= 45 + ORIENTATION_HYSTERESIS);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dvignette.rs69 float dist = strength * (sqrt(radx * radx + rady * rady) - 1.f);
70 float t = (1.f + dist / sqrt(1.f + dist* dist)) * .5f;
DFilterGradRepresentation.java218 double dist = Math.hypot(point.xPos1 - x, point.yPos1 - y); in addBand() local
219 if (dist < addDelta) { in addBand()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysDetector.java47 final int dist = key.squaredDistanceToEdge(touchX, touchY); in detectHitKey() local
48 if (dist < nearestDist) { in detectHitKey()
50 nearestDist = dist; in detectHitKey()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGradControl.java100 float dist = dx * dx + dy * dy; in getCloseHandle() local
101 if (dist < min) { in getCloseHandle()
102 min = dist; in getCloseHandle()
113 float dist = (float) Math.hypot(dx, dy); in getCloseHandle() local
DEclipseControl.java83 float dist = dx * dx + dy * dy; in getCloseHandle() local
84 if (dist < min) { in getCloseHandle()
85 min = dist; in getCloseHandle()
96 float dist = (float) Math.sqrt(dx * dx + dy * dy); in getCloseHandle() local
/packages/apps/Car/LatinIME/src/com/android/inputmethod/latin/car/
DKeyboardView.java899 int dist = 0; in getKeyIndices() local
906 && (dist = key.squaredDistanceFrom(x, y)) < mProximityThreshold) in getKeyIndices()
911 if (dist < closestKeyDist) { in getKeyIndices()
912 closestKeyDist = dist; in getKeyIndices()
919 if (mDistances[j] > dist) { in getKeyIndices()
927 mDistances[j + c] = dist; in getKeyIndices()
1584 float dist = pastX[i] - oldestX; in computeCurrentVelocity() local
1585 float vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
1589 dist = pastY[i] - oldestY; in computeCurrentVelocity()
1590 vel = (dist/dur) * units; // pixels/frame. in computeCurrentVelocity()
/packages/apps/Launcher3/src/com/android/launcher3/
DInvariantDeviceProfile.java190 Float.compare(dist(minWidthDps, minHeightDps, a.minWidthDps, a.minHeightDps), in initGrid()
191 dist(minWidthDps, minHeightDps, b.minWidthDps, b.minHeightDps))); in initGrid()
410 private static float dist(float x0, float y0, float x1, float y1) { in dist() method in InvariantDeviceProfile
420 if (dist(width, height, p.minWidthDps, p.minHeightDps) == 0) { in invDistWeightedInterpolate()
440 float d = dist(x0, y0, x1, y1); in weight()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java364 int dist = Math.abs(orientation - orientationHistory); in roundOrientation() local
365 dist = Math.min( dist, 360 - dist ); in roundOrientation()
366 changeOrientation = ( dist >= 45 + ORIENTATION_HYSTERESIS ); in roundOrientation()
/packages/services/Car/car-lib/
DAndroid.mk26 $(call dist-for-goals,dist_files,$(full_classes_jar):android.car.jar)
36 $(call dist-for-goals, dist_files, $(car_api_xmls))
DAndroid.bp227 dist: {
246 dist: {
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java862 int dist = 0; in getEmptyBlock() local
864 dist = index - mEndRow + 1; in getEmptyBlock()
866 dist = mStartRow - index; in getEmptyBlock()
871 if (dist > bestDistance) { in getEmptyBlock()
872 bestDistance = dist; in getEmptyBlock()
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
Dtyping_weighting.h138 const float dist = traverseSession->getProximityInfoState(0)->getPointToKeyLength( in getInsertionCost() local
140 const float weightedDistance = dist * ScoringParams::DISTANCE_WEIGHT_LENGTH; in getInsertionCost()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp321 const float dist = proximityInfo->getNormalizedSquaredDistanceFromCenterFloatG(k, x, y, in updateNearKeysDistances() local
323 if (dist < ProximityInfoParams::NEAR_KEY_THRESHOLD_FOR_DISTANCE) { in updateNearKeysDistances()
324 currentNearKeysDistances->insert(std::pair<int, float>(k, dist)); in updateNearKeysDistances()
326 if (nearestKeyDistance > dist) { in updateNearKeysDistances()
327 nearestKeyDistance = dist; in updateNearKeysDistances()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java237 final int dist = getDistance(lastX, lastY, x, y); in detectFastMove() local
259 return dist; in detectFastMove()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java787 final float dist = (float) Math.hypot(delta[0], delta[1]); in fling() local
788 final int duration = (int) (1000f * dist / mThrowSpeed); in fling()
859 float dist = (float) Math.hypot(dx, dy); in dropOnTable() local
860 int duration = (int) (1000f * dist / mThrowSpeed); in dropOnTable()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragLayer.java352 final float dist = (float) Math.hypot(to.left - from.left, to.top - from.top); in animateView() local
359 if (dist < maxDist) { in animateView()
360 duration *= mCubicEaseOutInterpolator.getInterpolation(dist / maxDist); in animateView()
/packages/services/Car/car-test-lib/
DAndroid.mk24 $(call dist-for-goals,dist_files,$(full_classes_jar):android.car.testapi.jar)
/packages/apps/Car/libs/car-broadcastradio-support/
DAndroid.mk36 $(call dist-for-goals,dist_files,$(full_classes_jar):$(LOCAL_MODULE).jar)
/packages/apps/TV/tests/input/
DAndroid.mk24 $(call dist-for-goals,apps_only,$(LOCAL_BUILT_MODULE):$(LOCAL_PACKAGE_NAME).apk)

12