Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27330071 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Expose ImsFeature#getFeatureState as @SystemApi

Bug: 147726372
Test: atest CtsTelephonyTestCases:ImsServiceTest
Change-Id: I35af8028e3d7139a41bdf29475631ae4794a2655
parent ca98e286
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10327,6 +10327,7 @@ package android.telephony.ims.feature {
  public abstract class ImsFeature {
    ctor public ImsFeature();
    method public abstract void changeEnabledCapabilities(android.telephony.ims.feature.CapabilityChangeRequest, android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy);
    method public int getFeatureState();
    method public final int getSlotIndex();
    method public abstract void onFeatureReady();
    method public abstract void onFeatureRemoved();
+1 −0
Original line number Diff line number Diff line
@@ -3657,6 +3657,7 @@ package android.telephony.ims.feature {
  public abstract class ImsFeature {
    ctor public ImsFeature();
    method public abstract void changeEnabledCapabilities(android.telephony.ims.feature.CapabilityChangeRequest, android.telephony.ims.feature.ImsFeature.CapabilityCallbackProxy);
    method public int getFeatureState();
    method public final int getSlotIndex();
    method public abstract void onFeatureReady();
    method public abstract void onFeatureRemoved();
+3 −4
Original line number Diff line number Diff line
@@ -337,11 +337,10 @@ public abstract class ImsFeature {
    }

    /**
     * @return The current state of the feature, defined as {@link #STATE_UNAVAILABLE},
     * {@link #STATE_INITIALIZING}, or {@link #STATE_READY}.
     * @hide
     * @return The current state of the ImsFeature, set previously by {@link #setFeatureState(int)}
     * or {@link #STATE_UNAVAILABLE} if it has not been updated  yet.
     */
    public int getFeatureState() {
    public @ImsState int getFeatureState() {
        synchronized (mLock) {
            return mState;
        }