diff options
| author | 2017-01-13 17:06:41 -0800 | |
|---|---|---|
| committer | 2017-01-13 17:06:41 -0800 | |
| commit | 576ea41d2ff66d3ec0c79c1120ef8f7310e39c30 (patch) | |
| tree | 5f0c8e412cdb319153230765302dcb5b3998931d | |
| parent | 33f78f89ac96b48ff74c9499b2617a77fbeb475a (diff) | |
Fix documentaiton formatting errors.
i) Fix documentation formatting errors converting a
major part of the documentation into a link.
ii) Remove the DEVICE_ORIENTATION type documentation. Its
a hidden sensor type, and links to the sensor fail.
Test: Compile build, generate docs, visually verify change.
Change-Id: I2659d18e35b60f5939ba18c6b3d752a990621447
| -rw-r--r-- | core/java/android/hardware/SensorEvent.java | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/core/java/android/hardware/SensorEvent.java b/core/java/android/hardware/SensorEvent.java index d67b6a89eb63..9b72757a8737 100644 --- a/core/java/android/hardware/SensorEvent.java +++ b/core/java/android/hardware/SensorEvent.java @@ -438,7 +438,8 @@ public class SensorEvent { * Soft iron - These distortions arise due to the interaction with the earth's magnetic * field. * </p> - * <h4> {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR}:</h4> + * <h4> {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR + * Sensor.TYPE_GAME_ROTATION_VECTOR}:</h4> * Identical to {@link android.hardware.Sensor#TYPE_ROTATION_VECTOR} except that it * doesn't use the geomagnetic field. Therefore the Y axis doesn't * point north, but instead to some other reference, that reference is @@ -482,22 +483,6 @@ public class SensorEvent { * <p><b>Pro Tip:</b> Always use the length of the values array while performing operations * on it. In earlier versions, this used to be always 3 which has changed now. </p> * - * @see GeomagneticField - * - * <h4> {@link android.hardware.Sensor#TYPE_DEVICE_ORIENTATION - * Sensor.TYPE_DEVICE_ORIENTATION}:</h4> - * The current device orientation will be available in values[0]. The only - * available values are: - * <ul> - * <li> 0: device is in default orientation (Y axis is vertical and points up) - * <li> 1: device is rotated 90 degrees counter-clockwise from default - * orientation (X axis is vertical and points up) - * <li> 2: device is rotated 180 degrees from default orientation (Y axis is - * vertical and points down) - * <li> 3: device is rotated 90 degrees clockwise from default orientation (X axis - * is vertical and points down) - * </ul> - * * <h4>{@link android.hardware.Sensor#TYPE_POSE_6DOF * Sensor.TYPE_POSE_6DOF}:</h4> * @@ -605,6 +590,8 @@ public class SensorEvent { * temperature compensation is allowed). * x_bias, y_bias, z_bias are the estimated biases. * </p> + * + * @see GeomagneticField */ public final float[] values; |