Searched refs:AttachmentState (Results 1 – 14 of 14) sorted by relevance
35 import com.android.mail.providers.UIProvider.AttachmentState;269 state = AttachmentState.SAVED; in Attachment()435 return state == AttachmentState.SAVED; in isPresentLocally()447 return state == AttachmentState.DOWNLOADING || state == AttachmentState.PAUSED; in isDownloading()451 return state == AttachmentState.SAVED && destination == AttachmentDestination.EXTERNAL; in isSavedToExternal()459 return (state == AttachmentState.DOWNLOADING || state == AttachmentState.PAUSED) in shouldShowProgress()464 return state == AttachmentState.FAILED; in isDownloadFailed()468 return state == AttachmentState.FAILED || state == AttachmentState.SAVED; in isDownloadFinishedOrFailed()539 if (state == AttachmentState.FAILED || state == AttachmentState.NOT_SAVED) { in setState()
1992 public static final class AttachmentState { class in UIProvider2053 private AttachmentState() {} in AttachmentState() method in UIProvider.AttachmentState
39 import com.android.mail.providers.UIProvider.AttachmentState;127 params.put(AttachmentColumns.STATE, AttachmentState.DOWNLOADING); in startDownloadingAttachment()138 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); in cancelAttachment()145 params.put(AttachmentColumns.STATE, AttachmentState.REDOWNLOADING); in startRedownloadingAttachment()199 if (mAttachment.state == AttachmentState.SAVED && mViewOnFinish) { in updateStatus()
28 import com.android.mail.providers.UIProvider.AttachmentState;96 params.put(AttachmentColumns.STATE, AttachmentState.NOT_SAVED); in cancelAttachment()
47 import com.android.mail.providers.UIProvider.AttachmentState;420 if (mAttachment.state == AttachmentState.FAILED) { in updateSubtitleText()
56 import com.android.mail.providers.UIProvider.AttachmentState;83 if (att == null || att.mUiState != AttachmentState.DOWNLOADING) return;395 AttachmentColumns.UI_STATE + "=" + AttachmentState.DOWNLOADING, in synchronizePop3Mailbox()400 values.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in synchronizePop3Mailbox()422 values.put(AttachmentColumns.UI_STATE, AttachmentState.SAVED); in synchronizePop3Mailbox()
49 import com.android.mail.providers.UIProvider.AttachmentState;516 values.put(AttachmentColumns.UI_STATE, AttachmentState.DOWNLOADING); in getAttachmentUpdateValues()817 cv.put(AttachmentColumns.UI_STATE, AttachmentState.FAILED); in markAttachmentAsFailed()829 cv.put(AttachmentColumns.UI_STATE, AttachmentState.SAVED); in markAttachmentAsCompleted()
147 && attachment.mUiState == UIProvider.AttachmentState.SAVED) { in loadAttachment()239 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in loadAttachment()
457 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachment()460 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.FAILED); in saveAttachment()
259 if (attachment.state == UIProvider.AttachmentState.PAUSED) { in onFragmentVisible()
493 UIProvider.AttachmentState.DOWNLOADING); in testServiceCallbackAttachmentInProgressUpdate()
4303 att.mUiState == UIProvider.AttachmentState.SAVED && in AttachmentsCursor()5158 if (state == UIProvider.AttachmentState.NOT_SAVED in uiUpdateAttachment()5159 || state == UIProvider.AttachmentState.REDOWNLOADING) { in uiUpdateAttachment()5161 values.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.NOT_SAVED); in uiUpdateAttachment()5167 if (state == UIProvider.AttachmentState.DOWNLOADING in uiUpdateAttachment()5168 || state == UIProvider.AttachmentState.REDOWNLOADING) { in uiUpdateAttachment()5170 values.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.DOWNLOADING); in uiUpdateAttachment()5186 if (state == UIProvider.AttachmentState.SAVED) { in uiUpdateAttachment()
1147 AttachmentColumns.UI_STATE + "=" + UIProvider.AttachmentState.SAVED + in onUpgrade()1860 "=" + UIProvider.AttachmentState.SAVED + " where " + in upgradeToEmail2()
360 cv.put(AttachmentColumns.UI_STATE, UIProvider.AttachmentState.SAVED); in saveAttachmentBody()