/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | DiagonalClassifier.java | 60 float angle = getAngle(); in isFalseTouch() local 62 if (angle == Float.MAX_VALUE) { // Unknown angle in isFalseTouch() 78 return angleBetween(angle, minAngle, maxAngle) in isFalseTouch() 79 || angleBetween(angle, minAngle + NINETY_DEG, maxAngle + NINETY_DEG) in isFalseTouch() 80 || angleBetween(angle, minAngle - NINETY_DEG, maxAngle - NINETY_DEG) in isFalseTouch() 81 || angleBetween(angle, minAngle + ONE_HUNDRED_EIGHTY_DEG, in isFalseTouch() 85 private boolean angleBetween(float angle, float min, float max) { in angleBetween() argument 91 return angle >= min || angle <= max; in angleBetween() 94 return angle >= min && angle <= max; in angleBetween() 97 private float normalizeAngle(float angle) { in normalizeAngle() argument [all …]
|
D | ZigZagClassifier.java | 158 double angle = Math.PI / 2 - getAtan2LastPoint(); in rotateVertical() local 159 logDebug("Rotating to vertical by: " + angle); in rotateVertical() 160 return rotateMotionEvents(getRecentMotionEvents(), -angle); in rotateVertical() 165 double angle = getAtan2LastPoint(); in rotateHorizontal() local 166 logDebug("Rotating to horizontal by: " + angle); in rotateHorizontal() 167 return rotateMotionEvents(getRecentMotionEvents(), angle); in rotateHorizontal() 170 private List<Point> rotateMotionEvents(List<MotionEvent> motionEvents, double angle) { in rotateMotionEvents() argument 172 double cosAngle = Math.cos(angle); in rotateMotionEvents() 173 double sinAngle = Math.sin(angle); in rotateMotionEvents()
|
/frameworks/native/opengl/include/EGL/ |
D | Platform.h | 36 namespace angle 151 using AddTraceEventFunc = angle::TraceEventHandle (*)(PlatformMethods *platform, 162 inline angle::TraceEventHandle DefaultAddTraceEvent(PlatformMethods *platform, in DefaultAddTraceEvent() 181 angle::TraceEventHandle eventHandle); 185 angle::TraceEventHandle eventHandle) in DefaultUpdateTraceEventDuration() 231 angle::WorkaroundsD3D *workaroundsD3D); 233 angle::WorkaroundsD3D *workaroundsD3D) in DefaultOverrideWorkaroundsD3D() 238 angle::FeaturesVk *workaroundsVulkan); 240 angle::FeaturesVk *workaroundsVulkan) in DefaultOverrideFeaturesVk() 313 ANGLE_PLATFORM_EXPORT bool ANGLE_APIENTRY ANGLEGetDisplayPlatform(angle::EGLDisplayType display, [all …]
|
/frameworks/base/core/java/android/util/ |
D | FloatMath.java | 69 public static float sin(float angle) { in sin() argument 70 return (float) Math.sin(angle); in sin() 80 public static float cos(float angle) { in cos() argument 81 return (float) Math.cos(angle); in cos()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | AnglesClassifier.java | 136 float angle = mLastThreePoints.get(1).getAngle(mLastThreePoints.get(0), in addPoint() local 140 if (angle < Math.PI - ANGLE_DEVIATION) { in addPoint() 142 } else if (angle <= Math.PI + ANGLE_DEVIATION) { in addPoint() 148 float difference = angle - mPreviousAngle; in addPoint() 153 if (mBiggestAngle < angle) { in addPoint() 154 mBiggestAngle = angle; in addPoint() 169 mPreviousAngle = angle; in addPoint()
|
D | Point.java | 77 float angle = (float) Math.acos(cos); in getAngle() local 79 angle = 2.0f * (float) Math.PI - angle; in getAngle() 81 return angle; in getAngle()
|
D | SpeedAnglesClassifier.java | 126 float angle = mLastThreePoints.get(1).getAngle(mLastThreePoints.get(0), in addPoint() local 130 if (angle >= (float) Math.PI - ANGLE_DEVIATION) { in addPoint() 134 float difference = angle - mPreviousAngle; in addPoint() 138 mPreviousAngle = angle; in addPoint()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | SweepGradient_Delegate.java | 180 float angle; in getRaster() local 182 angle = (float) (dy < 0 ? 3 * Math.PI / 2 : Math.PI / 2); in getRaster() 184 angle = (float) (dx < 0 ? Math.PI : 0); in getRaster() 186 angle = (float) Math.atan(dy / dx); in getRaster() 189 angle += Math.PI * 2; in getRaster() 192 angle += Math.PI; in getRaster() 197 data[index++] = getGradientColor((float) (angle / (2 * Math.PI))); in getRaster()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | CameraDeviceInfo.java | 198 protected static boolean orientationIsValid(int angle) { in orientationIsValid() argument 199 if (angle % 90 != 0) { in orientationIsValid() 203 if (angle < 0 || angle > 270) { in orientationIsValid()
|
/frameworks/native/opengl/libagl/ |
D | fp.cpp | 79 void sincosf(GLfloat angle, GLfloat* s, GLfloat* c) { in sincosf() argument 80 *s = sinef(angle); in sincosf() 81 *c = cosinef(angle); in sincosf()
|
/frameworks/base/core/java/android/transition/ |
D | PatternPathMotion.java | 123 double angle = Math.atan2(dy, dx); in setPatternPath() local 124 mTempMatrix.postRotate((float) Math.toDegrees(-angle)); in setPatternPath() 134 double angle = Math.atan2(dy, dx); in getPath() local 137 mTempMatrix.postRotate((float) Math.toDegrees(angle)); in getPath()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | CornerHandleView.java | 76 float angle = getAngle(); in updatePath() local 77 float startAngle = 180 + ((90 - angle) / 2); in updatePath() 83 if (angle >= 90f) { in updatePath() 94 mPath.arcTo(circle, startAngle, angle); in updatePath() 98 mPath.arcTo(circle, startAngle, angle); in updatePath()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureUtils.java | 451 final double angle = Math.atan(tan); in minimumCosineDistance() local 452 if (numOrientations > 2 && Math.abs(angle) >= Math.PI / numOrientations) { in minimumCosineDistance() 455 final double cosine = Math.cos(angle); in minimumCosineDistance() 505 float angle; in computeOrientedBoundingBox() local 507 angle = (float) -Math.PI/2; in computeOrientedBoundingBox() 509 angle = (float) Math.atan2(targetVector[1], targetVector[0]); in computeOrientedBoundingBox() 510 rotate(points, -angle); in computeOrientedBoundingBox() 534 …return new OrientedBoundingBox((float) (angle * 180 / Math.PI), centroid[0], centroid[1], maxx - m… in computeOrientedBoundingBox() 563 static float[] rotate(float[] points, float angle) { in rotate() argument 564 float cos = (float) Math.cos(angle); in rotate() [all …]
|
D | OrientedBoundingBox.java | 36 OrientedBoundingBox(float angle, float cx, float cy, float w, float h) { in OrientedBoundingBox() argument 37 orientation = angle; in OrientedBoundingBox()
|
/frameworks/rs/driver/runtime/ |
D | rs_quaternion.c | 143 float angle = rsQuaternionDot(q0, q1); in rsQuaternionSlerp() local 144 if (angle < 0) { in rsQuaternionSlerp() 146 angle *= -1.0f; in rsQuaternionSlerp() 150 if (angle + 1.0f > 0.05f) { in rsQuaternionSlerp() 151 if (1.0f - angle >= 0.05f) { in rsQuaternionSlerp() 152 float theta = acos(angle); in rsQuaternionSlerp()
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Quaternion.java | 57 double angle = Math.acos(dot(vec1, vec2)); in set() local 58 set(angle, axis); in set() 73 public void set(double angle, double[] axis) { in set() argument 74 x[0] = Math.cos(angle / 2); in set() 75 double sin = Math.sin(angle / 2); in set()
|
D | bugdroid.rs | 43 float angle = fabs(2 * fract(atan2pi(vec.z, vec.y) * 5) - 1); 45 * sigmoid(pillDistance(p1, p2, img) - rad * (1 + angle / 2))); 63 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 6) - 1); 65 * sigmoid(cylinderDistance(p1, p2, img) - rad * (1 + angle / 5))); 106 float angle = fabs(2 * fract(atan2pi(vec.y, vec.x) * 20) - 1); 109 distanceDisk(center, circleRadius * (1 + angle / 10),
|
/frameworks/base/tools/orientationplot/ |
D | README.txt | 37 filtered accelerometer data, measured tilt and orientation angle, confidence 63 the measured orientation angle is now within the gap between the new 67 angle (say, 45 degrees) is between the current orientation's ideal angle 68 (say, 0 degrees) and an adjacent orientation's ideal angle (say, 90 degrees). 76 4. The orientation angle is not measured when the tilt is too close to 90 or -90
|
/frameworks/opt/gamesdk/third_party/cube/app/src/main/cpp/ |
D | linmath.h | 183 static inline void mat4x4_rotate(mat4x4 R, mat4x4 M, float x, float y, float z, float angle) { in mat4x4_rotate() argument 184 float s = sinf(angle); in mat4x4_rotate() 185 float c = cosf(angle); in mat4x4_rotate() 211 static inline void mat4x4_rotate_X(mat4x4 Q, mat4x4 M, float angle) { in mat4x4_rotate_X() argument 212 float s = sinf(angle); in mat4x4_rotate_X() 213 float c = cosf(angle); in mat4x4_rotate_X() 217 static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) { in mat4x4_rotate_Y() argument 218 float s = sinf(angle); in mat4x4_rotate_Y() 219 float c = cosf(angle); in mat4x4_rotate_Y() 223 static inline void mat4x4_rotate_Z(mat4x4 Q, mat4x4 M, float angle) { in mat4x4_rotate_Z() argument [all …]
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowVertexCalculator.java | 42 double angle = 2 * i * Math.PI / points; in calculateLight() local 43 ret[i * 3] = (float) Math.sin(angle) * radius + x; in calculateLight() 44 ret[i * 3 + 1] = (float) Math.cos(angle) * radius + y; in calculateLight()
|
/frameworks/native/libs/input/tests/ |
D | InputEvent_test.cpp | 534 static void setRotationMatrix(float matrix[9], float angle) { in setRotationMatrix() argument 535 float sin = sinf(angle); in setRotationMatrix() 536 float cos = cosf(angle); in setRotationMatrix() 564 float angle = float(i * ARC * PI_180); in TEST_F() local 568 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3); in TEST_F() 569 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2); in TEST_F() 570 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle); in TEST_F() 599 float angle = float((i * ARC + ROTATION) * PI_180); in TEST_F() local 600 ASSERT_NEAR(sinf(angle) * RADIUS, event.getX(i), 0.001); in TEST_F() 601 ASSERT_NEAR(-cosf(angle) * RADIUS, event.getY(i), 0.001); in TEST_F() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/ |
D | Quad.java | 112 public static Quad fromRotatedRect(RectF rect, float angle) { in fromRotatedRect() argument 113 return Quad.fromRect(rect).rotated(angle); in fromRotatedRect() 183 public Quad rotated(float angle) { in rotated() argument 185 float cosa = (float) Math.cos(angle); in rotated() 186 float sina = (float) Math.sin(angle); in rotated()
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 116 void loadRotate(float angle); 117 void loadRotate(float angle, float x, float y, float z); 178 void rotate(float angle, float x, float y, float z) { in rotate() argument 180 u.loadRotate(angle, x, y, z); in rotate()
|
D | Matrix.cpp | 321 void Matrix4::loadRotate(float angle) { in loadRotate() argument 322 angle *= float(M_PI / 180.0f); in loadRotate() 323 float c = cosf(angle); in loadRotate() 324 float s = sinf(angle); in loadRotate() 337 void Matrix4::loadRotate(float angle, float x, float y, float z) { in loadRotate() argument 346 angle *= float(M_PI / 180.0f); in loadRotate() 347 float c = cosf(angle); in loadRotate() 348 float s = sinf(angle); in loadRotate()
|
/frameworks/av/include/private/media/ |
D | VideoFrame.h | 41 uint32_t angle, uint32_t bpp, bool hasData, size_t iccSize): in VideoFrame() argument 45 mRotationAngle(angle), mBytesPerPixel(bpp), mRowBytes(bpp * width), in VideoFrame()
|