Searched refs:distance (Results 1 - 25 of 77) sorted by relevance

1234

/frameworks/base/graphics/java/android/graphics/
H A DPathMeasure.java76 * 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
150 native_getPosTan(long native_instance, float distance, float pos[], float tan[]) argument
151 native_getMatrix(long native_instance, float distance, long native_matrix, int flags) argument
[all...]
/frameworks/base/core/java/android/transition/
H A DSidePropagation.java26 * A <code>TransitionPropagation</code> that propagates based on the distance to the side
27 * and, orthogonally, the distance to epicenter. If the transitioning View is visible in
109 float distance = distance(sceneRoot, viewCenterX, viewCenterY, epicenterX, epicenterY,
112 float distanceFraction = distance/maxDistance;
122 private int distance(View sceneRoot, int viewX, int viewY, int epicenterX, int epicenterY, method in class:SidePropagation
134 int distance = 0;
137 distance = right - viewX + Math.abs(epicenterY - viewY);
140 distance = bottom - viewY + Math.abs(epicenterX - viewX);
143 distance
[all...]
H A DCircularPropagation.java25 * A propagation that varies with the distance to the epicenter of the Transition
90 float distance = distance(viewCenterX, viewCenterY, epicenterX, epicenterY);
91 float maxDistance = distance(0, 0, sceneRoot.getWidth(), sceneRoot.getHeight());
92 float distanceFraction = distance/maxDistance;
102 private static float distance(float x1, float y1, float x2, float y2) { method in class:CircularPropagation
H A DPatternPathMotion.java122 float distance = distance(dx, dy);
123 float scale = 1 / distance;
135 float length = distance(dx, dy);
146 private static float distance(float x, float y) { method in class:PatternPathMotion
/frameworks/base/core/java/android/gesture/
H A DInstanceLearner.java54 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/av/media/libstagefright/codecs/amrwbenc/src/
H A Dqpisf_2s.c66 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 DListOfTouchablesTest.java79 int distance = TouchUtils.dragViewToY(this, lastChild,
83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop());
H A DListTouchBottomGravityManyTest.java147 int distance = TouchUtils.dragViewBy(this, firstChild,
152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop());
H A DListTouchManyTest.java186 int distance = TouchUtils.dragViewToY(this, lastChild,
190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop());
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DClusterManager.java128 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...]
H A DLocationCluster.java115 public void moveAwayCluster(LocationCluster cluster, float distance) { argument
129 double radian = distance / EARTH_RADIUS;
/frameworks/base/location/tests/locationtests/src/android/location/
H A DLocationTest.java157 float distance;
166 distance = zeroLocation.distanceTo(zeroLocation);
168 String.valueOf(distance);
169 assertEquals(message, distance, 0, 0);
171 distance = zeroLocation.distanceTo(testLocation);
173 String.valueOf(distance);
174 assertEquals(message, distance, 8885140.0, 1);
/frameworks/base/core/java/android/widget/
H A DOverScroller.java163 * @return The new X offset as an absolute distance from the origin.
172 * @return The new Y offset as an absolute distance from the origin.
192 * @return The start X offset as an absolute distance from the origin.
201 * @return The start Y offset as an absolute distance from the origin.
210 * @return The final X offset as an absolute distance from the origin.
219 * @return The final Y offset as an absolute distance from the origin.
262 * @param newX The new X offset as an absolute distance from the origin.
280 * @param newY The new Y offset as an absolute distance from the origin.
345 * Start scrolling by providing a starting point and the distance to travel.
353 * @param dx Horizontal distance t
681 startScroll(int start, int distance, int duration) argument
[all...]
/frameworks/base/core/java/android/view/
H A DFocusFinder.java351 * Fudge-factor opportunity: how to calculate distance given major and minor
427 * @return The distance from the edge furthest in the given direction
451 * @return The distance along the major axis w.r.t the direction from the
476 * Find the distance on the minor axis w.r.t the direction to the nearest
481 * @return The distance.
487 // the distance between the center verticals
493 // the distance between the center horizontals
537 int distance = Integer.MAX_VALUE;
541 distance = x - touchableBounds.right + 1;
544 distance
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DGestureUtils.java27 int timeout, int distance, int actionIndex) {
32 if (deltaMove >= distance) {
26 eventsWithinTimeAndDistanceSlop(MotionEvent first, MotionEvent second, int timeout, int distance, int actionIndex) argument
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationFudger.java128 * 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/wilhelm/src/itf/
H A DI3DLocation.c43 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 DSymbolCategory.cpp107 int distance = pTarget - pSource; local
108 if (0 == distance) {
142 distance = pTarget - current->type;
154 // The distance is positive. It means we should bubble sort downward.
155 if (distance > 0) {
176 // The distance is negative. It means we should bubble sort upward.
177 if (distance < 0) {
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
H A DGridTouchVerticalSpacingStackFromBottomTest.java109 int distance = TouchUtils.dragViewBy(this, firstChild,
114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop());
H A DGridTouchVerticalSpacingTest.java94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT,
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop());
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardGlowStripView.java92 float distance = Math.abs(relativeDotPosition - mAnimationProgress);
93 float alpha = Math.max(0, 1 - distance / (SLIDING_WINDOW_SIZE / 2));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDelegateViewHelper.java80 final float distance = mSwapXY ? (mDownPoint[0] - x) : (mDownPoint[1] - y);
81 if (distance > mTriggerThreshhold) {
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
H A DGL2JNIView.java155 int distance = Math.abs(r - mRedSize)
159 if (distance < closestDistance) {
160 closestDistance = distance;
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
H A DGLPerfView.java155 int distance = Math.abs(r - mRedSize)
159 if (distance < closestDistance) {
160 closestDistance = distance;
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
H A DGLDualGL2View.java158 int distance = Math.abs(r - mRedSize)
162 if (distance < closestDistance) {
163 closestDistance = distance;

Completed in 1607 milliseconds

1234