Merge "Re-deprecating Capabilities in ImsFeature"

This commit is contained in:
Brad Ebinger
2019-09-06 18:55:17 +00:00
committed by Gerrit Code Review
3 changed files with 13 additions and 8 deletions

View File

@@ -9238,7 +9238,7 @@ package android.telephony.ims.feature {
field public static final int STATE_UNAVAILABLE = 0; // 0x0
}
public static class ImsFeature.Capabilities {
@Deprecated public static class ImsFeature.Capabilities {
field @Deprecated protected int mCapabilities;
}
@@ -9272,7 +9272,7 @@ package android.telephony.ims.feature {
public static class MmTelFeature.MmTelCapabilities extends android.telephony.ims.feature.ImsFeature.Capabilities {
ctor public MmTelFeature.MmTelCapabilities();
ctor @Deprecated public MmTelFeature.MmTelCapabilities(android.telephony.ims.feature.ImsFeature.Capabilities);
ctor public MmTelFeature.MmTelCapabilities(int);
ctor public MmTelFeature.MmTelCapabilities(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
method public final void addCapabilities(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
method public final boolean isCapable(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);
method public final void removeCapabilities(@android.telephony.ims.feature.MmTelFeature.MmTelCapabilities.MmTelCapability int);

View File

@@ -201,15 +201,20 @@ public abstract class ImsFeature {
}
/**
* Contains the capabilities defined and supported by an ImsFeature in the form of a bit mask.
* <p>
* Typically this class is not used directly, but rather extended in subclasses of
* Contains the IMS capabilities defined and supported by an ImsFeature in the form of a
* bit-mask.
*
* @deprecated This class is not used directly, but rather extended in subclasses of
* {@link ImsFeature} to provide service specific capabilities.
* @see MmTelFeature.MmTelCapabilities
* @hide
*/
@SystemApi
// Not Actually deprecated, but we need to remove it from the @SystemApi surface.
@Deprecated
@SystemApi // SystemApi only because it was leaked through type usage in a previous release.
public static class Capabilities {
/** @deprecated Use getters and accessors instead. */
// Not actually deprecated, but we need to remove it from the @SystemApi surface eventually.
protected int mCapabilities = 0;
/**

View File

@@ -242,8 +242,8 @@ public class MmTelFeature extends ImsFeature {
* @param capabilities The capabilities that are supported for MmTel in the form of a
* bitfield.
*/
public MmTelCapabilities(int capabilities) {
mCapabilities = capabilities;
public MmTelCapabilities(@MmTelCapability int capabilities) {
super(capabilities);
}
@IntDef(flag = true,