commit | 6e075783ee90c4e539e98e0335c97772d0a49812 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Tue Mar 30 18:32:29 2021 +0000 |
committer | Lais Andrade <lsandrade@google.com> | Tue Apr 13 13:04:05 2021 +0000 |
tree | b656e9506dc468ed35ed1d59a4584d7261f0d492 | |
parent | f5195618f89aa76a75df7f33d99775dc8bcc5c7a [diff] |
Add Vibrator.cancel method with usage filters Add a new hidden API to Vibrator and VibratorManager that allows vibrations to be cancelled based on their usage attribute. The new API is used by the NotificationManagerService on volume button press to only cancel ongoing attentional haptics, triggered for alarm, notification or ringtone. Fix: 182440404 Test: VibratorManagerTest & BuzzBeepBlinkTest Change-Id: I4bf55928cf3b7dd79f66d53d570001a5205ce2d0