diff options
41 files changed, 1169 insertions, 52 deletions
diff --git a/telephony/java/android/telephony/ims/Rcs1To1Thread.aidl b/telephony/java/android/telephony/ims/Rcs1To1Thread.aidl new file mode 100644 index 000000000000..9fdc41d2bd5f --- /dev/null +++ b/telephony/java/android/telephony/ims/Rcs1To1Thread.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable Rcs1To1Thread; diff --git a/telephony/java/android/telephony/ims/Rcs1To1Thread.java b/telephony/java/android/telephony/ims/Rcs1To1Thread.java new file mode 100644 index 000000000000..5122c7daafe6 --- /dev/null +++ b/telephony/java/android/telephony/ims/Rcs1To1Thread.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * Rcs1To1Thread represents a single RCS conversation thread with a total of two + * {@link RcsParticipant}s. + * @hide - TODO(sahinc) make this public + */ +public class Rcs1To1Thread extends RcsThread { + public static final Creator<Rcs1To1Thread> CREATOR = new Creator<Rcs1To1Thread>() { + @Override + public Rcs1To1Thread createFromParcel(Parcel in) { + return new Rcs1To1Thread(in); + } + + @Override + public Rcs1To1Thread[] newArray(int size) { + return new Rcs1To1Thread[size]; + } + }; + + protected Rcs1To1Thread(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsFileTransferPart.aidl b/telephony/java/android/telephony/ims/RcsFileTransferPart.aidl new file mode 100644 index 000000000000..eaf312877deb --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsFileTransferPart.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsFileTransferPart; diff --git a/telephony/java/android/telephony/ims/RcsFileTransferPart.java b/telephony/java/android/telephony/ims/RcsFileTransferPart.java new file mode 100644 index 000000000000..39c58dd9c15b --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsFileTransferPart.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * A part of a composite {@link RcsMessage} that holds a file transfer. + * @hide - TODO(sahinc) make this public + */ +public class RcsFileTransferPart extends RcsPart { + public static final Creator<RcsFileTransferPart> CREATOR = new Creator<RcsFileTransferPart>() { + @Override + public RcsFileTransferPart createFromParcel(Parcel in) { + return new RcsFileTransferPart(in); + } + + @Override + public RcsFileTransferPart[] newArray(int size) { + return new RcsFileTransferPart[size]; + } + }; + + protected RcsFileTransferPart(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsGroupThread.aidl b/telephony/java/android/telephony/ims/RcsGroupThread.aidl new file mode 100644 index 000000000000..c4ce5299e512 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsGroupThread.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsGroupThread; diff --git a/telephony/java/android/telephony/ims/RcsGroupThread.java b/telephony/java/android/telephony/ims/RcsGroupThread.java new file mode 100644 index 000000000000..150c4d49757c --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsGroupThread.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * RcsGroupThread represents a single RCS conversation thread where {@link RcsParticipant}s can join + * or leave. + * @hide - TODO(sahinc) make this public + */ +public class RcsGroupThread extends RcsThread { + public static final Creator<RcsGroupThread> CREATOR = new Creator<RcsGroupThread>() { + @Override + public RcsGroupThread createFromParcel(Parcel in) { + return new RcsGroupThread(in); + } + + @Override + public RcsGroupThread[] newArray(int size) { + return new RcsGroupThread[size]; + } + }; + + protected RcsGroupThread(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsIncomingMessage.aidl b/telephony/java/android/telephony/ims/RcsIncomingMessage.aidl new file mode 100644 index 000000000000..6552a82c9072 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsIncomingMessage.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsIncomingMessage; diff --git a/telephony/java/android/telephony/ims/RcsIncomingMessage.java b/telephony/java/android/telephony/ims/RcsIncomingMessage.java new file mode 100644 index 000000000000..f39e06db068a --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsIncomingMessage.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * This is a single instance of a message received over RCS. + * @hide - TODO(sahinc) make this public + */ +public class RcsIncomingMessage extends RcsMessage { + public static final Creator<RcsIncomingMessage> CREATOR = new Creator<RcsIncomingMessage>() { + @Override + public RcsIncomingMessage createFromParcel(Parcel in) { + return new RcsIncomingMessage(in); + } + + @Override + public RcsIncomingMessage[] newArray(int size) { + return new RcsIncomingMessage[size]; + } + }; + + protected RcsIncomingMessage(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsLocationPart.aidl b/telephony/java/android/telephony/ims/RcsLocationPart.aidl new file mode 100644 index 000000000000..4fe5ca97a30d --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsLocationPart.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsLocationPart; diff --git a/telephony/java/android/telephony/ims/RcsLocationPart.java b/telephony/java/android/telephony/ims/RcsLocationPart.java new file mode 100644 index 000000000000..19be4ceaf688 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsLocationPart.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * A part of a composite {@link RcsMessage} that holds a location + * @hide - TODO(sahinc) make this public + */ +public class RcsLocationPart extends RcsPart { + public static final Creator<RcsLocationPart> CREATOR = new Creator<RcsLocationPart>() { + @Override + public RcsLocationPart createFromParcel(Parcel in) { + return new RcsLocationPart(in); + } + + @Override + public RcsLocationPart[] newArray(int size) { + return new RcsLocationPart[size]; + } + }; + + protected RcsLocationPart(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsManager.aidl b/telephony/java/android/telephony/ims/RcsManager.aidl new file mode 100644 index 000000000000..63bc71c5ee46 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsManager.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsManager; diff --git a/telephony/java/android/telephony/ims/RcsManager.java b/telephony/java/android/telephony/ims/RcsManager.java index d50b516b8754..df108c88e3b0 100644 --- a/telephony/java/android/telephony/ims/RcsManager.java +++ b/telephony/java/android/telephony/ims/RcsManager.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/telephony/java/android/telephony/ims/RcsMessage.aidl b/telephony/java/android/telephony/ims/RcsMessage.aidl new file mode 100644 index 000000000000..b32cd1208c40 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsMessage.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2018, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsMessage; diff --git a/telephony/java/android/telephony/ims/RcsMessage.java b/telephony/java/android/telephony/ims/RcsMessage.java new file mode 100644 index 000000000000..d46685c4a572 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsMessage.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcelable; + +/** + * This is a single instance of a message sent or received over RCS. + * @hide - TODO(sahinc) make this public + */ +public abstract class RcsMessage implements Parcelable { +} diff --git a/telephony/java/android/telephony/ims/RcsMessageStore.java b/telephony/java/android/telephony/ims/RcsMessageStore.java index c89c0bebb1a1..4198c78a8191 100644 --- a/telephony/java/android/telephony/ims/RcsMessageStore.java +++ b/telephony/java/android/telephony/ims/RcsMessageStore.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/telephony/java/android/telephony/ims/RcsMultiMediaPart.java b/telephony/java/android/telephony/ims/RcsMultiMediaPart.java new file mode 100644 index 000000000000..d295fba365f0 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsMultiMediaPart.java @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * A part of a composite {@link RcsMessage} that holds a media that is rendered on the screen + * (i.e. image, video etc) + * @hide - TODO(sahinc) make this public + */ +public class RcsMultiMediaPart extends RcsFileTransferPart { + public static final Creator<RcsMultiMediaPart> CREATOR = new Creator<RcsMultiMediaPart>() { + @Override + public RcsMultiMediaPart createFromParcel(Parcel in) { + return new RcsMultiMediaPart(in); + } + + @Override + public RcsMultiMediaPart[] newArray(int size) { + return new RcsMultiMediaPart[size]; + } + }; + + protected RcsMultiMediaPart(Parcel in) { + super(in); + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsMultimediaPart.aidl b/telephony/java/android/telephony/ims/RcsMultimediaPart.aidl new file mode 100644 index 000000000000..5992d95c3b9c --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsMultimediaPart.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsMultimediaPart; diff --git a/telephony/java/android/telephony/ims/RcsOutgoingMessage.aidl b/telephony/java/android/telephony/ims/RcsOutgoingMessage.aidl new file mode 100644 index 000000000000..6e0c80f3af81 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsOutgoingMessage.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsOutgoingMessage; diff --git a/telephony/java/android/telephony/ims/RcsOutgoingMessage.java b/telephony/java/android/telephony/ims/RcsOutgoingMessage.java new file mode 100644 index 000000000000..bfb161133618 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsOutgoingMessage.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * This is a single instance of a message sent over RCS. + * @hide - TODO(sahinc) make this public + */ +public class RcsOutgoingMessage extends RcsMessage { + public static final Creator<RcsOutgoingMessage> CREATOR = new Creator<RcsOutgoingMessage>() { + @Override + public RcsOutgoingMessage createFromParcel(Parcel in) { + return new RcsOutgoingMessage(in); + } + + @Override + public RcsOutgoingMessage[] newArray(int size) { + return new RcsOutgoingMessage[size]; + } + }; + + protected RcsOutgoingMessage(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsPart.aidl b/telephony/java/android/telephony/ims/RcsPart.aidl new file mode 100644 index 000000000000..8b8077d57676 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsPart.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsPart; diff --git a/telephony/java/android/telephony/ims/RcsPart.java b/telephony/java/android/telephony/ims/RcsPart.java new file mode 100644 index 000000000000..da501738a0bf --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsPart.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcelable; + +/** + * A part of a composite {@link RcsMessage}. + * @hide - TODO(sahinc) make this public + */ +public abstract class RcsPart implements Parcelable { +} diff --git a/telephony/java/android/telephony/ims/RcsParticipant.aidl b/telephony/java/android/telephony/ims/RcsParticipant.aidl new file mode 100644 index 000000000000..1c4436367e54 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipant.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsParticipant; diff --git a/telephony/java/android/telephony/ims/RcsParticipant.java b/telephony/java/android/telephony/ims/RcsParticipant.java new file mode 100644 index 000000000000..318dba3fcbca --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipant.java @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; +import android.os.Parcelable; + +/** + * RcsParticipant is an RCS capable contact that can participate in {@link RcsThread}s. + * @hide - TODO(sahinc) make this public + */ +public class RcsParticipant implements Parcelable { + public static final Creator<RcsParticipant> CREATOR = new Creator<RcsParticipant>() { + @Override + public RcsParticipant createFromParcel(Parcel in) { + return new RcsParticipant(in); + } + + @Override + public RcsParticipant[] newArray(int size) { + return new RcsParticipant[size]; + } + }; + + protected RcsParticipant(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + + } +} diff --git a/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.aidl b/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.aidl new file mode 100644 index 000000000000..b9d819054527 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsParticipantAliasChangedEvent; diff --git a/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.java b/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.java new file mode 100644 index 000000000000..b9ca5a86f84d --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipantAliasChangedEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * An event that indicates an {@link RcsParticipant}'s alias was changed. + * @hide - TODO(sahinc) make this public + */ +public class RcsParticipantAliasChangedEvent extends RcsParticipantEvent { + public static final Creator<RcsParticipantAliasChangedEvent> CREATOR = + new Creator<RcsParticipantAliasChangedEvent>() { + @Override + public RcsParticipantAliasChangedEvent createFromParcel(Parcel in) { + return new RcsParticipantAliasChangedEvent(in); + } + + @Override + public RcsParticipantAliasChangedEvent[] newArray(int size) { + return new RcsParticipantAliasChangedEvent[size]; + } + }; + + protected RcsParticipantAliasChangedEvent(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsParticipantEvent.aidl b/telephony/java/android/telephony/ims/RcsParticipantEvent.aidl new file mode 100644 index 000000000000..c0a77897abd5 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipantEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsParticipantEvent; diff --git a/telephony/java/android/telephony/ims/RcsParticipantEvent.java b/telephony/java/android/telephony/ims/RcsParticipantEvent.java new file mode 100644 index 000000000000..371b8b723d0a --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsParticipantEvent.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcelable; + +/** + * An event that is associated with an {@link RcsParticipant} + * @hide - TODO(sahinc) make this public + */ +public abstract class RcsParticipantEvent implements Parcelable { +} diff --git a/telephony/java/android/telephony/ims/RcsTextPart.aidl b/telephony/java/android/telephony/ims/RcsTextPart.aidl new file mode 100644 index 000000000000..4f9fe1fe26fe --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsTextPart.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsTextPart; diff --git a/telephony/java/android/telephony/ims/RcsTextPart.java b/telephony/java/android/telephony/ims/RcsTextPart.java new file mode 100644 index 000000000000..2a72df17f32a --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsTextPart.java @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * A part of a composite {@link RcsMessage} that holds a string + * @hide - TODO(sahinc) make this public + */ +public class RcsTextPart extends RcsPart { + public static final Creator<RcsTextPart> CREATOR = new Creator<RcsTextPart>() { + @Override + public RcsTextPart createFromParcel(Parcel in) { + return new RcsTextPart(in); + } + + @Override + public RcsTextPart[] newArray(int size) { + return new RcsTextPart[size]; + } + }; + + protected RcsTextPart(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsThread.aidl b/telephony/java/android/telephony/ims/RcsThread.aidl index 79d473266272..d9cf6dbc0ff0 100644 --- a/telephony/java/android/telephony/ims/RcsThread.aidl +++ b/telephony/java/android/telephony/ims/RcsThread.aidl @@ -1,6 +1,6 @@ /* * - * Copyright 2018, The Android Open Source Project + * Copyright 2019, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/telephony/java/android/telephony/ims/RcsThread.java b/telephony/java/android/telephony/ims/RcsThread.java index b7f440d94583..2969ffdda0e8 100644 --- a/telephony/java/android/telephony/ims/RcsThread.java +++ b/telephony/java/android/telephony/ims/RcsThread.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 The Android Open Source Project + * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,59 +16,13 @@ package android.telephony.ims; -import android.os.Parcel; import android.os.Parcelable; -import android.os.RemoteException; -import android.os.ServiceManager; -import android.telephony.ims.aidl.IRcs; /** * RcsThread represents a single RCS conversation thread. It holds messages that were sent and - * received and events that occured on that thread. + * received and events that occurred on that thread. * @hide - TODO(sahinc) make this public */ -public class RcsThread implements Parcelable { - public static final Creator<RcsThread> CREATOR = new Creator<RcsThread>() { - @Override - public RcsThread createFromParcel(Parcel in) { - return new RcsThread(in); - } +public abstract class RcsThread implements Parcelable { - @Override - public RcsThread[] newArray(int size) { - return new RcsThread[size]; - } - }; - - protected RcsThread(Parcel in) { - } - - /** - * Returns the number of messages in this RCS thread. - * - * @hide - */ - public int getMessageCount() { - try { - IRcs iRcs = IRcs.Stub.asInterface(ServiceManager.getService("ircs")); - if (iRcs != null) { - // TODO(sahinc): substitute to the regular thread id once we have database - // TODO(sahinc): connection in place - return iRcs.getMessageCount(/* rcsThreadId= */ 123); - } - } catch (RemoteException re) { - // TODO(sahinc): Log something meaningful - } - return 0; - } - - /** Implement the Parcelable interface */ - @Override - public int describeContents() { - return 0; - } - - @Override - public void writeToParcel(Parcel dest, int flags) { - } } diff --git a/telephony/java/android/telephony/ims/RcsThreadEvent.aidl b/telephony/java/android/telephony/ims/RcsThreadEvent.aidl new file mode 100644 index 000000000000..4a40d8906bbb --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsThreadEvent; diff --git a/telephony/java/android/telephony/ims/RcsThreadEvent.java b/telephony/java/android/telephony/ims/RcsThreadEvent.java new file mode 100644 index 000000000000..e10baab9d8c5 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadEvent.java @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcelable; + +/** + * An event that happened on an {@link RcsThread}. + * @hide - TODO(sahinc) make this public + */ +public abstract class RcsThreadEvent implements Parcelable { +} diff --git a/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.aidl b/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.aidl new file mode 100644 index 000000000000..82d985df4c6c --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsThreadIconChangedEvent; diff --git a/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.java b/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.java new file mode 100644 index 000000000000..b308fef46435 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadIconChangedEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * An event that indicates an {@link RcsGroupThread}'s icon was changed. + * @hide - TODO(sahinc) make this public + */ +public class RcsThreadIconChangedEvent extends RcsThreadEvent { + public static final Creator<RcsThreadIconChangedEvent> CREATOR = + new Creator<RcsThreadIconChangedEvent>() { + @Override + public RcsThreadIconChangedEvent createFromParcel(Parcel in) { + return new RcsThreadIconChangedEvent(in); + } + + @Override + public RcsThreadIconChangedEvent[] newArray(int size) { + return new RcsThreadIconChangedEvent[size]; + } + }; + + protected RcsThreadIconChangedEvent(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.aidl b/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.aidl new file mode 100644 index 000000000000..54a311d02958 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsThreadNameChangedEvent; diff --git a/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.java b/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.java new file mode 100644 index 000000000000..6f5cfdf3b4c4 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadNameChangedEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * An event that indicates an {@link RcsGroupThread}'s name was changed. + * @hide - TODO(sahinc) make this public + */ +public class RcsThreadNameChangedEvent extends RcsThreadEvent { + public static final Creator<RcsThreadNameChangedEvent> CREATOR = + new Creator<RcsThreadNameChangedEvent>() { + @Override + public RcsThreadNameChangedEvent createFromParcel(Parcel in) { + return new RcsThreadNameChangedEvent(in); + } + + @Override + public RcsThreadNameChangedEvent[] newArray(int size) { + return new RcsThreadNameChangedEvent[size]; + } + }; + + protected RcsThreadNameChangedEvent(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.aidl b/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.aidl new file mode 100644 index 000000000000..047a42466ee7 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsThreadParticipantJoinedEvent; diff --git a/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.java b/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.java new file mode 100644 index 000000000000..5c4073c430e7 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadParticipantJoinedEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * An event that indicates an RCS participant has joined an {@link RcsGroupThread}. + * @hide - TODO(sahinc) make this public + */ +public class RcsThreadParticipantJoinedEvent extends RcsThreadEvent { + public static final Creator<RcsThreadParticipantJoinedEvent> CREATOR = + new Creator<RcsThreadParticipantJoinedEvent>() { + @Override + public RcsThreadParticipantJoinedEvent createFromParcel(Parcel in) { + return new RcsThreadParticipantJoinedEvent(in); + } + + @Override + public RcsThreadParticipantJoinedEvent[] newArray(int size) { + return new RcsThreadParticipantJoinedEvent[size]; + } + }; + + protected RcsThreadParticipantJoinedEvent(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} diff --git a/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.aidl b/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.aidl new file mode 100644 index 000000000000..52f9bbd3cd93 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.aidl @@ -0,0 +1,20 @@ +/* + * + * Copyright 2019, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telephony.ims; + +parcelable RcsThreadParticipantLeftEvent; diff --git a/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.java b/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.java new file mode 100644 index 000000000000..4bf86b90ebb7 --- /dev/null +++ b/telephony/java/android/telephony/ims/RcsThreadParticipantLeftEvent.java @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2019 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package android.telephony.ims; + +import android.os.Parcel; + +/** + * An event that indicates an RCS participant has left an {@link RcsGroupThread}. + * @hide - TODO(sahinc) make this public + */ +public class RcsThreadParticipantLeftEvent extends RcsThreadEvent { + public static final Creator<RcsThreadParticipantLeftEvent> CREATOR = + new Creator<RcsThreadParticipantLeftEvent>() { + @Override + public RcsThreadParticipantLeftEvent createFromParcel(Parcel in) { + return new RcsThreadParticipantLeftEvent(in); + } + + @Override + public RcsThreadParticipantLeftEvent[] newArray(int size) { + return new RcsThreadParticipantLeftEvent[size]; + } + }; + + protected RcsThreadParticipantLeftEvent(Parcel in) { + } + + @Override + public int describeContents() { + return 0; + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + } +} |