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

Commit 419379d8 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioService: ringMyCar carkit/headphones rings in vibrate

Update the AudioManager.shouldNotificationSoundPlay() behavior
to enforce ringtone playback on "private" devices such as
carkits or BT headphones even when the device is in
vibrate mode.
Availability of such "always ring" devices is evaluated
in AudioDeviceInventory whenever devices are connected/
disconnected, to allow shouldNotificationSoundPlay()
to query that information in a lock-free manner.

Bug: 415311394
Flag: com.android.media.audio.ring_my_car
Test: receive call in vibrate mode with HFP/carkit

Change-Id: Ia72085d496e2785031889c9e844ec363b5c2cc50
parent d47841c5
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