Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9c4ebe80 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Support for audio coupled haptics when playing ringtones.

Updated Ringer.java to suppress system haptics when a ringtone which will
be played has embedded haptics and the device supports audio coupled
haptics.

AsyncRingtonePlayer performs all of its operations on a Handler to avoid
possible strict mode violations when manipulating ringtones, so the play
now returns a completable future which indicates whether audio coupled
haptics will be used to play a ringtone.  Ringer.java waits on this future
and continues with the business of playing the system haptics if needed.

Also updated the RingerTest code because changes made to support ramping
ringtones effectively nullified most of the tests.

Test: Manual, added unit tests
Bug: 127818951
Change-Id: Ie5fc285a0181b27672fd4f8ffae9610b1b1f3b02
parent d9737e5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment