From e6113628f643fcb667350034b3d764e03f61e3a6 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Wed, 10 Apr 2019 08:59:43 -0700 Subject: [PATCH] Telecom API doc cleanup. InCallService - remove references to roles cut in Q release. TelecomManager - make it more clear how to use the silenceRinger method and under which conditions it should be used. Test: Compile; docs only. Fixes: 130285730 Change-Id: I55f9c2df119140666f8167e8521a4372d1108e7a Merged-In: I3e55166e4d0d9e68449ac7c157959e8471c16354 --- telecomm/java/android/telecom/InCallService.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/telecomm/java/android/telecom/InCallService.java b/telecomm/java/android/telecom/InCallService.java index 982e5f30e28c9..72ab60990d722 100644 --- a/telecomm/java/android/telecom/InCallService.java +++ b/telecomm/java/android/telecom/InCallService.java @@ -70,6 +70,14 @@ import java.util.List; * app. *

* Further, the pre-loaded dialer will ALWAYS be used when the user places an emergency call. + *

Becoming the Default Phone App

+ * The default dialer/phone app is one which provides the in-call user interface while the device is + * in a call. A device is bundled with a system provided default dialer/phone app. The user may + * choose a single app to take over this role from the system app. An app which wishes to fulfill + * one this role uses the {@code android.app.role.RoleManager} to request that they fill the role. + *

+ * An app filling the role of the default phone app provides a user interface while the device is in + * a call, and the device is not in car mode. *

* Below is an example manifest registration for an {@code InCallService}. The meta-data * {@link TelecomManager#METADATA_IN_CALL_SERVICE_UI} indicates that this particular