OSDN Git Service

Fix the maximum value of sensor types
authorAshutosh Joshi <ashutoshj@google.com>
Thu, 23 Mar 2017 04:25:13 +0000 (21:25 -0700)
committerAshutosh Joshi <ashutoshj@google.com>
Thu, 23 Mar 2017 04:25:13 +0000 (21:25 -0700)
commitcf18953cbfa8c30248334e1ce11d2fcf011b0548
treeb0a932b311f1bc56e73682977766f76f70d3aac9
parent7c4faa9833225de4bcc33367a25f5d258b864ef1
Fix the maximum value of sensor types

Sensors which should have a maximum vector length of 1 were erroneously
being treated as tri-axis sensors.

Bug: 36530209
Test: Ensure that pressure, light, ambient temperature, proximity,
      relative humidity, temperature are reported with maximum
      length of 1.

Change-Id: Iec76a6b8a2c1851300e92b71c46f2f12836fa7bf
core/java/android/hardware/Sensor.java