diff options
| author | Lais Andrade <lsandrade@google.com> | 2020-09-24 14:32:30 +0000 |
|---|---|---|
| committer | Lais Andrade <lsandrade@google.com> | 2020-10-01 16:32:19 +0000 |
| commit | 8f2674b2dca6f3927aeee265cc8d15999288fa78 (patch) | |
| tree | 1f12a47ad510b9ff439ecc7279fcc7370a2c442a /core/java/android/util/SparseBooleanArray.java | |
| parent | 1dab7a7c1ffe92021b2d877173b1a87c3322f0ed (diff) | |
Remove deprecated VibrationAttributes.getAudioAttrs method
Removing the deprecated AudioAttributes field from VibrationAttributes
in favor of a usage mapping to be used with AppOpsManager.checkAudioOp.
The mapping ensures the heuristic applied in VibrationAttributes.Builder
is taken into account by the VibratorManager.
This also adds a hidden method to Vibrator to allow forwarding a
VibrationAttributes to input device vibrators instead of relying on the
original AudioAttributes.
Bug: 163119475
Test: atest FrameworksServicesTests:VibratorServiceTest
atest FrameworksCoreTests:VibratorTest
Change-Id: I83dbe079865b453c4cf42a6fd7e71f822acc39ea
Diffstat (limited to 'core/java/android/util/SparseBooleanArray.java')
0 files changed, 0 insertions, 0 deletions
