Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 25 of 141) sorted by relevance

123456

/frameworks/base/core/java/android/transition/
DSidePropagation.java108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, in getStartDelay() local
111 float distanceFraction = distance/maxDistance; in getStartDelay()
121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, in distance() method in SidePropagation
133 int distance = 0; in distance() local
136 distance = right - viewX + Math.abs(epicenterY - viewY); in distance()
139 distance = bottom - viewY + Math.abs(epicenterX - viewX); in distance()
142 distance = viewX - left + Math.abs(epicenterY - viewY); in distance()
145 distance = viewY - top + Math.abs(epicenterX - viewX); in distance()
148 return distance; in distance()
DCircularPropagation.java88 double distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY); in getStartDelay() local
89 double maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); in getStartDelay()
90 double distanceFraction = distance/maxDistance; in getStartDelay()
100 private static double distance(float x1, float y1, float x2, float y2) { in distance() method in CircularPropagation
DPatternPathMotion.java120 float distance = (float) Math.hypot(dx, dy); in setPatternPath() local
121 float scale = 1 / distance; in setPatternPath()
/frameworks/base/graphics/java/android/graphics/
DPathMeasure.java86 public boolean getPosTan(float distance, float pos[], float tan[]) { in getPosTan() argument
91 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan()
107 public boolean getMatrix(float distance, Matrix matrix, int flags) { in getMatrix() argument
108 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix()
163 …private static native boolean native_getPosTan(long native_instance, float distance, float pos[], … in native_getPosTan() argument
164 …private static native boolean native_getMatrix(long native_instance, float distance, long native_m… in native_getMatrix() argument
DRenderNode.java1190 @FloatRange(from = 0.0f, to = Float.MAX_VALUE) float distance) { in setCameraDistance()
1191 if (!Float.isFinite(distance) || distance < 0.0f) { in setCameraDistance()
1193 + distance); in setCameraDistance()
1196 return nSetCameraDistance(mNativeRenderNode, -distance); in setCameraDistance()
1563 private static native boolean nSetCameraDistance(long renderNode, float distance); in nSetCameraDistance() argument
/frameworks/base/core/java/android/gesture/
DInstanceLearner.java54 double distance; in classify() local
56distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); in classify()
58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); in classify()
61 if (distance == 0) { in classify()
64 weight = 1 / distance; in classify()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dqpisf_2s.c66 Word32 i, k, temp, min_err, distance; in Qpisf_2s_46b() local
78 distance = MAX_32; in Qpisf_2s_46b()
93 if(temp < distance) in Qpisf_2s_46b()
95 distance = temp; in Qpisf_2s_46b()
107 distance = MAX_32; in Qpisf_2s_46b()
121 if(temp < distance) in Qpisf_2s_46b()
123 distance = temp; in Qpisf_2s_46b()
156 Word32 temp, min_err, distance; in Qpisf_2s_36b() local
168 distance = MAX_32; in Qpisf_2s_36b()
182 if(temp < distance) in Qpisf_2s_36b()
[all …]
/frameworks/rs/script_api/
Drs_vector_math.spec62 function: distance
72 Compute the distance between two points.
78 function: distance
122 summary: Approximate distance between two points
124 Computes the approximate distance between two points.
129 See also @distance(), @native_distance().
205 summary: Approximate distance between two points
207 Computes the approximate distance between two points.
209 See also @distance(), @fast_distance().
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java23 int timeout, int distance) { in eventsWithinTimeAndDistanceSlop() argument
27 final double deltaMove = distance(first, second); in eventsWithinTimeAndDistanceSlop()
28 if (deltaMove >= distance) { in eventsWithinTimeAndDistanceSlop()
34 public static double distance(MotionEvent first, MotionEvent second) { in distance() method in GestureUtils
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java158 float distance; in testDistanceTo() local
167 distance = zeroLocation.distanceTo(zeroLocation); in testDistanceTo()
169 String.valueOf(distance); in testDistanceTo()
170 assertEquals(message, distance, 0, 0); in testDistanceTo()
172 distance = zeroLocation.distanceTo(testLocation); in testDistanceTo()
174 String.valueOf(distance); in testDistanceTo()
175 assertEquals(message, distance, 8885140.0, 1); in testDistanceTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardAffordanceHelper.java156 float distance = (float) Math.hypot(xDist, yDist); in onTouchEvent() local
157 if (!mTouchSlopExeeded && distance > mTouchSlop) { in onTouchEvent()
162 distance = mTranslationOnDown - distance; in onTouchEvent()
163 distance = Math.min(0, distance); in onTouchEvent()
165 distance = mTranslationOnDown + distance; in onTouchEvent()
166 distance = Math.max(0, distance); in onTouchEvent()
168 setTranslation(distance, false /* isReset */, false /* animateReset */); in onTouchEvent()
209 double distance = Math.hypot(x - iconX, y - iconY); in isOnIcon() local
210 return distance <= mTouchTargetSize / 2; in isOnIcon()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java168 int distance = (int) (0 - Math.pow(isLandscape ? velX : velY, 2)) in getEdgeIntersect() local
170 distance = Math.min(distance, maxDistance); in getEdgeIntersect()
173 horizPoint.x = stackBounds.left + (velX > 0 ? distance : -distance); in getEdgeIntersect()
175 horizPoint.y = stackBounds.top + (velY > 0 ? distance : -distance); in getEdgeIntersect()
221 float distance = distanceToPoint(snapTarget, stackBounds.left, stackBounds.top); in findClosestSnapBounds() local
224 if (distance < thresh) { in findClosestSnapBounds()
379 float distance = distanceToPoint(p, x, y); in findClosestPoint() local
380 if (distance < minDistance) { in findClosestPoint()
382 minDistance = distance; in findClosestPoint()
/frameworks/rs/script_api/include/
Drs_vector_math.rsh63 * distance: Distance between two points
65 * Compute the distance between two points.
70 distance(float left_vector, float right_vector);
73 distance(float2 left_vector, float2 right_vector);
76 distance(float3 left_vector, float3 right_vector);
79 distance(float4 left_vector, float4 right_vector);
83 distance(half left_vector, half right_vector);
88 distance(half2 left_vector, half2 right_vector);
93 distance(half3 left_vector, half3 right_vector);
98 distance(half4 left_vector, half4 right_vector);
[all …]
/frameworks/base/core/java/android/widget/
DOverScroller.java688 void startScroll(int start, int distance, int duration) { in startScroll() argument
692 mFinal = start + distance; in startScroll()
865 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local
868 if (distance > mOver) { in onEdgeReached()
871 distance = mOver; in onEdgeReached()
874 mOver = (int) distance; in onEdgeReached()
876 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
926 double distance = 0.0; in update() local
942 distance = distanceCoef * mSplineDistance; in update()
950 distance = mVelocity * t + mDeceleration * t * t / 2.0f; in update()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DLocationFudger.java326 private static double metersToDegreesLatitude(double distance) { in metersToDegreesLatitude() argument
327 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; in metersToDegreesLatitude()
333 private static double metersToDegreesLongitude(double distance, double lat) { in metersToDegreesLongitude() argument
334 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat)); in metersToDegreesLongitude()
/frameworks/base/core/java/android/view/
DFocusFinder.java715 int distance = Integer.MAX_VALUE; in findNearestTouchable() local
719 distance = x - touchableBounds.right + 1; in findNearestTouchable()
722 distance = touchableBounds.left; in findNearestTouchable()
725 distance = y - touchableBounds.bottom + 1; in findNearestTouchable()
728 distance = touchableBounds.top; in findNearestTouchable()
732 if (distance < edgeSlop) { in findNearestTouchable()
736 (!touchableBounds.contains(closestBounds) && distance < minDistance)) { in findNearestTouchable()
737 minDistance = distance; in findNearestTouchable()
742 deltas[0] = -distance; in findNearestTouchable()
745 deltas[0] = distance; in findNearestTouchable()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListOfTouchablesTest.java78 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll() local
82 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayered_filter_d1new_helper.rsh33 // active pixel to (x,y). Sets the closest distance to sharp->matte and sets the
48 // Initializes the minimum distance from this pixel to the active pixels on
51 min_dist *= min_dist; // Prepares for L2 distance.
62 // L_2 distance:
64 // Whether or not this is an active pixel with a smaller distance.
89 // Initializes the minimum distance from this pixel to the active pixels on
92 min_dist *= min_dist; // Prepares for L2 distance.
103 // L_2 distance:
105 // Whether or not this is an active pixel with a smaller distance.
/frameworks/wilhelm/src/itf/
DI3DLocation.cpp43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) in I3DLocation_SetLocationSpherical() argument
49 (0 <= distance) && (distance <= SL_MILLIMETER_MAX))) { in I3DLocation_SetLocationSpherical()
56 thiz->mLocationSpherical.mDistance = distance; in I3DLocation_SetLocationSpherical()
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp101 int distance = pTarget - pSource; in arrange() local
102 if (distance == 0) { in arrange()
136 distance = pTarget - current->type; in arrange()
149 if (distance > 0) { in arrange()
170 if (distance < 0) { in arrange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAccelerationClassifier.java81 float distance = previousPoint.dist(point); in addPoint() local
83 float speed = distance / duration; in addPoint()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DGlTextureViewActivity.java54 int distance = Math.max(mTextureView.getWidth(), mTextureView.getHeight()); in onSurfaceTextureAvailable() local
55 mTextureView.setCameraDistance(distance * metrics.density); in onSurfaceTextureAvailable()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java573 int distance = (int) Math.hypot(deltaX, deltaY); in dragViewBy() local
575 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
577 return distance; in dragViewBy()
626 int distance = (int)Math.hypot(deltaX, deltaY); in dragViewTo() local
627 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
629 return distance; in dragViewTo()
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
DGL2JNIView.java155 int distance = Math.abs(r - mRedSize) in chooseConfig() local
159 if (distance < closestDistance) { in chooseConfig()
160 closestDistance = distance; in chooseConfig()
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DGLDualGL2View.java158 int distance = Math.abs(r - mRedSize) in chooseConfig() local
162 if (distance < closestDistance) { in chooseConfig()
163 closestDistance = distance; in chooseConfig()

123456