commit | 6eb75be73c6e368a8c2b9293b125b669429030f7 | [log] [tgz] |
---|---|---|
author | Arthur Ishiguro <arthuri@google.com> | Wed Apr 01 11:58:43 2020 -0700 |
committer | Arthur Ishiguro <arthuri@google.com> | Wed Apr 01 19:19:56 2020 +0000 |
tree | 98f22ea8b32401e6334ed72b39884602cd8ac0f9 | |
parent | 8a7ec57d045258e2d84beffd4e7d03f6b95e26e4 [diff] |
Fail on flush if no sensors are found According to the SensorManager API, flush() is intended to return false when no sensor is registered with the listener. Modify the implementation to be consistent with the API contract, since no flush command was successfully issued in this case. Bug: 74395023 Test: Compile Change-Id: I7e671c870aa684be54b7a5163052aac5258c0c86