Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
DPathMeasure.java85 public boolean getPosTan(float distance, float pos[], float tan[]) { in getPosTan() argument
90 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan()
106 public boolean getMatrix(float distance, Matrix matrix, int flags) { in getMatrix() argument
107 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix()
143 …private static native boolean native_getPosTan(int native_instance, float distance, float pos[], f… in native_getPosTan() argument
144 …private static native boolean native_getMatrix(int native_instance, float distance, int native_mat… in native_getMatrix() argument
/frameworks/base/core/java/android/gesture/
DInstanceLearner.java54 double distance; in classify() local
56distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); in classify()
58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); in classify()
61 if (distance == 0) { in classify()
64 weight = 1 / distance; in classify()
DGestureUtils.java296 float distance = (float) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in temporalSampling() local
297 if (distanceSoFar + distance >= increment) { in temporalSampling()
298 float ratio = (increment - distanceSoFar) / distance; in temporalSampling()
313 distanceSoFar += distance; in temporalSampling()
/frameworks/base/media/libstagefright/codecs/amrwbenc/src/
Dqpisf_2s.c66 Word32 i, k, temp, min_err, distance; in Qpisf_2s_46b() local
78 distance = MAX_32; in Qpisf_2s_46b()
93 if(temp < distance) in Qpisf_2s_46b()
95 distance = temp; in Qpisf_2s_46b()
107 distance = MAX_32; in Qpisf_2s_46b()
121 if(temp < distance) in Qpisf_2s_46b()
123 distance = temp; in Qpisf_2s_46b()
156 Word32 temp, min_err, distance; in Qpisf_2s_36b() local
168 distance = MAX_32; in Qpisf_2s_36b()
182 if(temp < distance) in Qpisf_2s_36b()
[all …]
/frameworks/base/location/tests/locationtests/src/android/location/
DLocationTest.java157 float distance; in testDistanceTo() local
166 distance = zeroLocation.distanceTo(zeroLocation); in testDistanceTo()
168 String.valueOf(distance); in testDistanceTo()
169 assertEquals(message, distance, 0, 0); in testDistanceTo()
171 distance = zeroLocation.distanceTo(testLocation); in testDistanceTo()
173 String.valueOf(distance); in testDistanceTo()
174 assertEquals(message, distance, 8885140.0, 1); in testDistanceTo()
/frameworks/base/core/java/android/view/
DFocusFinder.java464 int distance = Integer.MAX_VALUE; in findNearestTouchable() local
468 distance = x - touchableBounds.right + 1; in findNearestTouchable()
471 distance = touchableBounds.left; in findNearestTouchable()
474 distance = y - touchableBounds.bottom + 1; in findNearestTouchable()
477 distance = touchableBounds.top; in findNearestTouchable()
481 if (distance < edgeSlop) { in findNearestTouchable()
485 (!touchableBounds.contains(closestBounds) && distance < minDistance)) { in findNearestTouchable()
486 minDistance = distance; in findNearestTouchable()
491 deltas[0] = -distance; in findNearestTouchable()
494 deltas[0] = distance; in findNearestTouchable()
[all …]
DGestureDetector.java538 int distance = (deltaX * deltaX) + (deltaY * deltaY); in onTouchEvent() local
539 if (distance > mTouchSlopSquare) { in onTouchEvent()
548 if (distance > mBiggerTouchSlopSquare) { in onTouchEvent()
/frameworks/base/core/java/android/widget/
DOverScroller.java681 void startScroll(int start, int distance, int duration) { in startScroll() argument
685 mFinal = start + distance; in startScroll()
854 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local
857 if (distance > mOver) { in onEdgeReached()
860 distance = mOver; in onEdgeReached()
863 mOver = (int) distance; in onEdgeReached()
865 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached()
911 double distance = 0.0; in update() local
927 distance = distanceCoef * mSplineDistance; in update()
935 distance = mVelocity * t + mDeceleration * t * t / 2.0f; in update()
[all …]
DEdgeEffect.java190 float distance = Math.abs(mPullDistance); in onPull() local
192 mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA)); in onPull()
194 HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f)); in onPull()
DGallery.java1263 int distance = getCenterOfGallery() - getCenterOfView(child); in scrollToChild() local
1264 mFlingRunnable.startUsingDistance(distance); in scrollToChild()
1395 public void startUsingDistance(int distance) {
1396 if (distance == 0) return;
1401 mScroller.startScroll(0, 0, -distance, 0, mAnimationDuration);
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListOfTouchablesTest.java79 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll() local
83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DListTouchBottomGravityManyTest.java147 int distance = TouchUtils.dragViewBy(this, firstChild, in testLongScroll() local
152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
DListTouchManyTest.java186 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll() local
190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java579 int distance = (int) Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewBy() local
581 drag(test, fromX, fromX + deltaX, fromY, fromY + deltaY, distance); in dragViewBy()
583 return distance; in dragViewBy()
632 int distance = (int)Math.sqrt(deltaX * deltaX + deltaY * deltaY); in dragViewTo() local
633 drag(test, fromX, toX, fromY, toY, distance); in dragViewTo()
635 return distance; in dragViewTo()
/frameworks/base/opengl/tests/gldual/src/com/android/gldual/
DGLDualGL2View.java158 int distance = Math.abs(r - mRedSize) in chooseConfig() local
162 if (distance < closestDistance) { in chooseConfig()
163 closestDistance = distance; in chooseConfig()
/frameworks/base/opengl/tests/gl2_jni/src/com/android/gl2jni/
DGL2JNIView.java155 int distance = Math.abs(r - mRedSize) in chooseConfig() local
159 if (distance < closestDistance) { in chooseConfig()
160 closestDistance = distance; in chooseConfig()
/frameworks/base/opengl/tests/gl_perfapp/src/com/android/glperf/
DGLPerfView.java155 int distance = Math.abs(r - mRedSize) in chooseConfig() local
159 if (distance < closestDistance) { in chooseConfig()
160 closestDistance = distance; in chooseConfig()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingTest.java94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT, in testLongScroll() local
98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
DGridTouchVerticalSpacingStackFromBottomTest.java109 int distance = TouchUtils.dragViewBy(this, firstChild, in testLongScroll() local
114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DRadialGradient_Delegate.java197 float distance = (float) Math.sqrt(_x * _x + _y * _y); in getRaster() local
199 data[index++] = getGradientColor(distance / mRadius); in getRaster()
/frameworks/base/services/input/
DInputReader.cpp88 inline static float distance(float x1, float y1, float x2, float y2) { in distance() function
1349 distance.clear(); in clear()
2367 info->addMotionRange(mOrientedRanges.distance); in populateDeviceInfo()
2421 pointer.orientation, pointer.tiltX, pointer.tiltY, pointer.distance, in dump()
2622 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.distance, "Distance"); in dumpRawPointerAxes()
2871 mOrientedRanges.distance.axis = AMOTION_EVENT_AXIS_DISTANCE; in configureSurface()
2872 mOrientedRanges.distance.source = mSource; in configureSurface()
2873 mOrientedRanges.distance.min = in configureSurface()
2874 mRawPointerAxes.distance.minValue * mDistanceScale; in configureSurface()
2875 mOrientedRanges.distance.max = in configureSurface()
[all …]
/frameworks/base/include/utils/
DList.h185 return size_t(distance(begin(), end())); in size()
273 ptrdiff_t distance( in distance() function
/frameworks/base/native/include/android/
Dsensor.h122 float distance; member
/frameworks/base/location/java/android/location/
DILocationManager.aidl56 void addProximityAlert(double latitude, double longitude, float distance, in addProximityAlert() argument
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerService.java304 float distance = getDistanceFromNetwork(location); in onLocationChanged() local
305 mTrackerData.writeEntry(location, distance); in onLocationChanged()

123