Searched refs:attachment (Results 1 – 19 of 19) sorted by relevance
53 BipAttachmentFormat attachment = new BipAttachmentFormat(contentType, charset, name, in testParse() local55 Assert.assertEquals(contentType, attachment.getContentType()); in testParse()56 Assert.assertEquals(charset, attachment.getCharset()); in testParse()57 Assert.assertEquals(name, attachment.getName()); in testParse()58 Assert.assertEquals(expectedSize, attachment.getSize()); in testParse()61 Assert.assertEquals(expectedCreated, attachment.getCreatedDate().getTime()); in testParse()62 Assert.assertEquals(isCreatedUtc, attachment.getCreatedDate().isUtc()); in testParse()64 Assert.assertEquals(null, attachment.getCreatedDate()); in testParse()68 Assert.assertEquals(expectedModified, attachment.getModifiedDate().getTime()); in testParse()69 Assert.assertEquals(isModifiedUtc, attachment.getModifiedDate().isUtc()); in testParse()[all …]
72 boolean onAttachmentClick(MessagePartData attachment, Rect viewBoundsOnScreen, in onAttachmentClick() argument234 final MessagePartData attachment = iterator.next(); in buildViews() local239 if (previousView.attachment.equals(attachment) && in buildViews()240 !(previousView.attachment instanceof PendingAttachmentData)) { in buildViews()249 attachment, this, AttachmentPreviewFactory.TYPE_MULTIPLE, in buildViews()262 attachmentWrapper = new ViewWrapper(view, attachment); in buildViews()279 if (attachment instanceof MediaPickerMessagePartData) { in buildViews()280 final Rect startRect = ((MediaPickerMessagePartData) attachment).getStartRect(); in buildViews()322 mPreviewViews.get(i).attachment, in onMeasure()374 if (!(viewWrapper.attachment instanceof MediaPickerMessagePartData)) { in trySlideAttachmentView()[all …]
240 final MessagePartData attachment = combinedAttachments.get(0); in onAttachmentsChanged() local248 attachment instanceof MediaPickerMessagePartData) { in onAttachmentsChanged()250 .findViewForAttachment(attachment); in onAttachmentsChanged()254 attachment instanceof MediaPickerMessagePartData) { in onAttachmentsChanged()255 ((MediaPickerMessagePartData) attachment).setStartRect(currentRect); in onAttachmentsChanged()263 layoutInflater, attachment, mAttachmentView, in onAttachmentsChanged()268 tryAnimateViewIn(attachment, attachmentView); in onAttachmentsChanged()330 public boolean onAttachmentClick(final MessagePartData attachment, in onAttachmentClick() argument337 if (!(attachment instanceof PendingAttachmentData) && attachment.isImage()) { in onAttachmentClick()338 mComposeMessageView.displayPhoto(attachment.getContentUri(), viewBoundsOnScreen); in onAttachmentClick()
186 for (final MessagePartData attachment : mAttachments) { in createMessageWithCurrentAttachments()187 message.addPart(attachment); in createMessageWithCurrentAttachments()340 private boolean addOneAttachmentNoNotify(final MessagePartData attachment) { in addOneAttachmentNoNotify() argument341 Assert.isTrue(attachment.isAttachment()); in addOneAttachmentNoNotify()344 if (existingAttachment.getContentUri().equals(attachment.getContentUri())) { in addOneAttachmentNoNotify()349 addAttachment(attachment, null /*pendingAttachment*/); in addOneAttachmentNoNotify()357 attachment.destroyAsync(); in addOneAttachmentNoNotify()360 addAttachment(attachment, null /*pendingAttachment*/); in addOneAttachmentNoNotify()365 private void addAttachment(final MessagePartData attachment, in addAttachment() argument367 if (attachment != null && attachment.isSinglePartOnly()) { in addAttachment()[all …]
130 protected void onPostExecute(final MessagePartData attachment) { in loadAttachmentForDraft() argument131 if (attachment != null) { in loadAttachmentForDraft()134 draftMessageData.updatePendingAttachment(attachment, in loadAttachmentForDraft()138 attachment.destroyAsync(); in loadAttachmentForDraft()
59 public boolean isItemSelected(final MessagePartData attachment) { in isItemSelected() argument60 return !mUnselectedSet.contains(attachment); in isItemSelected()64 public void onItemClicked(final AttachmentGridItemView view, final MessagePartData attachment) { in onItemClicked() argument67 if (attachment.isImage()) { in onItemClicked()68 mHost.displayPhoto(UiUtils.getMeasuredBoundsOnScreen(view), attachment.getContentUri()); in onItemClicked()73 public void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment) { in onItemCheckedChanged() argument75 if (isItemSelected(attachment)) { in onItemCheckedChanged()76 mUnselectedSet.add(attachment); in onItemCheckedChanged()78 mUnselectedSet.remove(attachment); in onItemCheckedChanged()
38 boolean isItemSelected(MessagePartData attachment); in isItemSelected() argument39 void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment); in onItemCheckedChanged() argument40 void onItemClicked(AttachmentGridItemView view, MessagePartData attachment); in onItemClicked() argument92 public void bind(final MessagePartData attachment, final HostInterface hostInterface) { in bind() argument93 Assert.isTrue(attachment.isAttachment()); in bind()96 if (mAttachmentData == null || !mAttachmentData.equals(attachment)) { in bind()97 mAttachmentData = attachment; in bind()
680 final MessagePartData attachment) { in selectMessage() argument688 mSelectedAttachment = attachment; in selectMessage()1262 final MessagePartData attachment, final Rect imageBounds, final boolean longPress) { in onAttachmentClick() argument1264 selectMessage(messageView, attachment); in onAttachmentClick()1271 if (attachment.isImage()) { in onAttachmentClick()1272 displayPhoto(attachment.getContentUri(), imageBounds, false /* isDraft */); in onAttachmentClick()1275 if (attachment.isVCard()) { in onAttachmentClick()1276 UIIntents.get().launchVCardDetailActivity(getActivity(), attachment.getContentUri()); in onAttachmentClick()1348 for (final AttachmentToSave attachment : mAttachmentsToSave) { in doInBackgroundTimed()1349 final boolean isImageOrVideo = ContentType.isImageType(attachment.contentType) in doInBackgroundTimed()[all …]
85 boolean onAttachmentClick(ConversationMessageView view, MessagePartData attachment, in onAttachmentClick() argument611 for (final MessagePartData attachment : mData.getAttachments(attachmentTypeFilter)) { in bindAttachmentsOfSameType()620 viewBinder.bindView(attachmentView, attachment); in bindAttachmentsOfSameType()621 attachmentView.setTag(attachment); in bindAttachmentsOfSameType()1048 public boolean onAttachmentClick(final MessagePartData attachment, in onAttachmentClick() argument1050 return mHost.onAttachmentClick(this, attachment, viewBoundsOnScreen, longPress); in onAttachmentClick()1094 void bindView(View view, MessagePartData attachment); in bindView() argument1100 public void bindView(final View view, final MessagePartData attachment) {1101 ((VideoThumbnailView) view).setSource(attachment, mData.getIsIncoming());1112 public void bindView(final View view, final MessagePartData attachment) {[all …]
649 for (final MessagePartData attachment : attachments) { in doInBackgroundTimed()650 final Uri contentUri = attachment.getContentUri(); in doInBackgroundTimed()652 totalSize += UriUtil.getContentSize(attachment.getContentUri()); in doInBackgroundTimed()774 for (final MessagePartData attachment : attachments) { in updateVisualsOnDraftChanged()776 if (attachment.isImage()) { in updateVisualsOnDraftChanged()778 } else if (attachment.isAudio()) { in updateVisualsOnDraftChanged()780 } else if (attachment.isVideo()) { in updateVisualsOnDraftChanged()782 } else if (attachment.isVCard()) { in updateVisualsOnDraftChanged()
45 RequestGetMessage(String handle, MasClient.CharsetType charset, boolean attachment) { in RequestGetMessage() argument56 oap.add(OAP_TAGID_ATTACHMENT, attachment ? ATTACHMENT_ON : ATTACHMENT_OFF); in RequestGetMessage()
190 remoteViews.setImageViewBitmap(R.id.attachment, in getViewAt()249 final String attachment = mContext.getString(attachmentStringId); in getViewAt() local251 text += '\n' + attachment; in getViewAt()253 text = attachment; in getViewAt()
965 final PositionMarker attachment = mStack.mark(); in makeMessageBody() local1046 final int headerLength = attachment.getLength(); in makeMessageBody()1082 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
1174 public void setAttachment(int attachment) throws IllegalArgumentException { in setAttachment() argument1175 if (attachment < 0 || attachment > 0x0001) { in setAttachment()1178 this.mAttachment = attachment; in setAttachment()
612 int attachment = c.getInt(fi.mMessageColAttachment); in setAttachment() local614 if (attachment == 1 && size == 0) { in setAttachment()624 int attachment = c.getInt(fi.mMessageColAttachment); in setAttachment() local626 if (attachment == 1 && size == 0) { in setAttachment()
491 final String attachment = context.getString(message); in MultiMessageNotificationState() local497 spanBuilder.append(attachment); in MultiMessageNotificationState()
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...