/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | RotationUtils.java | 74 int rot = context.getDisplay().getRotation(); in getRotation() local 75 if (rot == Surface.ROTATION_90) { in getRotation() 77 } else if (rot == Surface.ROTATION_270) { in getRotation() 90 int rot = context.getDisplay().getRotation(); in getExactRotation() local 91 if (rot == Surface.ROTATION_90) { in getExactRotation() 93 } else if (rot == Surface.ROTATION_270) { in getExactRotation() 95 } else if (rot == Surface.ROTATION_180) { in getExactRotation() 103 public static String toString(@Rotation int rot) { in toString() argument 104 switch (rot) { in toString() 114 return "Unknown (" + rot + ")"; in toString() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Matrix3f.java | 117 public void loadRotate(float rot, float x, float y, float z) { in loadRotate() argument 119 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 120 c = (float)java.lang.Math.cos(rot); in loadRotate() 121 s = (float)java.lang.Math.sin(rot); in loadRotate() 153 public void loadRotate(float rot) { in loadRotate() argument 156 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 157 c = (float)java.lang.Math.cos(rot); in loadRotate() 158 s = (float)java.lang.Math.sin(rot); in loadRotate() 248 public void rotate(float rot, float x, float y, float z) { in rotate() argument 250 tmp.loadRotate(rot, x, y, z); in rotate() [all …]
|
D | Matrix2f.java | 107 public void loadRotate(float rot) { in loadRotate() argument 109 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 110 c = (float)java.lang.Math.cos(rot); in loadRotate() 111 s = (float)java.lang.Math.sin(rot); in loadRotate() 167 public void rotate(float rot) { in rotate() argument 169 tmp.loadRotate(rot); in rotate()
|
D | Matrix4f.java | 155 public void loadRotate(float rot, float x, float y, float z) { in loadRotate() argument 164 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 165 c = (float)java.lang.Math.cos(rot); in loadRotate() 166 s = (float)java.lang.Math.sin(rot); in loadRotate() 374 public void rotate(float rot, float x, float y, float z) { in rotate() argument 376 tmp.loadRotate(rot, x, y, z); in rotate()
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | Matrix3f.java | 120 public void loadRotate(float rot, float x, float y, float z) { in loadRotate() argument 122 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 123 c = (float)java.lang.Math.cos(rot); in loadRotate() 124 s = (float)java.lang.Math.sin(rot); in loadRotate() 156 public void loadRotate(float rot) { in loadRotate() argument 159 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 160 c = (float)java.lang.Math.cos(rot); in loadRotate() 161 s = (float)java.lang.Math.sin(rot); in loadRotate() 251 public void rotate(float rot, float x, float y, float z) { in rotate() argument 253 tmp.loadRotate(rot, x, y, z); in rotate() [all …]
|
D | Matrix2f.java | 110 public void loadRotate(float rot) { in loadRotate() argument 112 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 113 c = (float)java.lang.Math.cos(rot); in loadRotate() 114 s = (float)java.lang.Math.sin(rot); in loadRotate() 170 public void rotate(float rot) { in rotate() argument 172 tmp.loadRotate(rot); in rotate()
|
D | Matrix4f.java | 156 public void loadRotate(float rot, float x, float y, float z) { in loadRotate() argument 165 rot *= (float)(java.lang.Math.PI / 180.0f); in loadRotate() 166 c = (float)java.lang.Math.cos(rot); in loadRotate() 167 s = (float)java.lang.Math.sin(rot); in loadRotate() 375 public void rotate(float rot, float x, float y, float z) { in rotate() argument 377 tmp.loadRotate(rot, x, y, z); in rotate()
|
/frameworks/av/media/libheadtracking/ |
D | Twist-test.cpp | 38 Vector3f rot{1, 2, 3}; in TEST() local 40 Twist3f twist(trans, rot); in TEST() 42 EXPECT_EQ(twist.rotationalVelocity(), rot); in TEST() 50 Vector3f rot{0, 0, M_PI_4}; in TEST() local 51 Twist3f twist(trans, rot); in TEST()
|
D | Pose.cpp | 36 Eigen::Vector3f rot = quaternionToRotationVector(mRotation); in toVector() local 37 return {mTranslation[0], mTranslation[1], mTranslation[2], rot[0], rot[1], rot[2]}; in toVector()
|
D | Pose-test.cpp | 39 Quaternionf rot = Quaternionf::UnitRandom(); in TEST() local 40 Pose3f pose(rot); in TEST() 42 EXPECT_EQ(pose.rotation(), rot); in TEST() 53 Quaternionf rot = Quaternionf::UnitRandom(); in TEST() local 55 Pose3f pose(trans, rot); in TEST() 57 EXPECT_EQ(pose.rotation(), rot); in TEST()
|
D | QuaternionUtil-test.cpp | 31 Vector3f rot = {0, 0, M_PI_2}; in TEST() local 32 Quaternionf quat = rotationVectorToQuaternion(rot); in TEST() 40 Vector3f rot = quaternionToRotationVector(quat); in TEST() local 41 ASSERT_EQ(rot, Vector3f(0, 0, M_PI_2)); in TEST()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProvider.kt | 493 private fun Rect.touchesRightEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in touchesRightEdge() 494 return when (rot) { in touchesRightEdge() 502 private fun Rect.touchesLeftEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in Rect() 503 return when (rot) { in Rect() 511 private fun Rect.logicalTop(@Rotation rot: Int): Int { in Rect() 512 return when (rot) { in Rect() 520 private fun Rect.logicalRight(@Rotation rot: Int): Int { in Rect() 521 return when (rot) { in Rect() 529 private fun Rect.logicalLeft(@Rotation rot: Int): Int { in Rect() 530 return when (rot) { in Rect() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/ |
D | StatusBarWindowController.java | 205 for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) { 206 lp.paramsForRotation[rot] = getBarLayoutParamsForRotation(rot); 289 for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) { 290 mLpChanged.paramsForRotation[rot].height = 292 SystemBarUtils.getStatusBarHeightForRotation(mContext, rot);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/ |
D | PrivacyDotViewController.kt | 150 fun setNewRotation(rot: Int) { in <lambda>() 151 dlog("updateRotation: $rot") in <lambda>() 155 if (rot == nextViewState.rotation) { in <lambda>() 165 val newCorner = selectDesignatedCorner(rot, isRtl) in <lambda>() 167 val paddingTop = contentInsetsProvider.getStatusBarPaddingTop(rot) in <lambda>() 171 rotation = rot, in <lambda>() 266 var rot = activeRotationForCorner(tl, rtl) in <lambda>() variable 267 var contentInsets = state.contentRectForRotation(rot) in <lambda>() 278 rot = activeRotationForCorner(tr, rtl) in <lambda>() 279 contentInsets = state.contentRectForRotation(rot) in <lambda>() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuRuntimeMath.cpp | 55 static void SC_MatrixLoadRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixLoadRotate() argument 56 m->loadRotate(rot, x, y, z); in SC_MatrixLoadRotate() 64 static void SC_MatrixRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixRotate() argument 65 m->rotate(rot, x, y, z); in SC_MatrixRotate() 154 float rot, float x, float y, float z) { in EXPORT_F32_FN_F32() 155 SC_MatrixLoadRotate((Matrix4x4 *) m, rot, x, y, z); in EXPORT_F32_FN_F32() 165 void __attribute__((overloadable)) rsMatrixRotate(rs_matrix4x4 *m, float rot, in rsMatrixRotate() argument 167 SC_MatrixRotate((Matrix4x4 *) m, rot, x, y, z); in rsMatrixRotate()
|
/frameworks/rs/ |
D | rsMatrix4x4.h | 42 void loadRotate(float rot, float x, float y, float z); 64 void rotate(float rot, float x, float y, float z) { in rotate() 66 tmp.loadRotate(rot, x, y, z); in rotate()
|
D | rsMatrix4x4.cpp | 200 void Matrix4x4::loadRotate(float rot, float x, float y, float z) { in loadRotate() argument 209 rot *= float(M_PI / 180.0f); in loadRotate() 210 c = cosf(rot); in loadRotate() 211 s = sinf(rot); in loadRotate()
|
D | rsRuntime.h | 195 void rsrMatrixLoadRotate(rs_matrix4x4 *m, float rot, float x, float y, float z); 207 void rsrMatrixRotate(rs_matrix4x4 *m, float rot, float x, float y, float z);
|
/frameworks/rs/script_api/ |
D | rs_quaternion.spec | 103 arg: float rot, "Angle to rotate by, in radians." 111 rot *= (float)(M_PI / 180.0f) * 0.5f; 112 float c = cos(rot); 113 float s = sin(rot); 161 arg: float rot, "Angle to rotate by." 322 arg: float rot 355 arg: float rot
|
/frameworks/rs/driver/runtime/ |
D | rs_quaternion.c | 57 rsQuaternionLoadRotateUnit(rs_quaternion* q, float rot, float x, float y, float z) { in rsQuaternionLoadRotateUnit() argument 58 rot *= (float)(M_PI / 180.0f) * 0.5f; in rsQuaternionLoadRotateUnit() 59 float c = cos(rot); in rsQuaternionLoadRotateUnit() 60 float s = sin(rot); in rsQuaternionLoadRotateUnit() 85 rsQuaternionLoadRotate(rs_quaternion* q, float rot, float x, float y, float z) { in rsQuaternionLoadRotate() argument 93 rsQuaternionLoadRotateUnit(q, rot, x, y, z); in rsQuaternionLoadRotate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsControllerOverlay.kt | 442 val rot = overlayParams.rotation in <lambda>() constant 443 if (rot == Surface.ROTATION_90 || rot == Surface.ROTATION_270) { in <lambda>() 446 TAG, "Skip rotating UDFPS bounds " + Surface.rotationToString(rot) + in <lambda>() 452 Log.v(TAG, "Rotate UDFPS bounds " + Surface.rotationToString(rot)) in <lambda>() 457 rot in <lambda>() 465 rot in <lambda>()
|
/frameworks/rs/script_api/include/ |
D | rs_quaternion.rsh | 123 * rot: Angle to rotate by, in radians. 130 rsQuaternionLoadRotateUnit(rs_quaternion* q, float rot, float x, float y, float z) { 131 rot *= (float)(M_PI / 180.0f) * 0.5f; 132 float c = cos(rot); 133 float s = sin(rot); 183 * rot: Angle to rotate by. 190 rsQuaternionLoadRotate(rs_quaternion* q, float rot, float x, float y, float z) { 198 rsQuaternionLoadRotateUnit(q, rot, x, y, z); 336 rsQuaternionLoadRotateUnit(rs_quaternion* q, float rot, float x, float y, float z); 351 rsQuaternionLoadRotate(rs_quaternion* q, float rot, float x, float y, float z);
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | RotationCacheTest.java | 49 mCache = new RotationCache<>((o, rot) -> { in setUp() 51 return create(o, rot); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/ |
D | SinglePointerTouchProcessor.kt | 165 val rot = overlayParams.rotation in rotateToNaturalOrientation() constant 166 if (SUPPORTED_ROTATIONS.contains(rot)) { in rotateToNaturalOrientation() 169 RotationUtils.deltaRotation(rot, Surface.ROTATION_0), in rotateToNaturalOrientation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 422 final float rot = (float)irand(0, 4) * 90f; 437 ObjectAnimator.ofFloat(v, View.ROTATION, rot), 453 v.setRotation(rot);
|