/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 144 native_getPosTan(int native_instance, float distance, float pos[], float tan[]) argument 145 native_getMatrix(int native_instance, float distance, int native_matrix, int flags) argument [all...] |
/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 | 155 * @return The new X offset as an absolute distance from the origin. 164 * @return The new Y offset as an absolute distance from the origin. 184 * @return The start X offset as an absolute distance from the origin. 193 * @return The start Y offset as an absolute distance from the origin. 202 * @return The final X offset as an absolute distance from the origin. 211 * @return The final Y offset as an absolute distance from the origin. 254 * @param newX The new X offset as an absolute distance from the origin. 272 * @param newY The new Y offset as an absolute distance from the origin. 344 * Start scrolling by providing a starting point and the distance to travel. 352 * @param dx Horizontal distance t 680 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...] |
H A D | DisplayList.java | 566 * Sets the camera distance for the display list. Refer to 570 * @param distance The distance in Z of the camera of the display list 575 public abstract void setCameraDistance(float distance); argument 578 * Returns the distance in Z of the camera of the display list.
|
/frameworks/base/services/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/java/com/android/server/location/ |
H A D | LocationFudger.java | 131 * The distance between grids for snap-to-grid. See {@link #createCoarse}. 329 private static double metersToDegreesLatitude(double distance) { argument 330 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; 334 * Requires latitude since longitudinal distances change with distance from equator. 336 private static double metersToDegreesLongitude(double distance, double lat) { argument 337 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/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/compile/mclinker/lib/Support/ |
H A D | MemoryArea.cpp | 70 off_t distance = pOffset - space->start(); local 71 void* r_start = space->memory() + distance;
|
/frameworks/compile/mclinker/lib/MC/ |
H A D | SymbolCategory.cpp | 107 int distance = pTarget - pSource; local 108 if (0 == distance) { 137 // The distance is positive. It means we should bubble sort downward. 138 if (distance > 0) { 159 // The distance is negative. It means we should bubble sort upward. 160 if (distance < 0) {
|
/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;
|
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 541 * @return distance in pixels covered by the drag 563 * @return distance in pixels covered by the drag 579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); 581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); 583 return distance; 596 * @return distance in pixels covered by the drag 618 * @return distance in pixels covered by the drag 632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY); 633 drag(test, fromX, toX, fromY, toY, distance); 635 return distance; [all...] |