Home
last modified time | relevance | path

Searched refs:mAttachment (Results 1 – 8 of 8) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentBar.java63 private Attachment mAttachment; field in MessageAttachmentBar
124 final Attachment prevAttachment = mAttachment; in render()
125 mAttachment = attachment; in render()
130 mActionHandler.setAttachment(mAttachment); in render()
193 if (mAttachment.canSave()) { in onClick()
198 "save_attachment", Utils.normalizeMimeType(mAttachment.getContentType()), in onClick()
199 "attachment_bar", mAttachment.size); in onClick()
202 if (mAttachment.isPresentLocally()) { in onClick()
204 mActionHandler.startRedownloadingAttachment(mAttachment); in onClick()
207 Utils.normalizeMimeType(mAttachment.getContentType()), "attachment_bar", in onClick()
[all …]
DAttachmentActionHandler.java51 private Attachment mAttachment; field in AttachmentActionHandler
85 mAttachment = attachment; in setAttachment()
99 if (mAttachment.isPresentLocally() && in showAttachment()
101 mAttachment.destination == destination)) { in showAttachment()
120 mAttachment, destination, rendition, additionalPriority, delayDownload); in startDownloadingAttachment()
140 mCommandHandler.sendCommand(mAttachment.uri, params); in cancelAttachment()
165 mAttachment); in showDownloadingDialog()
178 final boolean showProgress = mAttachment.shouldShowProgress(); in updateStatus()
182 if (dialog != null && dialog.isShowingDialogForAttachment(mAttachment)) { in updateStatus()
183 dialog.setProgress(mAttachment.downloadedSize); in updateStatus()
[all …]
DAttachmentProgressDialogFragment.java35 private Attachment mAttachment; field in AttachmentProgressDialogFragment
57 mAttachment = args.getParcelable(ATTACHMENT_KEY); in onCreate()
70 mDialog.setMessage(mAttachment.getName()); in onCreateDialog()
73 mDialog.setMax(mAttachment.size); in onCreateDialog()
98 mCommandHandler.sendCommand(mAttachment.uri, params); in cancelAttachment()
119 && Objects.equal(attachment.getIdentifierUri(), mAttachment.getIdentifierUri()); in isShowingDialogForAttachment()
DMessageAttachmentTile.java103 mActionHandler.setAttachment(mAttachment); in render()
158 if (!mAttachment.isPresentLocally()) { in downloadAttachment()
166 final String mime = Utils.normalizeMimeType(mAttachment.getContentType()); in viewAttachment()
169 .sendEvent("view_attachment", mime, "attachment_tile", mAttachment.size); in viewAttachment()
184 intent, mAttachment.contentUri, mime); in viewAttachment()
/packages/apps/Exchange/src/com/android/exchange/eas/
DEasLoadAttachment.java68 private Attachment mAttachment; field in EasLoadAttachment
106 private final EmailContent.Attachment mAttachment; field in EasLoadAttachment.ProgressCallback
111 mAttachment = attachment; in ProgressCallback()
115 doStatusCallback(mCallback, mAttachment.mMessageKey, mAttachment.mId, in doCallback()
151 mAttachment = EmailContent.Attachment.restoreAttachmentWithId(mContext, mAttachmentId); in performOperation()
152 if (mAttachment == null) { in performOperation()
158 if (mAttachment.mLocation == null) { in performOperation()
165 .restoreMessageWithId(mContext, mAttachment.mMessageKey); in performOperation()
167 LogUtils.e(LOG_TAG, "Could not load message %d", mAttachment.mMessageKey); in performOperation()
168 doStatusCallback(mCallback, mAttachment.mMessageKey, mAttachmentId, in performOperation()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentComposeView.java38 private final Attachment mAttachment; field in AttachmentComposeView
43 mAttachment = attachment; in AttachmentComposeView()
66 mAttachment.getName())); in addDeleteListener()
70 ((TextView) findViewById(R.id.attachment_name)).setText(mAttachment.getName()); in populateAttachmentData()
72 if (mAttachment.size > 0) { in populateAttachmentData()
74 setText(AttachmentUtils.convertToHumanReadableSize(context, mAttachment.size)); in populateAttachmentData()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAttachmentTile.java46 protected Attachment mAttachment; field in AttachmentTile
97 ThumbnailLoadTask.setupThumbnailPreview(mAttachmentPreviewCache, this, mAttachment, null); in onLayout()
101 return mAttachment; in getAttachment()
115 final Attachment prevAttachment = mAttachment; in render()
116 mAttachment = attachment; in render()
157 final Bitmap cachedPreview = mAttachmentPreviewCache.get(mAttachment); in setThumbnailToDefault()
220 mAttachmentPreviewCache.set(mAttachment, result); in setThumbnail()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java112 private int mAttachment = INVALID_VALUE_PARAMETER; field in BluetoothMapAppParams
647 return mAttachment; in getAttachment()
653 this.mAttachment = attachment; in setAttachment()