/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 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 D | SidePropagation.java | 26 * 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 D | CircularPropagation.java | 25 * 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 D | PatternPathMotion.java | 122 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 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/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());
|
H A D | ListTouchBottomGravityManyTest.java | 147 int distance = TouchUtils.dragViewBy(this, firstChild, 152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop());
|
H A D | ListTouchManyTest.java | 186 int distance = TouchUtils.dragViewToY(this, lastChild, 190 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...] |
H A D | LocationCluster.java | 115 public void moveAwayCluster(LocationCluster cluster, float distance) { argument 129 double radian = distance / EARTH_RADIUS;
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
H A D | LocationTest.java | 157 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 D | OverScroller.java | 163 * @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 D | FocusFinder.java | 351 * 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 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/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/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 | 107 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 D | GridTouchVerticalSpacingStackFromBottomTest.java | 109 int distance = TouchUtils.dragViewBy(this, firstChild, 114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop());
|
H A D | GridTouchVerticalSpacingTest.java | 94 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 D | KeyguardGlowStripView.java | 92 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 D | DelegateViewHelper.java | 80 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 D | GL2JNIView.java | 155 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 D | GLPerfView.java | 155 int distance = Math.abs(r - mRedSize) 159 if (distance < closestDistance) { 160 closestDistance = distance;
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | GLDualGL2View.java | 158 int distance = Math.abs(r - mRedSize) 162 if (distance < closestDistance) { 163 closestDistance = distance;
|