Skip to content
Snippets Groups Projects
Commit 106df3bc authored by Pranav Madapurmath's avatar Pranav Madapurmath
Browse files

Formalize Connection CallQuality report APIs

Promote Connection#EVENT_CALL_QUALITY_REPORT as well as
Connection#EXTRA_CALL_QUALITY_REPORT into proper system APIs. These are
used by Telephony to send the call quality report from Telephony over to
Telecom which is retreived by CallDiagnosticService.

Bug: 322513691
Bug: 311773409
Test: atest CtsCallDiagnosticService
Change-Id: I06c0cd021d1de3ff54ead59fb7483547599193e3
parent 2ce52b3f
No related branches found
No related tags found
No related merge requests found
......@@ -13397,7 +13397,9 @@ package android.telecom {
method public void setTelecomCallId(@NonNull String);
field public static final int CAPABILITY_CONFERENCE_HAS_NO_CHILDREN = 2097152; // 0x200000
field public static final int CAPABILITY_SPEED_UP_MT_AUDIO = 262144; // 0x40000
field @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") public static final String EVENT_CALL_QUALITY_REPORT = "android.telecom.event.CALL_QUALITY_REPORT";
field public static final String EVENT_DEVICE_TO_DEVICE_MESSAGE = "android.telecom.event.DEVICE_TO_DEVICE_MESSAGE";
field @FlaggedApi("com.android.server.telecom.flags.telecom_resolve_hidden_dependencies") public static final String EXTRA_CALL_QUALITY_REPORT = "android.telecom.extra.CALL_QUALITY_REPORT";
field public static final String EXTRA_DEVICE_TO_DEVICE_MESSAGE_TYPE = "android.telecom.extra.DEVICE_TO_DEVICE_MESSAGE_TYPE";
field public static final String EXTRA_DEVICE_TO_DEVICE_MESSAGE_VALUE = "android.telecom.extra.DEVICE_TO_DEVICE_MESSAGE_VALUE";
field public static final String EXTRA_DISABLE_ADD_CALL = "android.telecom.extra.DISABLE_ADD_CALL";
......@@ -21,6 +21,7 @@ import static android.Manifest.permission.MODIFY_PHONE_STATE;
import android.Manifest;
import android.annotation.CallbackExecutor;
import android.annotation.ElapsedRealtimeLong;
import android.annotation.FlaggedApi;
import android.annotation.IntDef;
import android.annotation.IntRange;
import android.annotation.NonNull;
......@@ -56,6 +57,7 @@ import android.view.Surface;
import com.android.internal.os.SomeArgs;
import com.android.internal.telecom.IVideoCallback;
import com.android.internal.telecom.IVideoProvider;
import com.android.server.telecom.flags.Flags;
import java.io.FileInputStream;
import java.io.FileOutputStream;
......@@ -1015,9 +1017,11 @@ public abstract class Connection extends Conferenceable {
/**
* Connection event used to communicate a {@link android.telephony.CallQuality} report from
* telephony to Telecom for relaying to
* {@link DiagnosticCall#onCallQualityReceived(CallQuality)}.
* {@link CallDiagnostics#onCallQualityReceived(CallQuality)}.
* @hide
*/
@SystemApi
@FlaggedApi(Flags.FLAG_TELECOM_RESOLVE_HIDDEN_DEPENDENCIES)
public static final String EVENT_CALL_QUALITY_REPORT =
"android.telecom.event.CALL_QUALITY_REPORT";
......@@ -1026,6 +1030,8 @@ public abstract class Connection extends Conferenceable {
* {@link android.telephony.CallQuality} data.
* @hide
*/
@SystemApi
@FlaggedApi(Flags.FLAG_TELECOM_RESOLVE_HIDDEN_DEPENDENCIES)
public static final String EXTRA_CALL_QUALITY_REPORT =
"android.telecom.extra.CALL_QUALITY_REPORT";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment