/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | SweepGradientTest.java | 250 private String toString(double angle) { in toString() argument 251 double factor = angle * Math.PI; in toString() 252 return String.format("%.2f", angle) + "(pi)"; in toString() 277 for (double angle = Math.PI / 8.0; angle < Math.PI * 2.0; angle += Math.PI / 8.0) { in testColorLong() 282 double dx = Math.cos(angle) * radius; in testColorLong() 283 double dy = Math.sin(angle) * radius; in testColorLong() 292 ColorUtils.verifyColor("First color (at angle " + toString(angle) in testColorLong() 296 lastAngle = angle; in testColorLong() 298 assertTrue("Angle " + toString(angle) in testColorLong() 301 assertTrue("Angle " + toString(angle) in testColorLong() [all …]
|
D | RadialGradientTest.java | 107 for (double angle = 0; angle <= Math.PI / 2.0; angle += Math.PI / 8.0) { in testColorLong() 108 double dx = Math.cos(angle) * radius; in testColorLong() 109 double dy = Math.sin(angle) * radius; in testColorLong()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/Path/ |
D | RobustnessPath.java | 166 … double angle = Math.acos(MathsUtils.dotProduct(values, adjustedXAxis, MathsUtils.VECTOR_3D)); in calculateRotation() local 169 angle = Math.toDegrees(angle) - MathsUtils.ORIENTATION_90_ANTI_CLOCKWISE; in calculateRotation() 170 angle *= -1; in calculateRotation() 172 return (float) angle; in calculateRotation()
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 156 float angle; in testGetInclination() local 157 angle = (data.nextFloat()-0.5f) * FLOAT_PI; in testGetInclination() 158 R = mat9Rot(SensorManager.AXIS_X, -angle); in testGetInclination() 165 i, angle, angler), in testGetInclination() 166 angle, angler, 1e-4f); in testGetInclination() 677 private static float [] mat9Rot(int axis, float angle) { in mat9Rot() argument 682 m[4] = m[8] = (float) Math.cos(angle); in mat9Rot() 683 m[5] = - (m[7] = (float) Math.sin(angle)); in mat9Rot() 687 m[0] = m[8] = (float) Math.cos(angle); in mat9Rot() 688 m[6] = - (m[2] = (float) Math.sin(angle)); in mat9Rot() [all …]
|
/cts/apps/CameraITS/pymodules/its/ |
D | cv2image.py | 298 _, (width, height), angle = rect 332 _, (width, height), angle = cv2.minAreaRect(square) 333 filtered_angles.append(angle) 401 for suffix, angle in test_cases: 416 abs(get_angle(normal_img)), angle, 2.0) 418 abs(get_angle(wide_img)), angle, 2.0)
|
/cts/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleRulesFileTest.java | 16 package android.angle.cts; 18 import static android.angle.cts.CtsAngleCommon.*;
|
D | CtsAngleDeveloperOptionHostTest.java | 16 package android.angle.cts; 18 import static android.angle.cts.CtsAngleCommon.*;
|
D | CtsAngleCommon.java | 16 package android.angle.cts;
|
/cts/tests/tests/location/protos/ |
D | ephemeris.proto | 61 // Inclination angle (radian). 64 // Rate of inclination angle (radians/sec).
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventTest.java | 645 final float angle = (float) (i * ARC * PI_180); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() local 648 c.x = (float) (Math.sin(angle) * RADIUS + 3); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 649 c.y = (float) (- Math.cos(angle) * RADIUS + 2); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 650 c.orientation = angle; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 684 final float angle = (float) ((i * ARC + ROTATION) * PI_180); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() local 685 assertEquals(Math.sin(angle) * RADIUS, c.x, RAW_COORD_TOLERANCE); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 686 assertEquals(-Math.cos(angle) * RADIUS, c.y, RAW_COORD_TOLERANCE); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() 687 assertEquals(Math.tan(angle), Math.tan(c.orientation), 0.1); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 1024 private void testRecordedVideoPlaybackWithAngle(int angle) throws Exception { in testRecordedVideoPlaybackWithAngle() argument 1063 checkOrientation(angle); in testRecordedVideoPlaybackWithAngle() 1064 recordVideo(width, height, angle, file, durationMs); in testRecordedVideoPlaybackWithAngle() 1065 checkDisplayedVideoSize(width, height, angle, file); in testRecordedVideoPlaybackWithAngle() 1066 checkVideoRotationAngle(angle, file); in testRecordedVideoPlaybackWithAngle() 1069 private void checkOrientation(int angle) throws Exception { in checkOrientation() argument 1070 assertTrue(angle >= 0); in checkOrientation() 1071 assertTrue(angle < 360); in checkOrientation() 1072 assertTrue((angle % 90) == 0); in checkOrientation() 1076 int w, int h, int angle, String file, long durationMs) throws Exception { [all …]
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | imagetesthandler.h | 43 void drawLine(int angle, int radius, const Vec3i &color);
|
/cts/hostsidetests/sustainedperf/shadertoy_android/jni/ |
D | shadertoy_renderer.cpp | 91 static float angle = 0.0f; in DrawFrame() local
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
D | PlanetsRenderer.java | 159 float angle = 0.090f * ((int) (currentTime % 4000L)); in onDrawFrame() local 160 Matrix.setRotateM(mMMatrix, 0, angle, 0, 0, 1.0f); in onDrawFrame()
|