Merge "[RCS] Remove unused OPTIONS APIs because of the API changes."
This commit is contained in:
@@ -277,20 +277,6 @@ public final class RcsContactUceCapability implements Parcelable {
|
|||||||
return mCapabilityMechanism;
|
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.
|
* @return The feature tags present in the OPTIONS response from the network.
|
||||||
* <p>
|
* <p>
|
||||||
|
|||||||
@@ -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
|
* 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.
|
* in order to receive the capabilities of the remote user in response.
|
||||||
|
|||||||
Reference in New Issue
Block a user