Merge "Expose proprietary extras Bundle in ImsCallProfile" am: 8804a86b87 am: be898cce4f

Change-Id: I9b2e6cb80168abe3c4c22df906d669bfefc02577
This commit is contained in:
Automerger Merge Worker
2020-01-17 22:23:27 +00:00
3 changed files with 25 additions and 7 deletions

View File

@@ -9736,6 +9736,7 @@ package android.telephony.ims {
method public int getEmergencyServiceCategories();
method @NonNull public java.util.List<java.lang.String> getEmergencyUrns();
method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile();
method @Nullable public android.os.Bundle getProprietaryCallExtras();
method public int getRestrictCause();
method public int getServiceType();
method public static int getVideoStateFromCallType(int);

View File

@@ -3109,6 +3109,7 @@ package android.telephony.ims {
method public int getEmergencyServiceCategories();
method @NonNull public java.util.List<java.lang.String> getEmergencyUrns();
method public android.telephony.ims.ImsStreamMediaProfile getMediaProfile();
method @Nullable public android.os.Bundle getProprietaryCallExtras();
method public int getRestrictCause();
method public int getServiceType();
method public static int getVideoStateFromCallType(int);
@@ -3161,6 +3162,7 @@ package android.telephony.ims {
field public static final String EXTRA_DISPLAY_TEXT = "DisplayText";
field public static final String EXTRA_EMERGENCY_CALL = "e_call";
field public static final String EXTRA_IS_CALL_PULL = "CallPull";
field public static final String EXTRA_OEM_EXTRAS = "android.telephony.ims.extra.OEM_EXTRAS";
field public static final String EXTRA_OI = "oi";
field public static final String EXTRA_OIR = "oir";
field public static final String EXTRA_REMOTE_URI = "remote_uri";

View File

@@ -18,6 +18,7 @@ package android.telephony.ims;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.compat.annotation.UnsupportedAppUsage;
@@ -40,10 +41,11 @@ import java.util.ArrayList;
import java.util.List;
/**
* Parcelable object to handle IMS call profile.
* It is created from GSMA IR.92/IR.94, 3GPP TS 24.229/TS 26.114/TS26.111.
* It provides the service and call type, the additional information related to the call.
*
* A Parcelable object to handle the IMS call profile, which provides the service, call type, and
* additional information related to the call.
* <p>
* See the following specifications for more information about this class: GSMA IR.92/IR.94,
* 3GPP TS 24.229/TS 26.114/TS26.111.
* @hide
*/
@SystemApi
@@ -151,12 +153,13 @@ public final class ImsCallProfile implements Parcelable {
*/
public static final String EXTRA_CONFERENCE_AVAIL = "conference_avail";
// Extra string for internal use only. OEMs should not use
// this for packing extras.
/**
* Extra key used to store a Bundle containing proprietary extras to send to the ImsService.
* Use {@link #getProprietaryCallExtras()} instead.
* @hide
*/
public static final String EXTRA_OEM_EXTRAS = "OemCallExtras";
@TestApi
public static final String EXTRA_OEM_EXTRAS = "android.telephony.ims.extra.OEM_EXTRAS";
/**
* Rule for originating identity (number) presentation, MO/MT.
@@ -679,6 +682,18 @@ public final class ImsCallProfile implements Parcelable {
return mCallExtras;
}
/**
* Get the proprietary extras set for this ImsCallProfile.
* @return A {@link Bundle} containing proprietary call extras that were not set by the
* platform.
*/
public @Nullable Bundle getProprietaryCallExtras() {
if (mCallExtras == null) {
return null;
}
return mCallExtras.getBundle(EXTRA_OEM_EXTRAS);
}
public ImsStreamMediaProfile getMediaProfile() {
return mMediaProfile;
}