From 576ea41d2ff66d3ec0c79c1120ef8f7310e39c30 Mon Sep 17 00:00:00 2001
From: Ashutosh Joshi
Date: Fri, 13 Jan 2017 17:06:41 -0800
Subject: 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
---
core/java/android/hardware/SensorEvent.java | 21 ++++-----------------
1 file 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.
*
- * {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR}:
+ * {@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR
+ * Sensor.TYPE_GAME_ROTATION_VECTOR}:
* 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 {
* Pro Tip: 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.
*
- * @see GeomagneticField
- *
- * {@link android.hardware.Sensor#TYPE_DEVICE_ORIENTATION
- * Sensor.TYPE_DEVICE_ORIENTATION}:
- * The current device orientation will be available in values[0]. The only
- * available values are:
- *
- * - 0: device is in default orientation (Y axis is vertical and points up)
- *
- 1: device is rotated 90 degrees counter-clockwise from default
- * orientation (X axis is vertical and points up)
- *
- 2: device is rotated 180 degrees from default orientation (Y axis is
- * vertical and points down)
- *
- 3: device is rotated 90 degrees clockwise from default orientation (X axis
- * is vertical and points down)
- *
- *
* {@link android.hardware.Sensor#TYPE_POSE_6DOF
* Sensor.TYPE_POSE_6DOF}:
*
@@ -605,6 +590,8 @@ public class SensorEvent {
* temperature compensation is allowed).
* x_bias, y_bias, z_bias are the estimated biases.
*
+ *
+ * @see GeomagneticField
*/
public final float[] values;
--
cgit v1.2.3-59-g8ed1b