Home
last modified time | relevance | path

Searched refs:cos (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/base/core/java/android/hardware/
DGeomagneticField.java176 cosMLon[1] = (float) Math.cos(mGcLongitudeRad); in GeomagneticField()
186 float inverseCosLatitude = 1.0f / (float) Math.cos(mGcLatitudeRad); in GeomagneticField()
234 mX = (float) (gcX * Math.cos(latDiffRad) in GeomagneticField()
238 + gcZ * Math.cos(latDiffRad)); in GeomagneticField()
311 float clat = (float) Math.cos(gdLatRad); in computeGeocentricCoordinates()
356 float cos = (float) Math.cos(thetaRad); in LegendreTable() local
369 mPDeriv[n][m] = cos * mP[n - 1][m - 1] in LegendreTable()
372 mP[n][m] = cos * mP[n - 1][m]; in LegendreTable()
374 + cos * mPDeriv[n - 1][m]; in LegendreTable()
379 mP[n][m] = cos * mP[n - 1][m] - k * mP[n - 2][m]; in LegendreTable()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DMatrix_Delegate.java426 float cos = (float) Math.cos(rad); in native_preRotate() local
428 d.preTransform(getRotate(sin, cos)); in native_preRotate()
998 float cos = (float)Math.cos(rad); in getRotate() local
1000 return getRotate(sin, cos); in getRotate()
1003 /*package*/ static float[] getRotate(float sin, float cos) { in getRotate() argument
1004 return setRotate(new float[9], sin, cos); in getRotate()
1010 float cos = (float)Math.cos(rad); in setRotate() local
1012 return setRotate(dest, sin, cos); in setRotate()
1015 /*package*/ static float[] setRotate(float[] dest, float sin, float cos) { in setRotate() argument
1016 dest[0] = cos; in setRotate()
[all …]
/frameworks/base/core/java/android/util/
DFloatMath.java80 public static float cos(float angle) { in cos() method in FloatMath
81 return (float) Math.cos(angle); in cos()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DBaseCluster.java84 vector[0] = Math.cos(lambda) * Math.cos(phi); in getLocationVector()
85 vector[1] = Math.sin(lambda) * Math.cos(phi); in getLocationVector()
92 double cosPhi = Math.cos(Math.asin(mCenter[2])); in getCenterLongitude()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DPoint.java76 float cos = Math.min(1.0f, Math.max(-1.0f, dotProduct / dist1 / dist2)); in getAngle() local
77 float angle = (float) Math.acos(cos); in getAngle()
/frameworks/av/services/audioflinger/
DAudioResamplerFirGen.h54 mCurrent = cos(wstart);
55 mPrevious = cos(wstart - wstep);
60 mTwoCos = 2.*cos(wstep);
105 mTwoCos = 2.*cos(innerStep); in mSineInnerCur()
430 accum += cos(ix*w)*static_cast<double>(*coef++);
466 double dcos = 2. * cos(L*w);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DTwilightCalculator.java110 * Math.sin(solarDec)) / (Math.cos(latRad) * Math.cos(solarDec)); in calculateTwilight()
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java101 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated()
102 (float)(Math.sin(radians) * x + Math.cos(radians) * y)); in rotated()
/frameworks/native/opengl/tests/angeles/
Ddemo.c180 point->x = (float)(cos(t) * cos(p) / r1 / r2); in superShapeMap()
181 point->y = (float)(sin(t) * cos(p) / r1 / r2); in superShapeMap()
188 return (float)(pow(pow(fabs(cos(p[0] * t / 4)) / p[1], p[4]) + in ssFunc()
385 const float m = (float)(cos(xm * 2) * sin(ym * 4) * 0.75f); in createGroundPlane()
732 eX = cX - (float)cos(lerp[3]) * dist; in camTrack()
741 cX = eX + (float)cos(lerp[3]); in camTrack()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java455 final double cosine = Math.cos(angle); in minimumCosineDistance()
564 float cos = (float) Math.cos(angle); in rotate() local
568 float x = points[i] * cos - points[i + 1] * sin; in rotate()
569 float y = points[i] * sin + points[i + 1] * cos; in rotate()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java366 double cos = Math.cos(radians); in getRange() local
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h))); in getRange()
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h))); in getRange()
/frameworks/base/core/java/android/view/animation/
DAccelerateDecelerateInterpolator.java41 return (float)(Math.cos((input + 1) * Math.PI) / 2.0f) + 0.5f; in getInterpolation()
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DMatrix3f.java119 c = (float)java.lang.Math.cos(rot); in loadRotate()
156 c = (float)java.lang.Math.cos(rot); in loadRotate()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/base/rs/java/android/renderscript/
DMatrix3f.java116 c = (float)java.lang.Math.cos(rot); in loadRotate()
153 c = (float)java.lang.Math.cos(rot); in loadRotate()
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs74 data_f4[i] = sin(data_f4[i]) * cos(data_f4[i]);
88 data_f1[i] = sin(data_f1[i]) * cos(data_f1[i]);
/frameworks/base/libs/hwui/utils/
DVectorDrawableUtils.cpp130 double cosTheta = cos(theta); in arcToBezier()
132 double cosEta1 = cos(eta1); in arcToBezier()
141 double cosEta2 = cos(eta2); in arcToBezier()
184 double cosTheta = cos(thetaD); in drawArc()
/frameworks/base/services/core/java/com/android/server/display/
DColorFade.java394 double cos = Math.cos(Math.PI * one_minus_level); in draw() local
395 double sign = cos < 0 ? -1 : 1; in draw()
399 float gamma = (float) ((0.5d * sign * Math.pow(cos, 2) + 0.5d) * 0.9d + 0.1d); in draw()
/frameworks/av/media/libstagefright/codecs/amrwbenc/inc/
Dgrid100.tab27 * grid[i] = cos((6.283185307*i)/(2.0*grid_points)); *
Disp_isf.tab22 /* table of cos(x) in Q15 */
/frameworks/base/core/tests/benchmarks/src/android/util/
DFloatMathBenchmark.java44 f += FloatMath.cos(100.123f); in timeFloatMathCos()

12345