commit | e54c911b102205ea5b8e4eb81ff0b22dc972cd95 | [log] [tgz] |
---|---|---|
author | Nikolas Havrikov <havrikov@google.com> | Thu Mar 30 18:07:34 2023 +0200 |
committer | Nikolas Havrikov <havrikov@google.com> | Wed Apr 05 14:58:59 2023 +0000 |
tree | c522daa05f7ec9e5bb4b54e9bd70a0b9b88e287d | |
parent | 63f9e576745c29c8c46a456321b8db66eb1aca61 [diff] |
Only wait for successful vibration Currently, the device sleeps for 500ms even if no vibrator is available, such as on a TV device. This CL ensures the sleep happens only if the vibration is happening successfully. MUST_SLEEP because this is just moving already exiting code. Test: atest FrameworksServicesTests:VibratorManagerServiceTest Bug: 276697207 Change-Id: I14182e43ad1fe08c2276be7988f2ac1fb3d79634 Merged-In: I14182e43ad1fe08c2276be7988f2ac1fb3d79634