/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Point.java | 103 public Point rotated(float radians) { in rotated() argument 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() 109 public Point rotatedAround(Point center, float radians) { in rotatedAround() argument 110 return this.minus(center).rotated(radians).plus(center); in rotatedAround()
|
/frameworks/rs/script_api/ |
D | rs_math.spec | 189 Returns the inverse cosine, in radians. 212 Returns the inverse hyperbolic cosine, in radians. 235 Returns the inverse cosine in radians, divided by pi. 260 Returns the inverse sine, in radians. 283 Returns the inverse hyperbolic sine, in radians. 306 Returns the inverse sine in radians, divided by pi. 331 Returns the inverse tangent, in radians. 355 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians. 380 Returns the inverse tangent of <code>(numerator / denominator)</code>, in radians, divided by pi. 406 Returns the inverse hyperbolic tangent, in radians. [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorMatrix.java | 146 double radians = degrees * Math.PI / 180d; in setRotate() local 147 float cosine = (float) Math.cos(radians); in setRotate() 148 float sine = (float) Math.sin(radians); in setRotate()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 135 public static float radians(float degrees) { in radians() method in MathUtils 139 public static float degrees(float radians) { in degrees() argument 140 return radians * RAD_TO_DEG; in degrees()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonDrawable.java | 266 final float radians = (float) (mState.mRotateDegrees * Math.PI / 180); in draw() local 267 final float shadowOffsetX = (float) (Math.sin(radians) * mState.mShadowOffsetY in draw() 268 + Math.cos(radians) * mState.mShadowOffsetX) - mState.mTranslationX; in draw() 269 final float shadowOffsetY = (float) (Math.cos(radians) * mState.mShadowOffsetY in draw() 270 - Math.sin(radians) * mState.mShadowOffsetX) - mState.mTranslationY; in draw()
|
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
D | SoundPoolTest.java | 320 double radians = PI_OVER_2 * count / 100.0; in TestVolume() local 321 float leftVolume = (float) Math.sin(radians); in TestVolume() 322 float rightVolume = (float) Math.cos(radians); in TestVolume()
|
/frameworks/rs/script_api/include/ |
D | rs_math.rsh | 202 * Returns the inverse cosine, in radians. 241 * Returns the inverse hyperbolic cosine, in radians. 280 * Returns the inverse cosine in radians, divided by pi. 321 * Returns the inverse sine, in radians. 360 * Returns the inverse hyperbolic sine, in radians. 399 * Returns the inverse sine in radians, divided by pi. 440 * Returns the inverse tangent, in radians. 479 * Returns the inverse tangent of (numerator / denominator), in radians. 522 * Returns the inverse tangent of (numerator / denominator), in radians, divided by pi. 567 * Returns the inverse hyperbolic tangent, in radians. [all …]
|
D | rs_quaternion.rsh | 123 * rot: Angle to rotate by, in radians.
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 433 public void rotate(double radians) { in rotate() argument 436 layer.getGraphics().rotate(radians); in rotate() 442 mTransform.rotate(radians); in rotate()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 362 double radians = Math.toRadians(-rotation); in getRange() local 366 double cos = Math.cos(radians); in getRange() 367 double sin = Math.sin(radians); in getRange()
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 942 extern float __attribute__((overloadable)) degrees(float radians) { in IN_FUNC_IN() 943 return radians * (180.f / M_PI); in IN_FUNC_IN() 945 extern float2 __attribute__((overloadable)) degrees(float2 radians) { in degrees() argument 946 return radians * (180.f / M_PI); in degrees() 948 extern float3 __attribute__((overloadable)) degrees(float3 radians) { in degrees() argument 949 return radians * (180.f / M_PI); in degrees() 951 extern float4 __attribute__((overloadable)) degrees(float4 radians) { in degrees() argument 952 return radians * (180.f / M_PI); in degrees() 977 extern float __attribute__((overloadable)) radians(float degrees) { in radians() function 980 extern float2 __attribute__((overloadable)) radians(float2 degrees) { in radians() function [all …]
|
/frameworks/base/core/java/android/widget/ |
D | RadialTimePickerView.java | 1341 final double radians = Math.toRadians(degrees); in getBoundsForVirtualView() local 1342 final float xCenter = mXCenter + centerRadius * (float) Math.sin(radians); in getBoundsForVirtualView() 1343 final float yCenter = mYCenter - centerRadius * (float) Math.cos(radians); in getBoundsForVirtualView()
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | apitest.rscript | 1010 f = radians(f); 1011 f2 = radians(f2); 1012 f3 = radians(f3); 1013 f4 = radians(f4);
|
D | math.rscript | 308 TEST_FN_FUNC_FN(radians);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | apitest.rscript | 1030 f = radians(f); 1031 f2 = radians(f2); 1032 f3 = radians(f3); 1033 f4 = radians(f4);
|
D | math.rscript | 333 TEST_FN_FUNC_FN(radians);
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibonlysrc/com/android/rs/unittest/ |
D | apitest.rscript | 1028 f = radians(f); 1029 f2 = radians(f2); 1030 f3 = radians(f3); 1031 f4 = radians(f4);
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | math.rs.bak | 294 TEST_FN_FUNC_FN(radians);
|
D | math.rs.orig | 308 TEST_FN_FUNC_FN(radians);
|
D | math.rscript | 308 TEST_FN_FUNC_FN(radians);
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | math_fp16.rscript | 234 TEST_HN_FUNC_HN(radians);
|
D | math.rscript | 331 TEST_FN_FUNC_FN(radians);
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | math.rscript | 308 TEST_FN_FUNC_FN(radians);
|
/frameworks/rs/tests/java_api/ComputeBenchmark/src/com/example/android/rs/computebench/ |
D | compute_benchmark.rscript | 377 BENCH_FN_FUNC_FN(radians);
|
/frameworks/compile/slang/tests/P_all_api_14/ |
D | all14.rscript | 2915 *(float*)buf1167 = radians(*(float*)buf1168); 2916 *(float2*)buf1169 = radians(*(float2*)buf1170); 2917 *(float3*)buf1171 = radians(*(float3*)buf1172); 2918 *(float4*)buf1173 = radians(*(float4*)buf1174);
|