/frameworks/base/graphics/java/android/graphics/ |
H A D | PathMeasure.java | 75 * Pins distance to 0 <= distance <= getLength(), and then computes the 80 * @param distance The distance along the current contour to sample 85 public boolean getPosTan(float distance, float pos[], float tan[]) { argument 90 return native_getPosTan(native_instance, distance, pos, tan); 97 * Pins distance to 0 <= distance <= getLength(), and then computes the 101 * @param distance The distance alon 106 getMatrix(float distance, Matrix matrix, int flags) argument 143 native_getPosTan(int native_instance, float distance, float pos[], float tan[]) argument 144 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/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/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/awt/java/awt/geom/ |
H A D | Point2D.java | 208 * Finds the square of the distance between the two specified points. 218 * @return the square of the distance between the two specified points. 227 * Finds the square of the distance between this point and the specified 234 * @return the square of the distance between this point and the specified 242 * Finds the square of the distance between this point and the specified 247 * @return the square of the distance between this point and the specified 255 * Finds the distance between the two specified points. 265 * @return the distance between the two specified points. 267 public static double distance(double x1, double y1, double x2, double y2) { method in class:Point2D 272 * Finds the distance betwee 280 public double distance(double px, double py) { method in class:Point2D 291 public double distance(Point2D p) { method in class:Point2D [all...] |
/frameworks/base/core/java/android/view/ |
H A D | FocusFinder.java | 231 * Fudge-factor opportunity: how to calculate distance given major and minor 307 * @return The distance from the edge furthest in the given direction 331 * @return The distance along the major axis w.r.t the direction from the 356 * Find the distance on the minor axis w.r.t the direction to the nearest 361 * @return The distance. 367 // the distance between the center verticals 373 // the distance between the center horizontals 417 int distance = Integer.MAX_VALUE; 421 distance = x - touchableBounds.right + 1; 424 distance [all...] |
H A D | GestureDetector.java | 77 * current move {@link MotionEvent}. The distance in x and y is also supplied for 82 * @param distanceX The distance along the X axis that has been scrolled since the last 83 * call to onScroll. This is NOT the distance between {@code e1} 85 * @param distanceY The distance along the Y axis that has been scrolled since the last 86 * call to onScroll. This is NOT the distance between {@code e1} 527 int distance = (deltaX * deltaX) + (deltaY * deltaY); 528 if (distance > mTouchSlopSquare) { 537 if (distance > mBiggerTouchSlopSquare) { 560 // A fling must travel the minimum tap distance
|
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/ |
H A D | ustring.cpp | 138 const size_type len1 = distance (first1, last1), len2 = distance (first2, last2); 181 size_type nti = distance (first, last), bti = 0; 215 start = iterator (memblock::insert (memblock::iterator(start), distance(first, last) * n)); 216 fill (memblock::iterator(start), first, distance(first, last), n); 253 assert (n || distance(first, last)); 256 const size_type bte = distance(first, last), bti = distance(i1, i2) * n; 261 fill (memblock::iterator(first), i1, distance(i1, i2), n); 269 return (found < end() ? distance(begi [all...] |
H A D | ubitset.h | 84 assert (size_t (distance (first, last)) <= s_WordBits && "Bit ranges must be 32 bits or smaller"); 86 assert ((v & BitMask(value_type,distance(first,last))) == v && "The value is too large to fit in the given bit range"); 103 assert (size_t (distance (first, last)) <= s_WordBits && "Bit ranges must be 32 bits or smaller"); 105 return ((BitRef(first) >> (first % s_WordBits)) & BitMask(value_type,distance(first, last)));
|
H A D | bktrace.cpp | 74 nmSize = min (size_t (distance (mnStart, mnEnd)), 256U); 122 os.write (ss, distance (ss, se));
|
H A D | memlink.h | 68 inline void link (const void* first, const void* last) { link (first, distance (first, last)); } 69 inline void link (void* first, void* last) { link (first, distance (first, last)); }
|
H A D | uheap.h | 50 uoff_t iChild, iHole = 0, iEnd (distance (first, last)); 74 RandomAccessIterator iParent = first + (distance(first, last) - 1) / 2;
|
H A D | umultiset.h | 74 return (distance (fr.first, fr.second)); 90 reserve (size() + distance (i1, i2));
|
H A D | upredalgo.h | 219 mid = advance (first, distance (first,last) / 2); 249 mid = advance (first, distance (first,last) / 2); 291 const ForwardIterator1 slast = last1 - distance(first2, last2) + 1; 308 ForwardIterator1 s = last1 - distance(first2, last2); 467 if (distance (first, last) < 2) 491 if (distance (first, last) < 2) 571 ForwardIterator l, r, m = advance (first, distance (first, last) / 2); 577 return (advance (l, distance (m, r)));
|
H A D | umultimap.h | 76 const_iterator mid = advance (first, distance (first,last) / 2); 91 const_iterator mid = advance (first, distance (first,last) / 2); 113 reserve (size() + distance (i1, i2));
|
H A D | uvector.h | 175 resize (distance (i1, i2)); 192 resize (distance (i1, i2)); 216 const uoff_t ipmi = distance (m_Data.begin(), memblock::iterator(ip)); 243 ip = insert_space (ip, distance (i1, i2)); 260 return (erase (ep1, distance(ep1, ep2)));
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | RadialGradient.java | 111 // compute distance from each point to the center, and figure out the distance from 118 float distance = (float) Math.sqrt(_x * _x + _y * _y); 120 data[index++] = getGradientColor(distance / mRadius);
|
/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/core/java/android/widget/ |
H A D | Scroller.java | 120 * @return The new X offset as an absolute distance from the origin. 129 * @return The new Y offset as an absolute distance from the origin. 149 * @return The start X offset as an absolute distance from the origin. 158 * @return The start Y offset as an absolute distance from the origin. 167 * @return The final X offset as an absolute distance from the origin. 176 * @return The final Y offset as an absolute distance from the origin. 209 float distance = (mVelocity * timePassedSeconds) 212 mCurrX = mStartX + Math.round(distance * mCoeffX); 217 mCurrY = mStartY + Math.round(distance * mCoeffY); 234 * Start scrolling by providing a starting point and the distance t [all...] |
/frameworks/base/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/base/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 | 540 * @return distance in pixels covered by the drag 562 * @return distance in pixels covered by the drag 578 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); 580 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); 582 return distance; 595 * @return distance in pixels covered by the drag 617 * @return distance in pixels covered by the drag 631 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY); 632 drag(test, fromX, toX, fromY, toY, distance); 634 return distance; [all...] |