Bluetooth in band ring

Prevent the telecom service from generating a ringer if there is already
a ringer generated by a phone connected over bluetooth headset client
service.

Bug: 65673832
Test: runtest telecom-unit -c
com.android.server.telecom.tests.RingerTest

Change-Id: I40710787cab0215f0456153a3557aa8cf1a50cdf
(cherry picked from commit 40ea5eea41)
This commit is contained in:
Joseph Pirozzo
2018-01-02 16:15:23 -08:00
parent ec25ea1520
commit d2a9fc7abe

View File

@@ -235,6 +235,15 @@ public class TelecomManager {
public static final String EXTRA_INCOMING_CALL_EXTRAS =
"android.telecom.extra.INCOMING_CALL_EXTRAS";
/**
* Optional extra for {@link #ACTION_INCOMING_CALL} containing a boolean to indicate that the
* call has an externally generated ringer. Used by the HfpClientConnectionService when In Band
* Ringtone is enabled to prevent two ringers from being generated.
* @hide
*/
public static final String EXTRA_CALL_EXTERNAL_RINGER =
"android.telecom.extra.CALL_EXTERNAL_RINGER";
/**
* Optional extra for {@link android.content.Intent#ACTION_CALL} and
* {@link android.content.Intent#ACTION_DIAL} {@code Intent} containing a {@link Bundle}