diff options
author | Mathias Agopian <mathias@google.com> | 2010-11-05 19:12:58 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-06-27 17:07:54 -0700 |
commit | 24d72350f321c17b0bfe1ef3fd52d4070a1c02c3 (patch) | |
tree | a67b823f55392cf18573af61b4f5536c1d6d5946 /services/sensorservice/SensorService.cpp | |
parent | 1e0b1e8491e5f6dc59faabe70cbfa942853150e0 (diff) | |
download | frameworks_native-24d72350f321c17b0bfe1ef3fd52d4070a1c02c3.zip frameworks_native-24d72350f321c17b0bfe1ef3fd52d4070a1c02c3.tar.gz frameworks_native-24d72350f321c17b0bfe1ef3fd52d4070a1c02c3.tar.bz2 |
improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)
the increased maximum rate is needed for proper gyro integration, current gyro
parts can sample at up to 800Hz
Change-Id: Ide75f6d5bc7a0fdafeb2dafd72db39e7afb9e794
Diffstat (limited to 'services/sensorservice/SensorService.cpp')
-rw-r--r-- | services/sensorservice/SensorService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/sensorservice/SensorService.cpp b/services/sensorservice/SensorService.cpp index e204e04..c9ab992 100644 --- a/services/sensorservice/SensorService.cpp +++ b/services/sensorservice/SensorService.cpp @@ -175,10 +175,11 @@ status_t SensorService::dump(int fd, const Vector<String16>& args) for (size_t i=0 ; i<mSensorList.size() ; i++) { const Sensor& s(mSensorList[i]); const sensors_event_t& e(mLastEventSeen.valueFor(s.getHandle())); - snprintf(buffer, SIZE, "%s (vendor=%s, handle=%d, last=<%5.1f,%5.1f,%5.1f>)\n", + snprintf(buffer, SIZE, "%s (vendor=%s, handle=%d, maxRate=%.2fHz, last=<%5.1f,%5.1f,%5.1f>)\n", s.getName().string(), s.getVendor().string(), s.getHandle(), + s.getMinDelay() ? (1000000.0f / s.getMinDelay()) : 0.0f, e.data[0], e.data[1], e.data[2]); result.append(buffer); } |