summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Pranav Madapurmath <pmadapurmath@google.com> 2024-01-26 12:03:26 -0800
committer Pranav Madapurmath <pmadapurmath@google.com> 2024-01-26 13:17:40 -0800
commit106df3bc5dad4022f4bf64492475a5da8c07c141 (patch)
treed43a0e4bf863fe3d775917c911b529961306c1e8
parent2ce52b3f2dd205a6dd8cc4ec24e443d71d745519 (diff)
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
-rw-r--r--core/api/system-current.txt2
-rw-r--r--telecomm/java/android/telecom/Connection.java8
2 files changed, 9 insertions, 1 deletions
diff --git a/core/api/system-current.txt b/core/api/system-current.txt
index debf1bfdfc8c..a93dd77bcd2a 100644
--- a/core/api/system-current.txt
+++ b/core/api/system-current.txt
@@ -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";
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index a2105b02b97a..c3b9ed4f60ba 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -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";