Merge "CallDiagnosticService API" am: c90335033b am: 9882ff4bf8 am: d3bf1aa209

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1607109

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie91efc29698d27946f83b751bef2fe89d612c9a2
This commit is contained in:
Tyler Gunn
2021-03-03 00:16:56 +00:00
committed by Automerger Merge Worker
14 changed files with 993 additions and 1 deletions

View File

@@ -938,6 +938,46 @@ public abstract class Connection extends Conferenceable {
public static final String EVENT_RTT_AUDIO_INDICATION_CHANGED =
"android.telecom.event.RTT_AUDIO_INDICATION_CHANGED";
/**
* Connection event used to signal between the telephony {@link ConnectionService} and Telecom
* when device to device messages are sent/received.
* <p>
* Device to device messages originating from the network are sent by telephony using
* {@link Connection#sendConnectionEvent(String, Bundle)} and are routed up to any active
* {@link CallDiagnosticService} implementation which is active.
* <p>
* Likewise, if a {@link CallDiagnosticService} sends a message using
* {@link DiagnosticCall#sendDeviceToDeviceMessage(int, int)}, it will be routed to telephony
* via {@link Connection#onCallEvent(String, Bundle)}. The telephony stack will relay the
* message to the other device.
* @hide
*/
@SystemApi
public static final String EVENT_DEVICE_TO_DEVICE_MESSAGE =
"android.telecom.event.DEVICE_TO_DEVICE_MESSAGE";
/**
* Sent along with {@link #EVENT_DEVICE_TO_DEVICE_MESSAGE} to indicate the device to device
* message type.
*
* See {@link DiagnosticCall} for more information.
* @hide
*/
@SystemApi
public static final String EXTRA_DEVICE_TO_DEVICE_MESSAGE_TYPE =
"android.telecom.extra.DEVICE_TO_DEVICE_MESSAGE_TYPE";
/**
* Sent along with {@link #EVENT_DEVICE_TO_DEVICE_MESSAGE} to indicate the device to device
* message value.
* <p>
* See {@link DiagnosticCall} for more information.
* @hide
*/
@SystemApi
public static final String EXTRA_DEVICE_TO_DEVICE_MESSAGE_VALUE =
"android.telecom.extra.DEVICE_TO_DEVICE_MESSAGE_VALUE";
// Flag controlling whether PII is emitted into the logs
private static final boolean PII_DEBUG = Log.isLoggable(android.util.Log.DEBUG);