updating the sensor constants to be the same as projected

Change-Id: Ic109a442da2345ef88a5dc803d089c01858004a7
diff --git a/car-lib/api/current.txt b/car-lib/api/current.txt
index a24febf..3983d3f 100644
--- a/car-lib/api/current.txt
+++ b/car-lib/api/current.txt
@@ -307,11 +307,11 @@
     field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
     field public static final int SENSOR_RATE_UI = 2; // 0x2
     field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
-    field public static final int SENSOR_TYPE_DRIVING_STATUS = 10; // 0xa
-    field public static final int SENSOR_TYPE_ENVIRONMENT = 11; // 0xb
+    field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
+    field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
     field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
     field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
-    field public static final int SENSOR_TYPE_NIGHT = 8; // 0x8
+    field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
     field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
     field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
     field public static final int SENSOR_TYPE_RPM = 3; // 0x3
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt
index 18239c4..7a64baa 100644
--- a/car-lib/api/system-current.txt
+++ b/car-lib/api/system-current.txt
@@ -532,11 +532,11 @@
     field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
     field public static final int SENSOR_RATE_UI = 2; // 0x2
     field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
-    field public static final int SENSOR_TYPE_DRIVING_STATUS = 10; // 0xa
-    field public static final int SENSOR_TYPE_ENVIRONMENT = 11; // 0xb
+    field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
+    field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
     field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
     field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
-    field public static final int SENSOR_TYPE_NIGHT = 8; // 0x8
+    field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
     field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
     field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
     field public static final int SENSOR_TYPE_RPM = 3; // 0x3
