Home
last modified time | relevance | path

Searched refs:angle (Results 1 - 25 of 227) sorted by relevance

12345678910

/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Ddual_display_sensor_fold_state_manager_test.cpp90 float angle = 0.0f; in HWTEST_F() local
93 mgr.HandleAngleChange(angle, hall, foldScreenPolicy); in HWTEST_F()
94 ASSERT_TRUE(std::islessequal(angle, INWARD_FOLDED_THRESHOLD + ANGLE_BUFFER)); in HWTEST_F()
98 mgr.HandleAngleChange(angle, hall, foldScreenPolicy); in HWTEST_F()
99 ASSERT_TRUE(std::islessequal(angle, INWARD_FOLDED_THRESHOLD + ANGLE_BUFFER)); in HWTEST_F()
102 angle = 100.0f; in HWTEST_F()
103 mgr.HandleAngleChange(angle, hall, foldScreenPolicy); in HWTEST_F()
104 ASSERT_FALSE(std::islessequal(angle, INWARD_FOLDED_THRESHOLD + ANGLE_BUFFER)); in HWTEST_F()
108 mgr.HandleAngleChange(angle, hall, foldScreenPolicy); in HWTEST_F()
109 ASSERT_FALSE(std::islessequal(angle, INWARD_FOLDED_THRESHOL in HWTEST_F()
121 float angle = 0.0f; HWTEST_F() local
149 float angle = 200.0f; HWTEST_F() local
[all...]
H A Dsingle_display_sensor_pocket_fold_state_manager_test.cpp201 float angle = 0.0F; in HWTEST_F() local
207 result = mgr.TriggerTentExit(angle, hall); in HWTEST_F()
211 angle = 176.0F; in HWTEST_F()
212 result = mgr.TriggerTentExit(angle, hall); in HWTEST_F()
216 angle = 4.0F; in HWTEST_F()
217 result = mgr.TriggerTentExit(angle, hall); in HWTEST_F()
221 angle = 90.0F; in HWTEST_F()
222 result = mgr.TriggerTentExit(angle, hall); in HWTEST_F()
H A Dsensor_fold_state_manager_test.cpp69 float angle = 0.0f; in HWTEST_F() local
71 mgr.HandleSensorChange(nextState, angle, foldScreenPolicy); in HWTEST_F()
75 mgr.HandleSensorChange(nextState, angle, foldScreenPolicy); in HWTEST_F()
79 mgr.HandleSensorChange(nextState, angle, foldScreenPolicy); in HWTEST_F()
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/sensor_fold_state_manager/
H A Dsingle_display_sensor_pocket_fold_state_manager.cpp65 void SingleDisplaySensorPocketFoldStateManager::HandleAngleChange(float angle, int hall, in HandleAngleChange() argument
68 SetCameraFoldStrategy(angle); in HandleAngleChange()
70 HandleSensorChange(FoldStatus::FOLDED, angle, foldScreenPolicy); in HandleAngleChange()
71 SetCameraStatusChange(angle, hall); in HandleAngleChange()
74 SetCameraStatusChange(angle, hall); in HandleAngleChange()
76 return TentModeHandleSensorChange(angle, hall, foldScreenPolicy); in HandleAngleChange()
78 FoldStatus nextState = GetNextFoldState(angle, hall); in HandleAngleChange()
79 HandleSensorChange(nextState, angle, foldScreenPolicy); in HandleAngleChange()
82 void SingleDisplaySensorPocketFoldStateManager::HandleHallChange(float angle, int hall, in HandleHallChange() argument
85 SetCameraFoldStrategy(angle); in HandleHallChange()
99 UpdateSwitchScreenBoundaryForLargeFoldDevice(float angle, int hall) UpdateSwitchScreenBoundaryForLargeFoldDevice() argument
108 SetCameraFoldStrategy(float angle) SetCameraFoldStrategy() argument
134 SetCameraStatusChange(float angle, int hall) SetCameraStatusChange() argument
175 GetNextFoldState(float angle, int hall) GetNextFoldState() argument
264 TriggerTentExit(float angle, int hall) TriggerTentExit() argument
281 TentModeHandleSensorChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy) TentModeHandleSensorChange() argument
[all...]
H A Dsingle_display_sensor_fold_state_manager.cpp46 void SingleDisplaySensorFoldStateManager::HandleAngleChange(float angle, int hall, in HandleAngleChange() argument
49 FoldStatus nextState = GetNextFoldState(angle, hall); in HandleAngleChange()
50 HandleSensorChange(nextState, angle, foldScreenPolicy); in HandleAngleChange()
53 void SingleDisplaySensorFoldStateManager::HandleHallChange(float angle, int hall, in HandleHallChange() argument
56 FoldStatus nextState = GetNextFoldState(angle, hall); in HandleHallChange()
57 HandleSensorChange(nextState, angle, foldScreenPolicy); in HandleHallChange()
60 void SingleDisplaySensorFoldStateManager::UpdateSwitchScreenBoundaryForLargeFoldDevice(float angle, int hall) in UpdateSwitchScreenBoundaryForLargeFoldDevice() argument
64 } else if (angle >= LARGER_BOUNDARY_FOR_ALTA_THRESHOLD) { in UpdateSwitchScreenBoundaryForLargeFoldDevice()
70 FoldStatus SingleDisplaySensorFoldStateManager::GetNextFoldState(float angle, int hall) in GetNextFoldState() argument
72 UpdateSwitchScreenBoundaryForLargeFoldDevice(angle, hal in GetNextFoldState()
[all...]
H A Ddual_display_sensor_fold_state_manager.cpp76 void DualDisplaySensorFoldStateManager::HandleAngleChange(float angle, int hall, in HandleAngleChange() argument
80 if (std::islessequal(angle, INWARD_FOLDED_THRESHOLD) && hall == HALL_THRESHOLD) { in HandleAngleChange()
83 if (std::isless(angle, ANGLE_MIN_VAL)) { in HandleAngleChange()
87 angle = ANGLE_MIN_VAL; in HandleAngleChange()
89 FoldStatus nextState = GetNextFoldState(angle, hall); in HandleAngleChange()
90 HandleSensorChange(nextState, angle, foldScreenPolicy); in HandleAngleChange()
93 void DualDisplaySensorFoldStateManager::HandleHallChange(float angle, int hall, in HandleHallChange() argument
104 angle = INWARD_HALF_FOLDED_MIN_THRESHOLD + 1.0f; in HandleHallChange()
106 FoldStatus nextState = GetNextFoldState(angle, hall); in HandleHallChange()
107 HandleSensorChange(nextState, angle, foldScreenPolic in HandleHallChange()
110 GetNextFoldState(float angle, int hall) GetNextFoldState() argument
[all...]
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_math.cpp36 float Sin(float angle) in Sin() argument
39 float radian = angle / RADIAN_TO_ANGLE; in Sin()
42 int16_t degree = static_cast<int16_t>(MATH_ROUND(angle)); in Sin()
65 float Cos(float angle) in Cos() argument
68 return cos(angle / RADIAN_TO_ANGLE); in Cos()
70 Sin(QUARTER_IN_DEGREE - angle); in Cos()
106 uint16_t angle; in FastAtan2() local
110 angle = static_cast<uint16_t>(t * (1 + t2 * (ATAN2_P3 + t2 * (ATAN2_P5 + t2 * ATAN2_P7))) * RADIAN_TO_ANGLE); in FastAtan2()
114 angle = QUARTER_IN_DEGREE - in FastAtan2()
120 angle in FastAtan2()
140 float angle; FastAtan2F() local
[all...]
H A Dtransform.cpp124 void TransformMap::Rotate(int16_t angle, const Vector2<float>& pivot) in Rotate() argument
126 Rotate(angle, Vector3<float>(pivot.x_, pivot.y_, 0), Vector3<float>(pivot.x_, pivot.y_, 1.0f)); in Rotate()
129 void TransformMap::Rotate(int16_t angle, const Vector3<float>& rotatePivotStart, const Vector3<float>& rotatePivotEnd) in Rotate() argument
131 angle_ = angle; in Rotate()
339 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<int16_t>& out) in Rotate() argument
341 float sinma = Sin(angle); in Rotate()
342 float cosma = Sin(angle + 90); // 90: cos in Rotate()
354 void Rotate(const Line& origLine, int16_t angle, const Vector2<int16_t>& pivot, Line& out) in Rotate() argument
359 Rotate(pt1, angle, pivot, out[1]); // 1: the first point of line in Rotate()
360 Rotate(pt2, angle, pivo in Rotate()
363 Rotate(const Rect& origRect, int16_t angle, const Vector2<int16_t>& pivot, Polygon& out) Rotate() argument
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dtrans_affine.h89 * @param angle Rotate angle
93 const TransAffine& Rotate(float angle);
190 static TransAffine TransAffineRotation(float angle) in TransAffineRotation() argument
192 return TransAffine(std::cos(angle), std::sin(angle), -std::sin(angle), std::cos(angle), 0.0f, 0.0f); in TransAffineRotation()
248 inline const TransAffine& TransAffine::Rotate(float angle) in Rotate() argument
250 float scaleXTemp = data_[0] * std::cos(angle) in Rotate()
[all...]
H A Dtransform.h196 * @param angle Indicates the angle to rotate.
201 void Rotate(int16_t angle, const Vector2<float>& pivot);
203 void Rotate(int16_t angle, const Vector3<float>& rotatePivotStart, const Vector3<float>& rotatePivotEnd);
279 * @brief Rotates a point around the pivot by a certain angle.
281 * @param angle Indicates the angle to rotate.
287 void Rotate(const Vector2<int16_t>& point, int16_t angle, const Vector2<int16_t>& pivot, Vector2<int16_t>& out);
290 * @brief Rotates a line around the pivot by a certain angle.
292 * @param angle Indicate
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Darc.h56 void SetStartAngle(double angle) in SetStartAngle() argument
58 startAngle_ = angle; in SetStartAngle()
66 void SetEndAngle(double angle) in SetEndAngle() argument
68 endAngle_ = angle; in SetEndAngle()
76 void Rotate(const Point& point, double angle) in Rotate() argument
78 centerPoint_.Rotate(point, angle); in Rotate()
79 startAngle_ += angle; in Rotate()
80 endAngle_ += angle; in Rotate()
89 void GetPointByAngle(double angle, Point& out) const in GetPointByAngle() argument
93 out.Rotate(centerPoint_, angle); in GetPointByAngle()
[all...]
H A Dpoint.h87 void Rotate(const Point& center, double angle) in Rotate() argument
89 double x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate()
90 double y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate()
/foundation/window/window_manager/window_scene/screen_session_manager/include/fold_screen_controller/sensor_fold_state_manager/
H A Dsingle_display_sensor_pocket_fold_state_manager.h59 void HandleAngleChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy) override;
60 void HandleHallChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy) override;
65 FoldStatus GetNextFoldState(float angle, int hall);
67 void SetCameraFoldStrategy(float angle);
68 void SetCameraStatusChange(float angle, int hall);
74 bool TriggerTentExit(float angle, int hall);
75 void TentModeHandleSensorChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy);
H A Dsingle_display_sensor_fold_state_manager.h30 void HandleAngleChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy) override;
31 void HandleHallChange(float angle, int hall, sptr<FoldScreenPolicy> foldScreenPolicy) override;
35 FoldStatus GetNextFoldState(float angle, int hall);
/foundation/arkui/ace_engine/frameworks/core/components/transform/
H A Dtransform_component.cpp97 void TransformComponent::Rotate(float dx, float dy, float dz, float angle, const AnimationOption& animationOption) in Rotate() argument
101 operation.rotateOperation_ = RotateOperation(dx, dy, dz, angle); in Rotate()
105 void TransformComponent::RotateX(float angle, const AnimationOption& animationOption) in RotateX() argument
107 Rotate(1.0f, 0.0f, 0.0f, angle, animationOption); in RotateX()
110 void TransformComponent::RotateY(float angle, const AnimationOption& animationOption) in RotateY() argument
112 Rotate(0.0f, 1.0f, 0.0f, angle, animationOption); in RotateY()
115 void TransformComponent::RotateZ(float angle, const AnimationOption& animationOption) in RotateZ() argument
117 Rotate(0.0f, 0.0f, 1.0f, angle, animationOption); in RotateZ()
129 void TransformComponent::SkewX(float angle, const AnimationOption& animationOption) in SkewX() argument
131 Skew(angle, 0. in SkewX()
134 SkewY(float angle, const AnimationOption& animationOption) SkewY() argument
171 SetRotateTransition(TransitionType type, double x, double y, double z, double angle) SetRotateTransition() argument
[all...]
H A Dtransform_component.h68 void Rotate(float dx, float dy, float dz, float angle, const AnimationOption& animationOption = AnimationOption());
69 void RotateX(float angle, const AnimationOption& animationOption = AnimationOption());
70 void RotateY(float angle, const AnimationOption& animationOption = AnimationOption());
71 void RotateZ(float angle, const AnimationOption& animationOption = AnimationOption());
74 void SkewX(float angle, const AnimationOption& = AnimationOption());
75 void SkewY(float angle, const AnimationOption& = AnimationOption());
168 void SetRotateTransition(TransitionType type, double x, double y, double z, double angle);
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp178 float angle = directFlag ? (arcTextInfo.startAngle + changeAngle) : (arcTextInfo.startAngle - changeAngle); in DrawArcText() local
195 posX, posY, rotateAngle, angle, in DrawArcText()
203 arcTextInfo.endAngle, angle, arcTextInfo.radius, compatibilityMode, in DrawArcText()
220 float& angle, in CalculateAngle()
227 angle += TypedText::GetAngleForArcLen(static_cast<float>(letterWidth), letterHeight, arcTextInfo.radius, in CalculateAngle()
237 rotateAngle = (orientation == TextOrientation::INSIDE) ? angle : (angle - SEMICIRCLE_IN_DEGREE); in CalculateAngle()
242 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
243 angle += incrementAngle; in CalculateAngle()
251 rotateAngle = xorFlag ? (angle in CalculateAngle()
210 CalculateAngle(uint16_t letterWidth, uint16_t letterHeight, int16_t letterSpace, const ArcTextInfo arcTextInfo, bool xorFlag, uint32_t index, TextOrientation orientation, float& posX, float& posY, float& rotateAngle, float& angle, const Point& arcCenter, bool compatibilityMode) CalculateAngle() argument
314 CalculatedClipAngle(const ArcLetterInfo& letterInfo, float& angle) CalculatedClipAngle() argument
443 float angle = 0.0f; CalculatedTransformDataInfo() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/
H A Drotation_gesture.cpp25 RotationGesture::RotationGesture(int32_t fingers, double angle) : Gesture(fingers) in RotationGesture() argument
27 if (angle > MAX_ANGLE || angle <= 0) { in RotationGesture()
30 angle_ = angle; in RotationGesture()
/foundation/arkui/ace_engine/frameworks/core/components/arc/
H A Drender_arc.cpp155 double angle = atan2(position.GetY() - arcRadiusY_, position.GetX() - arcRadiusX_); in GetPositionAngle() local
156 if (angle < startAngle_ - correctOffset) { in GetPositionAngle()
157 angle += M_PI * ARC_RADIUS_TO_DIAMETER; in GetPositionAngle()
159 return angle; in GetPositionAngle()
166 double angle = GetPositionAngle(Offset(point.GetX(), point.GetY()), outArcAngle); in IsInRegion() local
170 if (angle < startAngle_ - outArcAngle || angle > startAngle_ + sweepAngle_ + outArcAngle) { in IsInRegion()
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dpoint_t.h51 void Rotate(const PointT& center, T angle) in Rotate() argument
53 T x = (x_ - center.GetX()) * std::cos(angle) - (y_ - center.GetY()) * std::sin(angle) + center.GetX(); in Rotate()
54 T y = (x_ - center.GetX()) * std::sin(angle) + (y_ - center.GetY()) * std::cos(angle) + center.GetY(); in Rotate()
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dcube_demo.js110 let angle = 0;
152 angle = anim(angle);
155 mX.setRotate(angle, 1, 0, 0);
156 mY.setRotate(angle, 0, 1, 0);
157 mZ.setRotate(angle, 0, 0, 1);
172 let anim = (angle) => {
176 let newAngle = angle + (20 * offset) / 1000.0;
H A Dpanorama_demo.js45 let angle = 0;
93 function anim(angle) {
97 let newAngle = angle + (1 * offset) / 1000.0;
102 angle = anim(angle);
103 modelMatrix.setRotate(angle, 0, 1, 0);
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dcube2_demo.js110 let angle = 0;
152 angle = anim(angle);
155 mX.setRotate(angle, 1, 0, 0);
156 mY.setRotate(angle, 0, 1, 0);
157 mZ.setRotate(angle, 0, 0, 1);
172 let anim = (angle) => {
176 let newAngle = angle + (20 * offset) / 1000.0;
H A Dpanorama2_demo.js48 let angle = 0;
96 function anim(angle) {
100 let newAngle = angle + (1 * offset) / 1000.0;
105 angle = anim(angle);
106 modelMatrix.setRotate(angle, 0, 1, 0);
/foundation/barrierfree/accessibility/services/aams/include/
H A Daccessibility_circle_drawing_manager.h42 void DrawPointer(int32_t physicalX, int32_t physicalY, int32_t angle, uint64_t screenId, int32_t startAngle);
44 void DrawingProgress(int32_t physicalX, int32_t physicalY, int32_t angle);
50 void DrawingProgressByOpenSource(int32_t physicalX, int32_t physicalY, int32_t angle);
52 void DrawingProgressByRosenDrawing(int32_t physicalX, int32_t physicalY, int32_t angle);

Completed in 13 milliseconds

12345678910