Home
last modified time | relevance | path

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

1234567

/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
/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.ni(), 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
/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/base/core/java/com/android/internal/graphics/palette/
DWSMeansQuantizer.java172 float distance = mPointProvider.distance(mClusters[i], mClusters[j]); in calculateClusterDistances() local
173 mDistanceMatrix[j][i] = distance; in calculateClusterDistances()
174 mDistanceMatrix[i][j] = distance; in calculateClusterDistances()
202 float previousDistance = mPointProvider.distance(point, previousCluster); in reassignPoints()
212 float distance = mPointProvider.distance(point, mClusters[t]); in reassignPoints() local
213 if (distance < minimumDistance) { in reassignPoints()
214 minimumDistance = distance; in reassignPoints()
269 Distance(int index, float distance) { in Distance() argument
271 mDistance = distance; in Distance()
/frameworks/av/media/codecs/amrwb/enc/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/gestures/
DGestureUtils.java27 int timeout, int distance) { in eventsWithinTimeAndDistanceSlop() argument
31 final double deltaMove = distance(first, second); in eventsWithinTimeAndDistanceSlop()
32 if (deltaMove >= distance) { in eventsWithinTimeAndDistanceSlop()
38 public static double distance(MotionEvent first, MotionEvent second) { in distance() method in GestureUtils
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DNearestTouchFrame.java138 int distance = childRegion.top - previousChildBounds.bottom;
139 midPoint = distance / 2;
141 previousChildBounds.bottom += midPoint - ((distance % 2) == 0 ? 1 : 0);
143 int distance = childRegion.left - previousChildBounds.right;
144 midPoint = distance / 2;
146 previousChildBounds.right += midPoint - ((distance % 2) == 0 ? 1 : 0);
/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.java671 void startScroll(int start, int distance, int duration) { in startScroll() argument
675 mFinal = start + distance; in startScroll()
849 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local
852 if (distance > mOver) { in onEdgeReached()
855 distance = mOver; in onEdgeReached()
858 mOver = (int) distance; in onEdgeReached()
860 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
910 double distance = 0.0; in update() local
926 distance = distanceCoef * mSplineDistance; in update()
934 distance = mVelocity * t + mDeceleration * t * t / 2.0f; in update()
[all …]
/frameworks/base/services/core/java/com/android/server/location/fudger/
DLocationFudger.java236 private static double metersToDegreesLatitude(double distance) { in metersToDegreesLatitude() argument
237 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; in metersToDegreesLatitude()
241 private static double metersToDegreesLongitude(double distance, double lat) { in metersToDegreesLongitude() argument
242 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat)); in metersToDegreesLongitude()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionControllerTest.kt345 val distance = in setDragAmount_inSplitShade_mediaNotShowing_setsKeyguardTranslationBasedOnDistance() constant
351 val expectedTranslation = 10f / distance * offset in setDragAmount_inSplitShade_mediaNotShowing_setsKeyguardTranslationBasedOnDistance()
365 val distance = 10 in setDragAmount_setsScrimProgressBasedOnScrimDistance() constant
367 .addOverride(R.dimen.lockscreen_shade_scrim_transition_distance, distance) in setDragAmount_setsScrimProgressBasedOnScrimDistance()
380 val distance = 100 in setDragAmount_setsNotificationsScrimProgressBasedOnNotificationsScrimDistanceAndDelay() constant
383 R.dimen.lockscreen_shade_notifications_scrim_transition_distance, distance) in setDragAmount_setsNotificationsScrimProgressBasedOnNotificationsScrimDistanceAndDelay()
398 val distance = 100 in setDragAmount_dragAmountLessThanNotifDelayDistance_setsNotificationsScrimProgressToZero() constant
401 R.dimen.lockscreen_shade_notifications_scrim_transition_distance, distance) in setDragAmount_dragAmountLessThanNotifDelayDistance_setsNotificationsScrimProgressToZero()
416 val distance = 100 in setDragAmount_dragAmountMoreThanTotalDistance_setsNotificationsScrimProgressToOne() constant
419 R.dimen.lockscreen_shade_notifications_scrim_transition_distance, distance) in setDragAmount_dragAmountMoreThanTotalDistance_setsNotificationsScrimProgressToOne()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DTwoFingersDownOrSwipe.java75 if (distance(mFirstPointerDown, /* move */ event) > mSwipeMinDistance) { in onMove()
79 if (distance(mSecondPointerDown, /* move */ event) > mSwipeMinDistance) { in onMove()
113 private static double distance(@NonNull MotionEvent downEvent, @NonNull MotionEvent moveEvent) { in distance() method in TwoFingersDownOrSwipe
DSimpleSwipe.java19 import static com.android.server.accessibility.gestures.GestureUtils.distance;
73 return mLastDown != null && (distance(mLastDown, event) > mSwipeMinDistance); in gestureMatched()
/frameworks/base/core/java/android/service/autofill/
DInlineSuggestionRoot.java66 final float distance = MathUtils.dist(mDownX, mDownY, in dispatchTouchEvent() local
70 if (!isSecure || distance > mTouchSlop) { in dispatchTouchEvent()
/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/base/core/java/android/view/
DFocusFinder.java718 int distance = Integer.MAX_VALUE; in findNearestTouchable() local
722 distance = x - touchableBounds.right + 1; in findNearestTouchable()
725 distance = touchableBounds.left; in findNearestTouchable()
728 distance = y - touchableBounds.bottom + 1; in findNearestTouchable()
731 distance = touchableBounds.top; in findNearestTouchable()
735 if (distance < edgeSlop) { in findNearestTouchable()
739 (!touchableBounds.contains(closestBounds) && distance < minDistance)) { in findNearestTouchable()
740 minDistance = distance; in findNearestTouchable()
745 deltas[0] = -distance; in findNearestTouchable()
748 deltas[0] = distance; in findNearestTouchable()
[all …]
/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/base/core/java/android/hardware/face/
DFaceDataFrame.java56 float distance, in FaceDataFrame() argument
62 mDistance = distance; in FaceDataFrame()
/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/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/native/services/inputflinger/reader/mapper/
DSingleTouchInputMapper.cpp59 outPointer.distance = mSingleTouchMotionAccumulator.getAbsoluteDistance(); in syncTouch()
77 getAbsoluteAxisInfo(ABS_DISTANCE, &mRawPointerAxes.distance); in configureRawPointerAxes()
/frameworks/base/core/java/android/service/attention/
DIProximityUpdateCallback.aidl9 void onProximityUpdate(double distance); in onProximityUpdate() argument

1234567