diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 7c11cfe8dabbb..29f8eb40ba24c 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -892,6 +892,61 @@ public class TelephonyManager { public static final String EVENT_CALL_FORWARDED = "android.telephony.event.EVENT_CALL_FORWARDED"; + /** + * {@link android.telecom.Connection} event used to indicate that a supplementary service + * notification has been received. + *
+ * Sent via {@link android.telecom.Connection#sendConnectionEvent(String, Bundle)}. + * The {@link Bundle} parameter is expected to include the following extras: + *
+ * Set in the extras for the {@link #EVENT_SUPPLEMENTARY_SERVICE_NOTIFICATION} connection event. + * @hide + */ + public static final String EXTRA_NOTIFICATION_TYPE = + "android.telephony.extra.NOTIFICATION_TYPE"; + + /** + * Integer extra key used with {@link #EVENT_SUPPLEMENTARY_SERVICE_NOTIFICATION} which indicates + * the supplementary service notification which occurred. + *
+ * Depending on the {@link #EXTRA_NOTIFICATION_TYPE}, the code will be one of the {@code CODE_*} + * codes defined in {@link com.android.internal.telephony.gsm.SuppServiceNotification}. + *
+ * Set in the extras for the {@link #EVENT_SUPPLEMENTARY_SERVICE_NOTIFICATION} connection event. + * @hide + */ + public static final String EXTRA_NOTIFICATION_CODE = + "android.telephony.extra.NOTIFICATION_CODE"; + + /** + * {@link CharSequence} extra key used with {@link #EVENT_SUPPLEMENTARY_SERVICE_NOTIFICATION} + * which contains a human-readable message which can be displayed to the user for the + * supplementary service notification. + *
+ * Set in the extras for the {@link #EVENT_SUPPLEMENTARY_SERVICE_NOTIFICATION} connection event. + * @hide + */ + public static final String EXTRA_NOTIFICATION_MESSAGE = + "android.telephony.extra.NOTIFICATION_MESSAGE"; + /* Visual voicemail protocols */ /**