Home
last modified time | relevance | path

Searched refs:sensorDegree (Results 1 - 2 of 2) sorted by relevance

/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 [60, 120] in CalcSensorRotation()
150 } else if (sensorDegree >= 150 && sensorDegree < in CalcSensorRotation()
[all...]
/foundation/window/window_manager/dmserver/include/
H A Dsensor_connector.h59 static SensorRotation CalcSensorRotation(int sensorDegree);

Completed in 1 milliseconds