commit | e05421457e795c98837fc790e36cadd50a5ad838 | [log] [tgz] |
---|---|---|
author | Simon Bowden <sbowden@google.com> | Tue Mar 21 10:57:51 2023 +0000 |
committer | Simon Bowden <sbowden@google.com> | Tue Mar 21 14:39:50 2023 +0000 |
tree | 6e03fc86e60cd8e44f8da0723eb8c657be58bd3b | |
parent | ed96db50c8372277e8cf9c540721dd86cec60b48 [diff] |
Move Ringtone creation onto the AsyncRingtonePlayer thread. Ringtone initialization on the main thread can cause deadlocks, because it internally blocks on some asynchronous tasks. Use the real AsyncRingtonePlayer in the RingerTest. Bug: 273629038 Test: atest, presubmit Change-Id: Ifc9f19d0a847fc12e75d795ae7fd3ed3b1729382