Home
last modified time | relevance | path

Searched refs:sensorDegree (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/window/window_manager/dmserver/src/
H A Dsensor_connector.cpp137 int sensorDegree = CalcRotationDegree(gravityData); in HandleGravitySensorEventCallback() local
139 CalcSensorRotation(sensorDegree)); in HandleGravitySensorEventCallback()
143 SensorRotation GravitySensorSubscriber::CalcSensorRotation(int sensorDegree) in CalcSensorRotation() argument
146 if (sensorDegree >= 0 && (sensorDegree <= 30 || sensorDegree >= 330)) { in CalcSensorRotation()
148 …} else if (sensorDegree >= 60 && sensorDegree <= 120) { // Use ROTATION_90 when degree range is [6… in CalcSensorRotation()
150 …} else if (sensorDegree >= 150 && sensorDegree <= 210) { // Use ROTATION_180 when degree range is … in CalcSensorRotation()
152 …} else if (sensorDegree >= 240 && sensorDegree <= 300) { // Use ROTATION_270 when degree range is … in CalcSensorRotation()
/ohos5.0/foundation/window/window_manager/dmserver/include/
H A Dsensor_connector.h59 static SensorRotation CalcSensorRotation(int sensorDegree);
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/src/
H A Dhcapture_session.cpp1809 int32_t HCaptureSession::CalcSensorRotation(int32_t sensorDegree) in CalcSensorRotation() argument
1812 if (sensorDegree >= 0 && (sensorDegree <= 30 || sensorDegree >= 330)) { in CalcSensorRotation()
1814 …} else if (sensorDegree >= 60 && sensorDegree <= 120) { // Use ROTATION_90 when degree range is [6… in CalcSensorRotation()
1816 …} else if (sensorDegree >= 150 && sensorDegree <= 210) { // Use ROTATION_180 when degree range is … in CalcSensorRotation()
1818 …} else if (sensorDegree >= 240 && sensorDegree <= 300) { // Use ROTATION_270 when degree range is … in CalcSensorRotation()
/ohos5.0/foundation/multimedia/camera_framework/services/camera_service/include/
H A Dhcapture_session.h358 static int32_t CalcSensorRotation(int32_t sensorDegree);