commit | 4d7ac52d75b725ff25d68416747bfd43bbbc065d | [log] [tgz] |
---|---|---|
author | Aaron Whyte <awhyte@google.com> | Wed Apr 09 15:56:54 2014 -0700 |
committer | Aaron Whyte <awhyte@google.com> | Tue Apr 15 11:00:14 2014 -0700 |
tree | 71493f2230c410f44df43fdff0578a3ea23bf74c | |
parent | d5b3c73d80ec851296037d2c7ed011ac306eb2f5 [diff] |
Fixed multihal handling of nonexistent sensor handles. This prevents crashes and undefined behavior when someone calls sensor HAL methods with nonexistent handles. It also adds checks and warnings if bad sensor HALs provide garbage sensor handles in their sensor events. Tested by making sure pedometer and tilt still work. Bug: 13513595 Change-Id: Ie1489d3f2972bec82ee1c73189e532f6658d1eca