Searched refs:PI (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/gesture/
H A DInstance.java30 0, (float) (Math.PI / 4), (float) (Math.PI / 2), (float) (Math.PI * 3 / 4),
31 (float) Math.PI, -0, (float) (-Math.PI / 4), (float) (-Math.PI / 2),
32 (float) (-Math.PI * 3 / 4), (float) -Math.PI
H A DGestureUtils.java422 * @return the distance between 0 and Math.PI
439 * @return the distance between the two instances (between 0 and Math.PI)
452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) {
460 return (float) Math.PI / 2;
507 angle = (float) -Math.PI/2;
508 } else { // -PI<alpha<PI
534 return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - minx, maxy - miny);
/frameworks/base/core/java/android/view/animation/
H A DAccelerateDecelerateInterpolator.java36 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f;
H A DCycleInterpolator.java43 return (float)(Math.sin(2 * mCycles * Math.PI * input));
/frameworks/base/services/java/com/android/server/
H A DTwilightCalculator.java31 private static final float DEGREES_TO_RADIANS = (float) (Math.PI / 180.0f);
82 final float solarLng = trueAnomaly + 1.796593063f + (float) Math.PI;
111 float hourAngle = (float) (Math.acos(cosHourAngle) / (2 * Math.PI));
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DPointCloud.java39 private static final float PI = (float) Math.PI; field in class:PointCloud
144 final float ds = (2.0f * PI * innerRadius / INNER_POINTS);
149 float circumference = 2.0f * PI * r;
151 float eta = PI/2.0f;
152 float dEta = 2.0f * PI / pointsInBand;
183 float cosf = FloatMath.cos(PI * 0.25f * glowDistance / glowManager.radius);
192 float cosf = FloatMath.cos(PI * 0.25f * distanceToWaveRing / waveManager.width);
H A DEase.java117 return -DOMAIN * (float) Math.cos(input/DURATION * (Math.PI/2)) + DOMAIN + START;
122 return DOMAIN * (float) Math.sin(input/DURATION * (Math.PI/2)) + START;
127 return -DOMAIN/2 * ((float)Math.cos(Math.PI*input/DURATION) - 1.0f) + START;
H A DGlowPadView.java878 double targetMinRad = mFirstItemOffset + (i - 0.5) * 2 * Math.PI / ntargets;
879 double targetMaxRad = mFirstItemOffset + (i + 0.5) * 2 * Math.PI / ntargets;
883 (angleRad + 2 * Math.PI > targetMinRad &&
884 angleRad + 2 * Math.PI <= targetMaxRad) ||
885 (angleRad - 2 * Math.PI > targetMinRad &&
886 angleRad - 2 * Math.PI <= targetMaxRad);
1187 return (float) (-2.0f * Math.PI / mTargetDrawables.size());
H A DMultiWaveView.java424 double angle = 2.0 * Math.PI * direction / directionCount;
853 double targetMinRad = (i - 0.5) * 2 * Math.PI / ntargets;
854 double targetMaxRad = (i + 0.5) * 2 * Math.PI / ntargets;
858 (angleRad + 2 * Math.PI > targetMinRad &&
859 angleRad + 2 * Math.PI <= targetMaxRad);
1047 final float alpha = (float) (-2.0f * Math.PI / size);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DSweepGradient_Delegate.java196 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2);
198 angle = (float) (dx < 0 ? Math.PI : 0);
203 angle += Math.PI * 2;
206 angle += Math.PI;
211 data[index++] = getGradientColor((float) (angle / (2 * Math.PI)));
/frameworks/base/graphics/java/android/renderscript/
H A DMatrix2f.java108 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix3f.java118 rot *= (float)(java.lang.Math.PI / 180.0f);
155 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix4f.java161 rot *= (float)(java.lang.Math.PI / 180.0f);
312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f));
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DMatrix2f.java108 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix3f.java118 rot *= (float)(java.lang.Math.PI / 180.0f);
155 rot *= (float)(java.lang.Math.PI / 180.0f);
H A DMatrix4f.java161 rot *= (float)(java.lang.Math.PI / 180.0f);
312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f));
/frameworks/native/opengl/tests/angeles/
H A Ddemo.c39 #undef PI macro
40 #define PI 3.1415926535897932f macro
230 float t1 = -PI + longitude * 2 * PI / resol1;
231 float t2 = -PI + (longitude + 1) * 2 * PI / resol1;
232 float p1 = -PI / 2 + latitude * 2 * PI / resol2;
233 float p2 = -PI / 2 + (latitude + 1) * 2 * PI / resol
[all...]
/frameworks/base/location/java/android/location/
H A DLocation.java291 lat1 *= Math.PI / 180.0;
292 lat2 *= Math.PI / 180.0;
293 lon1 *= Math.PI / 180.0;
294 lon2 *= Math.PI / 180.0;
374 initialBearing *= 180.0 / Math.PI;
379 finalBearing *= 180.0 / Math.PI;
/frameworks/ex/carousel/test/src/com/android/carouseltest/
H A DMusicDemoActivity.java92 mView.setStartAngle((float) -(2.0f*Math.PI * 5 / CARD_SLOTS));
H A DCarouselTestActivity.java156 mView.setStartAngle((float) -(2.0f*Math.PI * 5 / CARD_SLOTS));
/frameworks/av/media/libeffects/lvm/lib/Eq/src/
H A DLVEQNB_CalcCoef.c33 #define PI 3.14159265358979 macro
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrix.java121 float radians = degrees * (float)Math.PI / 180;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DStraightenFilter.java56 private static final float DEGREE_TO_RADIAN = (float) Math.PI / 180.0f;
/frameworks/base/opengl/java/android/opengl/
H A DGLU.java113 float top = zNear * (float) Math.tan(fovy * (Math.PI / 360.0));
H A DMatrix.java373 float f = 1.0f / (float) Math.tan(fovy * (Math.PI / 360.0));
562 a *= (float) (Math.PI / 180.0f);
620 x *= (float) (Math.PI / 180.0f);
621 y *= (float) (Math.PI / 180.0f);
622 z *= (float) (Math.PI / 180.0f);

Completed in 325 milliseconds

12