Home
last modified time | relevance | path

Searched refs:rot (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java74 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/
DMatrix3f.java117 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 …]
DMatrix2f.java107 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()
DMatrix4f.java155 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/
DMatrix3f.java120 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 …]
DMatrix2f.java110 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()
DMatrix4f.java156 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/
DTwist-test.cpp38 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()
DPose-test.cpp39 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()
DPose.cpp36 Eigen::Vector3f rot = quaternionToRotationVector(mRotation); in toVector() local
37 return {mTranslation[0], mTranslation[1], mTranslation[2], rot[0], rot[1], rot[2]}; in toVector()
DQuaternionUtil-test.cpp31 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/window/
DStatusBarWindowController.java216 for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
217 lp.paramsForRotation[rot] = getBarLayoutParamsForRotation(rot);
315 for (int rot = Surface.ROTATION_0; rot <= Surface.ROTATION_270; rot++) {
316 int height = SystemBarUtils.getStatusBarHeightForRotation(mContext, rot);
317 mLpChanged.paramsForRotation[rot].height =
323 InsetsFrameProvider[] providers = mLpChanged.paramsForRotation[rot].providedInsets;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt643 private fun Rect.touchesRightEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in touchesRightEdge()
644 return when (rot) { in touchesRightEdge()
652 private fun Rect.touchesLeftEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in Rect()
653 return when (rot) { in Rect()
661 private fun Rect.logicalTop(@Rotation rot: Int): Int { in Rect()
662 return when (rot) { in Rect()
670 private fun Rect.logicalRight(@Rotation rot: Int): Int { in Rect()
671 return when (rot) { in Rect()
679 private fun Rect.logicalLeft(@Rotation rot: Int): Int { in Rect()
680 return when (rot) { in Rect()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt162 fun setNewRotation(rot: Int) { in <lambda>()
163 dlog("updateRotation: $rot") in <lambda>()
167 if (rot == nextViewState.rotation) { in <lambda>()
177 val newCorner = selectDesignatedCorner(rot, isRtl) in <lambda>()
179 val paddingTop = contentInsetsProvider.getStatusBarPaddingTop(rot) in <lambda>()
183 rotation = rot, in <lambda>()
278 var rot = activeRotationForCorner(tl, rtl) in <lambda>() variable
279 var contentInsets = state.contentRectForRotation(rot) in <lambda>()
291 rot = activeRotationForCorner(tr, rtl) in <lambda>()
292 contentInsets = state.contentRectForRotation(rot) in <lambda>()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMath.cpp55 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/
DrsMatrix4x4.h42 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()
DrsMatrix4x4.cpp200 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()
/frameworks/rs/script_api/
Drs_quaternion.spec103 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/
Drs_quaternion.c57 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/shared/biometrics/src/com/android/systemui/biometrics/
DUdfpsUtils.java229 int rot = udfpsOverlayParams.getRotation(); in getPortraitTouch() local
230 if (rot == Surface.ROTATION_90 || rot == Surface.ROTATION_270) { in getPortraitTouch()
233 RotationUtils.deltaRotation(rot, Surface.ROTATION_0), in getPortraitTouch()
/frameworks/rs/script_api/include/
Drs_quaternion.rsh123 * 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/libs/systemui/weathereffects/graphics/assets/shaders/
Dsimplex2d.agsl75 // rot is an angle in radian that you want to step for each dt.
76 float simplex2d_flow(vec2 p, float rot, float time) {
97 g0 += getVectorFromAngle(rot * time * hash1d(i));
98 g1 += getVectorFromAngle(rot * time * hash1d(i+walk));
99 g2 += getVectorFromAngle(rot * time * hash1d(i+1.));
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsControllerOverlay.kt496 val rot = overlayParams.rotation in <lambda>() constant
497 if (rot == Surface.ROTATION_90 || rot == Surface.ROTATION_270) { in <lambda>()
501 "Skip rotating UDFPS bounds " + Surface.rotationToString(rot) + in <lambda>()
507 Log.v(TAG, "Rotate UDFPS bounds " + Surface.rotationToString(rot)) in <lambda>()
512 rot in <lambda>()
519 rot in <lambda>()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DRotationCacheTest.java49 mCache = new RotationCache<>((o, rot) -> { in setUp()
51 return create(o, rot); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessor.kt175 val rot = overlayParams.rotation in rotateToNaturalOrientation() constant
176 if (SUPPORTED_ROTATIONS.contains(rot)) { in rotateToNaturalOrientation()
179 RotationUtils.deltaRotation(rot, Surface.ROTATION_0), in rotateToNaturalOrientation()

12