Home
last modified time | relevance | path

Searched refs:rotation (Results 1 - 25 of 68) sorted by relevance

123

/base/web/webview/ohos_adapter/camera_adapter/src/
H A Dcamera_rotation_info_adapter_impl.cpp35 void CameraRotationInfoAdapterImpl::SetRotation(int32_t rotation) in SetRotation() argument
37 rotation_ = rotation; in SetRotation()
H A Dcamera_rotation_info_adapter_mock.cpp35 void CameraRotationInfoAdapterImpl::SetRotation(int32_t rotation) in SetRotation() argument
/base/sensors/sensor/frameworks/cj/src/
H A Dcj_sensor_ffi.cpp56 int32_t FfiSensorGetRotationMatrix(CArrFloat32 rotationVector, CArrFloat32 *rotation) in FfiSensorGetRotationMatrix() argument
58 if (rotation == nullptr) { in FfiSensorGetRotationMatrix()
59 SEN_HILOGE("Invalid parameter, rotation is nullptr!"); in FfiSensorGetRotationMatrix()
63 return CJ_SENSOR_IMPL->GetRotationMatrix(rotationVector, *rotation); in FfiSensorGetRotationMatrix()
105 return CJ_SENSOR_IMPL->GetRotationMatrixByGraityAndGeomagnetic(gravity, geomagnetic, rotationMaxtrix->rotation, in FfiSensorGetRotationMatrixByGravityAndGeomagnetic()
H A Dcj_sensor_impl.cpp258 int32_t CJSensorImpl::GetRotationMatrix(const CArrFloat32 &rotationCArr, CArrFloat32 &rotation) in GetRotationMatrix() argument
264 SEN_HILOGE("Get rotation matrix failed, ret:%{public}d", ret); in GetRotationMatrix()
268 rotation = ConvertVector2CArr(rotationMatrix); in GetRotationMatrix()
277 SEN_HILOGE("Transform rotation mastrix failed, invalid parameter."); in TransformRotationMatrix()
325 std::vector<float> rotation(THREE_DIMENSIONAL_MATRIX_LENGTH); in GetRotationMatrixByGraityAndGeomagnetic()
329 ConvertCArr2Vector(geomagnetic), rotation, inclination); in GetRotationMatrixByGraityAndGeomagnetic()
331 SEN_HILOGE("Create rotation and inclination failed, ret:%{public}d", ret); in GetRotationMatrixByGraityAndGeomagnetic()
335 rotationMatrix = ConvertVector2CArr(rotation); in GetRotationMatrixByGraityAndGeomagnetic()
/base/msdp/device_status/services/interaction/drag/src/
H A Ddisplay_change_event_listener.cpp55 FI_HILOGD("Last rotation is zero"); in OnChange()
95 void DisplayChangeEventListener::RotateDragWindow(Rosen::Rotation rotation) in RotateDragWindow() argument
98 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this, rotation] { in RotateDragWindow()
99 return this->context_->GetDragManager().RotateDragWindow(rotation); in RotateDragWindow()
106 void DisplayChangeEventListener::ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation) in ScreenRotate() argument
109 int32_t ret = context_->GetDelegateTasks().PostAsyncTask([this, rotation, lastRotation] { in ScreenRotate()
110 return this->context_->GetDragManager().ScreenRotate(rotation, lastRotation); in ScreenRotate()
H A Ddrag_drawing.cpp1470 DragWindowRotateInfo_.rotation = ROTATION_0; in InitLayer()
2120 int32_t DragDrawing::RotateDragWindow(Rosen::Rotation rotation, in RotateDragWindow() argument
2128 float rotateAngle = (rotation == Rosen::Rotation::ROTATION_0) ? ROTATION_0 : in RotateDragWindow()
2129 ROTATION_360 - (ROTATION_90 * static_cast<int32_t>(rotation)); in RotateDragWindow()
2134 void DragDrawing::RotateCanvasNode(float pivotX, float pivotY, float rotation) in RotateCanvasNode() argument
2139 g_drawingInfo.parentNode->SetRotation(rotation); in RotateCanvasNode()
2147 degrees = rotation + POSITIVE_ANGLE; in RotateCanvasNode()
2149 degrees = rotation + NEGATIVE_ANGLE; in RotateCanvasNode()
2163 mouseIconNode->SetRotation(rotation); in RotateCanvasNode()
2172 void DragDrawing::SetRotation(Rosen::Rotation rotation) in SetRotation() argument
2418 RotateDragWindowAsync(Rosen::Rotation rotation) RotateDragWindowAsync() argument
2897 DoRotateDragWindow(float rotation, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction, bool isAnimated) DoRotateDragWindow() argument
2981 ScreenRotateAdjustDisplayXY( Rosen::Rotation rotation, Rosen::Rotation lastRotation, float &displayX, float &displayY) ScreenRotateAdjustDisplayXY() argument
3014 ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation) ScreenRotate() argument
3030 DoRotateDragWindowAnimation(float rotation, float pivotX, float pivotY, const std::shared_ptr<Rosen::RSTransaction>& rsTransaction) DoRotateDragWindowAnimation() argument
[all...]
H A Ddrag_manager.cpp1616 int32_t DragManager::RotateDragWindow(Rosen::Rotation rotation) in RotateDragWindow() argument
1618 FI_HILOGD("enter, rotation:%{public}d", static_cast<int32_t>(rotation)); in RotateDragWindow()
1619 auto SetDragWindowRotate = [rotation, this]() { in RotateDragWindow()
1620 dragDrawing_.SetRotation(rotation); in RotateDragWindow()
1622 dragDrawing_.RotateDragWindowAsync(rotation); in RotateDragWindow()
1640 int32_t DragManager::ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation) in ScreenRotate() argument
1648 auto SetDragWindowRotate = [rotation, lastRotation, this]() { in ScreenRotate()
1650 dragDrawing_.ScreenRotate(rotation, lastRotation); in ScreenRotate()
/base/telephony/call_manager/services/video/src/
H A Dvideo_control_manager.cpp140 int32_t VideoControlManager::SetDeviceDirection(int32_t callId, int32_t rotation) in SetDeviceDirection() argument
149 if (rotation == CAMERA_ROTATION_0 || rotation == CAMERA_ROTATION_90 || rotation == CAMERA_ROTATION_180 || in SetDeviceDirection()
150 rotation == CAMERA_ROTATION_270) { in SetDeviceDirection()
158 ret = netCall->SetDeviceDirection(rotation); in SetDeviceDirection()
166 TELEPHONY_LOGE("error rotation:%{public}d", rotation); in SetDeviceDirection()
/base/msdp/device_status/services/interaction/drag/include/
H A Ddisplay_change_event_listener.h37 void RotateDragWindow(Rosen::Rotation rotation);
38 void ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation);
H A Ddrag_drawing.h232 float rotation { 0.0f };
283 int32_t RotateDragWindowAsync(Rosen::Rotation rotation);
285 void SetRotation(Rosen::Rotation rotation);
290 void ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation);
357 int32_t DoRotateDragWindow(float rotation,
359 int32_t DoRotateDragWindowAnimation(float rotation, float pivotX, float pivotY,
361 int32_t RotateDragWindow(Rosen::Rotation rotation,
366 void RotateCanvasNode(float pivotX, float pivotY, float rotation);
381 Rosen::Rotation rotation, Rosen::Rotation lastRotation, float &displayX, float &displayY);
/base/sensors/sensor/frameworks/cj/include/
H A Dcj_sensor_ffi.h57 CArrFloat32 rotation; member
88 SENSOR_FFI_EXPORT int32_t FfiSensorGetRotationMatrix(CArrFloat32 rotationVector, CArrFloat32 *rotation);
H A Dcj_sensor_impl.h45 int32_t GetRotationMatrix(const CArrFloat32 &rotationCArr, CArrFloat32 &rotation);
/base/web/webview/ohos_adapter/camera_adapter/include/
H A Dcamera_rotation_info_adapter_impl.h33 void SetRotation(int32_t rotation);
/base/telephony/call_manager/services/call/include/
H A Dnet_call_base.h55 virtual int32_t SetDeviceDirection(int32_t rotation) = 0;
H A Dott_call.h69 int32_t SetDeviceDirection(int32_t rotation) override;
H A Dims_call.h69 int32_t SetDeviceDirection(int32_t rotation) override;
/base/telephony/cellular_call/services/control/include/
H A Dims_video_call_control.h88 * @param rotation
91 int32_t SetDeviceDirection(int32_t slotId, int32_t callIndex, int32_t rotation);
/base/telephony/call_manager/services/video/include/
H A Dvideo_control_manager.h38 int32_t SetDeviceDirection(int32_t callId, int32_t rotation);
/base/msdp/device_status/intention/prototype/include/
H A Di_drag_manager.h94 virtual int32_t RotateDragWindow(Rosen::Rotation rotation) = 0;
95 virtual int32_t ScreenRotate(Rosen::Rotation rotation, Rosen::Rotation lastRotation) = 0;
/base/telephony/call_manager/test/unittest/call_manager_zero_gtest/src/
H A Dzero_branch1_test.cpp910 int32_t rotation = CAMERA_ROTATION_0; in HWTEST_F() local
911 ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetDeviceDirection(callId, rotation), in HWTEST_F()
913 rotation = CAMERA_ROTATION_90; in HWTEST_F()
914 ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetDeviceDirection(callId, rotation), in HWTEST_F()
916 rotation = CAMERA_ROTATION_180; in HWTEST_F()
917 ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetDeviceDirection(callId, rotation), in HWTEST_F()
919 rotation = CAMERA_ROTATION_270; in HWTEST_F()
920 ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetDeviceDirection(callId, rotation), in HWTEST_F()
922 rotation = 1; in HWTEST_F()
923 ASSERT_NE(DelayedSingleton<VideoControlManager>::GetInstance()->SetDeviceDirection(callId, rotation), in HWTEST_F()
[all...]
/base/telephony/call_manager/test/fuzztest/controlcamera_fuzzer/
H A Dcontrolcamera_fuzzer.cpp143 int32_t rotation = static_cast<int32_t>(size); in SetDeviceDirection() local
146 dataParcel.WriteInt32(rotation); in SetDeviceDirection()
/base/powermgr/power_manager/services/native/src/
H A Dpower_mode_module.cpp176 POWER_HILOGD(FEATURE_POWER_MODE, "auto window rotation observer already registed"); in RegisterAutoWindowRotationObserver()
464 int32_t rotation = DelayedSingleton<PowerModePolicy>::GetInstance() in SetWindowRotation() local
466 POWER_HILOGD(FEATURE_POWER_MODE, "Set window rotation state %{public}d", rotation); in SetWindowRotation()
467 if (rotation == INIT_VALUE_FALSE) { in SetWindowRotation()
470 SettingHelper::SetSettingWindowRotation(static_cast<SettingHelper::SwitchStatus>(rotation)); in SetWindowRotation()
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
H A Dcall_manager6_gtest.cpp935 * @tc.name input invalid rotation, Test SetDeviceDirection, return error code if failed
945 int32_t rotation = CAMERA_ROTATION_ERROR; in HWTEST_F() local
946 EXPECT_NE(CallManagerGtest::clientPtr_->SetDeviceDirection(callId, rotation), RETURN_VALUE_IS_ZERO); in HWTEST_F()
951 * @tc.name input rotation 0, Test SetDeviceDirection, return 0 if success
961 int32_t rotation = 0; in HWTEST_F() local
962 EXPECT_NE(CallManagerGtest::clientPtr_->SetDeviceDirection(callId, rotation), RETURN_VALUE_IS_ZERO); in HWTEST_F()
967 * @tc.name input rotation 90, Test SetDeviceDirection
977 int32_t rotation = CAMERA_ROTATION_90; in HWTEST_F() local
978 EXPECT_NE(CallManagerGtest::clientPtr_->SetDeviceDirection(callId, rotation), RETURN_VALUE_IS_ZERO); in HWTEST_F()
/base/telephony/call_manager/test/fuzztest/call_fuzzer/
H A Dcall_fuzzer.cpp282 int32_t rotation = static_cast<int32_t>(size); in IMSVideoCallFunc() local
304 callObjectPtr->SetDeviceDirection(rotation); in IMSVideoCallFunc()
398 int32_t rotation = static_cast<int32_t>(size); in OttVideoCallFunc() local
418 callObjectPtr->SetDeviceDirection(rotation); in OttVideoCallFunc()
/base/telephony/cellular_call/services/control/src/
H A Dims_video_call_control.cpp108 int32_t ImsVideoCallControl::SetDeviceDirection(int32_t slotId, int32_t callIndex, int32_t rotation) in SetDeviceDirection() argument
116 return imsCallClient->SetDeviceDirection(slotId, callIndex, rotation); in SetDeviceDirection()

Completed in 18 milliseconds

123