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

Commit 67c5e4d2 authored by James.cf Lin's avatar James.cf Lin
Browse files

[RCS] Remove unused OPTIONS APIs because of the API changes.

Bug: 183576867
Test: atest RcsUceAdapterTest ImsServiceTest
Change-Id: Id34db5c6eaa89e5c69a9d82a20ea7ec48cd8414b
parent 0925c746
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -277,20 +277,6 @@ public final class RcsContactUceCapability implements Parcelable {
        return mCapabilityMechanism;
    }

    /**
     * @return The feature tags present in the OPTIONS response from the network.
     * <p>
     * Note: this is only populated if {@link #getCapabilityMechanism} is
     * {@link RcsContactUceCapability#CAPABILITY_MECHANISM_OPTIONS}
     * @hide
     */
    public @NonNull List<String> getOptionsFeatureTags() {
        if (mCapabilityMechanism != CAPABILITY_MECHANISM_OPTIONS) {
            return Collections.emptyList();
        }
        return Collections.unmodifiableList(new ArrayList<>(mFeatureTags));
    }

    /**
     * @return The feature tags present in the OPTIONS response from the network.
     * <p>
+0 −24
Original line number Diff line number Diff line
@@ -432,30 +432,6 @@ public class RcsCapabilityExchangeImplBase {
        }
    }

    /**
     * Push one's own capabilities to a remote user via the SIP OPTIONS presence exchange mechanism
     * in order to receive the capabilities of the remote user in response.
     * <p>
     * The implementer must use {@link OptionsResponseCallback} to send the response of
     * this query from the network back to the framework.
     * @param contactUri The URI of the remote user that we wish to get the capabilities of.
     * @param myCapabilities The capabilities of this device to send to the remote user.
     * @param callback The callback of this request which is sent from the remote user.
     * @hide
     */
    // executor used is defined in the constructor.
    @SuppressLint("ExecutorRegistration")
    public void sendOptionsCapabilityRequest(@NonNull Uri contactUri,
            @NonNull List<String> myCapabilities, @NonNull OptionsResponseCallback callback) {
        // Stub - to be implemented by service
        Log.w(LOG_TAG, "sendOptionsCapabilityRequest called with no implementation.");
        try {
            callback.onCommandError(COMMAND_CODE_NOT_SUPPORTED);
        } catch (ImsException e) {
            // Do not do anything, this is a stub implementation.
        }
    }

    /**
     * Push one's own capabilities to a remote user via the SIP OPTIONS presence exchange mechanism
     * in order to receive the capabilities of the remote user in response.