Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96687896 authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

DSDA: Handle call resume failure

Handles the call resume failure across subscriptions. We will attempt to
auto-unhold the foreground call that was previously held as part of
the original operation to swap the foreground and background calls as it
is historically more likely to succeed.

Bug: 390116261
Flag: com.android.server.telecom.flags.enable_call_sequencing
Test: atest CallTest
Test: atest CallSequencingBasicCallTest
Change-Id: I966d7fdda9d507cb5a1b36cab3403bf27e1779d6
parent d244a4f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44051,6 +44051,7 @@ package android.telecom {
    field public static final String EVENT_CALL_PULL_FAILED = "android.telecom.event.CALL_PULL_FAILED";
    field public static final String EVENT_CALL_REMOTELY_HELD = "android.telecom.event.CALL_REMOTELY_HELD";
    field public static final String EVENT_CALL_REMOTELY_UNHELD = "android.telecom.event.CALL_REMOTELY_UNHELD";
    field @FlaggedApi("com.android.server.telecom.flags.call_sequencing_call_resume_failed") public static final String EVENT_CALL_RESUME_FAILED = "android.telecom.event.CALL_RESUME_FAILED";
    field public static final String EVENT_CALL_SWITCH_FAILED = "android.telecom.event.CALL_SWITCH_FAILED";
    field public static final String EVENT_MERGE_COMPLETE = "android.telecom.event.MERGE_COMPLETE";
    field public static final String EVENT_MERGE_START = "android.telecom.event.MERGE_START";
+10 −0
Original line number Diff line number Diff line
@@ -911,6 +911,16 @@ public abstract class Connection extends Conferenceable {
     */
    public static final String EVENT_CALL_HOLD_FAILED = "android.telecom.event.CALL_HOLD_FAILED";

    /**
     * Connection event used to inform Telecom when a resume operation on a call has failed.
     * <p>
     * Sent via {@link #sendConnectionEvent(String, Bundle)}.  The {@link Bundle} parameter is
     * expected to be null when this connection event is used.
     */
    @FlaggedApi(Flags.FLAG_CALL_SEQUENCING_CALL_RESUME_FAILED)
    public static final String EVENT_CALL_RESUME_FAILED =
            "android.telecom.event.CALL_RESUME_FAILED";

    /**
     * Connection event used to inform Telecom when a switch operation on a call has failed.
     * <p>