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

Commit 57977423 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[RCS] Remove unused OPTIONS APIs because of the API changes." am: 4fbc7c86

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1664402

Change-Id: Idc7f1196563828e723d3a17bd4ff3acce83154ea
parents 00330273 4fbc7c86
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.