Searched refs:att (Results 1 – 20 of 20) sorted by relevance
749 public synchronized void onChange(final Context context, final Attachment att) { in onChange() argument750 debugTrace("onChange() for Attachment: #%d", att.mId); in onChange()751 DownloadRequest req = mDownloadQueue.findRequestById(att.mId); in onChange()752 final long priority = getAttachmentPriority(att); in onChange()755 att.mId); in onChange()764 if (mDownloadsInProgress.containsKey(att.mId)) { in onChange()765 debugTrace("Attachment #%d was already in the queue", att.mId); in onChange()770 LogUtils.d(LOG_TAG, "Attachment #%d is a new download request", att.mId); in onChange()771 req = new DownloadRequest(context, att); in onChange()772 final AttachmentInfo attachInfo = new AttachmentInfo(context, att); in onChange()[all …]
82 Attachment att = Attachment.restoreAttachmentWithId(mContext, attachmentId);83 if (att == null || att.mUiState != AttachmentState.DOWNLOADING) return;84 long inboxId = Mailbox.findMailboxOfType(mContext, att.mAccountKey, Mailbox.TYPE_INBOX);401 Attachment att = new Attachment(); in synchronizePop3Mailbox() local402 att.restore(c); in synchronizePop3Mailbox()403 Message msg = Message.restoreMessageWithId(context, att.mMessageKey); in synchronizePop3Mailbox()405 values.put(AttachmentColumns.UI_DOWNLOADED_SIZE, att.mSize); in synchronizePop3Mailbox()406 resolver.update(ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId), in synchronizePop3Mailbox()413 Uri attUri = ContentUris.withAppendedId(Attachment.CONTENT_URI, att.mId); in synchronizePop3Mailbox()
237 Attachment att = new Attachment(); in setupAttachment() local238 att.mSize = length; in setupAttachment()239 att.mFileName = fileName; in setupAttachment()240 att.mContentId = "contentId " + fileName; in setupAttachment()241 att.setContentUri("contentUri " + fileName); in setupAttachment()242 att.mMessageKey = messageId; in setupAttachment()243 att.mMimeType = "mimeType " + fileName; in setupAttachment()244 att.mLocation = "location " + fileName; in setupAttachment()245 att.mEncoding = "encoding " + fileName; in setupAttachment()246 att.mContent = "content " + fileName; in setupAttachment()[all …]
119 Attachment att = ProviderTestUtils.setupAttachment(-1, name, size, false, mMockContext); in setupSimpleAttachment() local120 att.mAccountKey = acct.mId; in setupSimpleAttachment()121 return att; in setupSimpleAttachment()
149 Attachment att = new Attachment(); in testWriteToAlternativePart() local150 att.mContentBytes = "__CONTENT__".getBytes("UTF-8"); in testWriteToAlternativePart()151 att.mFlags = Attachment.FLAG_ICS_ALTERNATIVE_PART; in testWriteToAlternativePart()152 att.mMimeType = "text/calendar"; in testWriteToAlternativePart()153 att.mFileName = "invite.ics"; in testWriteToAlternativePart()154 msg.mAttachments.add(att); in testWriteToAlternativePart()194 Attachment att = new Attachment(); in testWriteToMixedPart() local195 att.mContentBytes = "<html>Hi</html>".getBytes("UTF-8"); in testWriteToMixedPart()196 att.mMimeType = "text/html"; in testWriteToMixedPart()197 att.mFileName = "test.html"; in testWriteToMixedPart()[all …]
423 final Attachment att = new Attachment(); in makeMessage() local424 att.restore(attachments); in makeMessage()427 if (att.mContentBytes != null) { in makeMessage()430 content = new ByteArrayInputStream(att.mContentBytes); in makeMessage()432 String contentUriString = att.getCachedFileUri(); in makeMessage()434 contentUriString = att.getContentUri(); in makeMessage()443 final String mimeType = att.mMimeType; in makeMessage()444 final Long contentSize = att.mSize; in makeMessage()445 final String contentId = att.mContentId; in makeMessage()446 final String filename = att.mFileName; in makeMessage()[all …]
142 EmailContent.Attachment att = new EmailContent.Attachment(); in copyOneMessageToProvider() local159 att.mFileName = ""; in copyOneMessageToProvider()160 att.mSize = message.getSize(); in copyOneMessageToProvider()161 att.mMimeType = "text/plain"; in copyOneMessageToProvider()162 att.mMessageKey = localMessage.mId; in copyOneMessageToProvider()163 att.mAccountKey = localMessage.mAccountKey; in copyOneMessageToProvider()164 att.mFlags = Attachment.FLAG_DUMMY_ATTACHMENT; in copyOneMessageToProvider()165 att.save(context); in copyOneMessageToProvider()
2099 Attachment att = Attachment.restoreAttachmentWithId(context, attId); in update() local2100 if (att != null) { in update()2102 notifyUI(UIPROVIDER_ATTACHMENTS_NOTIFIER, att.mMessageKey); in update()3098 for (Attachment att : atts) { in genQueryViewMessage()3117 uiAtt.setName(att.mFileName); in genQueryViewMessage()3118 uiAtt.setContentType(att.mMimeType); in genQueryViewMessage()3119 uiAtt.size = (int) att.mSize; in genQueryViewMessage()3120 uiAtt.uri = uiUri("uiattachment", att.mId); in genQueryViewMessage()3121 uiAtt.flags = att.mFlags; in genQueryViewMessage()4285 final Attachment att = Attachment.restoreAttachmentWithId(mContext, id); in AttachmentsCursor() local[all …]
709 for (Attachment att: atts) {710 if (!attachmentExists(context, att)) {715 if ((att.mFlags & (Attachment.FLAG_DOWNLOAD_FORWARD |718 ", #%d", att.mFileName, att.mId);729 Attachment.delete(context, Attachment.CONTENT_URI, att.mId);730 } else if (att.getContentUri() != null) {735 Attachment.update(context, Attachment.CONTENT_URI, att.mId, cv);
257 final Attachment att = LegacyConversions.mimePartToAttachment(attPart); in testAttachmentRoundTrip() local258 assertEquals(att.mFileName, "test.txt"); in testAttachmentRoundTrip()259 assertEquals(att.mMimeType, "text/plain"); in testAttachmentRoundTrip()260 assertEquals(att.mSize, size); in testAttachmentRoundTrip()261 assertEquals(att.mContentId, "testContentId"); in testAttachmentRoundTrip()
1118 private void addStringAttribute(XmlPullParser parser, String att, in addStringAttribute() argument1120 String val = parser.getAttributeValue(null, att); in addStringAttribute()1126 private void addIntAttribute(XmlPullParser parser, String att, in addIntAttribute() argument1128 String val = parser.getAttributeValue(null, att); in addIntAttribute()1134 private void addBoolAttribute(XmlPullParser parser, String att, in addBoolAttribute() argument1136 String val = parser.getAttributeValue(null, att); in addBoolAttribute()
197 for (final Attachment att: attachments) { in writeTo()199 writeOneAttachment(context, writer, stream, att); in writeTo()
1199 for (Attachment att: mAttachments) { in addSaveOps()1201 att.mMessageKey = mId; in addSaveOps()1204 .withValues(att.toContentValues()); in addSaveOps()
1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
1dictionary=main:tr,locale=tr,description=Türkçe,date=1414726261, ...
1dictionary=main:fi,locale=fi,description=Suomi,date=1393228135, ...
... ,flags=,originalFreq=205 8 word=att,f=203,flags=,originalFreq= ...