User cannot reject a waiting call after a switch call fails

Add new connection event to indicate switch failure.

Test: Manual - Verify that incoming call can be rejected after switch
call is failed.
Bug: 143918738

Change-Id: Ib38ceb3cb72ce946c071a8ec9748a1c81ca58808
This commit is contained in:
Masaho Nishikawa
2019-11-07 14:41:21 +09:00
committed by takeshi tanigawa
parent 1cf90f78f1
commit cb8fa7440e
2 changed files with 10 additions and 0 deletions

View File

@@ -613,6 +613,15 @@ 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 switch 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.
*/
public static final String EVENT_CALL_SWITCH_FAILED =
"android.telecom.event.CALL_SWITCH_FAILED";
/**
* Connection event used to inform {@link InCallService}s when the process of merging a
* Connection into a conference has begun.