Searched refs:sensorDegree (Results 1 – 4 of 4) sorted by relevance
137 int sensorDegree = CalcRotationDegree(gravityData); in HandleGravitySensorEventCallback() local139 CalcSensorRotation(sensorDegree)); in HandleGravitySensorEventCallback()143 SensorRotation GravitySensorSubscriber::CalcSensorRotation(int sensorDegree) in CalcSensorRotation() argument146 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()
59 static SensorRotation CalcSensorRotation(int sensorDegree);
1809 int32_t HCaptureSession::CalcSensorRotation(int32_t sensorDegree) in CalcSensorRotation() argument1812 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()
358 static int32_t CalcSensorRotation(int32_t sensorDegree);