Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java52 int rot = context.getDisplay().getRotation(); in getRotation() local
53 if (rot == Surface.ROTATION_90) { in getRotation()
55 } else if (rot == Surface.ROTATION_270) { in getRotation()
68 int rot = context.getDisplay().getRotation(); in getExactRotation() local
69 if (rot == Surface.ROTATION_90) { in getExactRotation()
71 } else if (rot == Surface.ROTATION_270) { in getExactRotation()
73 } else if (rot == Surface.ROTATION_180) { in getExactRotation()
81 public static String toString(@Rotation int rot) { in toString() argument
82 switch (rot) { in toString()
92 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt143 @Rotation rot: Int, in <lambda>()
146 val insets = getCalculatedInsetsForRotation(rot, rotatedResources) in <lambda>()
147 insetsByCorner[rot] = insets in <lambda>()
380 private fun Rect.touchesRightEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in touchesRightEdge()
381 return when (rot) { in touchesRightEdge()
389 private fun Rect.touchesLeftEdge(@Rotation rot: Int, width: Int, height: Int): Boolean { in Rect()
390 return when (rot) { in Rect()
398 private fun Rect.logicalTop(@Rotation rot: Int): Int { in Rect()
399 return when (rot) { in Rect()
407 private fun Rect.logicalRight(@Rotation rot: Int): Int { in Rect()
[all …]
DPanelViewController.java324 int rot = mStatusBar.getRotation(); in startOpening() local
327 (int) (event.getX() / width * 100), (int) (event.getY() / height * 100), rot); in startOpening()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/events/
DPrivacyDotViewController.kt142 fun setNewRotation(rot: Int) { in <lambda>()
143 dlog("updateRotation: $rot") in <lambda>()
147 if (rot == nextViewState.rotation) { in <lambda>()
157 val newCorner = selectDesignatedCorner(rot, isRtl) in <lambda>()
160 val h = when (rot) { in <lambda>()
167 rotation = rot, in <lambda>()
207 private fun updateHeights(rot: Int) { in <lambda>()
208 val height = when (rot) { in <lambda>()
266 var rot = activeRotationForCorner(tl, rtl) in <lambda>() variable
267 var 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()
DrsRuntime.h195 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/
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
Drs_matrix.spec344 arg: float rot, "How much rotation to do, in degrees."
514 arg: float rot, "How much rotation to do, in degrees."
/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/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);
Drs_matrix.rsh376 * rot: How much rotation to do, in degrees.
382 rsMatrixLoadRotate(rs_matrix4x4* m, float rot, float x, float y, float z);
525 * rot: How much rotation to do, in degrees.
531 rsMatrixRotate(rs_matrix4x4* m, float rot, float x, float y, float z);
/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/
DDessertCaseView.java422 final float rot = (float)irand(0, 4) * 90f;
437 ObjectAnimator.ofFloat(v, View.ROTATION, rot),
453 v.setRotation(rot);
/frameworks/native/services/surfaceflinger/tests/
DLayerRenderTypeTransaction_test.cpp802 const float rot = M_SQRT1_2; // 45 degrees in TEST_P() local
804 Transaction().setMatrix(layer, rot, rot, -rot, rot).setPosition(layer, trans, 0).apply(); in TEST_P()