/frameworks/base/graphics/java/android/graphics/ |
D | PathMeasure.java | 86 public boolean getPosTan(float distance, float pos[], float tan[]) { in getPosTan() argument 91 return native_getPosTan(native_instance, distance, pos, tan); in getPosTan() 107 public boolean getMatrix(float distance, Matrix matrix, int flags) { in getMatrix() argument 108 return native_getMatrix(native_instance, distance, matrix.native_instance, flags); in getMatrix() 144 …private static native boolean native_getPosTan(int native_instance, float distance, float pos[], f… in native_getPosTan() argument 145 …private static native boolean native_getMatrix(int native_instance, float distance, int native_mat… in native_getMatrix() argument
|
/frameworks/base/core/java/android/gesture/ |
D | InstanceLearner.java | 54 double distance; in classify() local 56 … distance = 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()
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
D | qpisf_2s.c | 66 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/ml/bordeaux/service/src/android/bordeaux/services/ |
D | ClusterManager.java | 128 float distance = mLocationClusters.get(i).distanceToCenter(mLastLocation); in addSample() local 129 Log.v(TAG, "clulster " + i + " is within " + distance + " meters"); in addSample() 130 if (distance < bestClusterDistance) { in addSample() 131 bestClusterDistance = distance; in addSample() 186 float distance = in consolidateClusters() local 188 if (distance < LOCATION_CLUSTER_RADIUS) { in consolidateClusters() 209 float distance = cluster.distanceToCluster(candidate); in consolidateClusters() local 210 Log.v(TAG, distance + "distance to semantic cluster: " + in consolidateClusters() 213 if (distance < bestClusterDistance) { in consolidateClusters() 214 bestClusterDistance = distance; in consolidateClusters()
|
D | LocationCluster.java | 115 public void moveAwayCluster(LocationCluster cluster, float distance) { in moveAwayCluster() argument 129 double radian = distance / EARTH_RADIUS; in moveAwayCluster()
|
/frameworks/base/location/tests/locationtests/src/android/location/ |
D | LocationTest.java | 157 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/widget/ |
D | OverScroller.java | 680 void startScroll(int start, int distance, int duration) { in startScroll() argument 684 mFinal = start + distance; in startScroll() 853 float distance = mVelocity * mVelocity / (2.0f * Math.abs(mDeceleration)); in onEdgeReached() local 856 if (distance > mOver) { in onEdgeReached() 859 distance = mOver; in onEdgeReached() 862 mOver = (int) distance; in onEdgeReached() 864 mFinal = mStart + (int) (mVelocity > 0 ? distance : -distance); in onEdgeReached() 910 double distance = 0.0; in update() local 926 distance = distanceCoef * mSplineDistance; in update() 934 distance = mVelocity * t + mDeceleration * t * t / 2.0f; in update() [all …]
|
/frameworks/base/core/java/android/view/ |
D | FocusFinder.java | 537 int distance = Integer.MAX_VALUE; in findNearestTouchable() local 541 distance = x - touchableBounds.right + 1; in findNearestTouchable() 544 distance = touchableBounds.left; in findNearestTouchable() 547 distance = y - touchableBounds.bottom + 1; in findNearestTouchable() 550 distance = touchableBounds.top; in findNearestTouchable() 554 if (distance < edgeSlop) { in findNearestTouchable() 558 (!touchableBounds.contains(closestBounds) && distance < minDistance)) { in findNearestTouchable() 559 minDistance = distance; in findNearestTouchable() 564 deltas[0] = -distance; in findNearestTouchable() 567 deltas[0] = distance; in findNearestTouchable() [all …]
|
/frameworks/base/services/java/com/android/server/location/ |
D | LocationFudger.java | 329 private static double metersToDegreesLatitude(double distance) { in metersToDegreesLatitude() argument 330 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR; in metersToDegreesLatitude() 336 private static double metersToDegreesLongitude(double distance, double lat) { in metersToDegreesLongitude() argument 337 return distance / APPROXIMATE_METERS_PER_DEGREE_AT_EQUATOR / Math.cos(Math.toRadians(lat)); in metersToDegreesLongitude()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
D | ListOfTouchablesTest.java | 79 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll() local 83 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
|
D | ListTouchBottomGravityManyTest.java | 147 int distance = TouchUtils.dragViewBy(this, firstChild, in testLongScroll() local 152 + (distance - ViewConfiguration.getTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
|
D | ListTouchManyTest.java | 186 int distance = TouchUtils.dragViewToY(this, lastChild, in testLongScroll() local 190 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
|
/frameworks/wilhelm/src/itf/ |
D | I3DLocation.c | 43 SLmillidegree azimuth, SLmillidegree elevation, SLmillimeter distance) in I3DLocation_SetLocationSpherical() argument 49 (0 <= distance) && (distance <= SL_MILLIMETER_MAX))) { in I3DLocation_SetLocationSpherical() 56 thiz->mLocationSpherical.mDistance = distance; in I3DLocation_SetLocationSpherical()
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | GestureUtils.java | 27 int timeout, int distance, int actionIndex) { in eventsWithinTimeAndDistanceSlop() argument 32 if (deltaMove >= distance) { in eventsWithinTimeAndDistanceSlop()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | DelegateViewHelper.java | 79 final float distance = mSwapXY ? (mDownPoint[0] - x) : (mDownPoint[1] - y); in onInterceptTouchEvent() 80 if (distance > mTriggerThreshhold) { in onInterceptTouchEvent()
|
/frameworks/base/libs/hwui/ |
D | DisplayList.h | 320 void setCameraDistance(float distance) { in setCameraDistance() argument 321 if (distance != mCameraDistance) { in setCameraDistance() 322 mCameraDistance = distance; in setCameraDistance() 328 mTransformCamera->setCameraLocation(0, 0, distance); in setCameraDistance()
|
/frameworks/compile/mclinker/lib/MC/ |
D | SymbolCategory.cpp | 110 int distance = target - source; in arrange() local 111 if (0 == distance) { in arrange() 139 if (distance > 0) { in arrange() 161 if (distance < 0) { in arrange()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 579 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/policy/src/com/android/internal/policy/impl/keyguard/ |
D | KeyguardGlowStripView.java | 94 float distance = Math.abs(relativeDotPosition - mAnimationProgress); in dispatchDraw() local 95 float alpha = Math.max(0, 1 - distance / (SLIDING_WINDOW_SIZE / 2)); in dispatchDraw()
|
/frameworks/compile/mclinker/lib/Support/ |
D | MemoryArea.cpp | 70 off_t distance = pOffset - space->start(); in request() local 71 void* r_start = space->memory() + distance; in request()
|
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/ |
D | GL2JNIView.java | 155 int distance = Math.abs(r - mRedSize) in chooseConfig() local 159 if (distance < closestDistance) { in chooseConfig() 160 closestDistance = distance; in chooseConfig()
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
D | GLDualGL2View.java | 158 int distance = Math.abs(r - mRedSize) in chooseConfig() local 162 if (distance < closestDistance) { in chooseConfig() 163 closestDistance = distance; in chooseConfig()
|
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/ |
D | GLPerfView.java | 155 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/ |
D | GridTouchVerticalSpacingTest.java | 94 int distance = TouchUtils.dragViewToY(this, lastChild, Gravity.TOP | Gravity.LEFT, in testLongScroll() local 98 lastTop - (distance - ViewConfiguration.getTouchSlop() - 1), lastChild.getTop()); in testLongScroll()
|
D | GridTouchVerticalSpacingStackFromBottomTest.java | 109 int distance = TouchUtils.dragViewBy(this, firstChild, in testLongScroll() local 114 + (distance - mViewConfig.getScaledTouchSlop() - 1), firstChild.getTop()); in testLongScroll()
|