/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/ |
D | SphericalTransform.kt | 61 val distance: Float = 1f, constant in com.google.android.torus.math.SphericalTransform 72 transform.distance, 77 if (distance < 0) throw IllegalArgumentException("Distance cannot be negative!") 88 return SphericalTransform(azimuth, elevation, roll, center, distance, scale) in withAzimuth() 100 return SphericalTransform(azimuth, elevation, roll, center, distance, scale) in withElevation() 111 return SphericalTransform(azimuth, elevation, roll, center, distance, scale) in withRoll() 122 return SphericalTransform(azimuth, elevation, roll, center, distance, scale) in withCenter() 135 return SphericalTransform(azimuth, elevation, roll, Vector3(x, y, z), distance, scale) in withCenter() 145 fun withDistance(distance: Float): SphericalTransform { in withDistance() 146 return SphericalTransform(azimuth, elevation, roll, center, distance, scale) in withDistance() [all …]
|
/frameworks/base/core/java/android/transition/ |
D | SidePropagation.java | 108 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()
|
D | CircularPropagation.java | 88 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/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | DraggableHandler.kt | 330 val distance = swipeTransition.distance() in computeFromSceneConsideringAcceleratedSwipe() constant 334 if (swipeTransition._currentScene != toScene || distance == DistanceUnspecified) { in computeFromSceneConsideringAcceleratedSwipe() 341 val absoluteDistance = distance.absoluteValue in computeFromSceneConsideringAcceleratedSwipe() 392 val distance = swipeTransition.distance() in onStop() constant 396 distance != DistanceUnspecified && in onStop() 399 distance, in onStop() 405 targetOffset = distance in onStop() 422 check(distance != DistanceUnspecified) { in onStop() 425 distance in onStop() 472 distance: Float, in shouldCommitSwipe() [all …]
|
D | TransitionDslImpl.kt | 89 distance = impl.distance, in overscroll() 109 distance = impl.distance, in transition() 124 override var distance: UserActionDistance? = null variable in com.android.compose.animation.scene.BaseTransitionBuilderImpl 194 override var distance: UserActionDistance? = null variable in com.android.compose.animation.scene.TransitionBuilderImpl
|
/frameworks/base/graphics/java/android/graphics/ |
D | PathMeasure.java | 86 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/ |
D | InstanceLearner.java | 54 double distance; in classify() local 56 … distance = 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/ |
D | WSMeansQuantizer.java | 172 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/module/codecs/amrwb/enc/src/ |
D | qpisf_2s.c | 66 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/base/core/java/android/widget/ |
D | OverScroller.java | 648 int distance = mFinal - mStart; in updateScroll() local 649 mCurrentPosition = mStart + Math.round(q * distance); in updateScroll() 651 mCurrVelocity = 1000f * (q - q2) * distance; in updateScroll() 680 void startScroll(int start, int distance, int duration) { in startScroll() argument 684 mFinal = start + distance; in startScroll() 858 float distance = velocitySquared / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local 861 if (distance > mOver) { in onEdgeReached() 864 distance = mOver; in onEdgeReached() 867 mOver = (int) distance; in onEdgeReached() 869 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached() [all …]
|
/frameworks/rs/script_api/ |
D | rs_vector_math.spec | 62 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/ |
D | GestureUtils.java | 27 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/ |
D | NearestTouchFrame.java | 138 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/ |
D | rs_vector_math.rsh | 63 * 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/services/core/java/com/android/server/location/fudger/ |
D | LocationFudger.java | 236 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/compose/features/src/com/android/systemui/scene/ui/composable/transitions/ |
D | FromShadeToQuickSettingsTransition.kt | 20 distance = in TransitionBuilder() 26 val distance = in TransitionBuilder() constant 29 return fromSceneSize.height - distance in TransitionBuilder()
|
/frameworks/base/core/java/android/window/ |
D | BackTouchTracker.java | 186 float distance; in getProgress() local 188 distance = touchX - startX; in getProgress() 190 distance = startX - touchX; in getProgress() 192 float deltaX = Math.max(0f, distance); in getProgress()
|
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/ |
D | snow_accumulation.agsl | 32 float distance = variation * snowThickness; 34 float aN = foreground.eval(fragCoord + vec2(0., distance)).a; 35 float aS = foreground.eval(fragCoord + vec2(0., -distance)).a;
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | TwoFingersDownOrSwipe.java | 75 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
|
D | SimpleSwipe.java | 19 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/ |
D | InlineSuggestionRoot.java | 66 final float distance = MathUtils.dist(mDownX, mDownY, in dispatchTouchEvent() local 70 if (!isSecure || distance > mTouchSlop) { in dispatchTouchEvent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | LockscreenShadeTransitionControllerTest.kt | 429 val distance = in setDragAmount_inSplitShade_mediaNotShowing_setsKeyguardTranslationBasedOnDistance() constant 437 val expectedTranslation = 10f / distance * offset in setDragAmount_inSplitShade_mediaNotShowing_setsKeyguardTranslationBasedOnDistance() 451 val distance = 10 in setDragAmount_setsScrimProgressBasedOnScrimDistance() constant 454 distance in setDragAmount_setsScrimProgressBasedOnScrimDistance() 469 val distance = 100 in setDragAmount_setsNotificationsScrimProgressBasedOnNotificationsScrimDistanceAndDelay() constant 473 distance in setDragAmount_setsNotificationsScrimProgressBasedOnNotificationsScrimDistanceAndDelay() 492 val distance = 100 in setDragAmount_dragAmountLessThanNotifDelayDistance_setsNotificationsScrimProgressToZero() constant 496 distance in setDragAmount_dragAmountLessThanNotifDelayDistance_setsNotificationsScrimProgressToZero() 515 val distance = 100 in setDragAmount_dragAmountMoreThanTotalDistance_setsNotificationsScrimProgressToOne() constant 519 distance in setDragAmount_dragAmountMoreThanTotalDistance_setsNotificationsScrimProgressToOne()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListOfTouchablesTest.java | 78 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/ |
D | FocusFinder.java | 729 int distance = Integer.MAX_VALUE; in findNearestTouchable() local 733 distance = x - touchableBounds.right + 1; in findNearestTouchable() 736 distance = touchableBounds.left; in findNearestTouchable() 739 distance = y - touchableBounds.bottom + 1; in findNearestTouchable() 742 distance = touchableBounds.top; in findNearestTouchable() 746 if (distance < edgeSlop) { in findNearestTouchable() 750 (!touchableBounds.contains(closestBounds) && distance < minDistance)) { in findNearestTouchable() 751 minDistance = distance; in findNearestTouchable() 756 deltas[0] = -distance; in findNearestTouchable() 759 deltas[0] = distance; in findNearestTouchable() [all …]
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
D | layered_filter_d1new_helper.rsh | 33 // 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.
|