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

123

/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
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 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/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.java155 * @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 DFocusFinder.java364 * Fudge-factor opportunity: how to calculate distance given major and minor
440 * @return The distance from the edge furthest in the given direction
464 * @return The distance along the major axis w.r.t the direction from the
489 * Find the distance on the minor axis w.r.t the direction to the nearest
494 * @return The distance.
500 // the distance between the center verticals
506 // the distance between the center horizontals
550 int distance = Integer.MAX_VALUE;
554 distance = x - touchableBounds.right + 1;
557 distance
[all...]
H A DDisplayList.java261 * Sets the camera distance for the DisplayList
263 * @param distance The distance in z of the camera of the DisplayList
266 public abstract void setCameraDistance(float distance); argument
H A DGLES20DisplayList.java242 public void setCameraDistance(float distance) { argument
244 nSetCameraDistance(mFinalizer.mNativeDisplayList, distance);
314 private static native void nSetCameraDistance(int displayList, float distance); argument
/frameworks/base/services/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/compile/mclinker/lib/Support/
H A DMemoryArea.cpp70 off_t distance = pOffset - space->start(); local
71 void* r_start = space->memory() + distance;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DDelegateViewHelper.java79 final float distance = mSwapXY ? (mDownPoint[0] - x) : (mDownPoint[1] - y);
80 if (distance > mTriggerThreshhold) {
/frameworks/base/services/java/com/android/server/location/
H A DLocationFudger.java131 * 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 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/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/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardGlowStripView.java94 float distance = Math.abs(relativeDotPosition - mAnimationProgress);
95 float alpha = Math.max(0, 1 - distance / (SLIDING_WINDOW_SIZE / 2));
/frameworks/compile/mclinker/lib/MC/
H A DSymbolCategory.cpp111 int distance = target - source; local
112 if (0 == distance) {
139 // The distance is positive. It means we should bubble sort downward.
140 if (distance > 0) {
161 // The distance is negative. It means we should bubble sort upward.
162 if (distance < 0) {
/frameworks/native/include/android/
H A Dsensor.h122 float distance; member in union:ASensorEvent::__anon1342
/frameworks/base/libs/hwui/
H A DGradientCache.cpp196 float distance = positions[1] - start; local
214 distance = positions[currentPos] - start;
217 float amount = (pos - start) / distance;
/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 565 milliseconds

123