Lines Matching defs:MessagePartData
53 public class MessagePartData implements Parcelable {
105 protected MessagePartData() {
112 protected MessagePartData(final String messageText) {
120 protected MessagePartData(final String contentType, final Uri contentUri,
128 protected MessagePartData(final String messageText, final String contentType,
136 protected MessagePartData(final String messageText, final String contentType,
144 private MessagePartData(final String messageId, final String messageText,
159 public static MessagePartData createTextMessagePart(final String messageText) {
160 return new MessagePartData(messageText);
166 public static MessagePartData createMediaMessagePart(final String contentType,
168 return new MessagePartData(contentType, contentUri, width, height);
174 public static MessagePartData createMediaMessagePart(final String caption,
176 return new MessagePartData(null, caption, contentType, contentUri, width, height,
184 public static MessagePartData createEmptyMessagePart() {
185 return new MessagePartData("");
191 public static MessagePartData createFromCursor(final Cursor cursor) {
192 final MessagePartData part = new MessagePartData();
344 protected MessagePartData(final Parcel in) {
370 if (!(o instanceof MessagePartData)) {
374 MessagePartData lhs = (MessagePartData) o;
394 public static final Parcelable.Creator<MessagePartData> CREATOR
395 = new Parcelable.Creator<MessagePartData>() {
397 public MessagePartData createFromParcel(final Parcel in) {
398 return new MessagePartData(in);
402 public MessagePartData[] newArray(final int size) {
403 return new MessagePartData[size];
467 * Computes the minimum size that this MessagePartData could be compressed/downsampled/encoded