summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anthony Stange <stange@google.com> 2021-09-08 23:08:37 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-09-08 23:08:37 +0000
commitb626ccc60c692e99ca418ea20be49ccbc6cf870b (patch)
tree20a5fc506fb3b81938f65eedc63ca08079584206
parentffc229021e30d879d522e78b7475084378fae03e (diff)
parent0979daca799c279cad9e82b9441bcb150ba6ae5f (diff)
Merge "Correct ranges for pitch and roll" am: 68e875719b am: 99b930a64c am: 642b1fe32c am: e342a87830 am: 0979daca79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1438054 Change-Id: I593928ddce2cdb5cfa8aba29ed1a57f0e0751954
-rw-r--r--core/java/android/hardware/SensorManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/hardware/SensorManager.java b/core/java/android/hardware/SensorManager.java
index ad4e64b9d7a7..47659a97e9c4 100644
--- a/core/java/android/hardware/SensorManager.java
+++ b/core/java/android/hardware/SensorManager.java
@@ -1450,14 +1450,14 @@ public abstract class SensorManager {
* Assuming that the bottom edge of the device faces the
* user and that the screen is face-up, tilting the top edge
* of the device toward the ground creates a positive pitch
- * angle. The range of values is -&pi; to &pi;.</li>
+ * angle. The range of values is -&pi;/2 to &pi;/2.</li>
* <li>values[2]: <i>Roll</i>, angle of rotation about the y axis. This
* value represents the angle between a plane perpendicular
* to the device's screen and a plane perpendicular to the
* ground. Assuming that the bottom edge of the device faces
* the user and that the screen is face-up, tilting the left
* edge of the device toward the ground creates a positive
- * roll angle. The range of values is -&pi;/2 to &pi;/2.</li>
+ * roll angle. The range of values is -&pi; to &pi;.</li>
* </ul>
* <p>
* Applying these three rotations in the azimuth, pitch, roll order