Merge "Hide RcsMessageStore APIs" am: 35e3d8e897

am: 6ec7ea069d

Change-Id: If0389e459250b76ccb03128e14975b23b7cdfbc1
This commit is contained in:
Sahin Caliskan
2019-02-25 11:10:57 -08:00
committed by android-build-merger
34 changed files with 66 additions and 459 deletions

View File

@@ -43557,465 +43557,6 @@ package android.telephony.gsm {
}
package android.telephony.ims {
public class Rcs1To1Thread extends android.telephony.ims.RcsThread {
method @WorkerThread public long getFallbackThreadId() throws android.telephony.ims.RcsMessageStoreException;
method @NonNull @WorkerThread public android.telephony.ims.RcsParticipant getRecipient() throws android.telephony.ims.RcsMessageStoreException;
method public boolean isGroup();
method @WorkerThread public void setFallbackThreadId(long) throws android.telephony.ims.RcsMessageStoreException;
}
public abstract class RcsEvent {
ctor protected RcsEvent(long);
method public long getTimestamp();
}
public final class RcsEventQueryParams implements android.os.Parcelable {
method public int describeContents();
method @android.telephony.ims.RcsEventQueryParams.EventType public int getEventType();
method public int getLimit();
method public boolean getSortDirection();
method public int getSortingProperty();
method public void writeToParcel(android.os.Parcel, int);
field public static final int ALL_EVENTS = -1; // 0xffffffff
field public static final int ALL_GROUP_THREAD_EVENTS = 0; // 0x0
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsEventQueryParams> CREATOR;
field public static final int GROUP_THREAD_ICON_CHANGED_EVENT = 8; // 0x8
field public static final int GROUP_THREAD_NAME_CHANGED_EVENT = 16; // 0x10
field public static final int GROUP_THREAD_PARTICIPANT_JOINED_EVENT = 2; // 0x2
field public static final int GROUP_THREAD_PARTICIPANT_LEFT_EVENT = 4; // 0x4
field public static final int PARTICIPANT_ALIAS_CHANGED_EVENT = 1; // 0x1
field public static final int SORT_BY_CREATION_ORDER = 0; // 0x0
field public static final int SORT_BY_TIMESTAMP = 1; // 0x1
}
public static class RcsEventQueryParams.Builder {
ctor public RcsEventQueryParams.Builder();
method public android.telephony.ims.RcsEventQueryParams build();
method @CheckResult public android.telephony.ims.RcsEventQueryParams.Builder setEventType(@android.telephony.ims.RcsEventQueryParams.EventType int);
method @CheckResult public android.telephony.ims.RcsEventQueryParams.Builder setGroupThread(@NonNull android.telephony.ims.RcsGroupThread);
method @CheckResult public android.telephony.ims.RcsEventQueryParams.Builder setResultLimit(@IntRange(from=0) int) throws java.security.InvalidParameterException;
method @CheckResult public android.telephony.ims.RcsEventQueryParams.Builder setSortDirection(boolean);
method @CheckResult public android.telephony.ims.RcsEventQueryParams.Builder setSortProperty(@android.telephony.ims.RcsEventQueryParams.SortingProperty int);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsEventQueryParams.ALL_EVENTS, android.telephony.ims.RcsEventQueryParams.ALL_GROUP_THREAD_EVENTS, android.telephony.ims.RcsEventQueryParams.PARTICIPANT_ALIAS_CHANGED_EVENT, android.telephony.ims.RcsEventQueryParams.GROUP_THREAD_PARTICIPANT_JOINED_EVENT, android.telephony.ims.RcsEventQueryParams.GROUP_THREAD_PARTICIPANT_LEFT_EVENT, android.telephony.ims.RcsEventQueryParams.GROUP_THREAD_NAME_CHANGED_EVENT, android.telephony.ims.RcsEventQueryParams.GROUP_THREAD_ICON_CHANGED_EVENT}) public static @interface RcsEventQueryParams.EventType {
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsEventQueryParams.SORT_BY_CREATION_ORDER, android.telephony.ims.RcsEventQueryParams.SORT_BY_TIMESTAMP}) public static @interface RcsEventQueryParams.SortingProperty {
}
public class RcsEventQueryResult {
method public android.telephony.ims.RcsQueryContinuationToken getContinuationToken();
method public java.util.List<android.telephony.ims.RcsEvent> getEvents();
}
public final class RcsFileTransferCreationParams implements android.os.Parcelable {
method public int describeContents();
method public String getContentMimeType();
method public android.net.Uri getContentUri();
method public long getFileSize();
method @android.telephony.ims.RcsFileTransferPart.RcsFileTransferStatus public int getFileTransferStatus();
method public int getHeight();
method public long getMediaDuration();
method public String getPreviewMimeType();
method public android.net.Uri getPreviewUri();
method public String getRcsFileTransferSessionId();
method public long getTransferOffset();
method public int getWidth();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsFileTransferCreationParams> CREATOR;
}
public class RcsFileTransferCreationParams.Builder {
ctor public RcsFileTransferCreationParams.Builder();
method public android.telephony.ims.RcsFileTransferCreationParams build();
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setContentMimeType(String);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setContentUri(android.net.Uri);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setFileSize(long);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setFileTransferSessionId(String);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setFileTransferStatus(@android.telephony.ims.RcsFileTransferPart.RcsFileTransferStatus int);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setHeight(int);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setMediaDuration(long);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setPreviewMimeType(String);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setPreviewUri(android.net.Uri);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setTransferOffset(long);
method @CheckResult public android.telephony.ims.RcsFileTransferCreationParams.Builder setWidth(int);
}
public class RcsFileTransferPart {
method @WorkerThread @Nullable public String getContentMimeType() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public android.net.Uri getContentUri() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public long getFileSize() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public String getFileTransferSessionId() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @android.telephony.ims.RcsFileTransferPart.RcsFileTransferStatus public int getFileTransferStatus() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public int getHeight() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public long getLength() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public String getPreviewMimeType() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public android.net.Uri getPreviewUri() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public long getTransferOffset() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public int getWidth() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setContentMimeType(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setContentUri(android.net.Uri) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setFileSize(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setFileTransferSessionId(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setFileTransferStatus(@android.telephony.ims.RcsFileTransferPart.RcsFileTransferStatus int) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setHeight(int) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setLength(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setPreviewMimeType(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setPreviewUri(android.net.Uri) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setTransferOffset(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setWidth(int) throws android.telephony.ims.RcsMessageStoreException;
field public static final int DOWNLOADING = 6; // 0x6
field public static final int DOWNLOADING_CANCELLED = 9; // 0x9
field public static final int DOWNLOADING_FAILED = 8; // 0x8
field public static final int DOWNLOADING_PAUSED = 7; // 0x7
field public static final int DRAFT = 1; // 0x1
field public static final int NOT_SET = 0; // 0x0
field public static final int SENDING = 2; // 0x2
field public static final int SENDING_CANCELLED = 5; // 0x5
field public static final int SENDING_FAILED = 4; // 0x4
field public static final int SENDING_PAUSED = 3; // 0x3
field public static final int SUCCEEDED = 10; // 0xa
}
@IntDef({android.telephony.ims.RcsFileTransferPart.DRAFT, android.telephony.ims.RcsFileTransferPart.SENDING, android.telephony.ims.RcsFileTransferPart.SENDING_PAUSED, android.telephony.ims.RcsFileTransferPart.SENDING_FAILED, android.telephony.ims.RcsFileTransferPart.SENDING_CANCELLED, android.telephony.ims.RcsFileTransferPart.DOWNLOADING, android.telephony.ims.RcsFileTransferPart.DOWNLOADING_PAUSED, android.telephony.ims.RcsFileTransferPart.DOWNLOADING_FAILED, android.telephony.ims.RcsFileTransferPart.DOWNLOADING_CANCELLED, android.telephony.ims.RcsFileTransferPart.SUCCEEDED}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface RcsFileTransferPart.RcsFileTransferStatus {
}
public class RcsGroupThread extends android.telephony.ims.RcsThread {
method @WorkerThread public void addParticipant(@NonNull android.telephony.ims.RcsParticipant) throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public android.net.Uri getConferenceUri() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable public android.net.Uri getGroupIcon() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public String getGroupName() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public android.telephony.ims.RcsParticipant getOwner() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public java.util.Set<android.telephony.ims.RcsParticipant> getParticipants() throws android.telephony.ims.RcsMessageStoreException;
method public boolean isGroup();
method @WorkerThread public void removeParticipant(@NonNull android.telephony.ims.RcsParticipant) throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public void setConferenceUri(android.net.Uri) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setGroupIcon(@Nullable android.net.Uri) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setGroupName(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setOwner(@Nullable android.telephony.ims.RcsParticipant) throws android.telephony.ims.RcsMessageStoreException;
}
public abstract class RcsGroupThreadEvent extends android.telephony.ims.RcsEvent {
method @NonNull public android.telephony.ims.RcsParticipant getOriginatingParticipant();
method @NonNull public android.telephony.ims.RcsGroupThread getRcsGroupThread();
}
public final class RcsGroupThreadIconChangedEvent extends android.telephony.ims.RcsGroupThreadEvent {
ctor public RcsGroupThreadIconChangedEvent(long, @NonNull android.telephony.ims.RcsGroupThread, @NonNull android.telephony.ims.RcsParticipant, @Nullable android.net.Uri);
method @Nullable public android.net.Uri getNewIcon();
}
public final class RcsGroupThreadNameChangedEvent extends android.telephony.ims.RcsGroupThreadEvent {
ctor public RcsGroupThreadNameChangedEvent(long, @NonNull android.telephony.ims.RcsGroupThread, @NonNull android.telephony.ims.RcsParticipant, @Nullable String);
method @Nullable public String getNewName();
}
public final class RcsGroupThreadParticipantJoinedEvent extends android.telephony.ims.RcsGroupThreadEvent {
ctor public RcsGroupThreadParticipantJoinedEvent(long, @NonNull android.telephony.ims.RcsGroupThread, @NonNull android.telephony.ims.RcsParticipant, @NonNull android.telephony.ims.RcsParticipant);
method public android.telephony.ims.RcsParticipant getJoinedParticipant();
}
public final class RcsGroupThreadParticipantLeftEvent extends android.telephony.ims.RcsGroupThreadEvent {
ctor public RcsGroupThreadParticipantLeftEvent(long, @NonNull android.telephony.ims.RcsGroupThread, @NonNull android.telephony.ims.RcsParticipant, @NonNull android.telephony.ims.RcsParticipant);
method @NonNull public android.telephony.ims.RcsParticipant getLeavingParticipant();
method public void persist() throws android.telephony.ims.RcsMessageStoreException;
}
public class RcsIncomingMessage extends android.telephony.ims.RcsMessage {
method @WorkerThread public long getArrivalTimestamp() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public long getSeenTimestamp() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public android.telephony.ims.RcsParticipant getSenderParticipant() throws android.telephony.ims.RcsMessageStoreException;
method public boolean isIncoming();
method @WorkerThread public void setArrivalTimestamp(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setSeenTimestamp(long) throws android.telephony.ims.RcsMessageStoreException;
}
public final class RcsIncomingMessageCreationParams extends android.telephony.ims.RcsMessageCreationParams implements android.os.Parcelable {
method public int describeContents();
method public long getArrivalTimestamp();
method public long getSeenTimestamp();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsIncomingMessageCreationParams> CREATOR;
}
public static class RcsIncomingMessageCreationParams.Builder extends android.telephony.ims.RcsMessageCreationParams.Builder {
ctor public RcsIncomingMessageCreationParams.Builder(long, long, int);
method public android.telephony.ims.RcsIncomingMessageCreationParams build();
method @CheckResult public android.telephony.ims.RcsIncomingMessageCreationParams.Builder setArrivalTimestamp(long);
method @CheckResult public android.telephony.ims.RcsIncomingMessageCreationParams.Builder setSeenTimestamp(long);
method @CheckResult public android.telephony.ims.RcsIncomingMessageCreationParams.Builder setSenderParticipant(android.telephony.ims.RcsParticipant);
}
public class RcsManager {
method public android.telephony.ims.RcsMessageStore getRcsMessageStore();
}
public abstract class RcsMessage {
method @NonNull @WorkerThread public java.util.Set<android.telephony.ims.RcsFileTransferPart> getFileTransferParts() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public double getLatitude() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public double getLongitude() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public long getOriginationTimestamp() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public String getRcsMessageId() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @android.telephony.ims.RcsMessage.RcsMessageStatus public int getStatus() throws android.telephony.ims.RcsMessageStoreException;
method public int getSubscriptionId() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public String getText() throws android.telephony.ims.RcsMessageStoreException;
method @NonNull @WorkerThread public android.telephony.ims.RcsFileTransferPart insertFileTransfer(android.telephony.ims.RcsFileTransferCreationParams) throws android.telephony.ims.RcsMessageStoreException;
method public abstract boolean isIncoming();
method @WorkerThread public void removeFileTransferPart(@NonNull android.telephony.ims.RcsFileTransferPart) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setLatitude(double) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setLongitude(double) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setOriginationTimestamp(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setRcsMessageId(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setStatus(@android.telephony.ims.RcsMessage.RcsMessageStatus int) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setSubscriptionId(int) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setText(String) throws android.telephony.ims.RcsMessageStoreException;
field public static final int DRAFT = 1; // 0x1
field public static final int FAILED = 6; // 0x6
field public static final double LOCATION_NOT_SET = 4.9E-324;
field public static final int NOT_SET = 0; // 0x0
field public static final int QUEUED = 2; // 0x2
field public static final int RECEIVED = 7; // 0x7
field public static final int RETRYING = 5; // 0x5
field public static final int SEEN = 9; // 0x9
field public static final int SENDING = 3; // 0x3
field public static final int SENT = 4; // 0x4
}
@IntDef({android.telephony.ims.RcsMessage.DRAFT, android.telephony.ims.RcsMessage.QUEUED, android.telephony.ims.RcsMessage.SENDING, android.telephony.ims.RcsMessage.SENT, android.telephony.ims.RcsMessage.RETRYING, android.telephony.ims.RcsMessage.FAILED, android.telephony.ims.RcsMessage.RECEIVED, android.telephony.ims.RcsMessage.SEEN}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface RcsMessage.RcsMessageStatus {
}
public class RcsMessageCreationParams {
ctor protected RcsMessageCreationParams(android.telephony.ims.RcsMessageCreationParams.Builder);
method public double getLatitude();
method public double getLongitude();
method public int getMessageStatus();
method public long getOriginationTimestamp();
method @Nullable public String getRcsMessageGlobalId();
method public int getSubId();
method @Nullable public String getText();
}
public static class RcsMessageCreationParams.Builder {
method public android.telephony.ims.RcsMessageCreationParams build();
method @CheckResult public android.telephony.ims.RcsMessageCreationParams.Builder setLatitude(double);
method @CheckResult public android.telephony.ims.RcsMessageCreationParams.Builder setLongitude(double);
method @CheckResult public android.telephony.ims.RcsMessageCreationParams.Builder setRcsMessageId(String);
method @CheckResult public android.telephony.ims.RcsMessageCreationParams.Builder setStatus(@android.telephony.ims.RcsMessage.RcsMessageStatus int);
method @CheckResult public android.telephony.ims.RcsMessageCreationParams.Builder setText(String);
}
public final class RcsMessageQueryParams implements android.os.Parcelable {
method public int describeContents();
method public int getFileTransferPresence();
method public int getLimit();
method public String getMessageLike();
method public int getMessageType();
method public boolean getSortDirection();
method @android.telephony.ims.RcsMessageQueryParams.SortingProperty public int getSortingProperty();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsMessageQueryParams> CREATOR;
field public static final int MESSAGES_WITHOUT_FILE_TRANSFERS = 8; // 0x8
field public static final int MESSAGES_WITH_FILE_TRANSFERS = 4; // 0x4
field public static final int MESSAGE_TYPE_INCOMING = 1; // 0x1
field public static final int MESSAGE_TYPE_OUTGOING = 2; // 0x2
field public static final int SORT_BY_CREATION_ORDER = 0; // 0x0
field public static final int SORT_BY_TIMESTAMP = 1; // 0x1
}
public static class RcsMessageQueryParams.Builder {
ctor public RcsMessageQueryParams.Builder();
method public android.telephony.ims.RcsMessageQueryParams build();
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setFileTransferPresence(int);
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setMessageLike(String);
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setMessageType(int);
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setResultLimit(@IntRange(from=0) int) throws java.security.InvalidParameterException;
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setSortDirection(boolean);
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setSortProperty(@android.telephony.ims.RcsMessageQueryParams.SortingProperty int);
method @CheckResult public android.telephony.ims.RcsMessageQueryParams.Builder setThread(@Nullable android.telephony.ims.RcsThread);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsMessageQueryParams.SORT_BY_CREATION_ORDER, android.telephony.ims.RcsMessageQueryParams.SORT_BY_TIMESTAMP}) public static @interface RcsMessageQueryParams.SortingProperty {
}
public final class RcsMessageQueryResult implements android.os.Parcelable {
method public int describeContents();
method @Nullable public android.telephony.ims.RcsQueryContinuationToken getContinuationToken();
method @NonNull public java.util.List<android.telephony.ims.RcsMessage> getMessages();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsMessageQueryResult> CREATOR;
}
public final class RcsMessageSnippet implements android.os.Parcelable {
method public int describeContents();
method @android.telephony.ims.RcsMessage.RcsMessageStatus public int getSnippetStatus();
method @Nullable public String getSnippetText();
method public long getSnippetTimestamp();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsMessageSnippet> CREATOR;
}
public class RcsMessageStore {
ctor public RcsMessageStore();
method @WorkerThread @NonNull public android.telephony.ims.RcsGroupThread createGroupThread(@Nullable java.util.List<android.telephony.ims.RcsParticipant>, @Nullable String, @Nullable android.net.Uri) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.Rcs1To1Thread createRcs1To1Thread(@NonNull android.telephony.ims.RcsParticipant) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsParticipant createRcsParticipant(String, @Nullable String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void deleteThread(@NonNull android.telephony.ims.RcsThread) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsEventQueryResult getRcsEvents(@Nullable android.telephony.ims.RcsEventQueryParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsEventQueryResult getRcsEvents(@NonNull android.telephony.ims.RcsQueryContinuationToken) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsMessageQueryResult getRcsMessages(@Nullable android.telephony.ims.RcsMessageQueryParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsMessageQueryResult getRcsMessages(@NonNull android.telephony.ims.RcsQueryContinuationToken) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsParticipantQueryResult getRcsParticipants(@Nullable android.telephony.ims.RcsParticipantQueryParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsParticipantQueryResult getRcsParticipants(@NonNull android.telephony.ims.RcsQueryContinuationToken) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsThreadQueryResult getRcsThreads(@Nullable android.telephony.ims.RcsThreadQueryParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsThreadQueryResult getRcsThreads(@NonNull android.telephony.ims.RcsQueryContinuationToken) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public void persistRcsEvent(android.telephony.ims.RcsEvent) throws android.telephony.ims.RcsMessageStoreException;
}
public class RcsMessageStoreException extends java.lang.Exception {
ctor public RcsMessageStoreException(String);
}
public class RcsOutgoingMessage extends android.telephony.ims.RcsMessage {
method @NonNull @WorkerThread public java.util.List<android.telephony.ims.RcsOutgoingMessageDelivery> getOutgoingDeliveries() throws android.telephony.ims.RcsMessageStoreException;
method public boolean isIncoming();
}
public final class RcsOutgoingMessageCreationParams extends android.telephony.ims.RcsMessageCreationParams implements android.os.Parcelable {
method public int describeContents();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsOutgoingMessageCreationParams> CREATOR;
}
public static class RcsOutgoingMessageCreationParams.Builder extends android.telephony.ims.RcsMessageCreationParams.Builder {
ctor public RcsOutgoingMessageCreationParams.Builder(long, int);
method public android.telephony.ims.RcsOutgoingMessageCreationParams build();
}
public class RcsOutgoingMessageDelivery {
method @WorkerThread public long getDeliveredTimestamp() throws android.telephony.ims.RcsMessageStoreException;
method @NonNull public android.telephony.ims.RcsOutgoingMessage getMessage();
method @NonNull public android.telephony.ims.RcsParticipant getRecipient();
method @WorkerThread public long getSeenTimestamp() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @android.telephony.ims.RcsMessage.RcsMessageStatus public int getStatus() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setDeliveredTimestamp(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setSeenTimestamp(long) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setStatus(@android.telephony.ims.RcsMessage.RcsMessageStatus int) throws android.telephony.ims.RcsMessageStoreException;
}
public class RcsParticipant {
method @Nullable @WorkerThread public String getAlias() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public String getCanonicalAddress() throws android.telephony.ims.RcsMessageStoreException;
method @Nullable @WorkerThread public String getContactId() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setAlias(String) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void setContactId(String) throws android.telephony.ims.RcsMessageStoreException;
}
public final class RcsParticipantAliasChangedEvent extends android.telephony.ims.RcsEvent {
ctor public RcsParticipantAliasChangedEvent(long, @NonNull android.telephony.ims.RcsParticipant, @Nullable String);
method @Nullable public String getNewAlias();
method @NonNull public android.telephony.ims.RcsParticipant getParticipant();
}
public final class RcsParticipantQueryParams implements android.os.Parcelable {
method public int describeContents();
method public String getAliasLike();
method public String getCanonicalAddressLike();
method public int getLimit();
method public boolean getSortDirection();
method public int getSortingProperty();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsParticipantQueryParams> CREATOR;
field public static final int SORT_BY_ALIAS = 1; // 0x1
field public static final int SORT_BY_CANONICAL_ADDRESS = 2; // 0x2
field public static final int SORT_BY_CREATION_ORDER = 0; // 0x0
}
public static class RcsParticipantQueryParams.Builder {
ctor public RcsParticipantQueryParams.Builder();
method public android.telephony.ims.RcsParticipantQueryParams build();
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setAliasLike(String);
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setCanonicalAddressLike(String);
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setResultLimit(@IntRange(from=0) int) throws java.security.InvalidParameterException;
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setSortDirection(boolean);
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setSortProperty(@android.telephony.ims.RcsParticipantQueryParams.SortingProperty int);
method @CheckResult public android.telephony.ims.RcsParticipantQueryParams.Builder setThread(android.telephony.ims.RcsThread);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsParticipantQueryParams.SORT_BY_CREATION_ORDER, android.telephony.ims.RcsParticipantQueryParams.SORT_BY_ALIAS, android.telephony.ims.RcsParticipantQueryParams.SORT_BY_CANONICAL_ADDRESS}) public static @interface RcsParticipantQueryParams.SortingProperty {
}
public final class RcsParticipantQueryResult implements android.os.Parcelable {
method public int describeContents();
method @Nullable public android.telephony.ims.RcsQueryContinuationToken getContinuationToken();
method @NonNull public java.util.List<android.telephony.ims.RcsParticipant> getParticipants();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsParticipantQueryResult> CREATOR;
}
public final class RcsQueryContinuationToken implements android.os.Parcelable {
method public int describeContents();
method @android.telephony.ims.RcsQueryContinuationToken.ContinuationTokenType public int getQueryType();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsQueryContinuationToken> CREATOR;
field public static final int EVENT_QUERY_CONTINUATION_TOKEN_TYPE = 0; // 0x0
field public static final int MESSAGE_QUERY_CONTINUATION_TOKEN_TYPE = 1; // 0x1
field public static final int PARTICIPANT_QUERY_CONTINUATION_TOKEN_TYPE = 2; // 0x2
field public static final int THREAD_QUERY_CONTINUATION_TOKEN_TYPE = 3; // 0x3
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsQueryContinuationToken.EVENT_QUERY_CONTINUATION_TOKEN_TYPE, android.telephony.ims.RcsQueryContinuationToken.MESSAGE_QUERY_CONTINUATION_TOKEN_TYPE, android.telephony.ims.RcsQueryContinuationToken.PARTICIPANT_QUERY_CONTINUATION_TOKEN_TYPE, android.telephony.ims.RcsQueryContinuationToken.THREAD_QUERY_CONTINUATION_TOKEN_TYPE}) public static @interface RcsQueryContinuationToken.ContinuationTokenType {
}
public abstract class RcsThread {
method @WorkerThread @NonNull public android.telephony.ims.RcsIncomingMessage addIncomingMessage(@NonNull android.telephony.ims.RcsIncomingMessageCreationParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsOutgoingMessage addOutgoingMessage(@NonNull android.telephony.ims.RcsOutgoingMessageCreationParams) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread public void deleteMessage(@NonNull android.telephony.ims.RcsMessage) throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsMessageQueryResult getMessages() throws android.telephony.ims.RcsMessageStoreException;
method @WorkerThread @NonNull public android.telephony.ims.RcsMessageSnippet getSnippet() throws android.telephony.ims.RcsMessageStoreException;
method public abstract boolean isGroup();
}
public final class RcsThreadQueryParams implements android.os.Parcelable {
method public int describeContents();
method public int getLimit();
method public boolean getSortDirection();
method @android.telephony.ims.RcsThreadQueryParams.SortingProperty public int getSortingProperty();
method public int getThreadType();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsThreadQueryParams> CREATOR;
field public static final int SORT_BY_CREATION_ORDER = 0; // 0x0
field public static final int SORT_BY_TIMESTAMP = 1; // 0x1
field public static final int THREAD_TYPE_1_TO_1 = 2; // 0x2
field public static final int THREAD_TYPE_GROUP = 1; // 0x1
}
public static class RcsThreadQueryParams.Builder {
ctor public RcsThreadQueryParams.Builder();
method public android.telephony.ims.RcsThreadQueryParams build();
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setParticipant(@NonNull android.telephony.ims.RcsParticipant);
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setParticipants(@NonNull java.util.List<android.telephony.ims.RcsParticipant>);
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setResultLimit(@IntRange(from=0) int) throws java.security.InvalidParameterException;
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setSortDirection(boolean);
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setSortProperty(@android.telephony.ims.RcsThreadQueryParams.SortingProperty int);
method @CheckResult public android.telephony.ims.RcsThreadQueryParams.Builder setThreadType(int);
}
@java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.telephony.ims.RcsThreadQueryParams.SORT_BY_CREATION_ORDER, android.telephony.ims.RcsThreadQueryParams.SORT_BY_TIMESTAMP}) public static @interface RcsThreadQueryParams.SortingProperty {
}
public final class RcsThreadQueryResult implements android.os.Parcelable {
method public int describeContents();
method @Nullable public android.telephony.ims.RcsQueryContinuationToken getContinuationToken();
method @NonNull public java.util.List<android.telephony.ims.RcsThread> getThreads();
method public void writeToParcel(android.os.Parcel, int);
field public static final android.os.Parcelable.Creator<android.telephony.ims.RcsThreadQueryResult> CREATOR;
}
}
package android.telephony.mbms {
public class DownloadProgressListener {

View File

@@ -22,6 +22,8 @@ import android.annotation.WorkerThread;
* Rcs1To1Thread represents a single RCS conversation thread with a total of two
* {@link RcsParticipant}s. Please see Section 5 (1-to-1 Messaging) - GSMA RCC.71 (RCS Universal
* Profile Service Definition Document)
*
* @hide
*/
public class Rcs1To1Thread extends RcsThread {
private int mThreadId;

View File

@@ -17,6 +17,8 @@ package android.telephony.ims;
/**
* The base class for events that can happen on {@link RcsParticipant}s and {@link RcsThread}s.
*
* @hide
*/
public abstract class RcsEvent {
private final long mTimestamp;

View File

@@ -37,6 +37,8 @@ import java.security.InvalidParameterException;
* The parameters to pass into
* {@link RcsMessageStore#getRcsEvents(RcsEventQueryParams)} in order to select a
* subset of {@link RcsEvent}s present in the message store.
*
* @hide
*/
public final class RcsEventQueryParams implements Parcelable {
/**

View File

@@ -22,6 +22,8 @@ import java.util.List;
* The result of a {@link RcsMessageStore#getRcsEvents(RcsEventQueryParams)}
* call. This class allows getting the token for querying the next batch of events in order to
* prevent handling large amounts of data at once.
*
* @hide
*/
public class RcsEventQueryResult {
private RcsQueryContinuationToken mContinuationToken;

View File

@@ -24,6 +24,8 @@ import android.os.Parcelable;
* Pass an instance of this class to
* {@link RcsMessage#insertFileTransfer(RcsFileTransferCreationParams)} create an
* {@link RcsFileTransferPart} and save it into storage.
*
* @hide
*/
public final class RcsFileTransferCreationParams implements Parcelable {
private String mRcsFileTransferSessionId;

View File

@@ -26,6 +26,8 @@ import java.lang.annotation.RetentionPolicy;
/**
* A part of a composite {@link RcsMessage} that holds a file transfer. Please see Section 7
* (File Transfer) - GSMA RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public class RcsFileTransferPart {
/**

View File

@@ -29,6 +29,8 @@ import java.util.Set;
* RcsGroupThread represents a single RCS conversation thread where {@link RcsParticipant}s can join
* or leave. Please see Section 6 (Group Chat) - GSMA RCC.71 (RCS Universal Profile Service
* Definition Document)
*
* @hide
*/
public class RcsGroupThread extends RcsThread {
/**

View File

@@ -19,6 +19,8 @@ import android.annotation.NonNull;
/**
* An event that happened on an {@link RcsGroupThread}.
*
* @hide
*/
public abstract class RcsGroupThreadEvent extends RcsEvent {
private final int mRcsGroupThreadId;

View File

@@ -22,6 +22,8 @@ import android.net.Uri;
/**
* An event that indicates an {@link RcsGroupThread}'s icon was changed. Please see R6-2-5 - GSMA
* RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public final class RcsGroupThreadIconChangedEvent extends RcsGroupThreadEvent {
private final Uri mNewIcon;

View File

@@ -21,6 +21,8 @@ import android.annotation.Nullable;
/**
* An event that indicates an {@link RcsGroupThread}'s name was changed. Please see R6-2-5 - GSMA
* RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public final class RcsGroupThreadNameChangedEvent extends RcsGroupThreadEvent {
private final String mNewName;

View File

@@ -20,6 +20,8 @@ import android.annotation.NonNull;
/**
* An event that indicates an RCS participant has joined an {@link RcsThread}. Please see US6-3 -
* GSMA RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public final class RcsGroupThreadParticipantJoinedEvent extends RcsGroupThreadEvent {
private final RcsParticipant mJoinedParticipantId;

View File

@@ -20,6 +20,8 @@ import android.annotation.NonNull;
/**
* An event that indicates an RCS participant has left an {@link RcsThread}. Please see US6-23 -
* GSMA RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public final class RcsGroupThreadParticipantLeftEvent extends RcsGroupThreadEvent {
private RcsParticipant mLeavingParticipant;

View File

@@ -19,6 +19,8 @@ import android.annotation.WorkerThread;
/**
* This is a single instance of a message received over RCS.
*
* @hide
*/
public class RcsIncomingMessage extends RcsMessage {
/**

View File

@@ -24,6 +24,8 @@ import android.os.Parcelable;
* {@link RcsIncomingMessageCreationParams} is a collection of parameters that should be passed
* into {@link RcsThread#addIncomingMessage(RcsIncomingMessageCreationParams)} to generate an
* {@link RcsIncomingMessage} on that {@link RcsThread}
*
* @hide
*/
public final class RcsIncomingMessageCreationParams extends RcsMessageCreationParams implements
Parcelable {

View File

@@ -20,6 +20,8 @@ import android.content.Context;
/**
* The manager class for RCS related utilities.
*
* @hide
*/
@SystemService(Context.TELEPHONY_RCS_SERVICE)
public class RcsManager {

View File

@@ -27,6 +27,8 @@ import java.util.Set;
/**
* This is a single instance of a message sent or received over RCS.
*
* @hide
*/
public abstract class RcsMessage {
/**

View File

@@ -27,6 +27,8 @@ import android.os.Parcel;
* {@link RcsThread#addIncomingMessage(RcsIncomingMessageCreationParams)} and
* {@link RcsThread#addOutgoingMessage(RcsOutgoingMessageCreationParams)} to create and persist
* {@link RcsMessage}s on an {@link RcsThread}
*
* @hide
*/
public class RcsMessageCreationParams {
// The globally unique id of the RcsMessage to be created.

View File

@@ -31,6 +31,8 @@ import java.security.InvalidParameterException;
* The parameters to pass into
* {@link RcsMessageStore#getRcsMessages(RcsMessageQueryParams)} in order to select a
* subset of {@link RcsMessage}s present in the message store.
*
* @hide
*/
public final class RcsMessageQueryParams implements Parcelable {
/**

View File

@@ -32,6 +32,8 @@ import java.util.List;
* The result of a {@link RcsMessageStore#getRcsMessages(RcsMessageQueryParams)}
* call. This class allows getting the token for querying the next batch of messages in order to
* prevent handling large amounts of data at once.
*
* @hide
*/
public final class RcsMessageQueryResult implements Parcelable {
// The token to continue the query to get the next batch of results

View File

@@ -23,6 +23,8 @@ import android.telephony.ims.RcsMessage.RcsMessageStatus;
/**
* An immutable summary of the latest {@link RcsMessage} on an {@link RcsThread}
*
* @hide
*/
public final class RcsMessageSnippet implements Parcelable {
private final String mText;

View File

@@ -26,6 +26,8 @@ import java.util.List;
/**
* RcsMessageStore is the application interface to RcsProvider and provides access methods to
* RCS related database tables.
*
* @hide
*/
public class RcsMessageStore {
/**

View File

@@ -19,6 +19,8 @@ package android.telephony.ims;
/**
* An exception that happened on {@link RcsMessageStore} or one of the derived storage classes in
* {@link android.telephony.ims}
*
* @hide
*/
public class RcsMessageStoreException extends Exception {

View File

@@ -23,6 +23,8 @@ import java.util.List;
/**
* This is a single instance of a message sent over RCS.
*
* @hide
*/
public class RcsOutgoingMessage extends RcsMessage {
RcsOutgoingMessage(int id) {

View File

@@ -23,6 +23,8 @@ import android.os.Parcelable;
* {@link RcsOutgoingMessageCreationParams} is a collection of parameters that should be passed
* into {@link RcsThread#addOutgoingMessage(RcsOutgoingMessageCreationParams)} to generate an
* {@link RcsOutgoingMessage} on that {@link RcsThread}
*
* @hide
*/
public final class RcsOutgoingMessageCreationParams extends RcsMessageCreationParams
implements Parcelable {

View File

@@ -21,6 +21,8 @@ import android.annotation.WorkerThread;
/**
* This class holds the delivery information of an {@link RcsOutgoingMessage} for each
* {@link RcsParticipant} that the message was intended for.
*
* @hide
*/
public class RcsOutgoingMessageDelivery {
// The participant that this delivery is intended for

View File

@@ -20,6 +20,8 @@ import android.annotation.WorkerThread;
/**
* RcsParticipant is an RCS capable contact that can participate in {@link RcsThread}s.
*
* @hide
*/
public class RcsParticipant {
// The row ID of this participant in the database

View File

@@ -21,6 +21,8 @@ import android.annotation.Nullable;
/**
* An event that indicates an {@link RcsParticipant}'s alias was changed. Please see US18-2 - GSMA
* RCC.71 (RCS Universal Profile Service Definition Document)
*
* @hide
*/
public final class RcsParticipantAliasChangedEvent extends RcsEvent {
// The participant that changed their alias

View File

@@ -30,6 +30,8 @@ import java.security.InvalidParameterException;
* The parameters to pass into
* {@link RcsMessageStore#getRcsParticipants(RcsParticipantQueryParams)} in order to select a
* subset of {@link RcsThread}s present in the message store.
*
* @hide
*/
public final class RcsParticipantQueryParams implements Parcelable {
/**

View File

@@ -28,6 +28,8 @@ import java.util.List;
* The result of a {@link RcsMessageStore#getRcsParticipants(RcsParticipantQueryParams)}
* call. This class allows getting the token for querying the next batch of participants in order to
* prevent handling large amounts of data at once.
*
* @hide
*/
public final class RcsParticipantQueryResult implements Parcelable {
// A token for the caller to continue their query for the next batch of results

View File

@@ -31,6 +31,8 @@ import java.lang.annotation.RetentionPolicy;
* @see RcsMessageQueryResult#getContinuationToken()
* @see RcsParticipantQueryResult#getContinuationToken()
* @see RcsThreadQueryResult#getContinuationToken()
*
* @hide
*/
public final class RcsQueryContinuationToken implements Parcelable {
/**

View File

@@ -27,6 +27,8 @@ import com.android.internal.annotations.VisibleForTesting;
/**
* RcsThread represents a single RCS conversation thread. It holds messages that were sent and
* received and events that occurred on that thread.
*
* @hide
*/
public abstract class RcsThread {
/**

View File

@@ -35,6 +35,8 @@ import java.util.Set;
/**
* The parameters to pass into {@link RcsMessageStore#getRcsThreads(RcsThreadQueryParams)} in
* order to select a subset of {@link RcsThread}s present in the message store.
*
* @hide
*/
public final class RcsThreadQueryParams implements Parcelable {
/**

View File

@@ -32,6 +32,8 @@ import java.util.List;
* The result of a {@link RcsMessageStore#getRcsThreads(RcsThreadQueryParams)}
* call. This class allows getting the token for querying the next batch of threads in order to
* prevent handling large amounts of data at once.
*
* @hide
*/
public final class RcsThreadQueryResult implements Parcelable {
// A token for the caller to continue their query for the next batch of results