/frameworks/base/graphics/java/android/graphics/ |
H A D | PathMeasure.java | 76 * Pins distance to 0 <= distance <= getLength(), and then computes the 81 * @param distance The distance along the current contour to sample 86 public boolean getPosTan(float distance, float pos[], float tan[]) { argument 91 return native_getPosTan(native_instance, distance, pos, tan); 98 * Pins distance to 0 <= distance <= getLength(), and then computes the 102 * @param distance The distance alon 107 getMatrix(float distance, Matrix matrix, int flags) argument 164 native_getPosTan(long native_instance, float distance, float pos[], float tan[]) argument 165 native_getMatrix(long native_instance, float distance, long native_matrix, int flags) argument [all...] |
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
H A D | PagingIndicatorTest.java | 72 int distance = selectedX[1] - selectedX[0]; 74 assertEquals("Gaps between selected dots are not even", distance, 77 distance = leftX[1] - leftX[0]; 79 assertEquals("Gaps between left dots are not even", distance, 82 distance = rightX[2] - rightX[1]; 84 assertEquals("Gaps between right dots are not even", distance,
|
H A D | GridTest.java | 74 void scroll(int distance) { argument 76 mEdges[i] -= distance;
|
/frameworks/base/core/java/android/transition/ |
H A D | SidePropagation.java | 25 * A <code>TransitionPropagation</code> that propagates based on the distance to the side 26 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in 108 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY, 111 float distanceFraction = distance/maxDistance; 121 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, method in class:SidePropagation 133 int distance = 0; 136 distance = right - viewX + Math.abs(epicenterY - viewY); 139 distance = bottom - viewY + Math.abs(epicenterX - viewX); 142 distance [all...] |
H A D | CircularPropagation.java | 23 * A propagation that varies with the distance to the epicenter of the Transition 88 double distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY); 89 double maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight()); 90 double distanceFraction = distance/maxDistance; 100 private static double distance(float x1, float y1, float x2, float y2) { method in class:CircularPropagation
|
H A D | PatternPathMotion.java | 120 float distance = (float) Math.hypot(dx, dy); 121 float scale = 1 / distance;
|
/frameworks/base/core/java/android/gesture/ |
H A D | InstanceLearner.java | 54 double distance; 56 distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); 58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); 61 if (distance == 0) { 64 weight = 1 / distance;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | AccelerationClassifier.java | 24 * A classifier which looks at the speed and distance between successive points of a Stroke. 27 * or distance is equal to zero then the ratio between this and the next part is not calculated. To 83 float distance = previousPoint.dist(point); 85 float speed = distance / duration; 87 maxDistanceRatio = Math.max(maxDistanceRatio, distance / previousDistance); 94 previousDistance = distance;
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | qpisf_2s.c | 66 Word32 i, k, temp, min_err, distance; local 78 distance = MAX_32; 93 if(temp < distance) 95 distance = temp; 107 distance = MAX_32; 121 if(temp < distance) 123 distance = temp; 156 Word32 temp, min_err, distance; local 168 distance = MAX_32; 182 if(temp < distance) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
H A D | ListOfTouchablesTest.java | 79 int distance = TouchUtils.dragViewToY(this, lastChild, 83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop());
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | ClusterManager.java | 128 float distance = mLocationClusters.get(i).distanceToCenter(mLastLocation); 129 Log.v(TAG, "clulster " + i + " is within " + distance + " meters"); 130 if (distance < bestClusterDistance) { 131 bestClusterDistance = distance; 186 float distance = 188 if (distance < LOCATION_CLUSTER_RADIUS) { 209 float distance = cluster.distanceToCluster(candidate); 210 Log.v(TAG, distance + "distance to semantic cluster: " + 213 if (distance < bestClusterDistanc [all...] |
/frameworks/rs/api/ |
H A 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/location/tests/locationtests/src/android/location/ |
H A D | LocationTest.java | 158 float distance; 167 distance = zeroLocation.distanceTo(zeroLocation); 169 String.valueOf(distance); 170 assertEquals(message, distance, 0, 0); 172 distance = zeroLocation.distanceTo(testLocation); 174 String.valueOf(distance); 175 assertEquals(message, distance, 8885140.0, 1);
|
/frameworks/support/v4/donut/android/support/v4/view/animation/ |
H A D | PathInterpolatorDonut.java | 47 final float distance = (i * pathLength) / (numPoints - 1); 48 pathMeasure.getPosTan(distance, position, null /* tangent */);
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | SwipeDismissBehavior.java | 133 * @param distance a ratio of a view's width, values are clamped to 0 >= x <= 1f; 135 public void setDragDismissDistance(float distance) { argument 136 mDragDismissThreshold = clamp(0f, distance, 1f); 140 * The minimum swipe distance before the view's alpha is modified. 142 * @param fraction the distance as a fraction of the view's width. 149 * The maximum swipe distance for the view's alpha is modified. 151 * @param fraction the distance as a fraction of the view's width. 289 final int distance = child.getLeft() - mOriginalCapturedViewLeft; 291 return Math.abs(distance) >= thresholdDistance; 350 final float distance [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | OverScroller.java | 162 * @return The new X offset as an absolute distance from the origin. 171 * @return The new Y offset as an absolute distance from the origin. 189 * @return The start X offset as an absolute distance from the origin. 198 * @return The start Y offset as an absolute distance from the origin. 207 * @return The final X offset as an absolute distance from the origin. 216 * @return The final Y offset as an absolute distance from the origin. 259 * @param newX The new X offset as an absolute distance from the origin. 277 * @param newY The new Y offset as an absolute distance from the origin. 342 * Start scrolling by providing a starting point and the distance to travel. 350 * @param dx Horizontal distance t 678 startScroll(int start, int distance, int duration) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardAffordanceHelper.java | 159 float distance = (float) Math.hypot(xDist, yDist); 160 if (!mTouchSlopExeeded && distance > mTouchSlop) { 165 distance = mTranslationOnDown - distance; 166 distance = Math.min(0, distance); 168 distance = mTranslationOnDown + distance; 169 distance = Math.max(0, distance); [all...] |
/frameworks/base/core/java/android/view/ |
H A D | FocusFinder.java | 355 * Fudge-factor opportunity: how to calculate distance given major and minor 431 * @return The distance from the edge furthest in the given direction 455 * @return The distance along the major axis w.r.t the direction from the 480 * Find the distance on the minor axis w.r.t the direction to the nearest 485 * @return The distance. 491 // the distance between the center verticals 497 // the distance between the center horizontals 541 int distance = Integer.MAX_VALUE; 545 distance = x - touchableBounds.right + 1; 548 distance [all...] |
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
H A D | ListViewRequireScrollHelperTest.java | 131 public void smoothScrollBy(int distance, int duration) { argument 132 super.smoothScrollBy(distance, duration); 133 scrollDistance += distance;
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GestureUtils.java | 27 int timeout, int distance, int actionIndex) { 32 if (deltaMove >= distance) { 26 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance, int actionIndex) argument
|
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/transition/ |
H A D | TransitionHelperApi21.java | 98 public static Object createFadeAndShortSlide(int edge, float distance) { argument 100 slide.setDistance(distance);
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | LocationFudger.java | 128 * The distance between grids for snap-to-grid. See {@link #createCoarse}. 326 private static double metersToDegreesLatitude(double distance) { argument 327 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; 331 * Requires latitude since longitudinal distances change with distance from equator. 333 private static double metersToDegreesLongitude(double distance, double lat) { argument 334 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat));
|
/frameworks/rs/scriptc/ |
H A 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(half [all...] |
/frameworks/wilhelm/src/itf/ |
H A D | I3DLocation.c | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) 49 (0 <= distance) && (distance <= SL_MILLIMETER_MAX))) { 56 thiz->mLocationSpherical.mDistance = distance; 42 I3DLocation_SetLocationSpherical(SL3DLocationItf self, SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) argument
|
/frameworks/compile/mclinker/lib/MC/ |
H A D | SymbolCategory.cpp | 101 int distance = pTarget - pSource; local 102 if (distance == 0) { 136 distance = pTarget - current->type; 148 // The distance is positive. It means we should bubble sort downward. 149 if (distance > 0) { 169 // The distance is negative. It means we should bubble sort upward. 170 if (distance < 0) {
|