/aosp12/art/test/123-inline-execute2/ |
H A D | expected-stdout.txt | 4 Math.cos(0.0) = 1.000000000000 14 Math.cos(0.7853981633974483) = 0.707106781187 24 Math.cos(1.5707963267948966) = 0.000000000000 33 Math.cos(2.356194490192345) = -0.707106781187 43 Math.cos(3.141592653589793) = -1.000000000000 63 Math.cos(4.71238898038469) = -0.000000000000 72 Math.cos(5.497787143782138) = 0.707106781187 82 Math.cos(6.283185307179586) = 1.000000000000 153 StrictMath.cos(0.0) = 1.0 193 StrictMath.cos(3.141592653589793) = -1.0 [all …]
|
/aosp12/frameworks/base/core/java/android/hardware/ |
H A D | GeomagneticField.java | 180 cosMLon[1] = (float) Math.cos(mGcLongitudeRad); in GeomagneticField() 190 float inverseCosLatitude = 1.0f / (float) Math.cos(mGcLatitudeRad); in GeomagneticField() 238 mX = (float) (gcX * Math.cos(latDiffRad) in GeomagneticField() 242 + gcZ * Math.cos(latDiffRad)); in GeomagneticField() 315 float clat = (float) Math.cos(gdLatRad); in computeGeocentricCoordinates() 360 float cos = (float) Math.cos(thetaRad); in LegendreTable() local 373 mPDeriv[n][m] = cos * mP[n - 1][m - 1] in LegendreTable() 376 mP[n][m] = cos * mP[n - 1][m]; in LegendreTable() 378 + cos * mPDeriv[n - 1][m]; in LegendreTable() 383 mP[n][m] = cos * mP[n - 1][m] - k * mP[n - 2][m]; in LegendreTable() [all …]
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RippleShader.java | 169 (float) (scale * 0.5 + (turbulencePhase * 0.01 * Math.cos(scale * 0.55))), in setNoisePhase() 173 (float) (scale * 0.2 + (turbulencePhase * -0.0066 * Math.cos(scale * 0.45))), in setNoisePhase() 177 (float) (scale + (turbulencePhase * -0.0066 * Math.cos(scale * 0.35))), in setNoisePhase() 182 (float) Math.cos(rotation1), (float) Math.sin(rotation1) in setNoisePhase() 186 (float) Math.cos(rotation2), (float) Math.sin(rotation2) in setNoisePhase() 190 (float) Math.cos(rotation3), (float) Math.sin(rotation3) in setNoisePhase()
|
/aosp12/packages/services/Car/tests/CarEvsCameraPreviewApp/src/com/google/android/car/evs/ |
H A D | GLES20CarEvsCameraPreviewRenderer.java | 115 float cos = (float)Math.cos(angleInRadian); in GLES20CarEvsCameraPreviewRenderer() local 117 rotated[0] += cos * sVertCarTexData[0] - sin * sVertCarTexData[1]; in GLES20CarEvsCameraPreviewRenderer() 118 rotated[1] += sin * sVertCarTexData[0] + cos * sVertCarTexData[1]; in GLES20CarEvsCameraPreviewRenderer() 119 rotated[2] += cos * sVertCarTexData[2] - sin * sVertCarTexData[3]; in GLES20CarEvsCameraPreviewRenderer() 120 rotated[3] += sin * sVertCarTexData[2] + cos * sVertCarTexData[3]; in GLES20CarEvsCameraPreviewRenderer() 121 rotated[4] += cos * sVertCarTexData[4] - sin * sVertCarTexData[5]; in GLES20CarEvsCameraPreviewRenderer() 122 rotated[5] += sin * sVertCarTexData[4] + cos * sVertCarTexData[5]; in GLES20CarEvsCameraPreviewRenderer() 123 rotated[6] += cos * sVertCarTexData[6] - sin * sVertCarTexData[7]; in GLES20CarEvsCameraPreviewRenderer() 124 rotated[7] += sin * sVertCarTexData[6] + cos * sVertCarTexData[7]; in GLES20CarEvsCameraPreviewRenderer()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | PreviewOverlay.java | 341 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 343 mCenterX + mOuterRadius * (float) Math.cos(mFingerAngle), in draw() 345 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 347 mCenterX - mOuterRadius * (float) Math.cos(mFingerAngle), in draw() 353 canvas.drawLine(mCenterX + mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 355 mCenterX + zoomRadius * (float) Math.cos(mFingerAngle), in draw() 357 canvas.drawLine(mCenterX - mInnerRadius * (float) Math.cos(mFingerAngle), in draw() 359 mCenterX - zoomRadius * (float) Math.cos(mFingerAngle), in draw()
|
/aosp12/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | s_ccosh.c | 71 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 77 return (CMPLX(h * cos(y), copysign(h, x) * sin(y))); in ccosh() 85 return (CMPLX(h * h * cos(y), h * sin(y))); in ccosh() 135 return (CMPLX(INFINITY * cos(y), x * sin(y))); in ccosh()
|
H A D | s_csinh.c | 71 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y))); in csinh() 77 return (CMPLX(copysign(h, x) * cos(y), h * sin(y))); in csinh() 85 return (CMPLX(h * cos(y), h * h * sin(y))); in csinh() 134 return (CMPLX(x * cos(y), INFINITY * sin(y))); in csinh()
|
H A D | s_cos.c | 55 cos(double x) in cos() function 88 __weak_reference(cos, cosl);
|
H A D | s_cexp.c | 59 return (CMPLX(cos(y), sin(y))); in cexp() 89 return (CMPLX(exp_x * cos(y), exp_x * sin(y))); in cexp()
|
H A D | s_ctanh.c | 110 return (CMPLX(x, copysign(0, isinf(y) ? y : sin(y) * cos(y)))); in ctanh() 128 4 * sin(y) * cos(y) * exp_mx * exp_mx)); in ctanh()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | KalmanFilterTest.java | 55 double cos = Math.cos(stepSizeRadians); in initializePll() local 58 cos, sin, in initializePll() 59 -sin, cos}); in initializePll()
|
/aosp12/frameworks/base/libs/hwui/pipeline/skia/ |
H A D | AnimatedDrawables.h | 88 const float CIRCLE_X_1 = 0.01 * cos(SCALE * 0.55); in draw() 90 const float CIRCLE_X_2 = -0.0066 * cos(SCALE * 0.45); in draw() 92 const float CIRCLE_X_3 = -0.0066 * cos(SCALE * 0.35); in draw() 107 setUniform2f(effectBuilder, "in_tRotation1", cos(rotation1), sin(rotation1)); in draw() 109 setUniform2f(effectBuilder, "in_tRotation2", cos(rotation2), sin(rotation2)); in draw() 111 setUniform2f(effectBuilder, "in_tRotation3", cos(rotation3), sin(rotation3)); in draw()
|
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/ |
H A D | Matrix_Delegate.java | 431 float cos = (float) Math.cos(rad); in nPreRotate() local 433 d.preTransform(getRotate(sin, cos)); in nPreRotate() 1013 float cos = (float)Math.cos(rad); in getRotate() local 1015 return getRotate(sin, cos); in getRotate() 1019 return setRotate(new float[9], sin, cos); in getRotate() 1025 float cos = (float)Math.cos(rad); in setRotate() local 1027 return setRotate(dest, sin, cos); in setRotate() 1031 dest[0] = cos; in setRotate() 1035 dest[4] = cos; in setRotate() 1054 float cos = (float)Math.cos(rad); in getRotate() local [all …]
|
/aosp12/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
H A D | RDsp.h | 96 v[i] = 0.54 - 0.46 * cos(TWOPI * i /(twoOverlap - 1)); in fillHamming() 109 v[i] = 0.54 - 0.46 * cos(TWOPI * k / (twoOverlap - 1)); in fillHamming() 122 v[i] = 0.5 * (1.0 - cos(TWOPI * i / (twoOverlap - 1))); in fillHanning() 135 v[i] = 0.5 * (1.0 - cos(TWOPI * k / (twoOverlap - 1))); in fillHanning()
|
/aosp12/bionic/libm/x86/ |
H A D | s_cos.S | 190 # -- Begin cos 191 ENTRY(cos) 313 END(cos) 314 # -- End cos 317 ALIAS_SYMBOL(cosl, cos);
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | FloatMath.java | 80 public static float cos(float angle) { in cos() method in FloatMath 81 return (float) Math.cos(angle); in cos()
|
/aosp12/art/compiler/linker/ |
H A D | output_stream_test.cc | 129 std::unique_ptr<CheckingOutputStream> cos = std::make_unique<CheckingOutputStream>(); in TEST_F() local 130 CheckingOutputStream* checking_output_stream = cos.get(); in TEST_F() 131 BufferedOutputStream buffered(std::move(cos)); in TEST_F()
|
/aosp12/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerFirGen.h | 54 mCurrent = cos(wstart); 55 mPrevious = cos(wstart - wstep); 60 mTwoCos = 2.*cos(wstep); 105 mTwoCos = 2.*cos(innerStep); 430 accum += cos(ix*w)*static_cast<double>(*coef++); 466 double dcos = 2. * cos(L*w);
|
/aosp12/frameworks/base/core/java/com/android/internal/graphics/cam/ |
H A D | Cam.java | 207 float eHue = 0.25f * (float) (Math.cos(huePrime * Math.PI / 180.0 + 2.0) + 3.8); in fromIntInFrame() 221 float astar = mstar * (float) Math.cos(hueRadians); in fromIntInFrame() 255 float astar = mstar * (float) Math.cos(hueRadians); in fromJchInFrame() 292 float eHue = 0.25f * (float) (Math.cos(hRad + 2.0) + 3.8); in viewed() 299 float hCos = (float) Math.cos(hRad); in viewed()
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
H A D | Point.java | 88 float cos = Math.min(1.0f, Math.max(-1.0f, dotProduct / dist1 / dist2)); in getAngle() local 89 float angle = (float) Math.acos(cos); in getAngle()
|
/aosp12/system/chre/external/kiss_fft/ |
H A D | _kiss_fft_guts.h | 132 # define KISS_FFT_COS(phase) floor(.5+SAMP_MAX * cos (phase)) 136 # define KISS_FFT_COS(phase) _mm_set1_ps( cos(phase) ) 140 # define KISS_FFT_COS(phase) (kiss_fft_scalar) cos(phase)
|
/aosp12/frameworks/native/opengl/tests/angeles/ |
H A D | demo.c | 180 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()
|
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
H A D | Point.java | 105 return new Point((float)(Math.cos(radians) * x - Math.sin(radians) * y), in rotated() 106 (float)(Math.sin(radians) * x + Math.cos(radians) * y)); in rotated()
|
/aosp12/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
H A D | RenderPatch.java | 88 mVertexBuffer.putFloat((float) (dimension * Math.cos(angle))); in RenderPatch() 92 mTextureBuffer.putFloat((float) (0.5 - 0.5 * Math.cos(angle))); in RenderPatch()
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | RoundedLine.java | 63 final float cosa = (float)Math.cos(aa); in makePath() 65 final float cosb = (float)Math.cos(ab); in makePath()
|