diff --git a/car-lib/src/android/car/hardware/CarSensorManager.java b/car-lib/src/android/car/hardware/CarSensorManager.java
index dab13bc..d0dc4e8 100644
--- a/car-lib/src/android/car/hardware/CarSensorManager.java
+++ b/car-lib/src/android/car/hardware/CarSensorManager.java
@@ -83,27 +83,41 @@
      * {@link CarSensorEvent#GEAR_NEUTRAL} and other GEAR_*.
      */
     public static final int SENSOR_TYPE_GEAR              = 7;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED8        = 8;
     /**
      * Day/night sensor. Sensor data is intValues[0].
      */
-    public static final int SENSOR_TYPE_NIGHT             = 8;
+    public static final int SENSOR_TYPE_NIGHT             = 9;
     /** @hide */
-    public static final int SENSOR_TYPE_REVERVED9        = 9;
+    public static final int SENSOR_TYPE_RESERVED10         = 10;
     /**
      * Represents the current driving status of car. Different user interaction should be used
      * depending on the current driving status. Driving status is intValues[0].
      */
-    public static final int SENSOR_TYPE_DRIVING_STATUS    = 10;
+    public static final int SENSOR_TYPE_DRIVING_STATUS    = 11;
     /**
      * Environment like temperature and pressure.
      */
-    public static final int SENSOR_TYPE_ENVIRONMENT       = 11;
-    /** @hide */
-    public static final int SENSOR_TYPE_RESERVED12        = 12;
+    public static final int SENSOR_TYPE_ENVIRONMENT       = 12;
     /** @hide */
     public static final int SENSOR_TYPE_RESERVED13        = 13;
     /** @hide */
     public static final int SENSOR_TYPE_RESERVED14        = 14;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED15        = 15;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED16        = 16;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED17        = 17;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED18        = 18;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED19        = 19;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED20        = 20;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED21        = 21;
 
     /**
      * Sensor type bigger than this is invalid. Always update this after adding a new sensor.
diff --git a/car-support-lib/api/current.txt b/car-support-lib/api/current.txt
index 479f056..4361a64 100644
--- a/car-support-lib/api/current.txt
+++ b/car-support-lib/api/current.txt
@@ -597,12 +597,12 @@
     field public static final int SENSOR_RATE_UI = 2; // 0x2
     field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
     field public static final int SENSOR_TYPE_COMPASS = 1; // 0x1
-    field public static final int SENSOR_TYPE_DRIVING_STATUS = 10; // 0xa
-    field public static final int SENSOR_TYPE_ENVIRONMENT = 11; // 0xb
+    field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
+    field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
     field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
     field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
-    field public static final int SENSOR_TYPE_LOCATION = 9; // 0x9
-    field public static final int SENSOR_TYPE_NIGHT = 8; // 0x8
+    field public static final int SENSOR_TYPE_LOCATION = 10; // 0xa
+    field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
     field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
     field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
     field public static final int SENSOR_TYPE_RPM = 3; // 0x3
diff --git a/car-support-lib/src/android/support/car/hardware/CarSensorManager.java b/car-support-lib/src/android/support/car/hardware/CarSensorManager.java
index 04d63a1..5cd4f80 100644
--- a/car-support-lib/src/android/support/car/hardware/CarSensorManager.java
+++ b/car-support-lib/src/android/support/car/hardware/CarSensorManager.java
@@ -28,81 +28,91 @@
  */
 public abstract class CarSensorManager implements CarManagerBase {
     /**
-     * SENSOR_TYPE_* represents type of sensor supported from the connected car.
-     * This sensor represents the direction of the car as an angle in degree measured clockwise
-     * with 0 degree pointing to north.
-     * Sensor data in {@link CarSensorEvent} is a float (floatValues[0]).
+     * SENSOR_TYPE_* represents type of sensor supported from the connected car. This sensor
+     * represents the direction of the car as an angle in degree measured clockwise with 0 degree
+     * pointing to north. Sensor data in {@link CarSensorEvent} is a float (floatValues[0]).
      */
-    public static final int SENSOR_TYPE_COMPASS           = 1;
+    public static final int SENSOR_TYPE_COMPASS = 1;
     /**
-     * This sensor represents vehicle speed in m/s.
-     * Sensor data in {@link CarSensorEvent} is a float which will be >= 0.
-     * This requires {@link Car#PERMISSION_SPEED} permission.
+     * This sensor represents vehicle speed in m/s. Sensor data in {@link CarSensorEvent} is a float
+     * which will be >= 0. This requires {@link Car#PERMISSION_SPEED} permission.
      */
-    public static final int SENSOR_TYPE_CAR_SPEED         = 2;
+    public static final int SENSOR_TYPE_CAR_SPEED = 2;
     /**
      * Represents engine RPM of the car. Sensor data in {@link CarSensorEvent} is a float.
      */
-    public static final int SENSOR_TYPE_RPM               = 3;
+    public static final int SENSOR_TYPE_RPM = 3;
     /**
-     * Total travel distance of the car in Kilometer. Sensor data is a float.
-     * This requires {@link Car#PERMISSION_MILEAGE} permission.
+     * Total travel distance of the car in Kilometer. Sensor data is a float. This requires {@link
+     * Car#PERMISSION_MILEAGE} permission.
      */
-    public static final int SENSOR_TYPE_ODOMETER          = 4;
+    public static final int SENSOR_TYPE_ODOMETER = 4;
     /**
-     * Indicates fuel level of the car.
-     * In {@link CarSensorEvent}, floatValues[{@link CarSensorEvent#INDEX_FUEL_LEVEL_IN_PERCENTILE}]
-     * represents fuel level in percentile (0 to 100) while
-     * floatValues[{@link CarSensorEvent#INDEX_FUEL_LEVEL_IN_DISTANCE}] represents estimated range
-     * in Kilometer with the remaining fuel.
-     * Note that the gas mileage used for the estimation may not represent the current driving
-     * condition.
-     * This requires {@link Car#PERMISSION_FUEL} permission.
+     * Indicates fuel level of the car. In {@link CarSensorEvent}, floatValues[{@link
+     * CarSensorEvent#INDEX_FUEL_LEVEL_IN_PERCENTILE}] represents fuel level in percentile (0 to
+     * 100) while floatValues[{@link CarSensorEvent#INDEX_FUEL_LEVEL_IN_DISTANCE}] represents
+     * estimated range in Kilometer with the remaining fuel. Note that the gas mileage used for the
+     * estimation may not represent the current driving condition. This requires {@link
+     * Car#PERMISSION_FUEL} permission.
      */
-    public static final int SENSOR_TYPE_FUEL_LEVEL        = 5;
+    public static final int SENSOR_TYPE_FUEL_LEVEL = 5;
     /**
      * Represents the current status of parking brake. Sensor data in {@link CarSensorEvent} is an
-     * intValues[0]. Value of 1 represents parking brake applied while 0 means the other way
-     * around. For this sensor, rate in {@link #registerListener(CarSensorEventListener, int, int)}
-     * will be ignored and all changes will be notified.
+     * intValues[0]. Value of 1 represents parking brake applied while 0 means the other way around.
+     * For this sensor, rate in {@link #registerListener(CarSensorEventListener, int, int)} will be
+     * ignored and all changes will be notified.
      */
-    public static final int SENSOR_TYPE_PARKING_BRAKE     = 6;
+    public static final int SENSOR_TYPE_PARKING_BRAKE = 6;
     /**
-     * This represents the current position of transmission gear. Sensor data in
-     * {@link CarSensorEvent} is an intValues[0]. For the meaning of the value, check
-     * {@link CarSensorEvent#GEAR_NEUTRAL} and other GEAR_*.
+     * This represents the current position of transmission gear. Sensor data in {@link
+     * CarSensorEvent} is an intValues[0]. For the meaning of the value, check {@link
+     * CarSensorEvent#GEAR_NEUTRAL} and other GEAR_*.
      */
-    public static final int SENSOR_TYPE_GEAR              = 7;
+    public static final int SENSOR_TYPE_GEAR = 7;
+
+    /**@hide*/
+    public static final int SENSOR_TYPE_RESERVED8 = 8;
+
     /**
      * Day/night sensor. Sensor data is intValues[0].
      */
-    public static final int SENSOR_TYPE_NIGHT             = 8;
+    public static final int SENSOR_TYPE_NIGHT = 9;
     /**
      * Sensor type for location. Sensor data passed in floatValues.
      */
-    public static final int SENSOR_TYPE_LOCATION          = 9;
+    public static final int SENSOR_TYPE_LOCATION = 10;
     /**
      * Represents the current driving status of car. Different user interaction should be used
      * depending on the current driving status. Driving status is intValues[0].
      */
-    public static final int SENSOR_TYPE_DRIVING_STATUS    = 10;
+    public static final int SENSOR_TYPE_DRIVING_STATUS = 11;
     /**
      * Environment like temperature and pressure.
      */
-    public static final int SENSOR_TYPE_ENVIRONMENT       = 11;
-
+    public static final int SENSOR_TYPE_ENVIRONMENT = 12;
     /** @hide */
-    public static final int SENSOR_TYPE_ACCELEROMETER     = 12;
+    public static final int SENSOR_TYPE_RESERVED13 = 13;
     /** @hide */
-    public static final int SENSOR_TYPE_GPS_SATELLITE     = 13;
+    public static final int SENSOR_TYPE_ACCELEROMETER = 14;
     /** @hide */
-    public static final int SENSOR_TYPE_GYROSCOPE         = 14;
+    public static final int SENSOR_TYPE_RESERVED15 = 15;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED16 = 16;
+    /** @hide */
+    public static final int SENSOR_TYPE_GPS_SATELLITE = 17;
+    /** @hide */
+    public static final int SENSOR_TYPE_GYROSCOPE = 18;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED19 = 19;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED20 = 20;
+    /** @hide */
+    public static final int SENSOR_TYPE_RESERVED21 = 21;
 
     /**
      * Sensor type bigger than this is invalid. Always update this after adding a new sensor.
-     * @hide
      */
-    private static final int SENSOR_TYPE_MAX              = SENSOR_TYPE_GYROSCOPE;
+    private static final int SENSOR_TYPE_MAX = SENSOR_TYPE_RESERVED21;
 
     /**
      * Sensors defined in this range [{@link #SENSOR_TYPE_VENDOR_EXTENSION_START},