From eb4276755d5c6bf97626a8637dfef99c3c875075 Mon Sep 17 00:00:00 2001 From: Thomas Nguyen Date: Wed, 15 Feb 2023 15:42:34 -0800 Subject: [PATCH] Add the event EVENT_DISPLAY_SOS_MESSAGE for satellite Bug: 268542899 Test: Build Change-Id: I4a5193200bfe959e405e0a67e653d3b4534f2efc --- telecomm/java/android/telecom/Call.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/telecomm/java/android/telecom/Call.java b/telecomm/java/android/telecom/Call.java index 41c70b1fa6d07..c152a41c8694b 100644 --- a/telecomm/java/android/telecom/Call.java +++ b/telecomm/java/android/telecom/Call.java @@ -359,6 +359,18 @@ public final class Call { public static final String EXTRA_DIAGNOSTIC_MESSAGE = "android.telecom.extra.DIAGNOSTIC_MESSAGE"; + /** + * Event reported from the Telecom stack to indicate that the {@link Connection} is not able to + * find any network and likely will not get connected. Upon receiving this event, the dialer + * app should show satellite SOS button if satellite is provisioned. + *

+ * The dialer app receives this event via + * {@link Call.Callback#onConnectionEvent(Call, String, Bundle)}. + * @hide + */ + public static final String EVENT_DISPLAY_SOS_MESSAGE = + "android.telecom.event.DISPLAY_SOS_MESSAGE"; + /** * Reject reason used with {@link #reject(int)} to indicate that the user is rejecting this * call because they have declined to answer it. This typically means that they are unable