Searched refs:dist2 (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/
H A Dfisheye.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
H A Dfisheye_approx.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = half_rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/
H A Dfisheye.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
H A Dfisheye_approx.rsh50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;
51 const float inv_dist = half_rsqrt(dist2);
52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dq_plsf_5.cpp389 Word32 dist2; local
426 dist2 = ((Word32)temp2 * temp2);
434 dist2 += ((Word32)temp2 * temp2);
436 if ((dist1 >= dist_min) && (dist2 >= dist_min))
448 dist2 += ((Word32)temp2 * temp2);
456 dist2 += ((Word32)temp2 * temp2);
467 if (dist2 < dist_min)
469 dist_min = dist2;
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DGlowPadView.java860 float touchRadius = (float) Math.sqrt(dist2(tx, ty));
887 if (angleMatches && (dist2(tx, ty) > snapDistance2)) {
985 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledGlowRadiusSquared()) {
1216 private float dist2(float dx, float dy) { method in class:GlowPadView
H A DMultiWaveView.java835 float touchRadius = (float) Math.sqrt(dist2(tx, ty));
860 if (angleMatches && (dist2(tx, ty) > snapDistance2)) {
956 if (mAlwaysTrackFinger || dist2(tx,ty) <= getScaledTapRadiusSquared()) {
1109 private float dist2(float dx, float dy) { method in class:MultiWaveView
/frameworks/av/media/libstagefright/
H A DAVIExtractor.cpp1271 size_t dist2 = nextSyncSampleIndex - closestSampleIndex; local
1274 (dist1 < dist2) ? prevSyncSampleIndex : nextSyncSampleIndex;
/frameworks/base/services/input/
H A DInputReader.cpp4997 float dist2 = dist[id2]; local
4999 && dist2 >= mConfig.pointerGestureMultitouchMinDistance) {
5011 float cosine = dot / (dist1 * dist2); // denominator always > 0
5016 "dist1 %0.3f >= %0.3f, dist2 %0.3f >= %0.3f, "
5019 dist2, mConfig.pointerGestureMultitouchMinDistance,
5027 "dist1 %0.3f >= %0.3f, dist2 %0.3f >= %0.3f, "
5030 dist2, mConfig.pointerGestureMultitouchMinDistance,

Completed in 169 milliseconds