Lines Matching defs:Attachment
55 public class Attachment implements Parcelable {
73 * Attachment file name. See {@link AttachmentColumns#NAME} Use {@link #setName(String)}.
78 * Attachment size in bytes. See {@link AttachmentColumns#SIZE}.
83 * The provider-generated URI for this Attachment. Must be globally unique.
171 public Attachment() {
174 public Attachment(Parcel in) {
191 public Attachment(Cursor cursor) {
216 public Attachment(JSONObject srcJson) {
236 public Attachment(Context context, Part part, Uri emlFileUri, String messageId, String cid,
289 public Attachment(ContentValues values) {
541 final Attachment that = (Attachment) o;
612 public static String toJSONArray(Collection<? extends Attachment> attachments) {
618 for (Attachment attachment : attachments) {
627 public static List<Attachment> fromJSONArray(String jsonArrayStr) {
628 final List<Attachment> results = Lists.newArrayList();
634 results.add(new Attachment(arr.getJSONObject(i)));
710 public static final Creator<Attachment> CREATOR = new Creator<Attachment>() {
712 public Attachment createFromParcel(Parcel source) {
713 return new Attachment(source);
717 public Attachment[] newArray(int size) {
718 return new Attachment[size];