Home
last modified time | relevance | path

Searched refs:attachment (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipAttachmentFormatTest.java53 BipAttachmentFormat attachment = new BipAttachmentFormat(contentType, charset, name, in testParse() local
55 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 …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DMultiAttachmentLayout.java72 boolean onAttachmentClick(MessagePartData attachment, Rect viewBoundsOnScreen, in onAttachmentClick() argument
234 final MessagePartData attachment = iterator.next(); in buildViews() local
239 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 …]
DAttachmentPreview.java240 final MessagePartData attachment = combinedAttachments.get(0); in onAttachmentsChanged() local
248 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() argument
337 if (!(attachment instanceof PendingAttachmentData) && attachment.isImage()) { in onAttachmentClick()
338 mComposeMessageView.displayPhoto(attachment.getContentUri(), viewBoundsOnScreen); in onAttachmentClick()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java186 for (final MessagePartData attachment : mAttachments) { in createMessageWithCurrentAttachments()
187 message.addPart(attachment); in createMessageWithCurrentAttachments()
340 private boolean addOneAttachmentNoNotify(final MessagePartData attachment) { in addOneAttachmentNoNotify() argument
341 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() argument
367 if (attachment != null && attachment.isSinglePartOnly()) { in addAttachment()
[all …]
DPendingAttachmentData.java130 protected void onPostExecute(final MessagePartData attachment) { in loadAttachmentForDraft() argument
131 if (attachment != null) { in loadAttachmentForDraft()
134 draftMessageData.updatePendingAttachment(attachment, in loadAttachmentForDraft()
138 attachment.destroyAsync(); in loadAttachmentForDraft()
/packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
DAttachmentGridView.java59 public boolean isItemSelected(final MessagePartData attachment) { in isItemSelected() argument
60 return !mUnselectedSet.contains(attachment); in isItemSelected()
64 public void onItemClicked(final AttachmentGridItemView view, final MessagePartData attachment) { in onItemClicked() argument
67 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() argument
75 if (isItemSelected(attachment)) { in onItemCheckedChanged()
76 mUnselectedSet.add(attachment); in onItemCheckedChanged()
78 mUnselectedSet.remove(attachment); in onItemCheckedChanged()
DAttachmentGridItemView.java38 boolean isItemSelected(MessagePartData attachment); in isItemSelected() argument
39 void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment); in onItemCheckedChanged() argument
40 void onItemClicked(AttachmentGridItemView view, MessagePartData attachment); in onItemClicked() argument
92 public void bind(final MessagePartData attachment, final HostInterface hostInterface) { in bind() argument
93 Assert.isTrue(attachment.isAttachment()); in bind()
96 if (mAttachmentData == null || !mAttachmentData.equals(attachment)) { in bind()
97 mAttachmentData = attachment; in bind()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFragment.java680 final MessagePartData attachment) { in selectMessage() argument
688 mSelectedAttachment = attachment; in selectMessage()
1262 final MessagePartData attachment, final Rect imageBounds, final boolean longPress) { in onAttachmentClick() argument
1264 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 …]
DConversationMessageView.java85 boolean onAttachmentClick(ConversationMessageView view, MessagePartData attachment, in onAttachmentClick() argument
611 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() argument
1050 return mHost.onAttachmentClick(this, attachment, viewBoundsOnScreen, longPress); in onAttachmentClick()
1094 void bindView(View view, MessagePartData attachment); in bindView() argument
1100 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 …]
DComposeMessageView.java649 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()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DRequestGetMessage.java45 RequestGetMessage(String handle, MasClient.CharsetType charset, boolean attachment) { in RequestGetMessage() argument
56 oap.add(OAP_TAGID_ATTACHMENT, attachment ? ATTACHMENT_ON : ATTACHMENT_OFF); in RequestGetMessage()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationService.java190 remoteViews.setImageViewBitmap(R.id.attachment, in getViewAt()
249 final String attachment = mContext.getString(attachmentStringId); in getViewAt() local
251 text += '\n' + attachment; in getViewAt()
253 text = attachment; in getViewAt()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduComposer.java965 final PositionMarker attachment = mStack.mark(); in makeMessageBody() local
1046 final int headerLength = attachment.getLength(); in makeMessageBody()
1082 if (dataLength != (attachment.getLength() - headerLength)) { in makeMessageBody()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppParams.java1174 public void setAttachment(int attachment) throws IllegalArgumentException { in setAttachment() argument
1175 if (attachment < 0 || attachment > 0x0001) { in setAttachment()
1178 this.mAttachment = attachment; in setAttachment()
DBluetoothMapContent.java612 int attachment = c.getInt(fi.mMessageColAttachment); in setAttachment() local
614 if (attachment == 1 && size == 0) { in setAttachment()
624 int attachment = c.getInt(fi.mMessageColAttachment); in setAttachment() local
626 if (attachment == 1 && size == 0) { in setAttachment()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessageNotificationState.java491 final String attachment = context.getString(message); in MultiMessageNotificationState() local
497 spanBuilder.append(attachment); in MultiMessageNotificationState()
/packages/inputmethods/LatinIME/dictionaries/
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...