HomeSort by relevance Sort by last modified time
    Searched refs:attachment (Results 1 - 25 of 797) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/nio/channels/
FutureLikeCompletionHandler.java 26 Object attachment; field in class:FutureLikeCompletionHandler
28 public void completed(V result, Object attachment) {
35 this.attachment = attachment;
40 public void failed(Throwable exc, Object attachment) {
47 this.attachment = attachment;
66 return attachment;
AsynchronousFileChannelTest.java 253 public String attachment; field in class:AsynchronousFileChannelTest.RecordingHandler
260 public void completed(Integer result, String attachment) {
262 this.attachment = attachment;
268 public void failed(Throwable exc, String attachment) {
270 this.attachment = attachment;
288 String attachment = "ATTACHMENT"; local
292 afc.read(buf, 0, attachment, handler)
351 afc.read(buf.asReadOnlyBuffer(), 1, attachment, handler); local
460 String attachment = "ATTACHMENT"; local
475 afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y'}), 0, attachment, handler); local
492 afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y', 'z'}), 6, attachment, handler); local
510 afc.write(ByteBuffer.wrap(new byte[] { 'x', 'y' }), 9, attachment, handler); local
526 afc.write(ByteBuffer.wrap(new byte[] { '0', '2' }), 13, attachment, handler); local
    [all...]
  /libcore/ojluni/src/main/java/java/nio/channels/
CompletionHandler.java 52 * @param attachment
55 void completed(V result, A attachment);
62 * @param attachment
65 void failed(Throwable exc, A attachment);
AsynchronousSocketChannel.java 300 * The type of the attachment
303 * @param attachment
325 A attachment,
380 * The type of the attachment
387 * @param attachment
404 A attachment,
417 A attachment,
420 read(dst, 0L, TimeUnit.MILLISECONDS, attachment, handler);
478 * The type of the attachment
492 * @param attachment
    [all...]
SelectionKey.java 87 * <i>attachment</i> of a single arbitrary object to a key. An object can be
89 * the {@link #attachment() attachment} method.
366 private volatile Object attachment = null; field in class:SelectionKey
370 SelectionKey.class, Object.class, "attachment"
376 * <p> An attached object may later be retrieved via the {@link #attachment()
377 * attachment} method. Only one object may be attached at a time; invoking
378 * this method causes any previous attachment to be discarded. The current
379 * attachment may be discarded by attaching <tt>null</tt>. </p>
392 * Retrieves the current attachment
397 public final Object attachment() { method in class:SelectionKey
    [all...]
AsynchronousByteChannel.java 91 * The type of the attachment
94 * @param attachment
109 A attachment,
172 * The type of the attachment
175 * @param attachment
188 A attachment,
  /libcore/ojluni/src/main/java/sun/nio/ch/
DirectBuffer.java 35 public Object attachment(); method in interface:DirectBuffer
Invoker.java 121 A attachment,
126 handler.completed(value, attachment);
128 handler.failed(exc, attachment);
153 A attachment,
158 Invoker.invokeUnchecked(handler, attachment, result, exc);
168 A attachment,
186 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc);
189 invokeIndirectly(channel, handler, attachment, result, exc);
195 handler, attachment, result, exc);
208 final A attachment,
    [all...]
AsynchronousFileChannelImpl.java 109 A attachment,
125 A attachment,
130 implLock(position, size, shared, attachment, handler);
213 A attachment,
224 A attachment,
229 implRead(dst, position, attachment, handler);
234 A attachment,
246 A attachment,
251 implWrite(src, position, attachment, handler);
PendingFuture.java 34 * attachment of an additional arbitrary context object and a timer task.
43 private final A attachment; field in class:PendingFuture
61 A attachment,
66 this.attachment = attachment;
72 A attachment)
76 this.attachment = attachment;
95 A attachment() { method in class:PendingFuture
96 return attachment;
    [all...]
  /external/libmojo/ipc/
ipc_platform_file_attachment_posix.cc 32 scoped_refptr<MessageAttachment> attachment) {
33 DCHECK_EQ(attachment->GetType(), MessageAttachment::TYPE_PLATFORM_FILE);
34 return static_cast<PlatformFileAttachment*>(attachment.get())->file();
ipc_mojo_message_helper.cc 27 scoped_refptr<base::Pickle::Attachment> attachment; local
28 if (!message->ReadAttachment(iter, &attachment)) {
29 LOG(ERROR) << "Failed to read attachment for message pipe.";
34 static_cast<MessageAttachment*>(attachment.get())->GetType();
36 LOG(ERROR) << "Unxpected attachment type:" << type;
41 static_cast<internal::MojoHandleAttachment*>(attachment.get())
ipc_message_attachment_set.cc 32 for (const scoped_refptr<MessageAttachment>& attachment : attachments) {
33 if (attachment->GetType() == type)
85 scoped_refptr<MessageAttachment> attachment,
89 if (attachment->GetType() == MessageAttachment::TYPE_PLATFORM_FILE &&
96 switch (attachment->GetType()) {
99 attachments_.push_back(attachment);
105 static_cast<BrokerableAttachment*>(attachment.get());
116 scoped_refptr<MessageAttachment> attachment) {
119 return AddAttachment(attachment, &index, &brokerable);
188 const scoped_refptr<BrokerableAttachment>& attachment) {
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AttachmentTile.java 36 import com.android.mail.providers.Attachment;
42 * Base class for attachment tiles that handles the work of fetching and displaying the bitmaps for
46 protected Attachment mAttachment;
65 * Returns true if the attachment should be rendered as a tile. with a large image preview.
66 * @param attachment the attachment to render
67 * @return true if the attachment should be rendered as a tile
69 public static boolean isTiledAttachment(final Attachment attachment) {
70 return ImageUtils.isImageMimeType(attachment.getContentType())
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java 30 import com.android.mail.providers.Attachment;
84 * Return a friendly localized file type for this attachment, or the empty string if
89 public static String getDisplayType(final Context context, final Attachment attachment) {
90 if ((attachment.flags & Attachment.FLAG_DUMMY_ATTACHMENT) != 0) {
91 // This is a dummy attachment, display blank for type.
98 final String contentType = attachment.getContentType();
105 String extension = Utils.getFileExtension(attachment.getName());
162 * Cache the file specified by the given attachment. This will attempt to use an
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/photo/
MailPhotoViewController.java 42 import com.android.mail.providers.Attachment;
172 final Attachment attachment = getCurrentAttachment(); local
174 if (attachment != null && mSaveItem != null && mShareItem != null) {
175 mSaveItem.setEnabled(!attachment.isDownloading()
176 && attachment.canSave() && !attachment.isSavedToExternal());
177 final boolean canShare = attachment.canShare();
180 mDownloadAgainItem.setEnabled(attachment.canSave() && attachment.isDownloading())
234 final Attachment attachment = getCurrentAttachment(); local
258 final Attachment attachment = getCurrentAttachment(); local
319 final Attachment attachment = getCurrentAttachment(); local
395 final Attachment attachment = getCurrentAttachment(); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
AttachmentsView.java 37 import com.android.mail.providers.Attachment;
57 private final ArrayList<Attachment> mAttachments;
98 * Adds an attachment and updates the ui accordingly.
100 private void addAttachment(final Attachment attachment) {
101 mAttachments.add(attachment);
103 // If the attachment is inline do not display this attachment.
104 if (attachment.isInlineAttachment()) {
114 // If we have an attachment that should be shown in a tiled look
265 final Attachment attachment = new Attachment(); local
    [all...]
AttachmentComposeView.java 25 import com.android.mail.providers.Attachment;
34 * This view is used in the ComposeActivity to display an attachment along with its name/size
38 private final Attachment mAttachment;
41 public AttachmentComposeView(Context c, Attachment attachment) {
43 mAttachment = attachment;
48 attachStr = attachment.toJSON().toString(2);
50 attachStr = attachment.toString();
52 LogUtils.d(LOG_TAG, "attachment view: %s", attachStr);
57 factory.inflate(R.layout.attachment, this)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
EmlAttachmentProvider.java 56 * of the regular attachment provider.
58 * One major difference is that all attachment info is stored in memory (with the
59 * exception of the attachment raw data which is stored in the cache). When
70 private static final int ATTACHMENT = 1;
86 * Map that contains a mapping from an attachment list uri to a list of uris.
91 * Map that contains a mapping from an attachment uri to an {@link Attachment} object.
93 private Map<Uri, Attachment> mUriAttachmentMap;
105 sUriMatcher.addURI(authority, "attachment/*/*/#", ATTACHMENT);
153 final Attachment attachment = mUriAttachmentMap.get(attachmentsUri); local
242 final Attachment attachment = mUriAttachmentMap.get(uri); local
296 final Attachment attachment = mUriAttachmentMap.get(uri); local
471 final Attachment attachment = mUriAttachmentMap.get(uri); local
    [all...]
  /packages/apps/Email/tests/src/com/android/email/mail/transport/
SmtpSenderUnitTests.java 29 import com.android.emailcommon.provider.EmailContent.Attachment;
134 * Test: Open and send a single message with an empty attachment (no file) (sunny day)
146 // Creates an attachment with a bogus file (so we get headers only)
147 Attachment attachment = setupSimpleAttachment(mProviderContext, message.mId); local
148 attachment.save(mProviderContext);
154 expectSimpleAttachment(mockTransport, attachment);
192 * Prepare to send a simple attachment
194 private Attachment setupSimpleAttachment(Context context, long messageId) {
195 Attachment attachment = new Attachment() local
    [all...]
  /external/skia/src/gpu/vk/
GrVkRenderPass.cpp 18 void setup_vk_attachment_description(VkAttachmentDescription* attachment,
21 attachment->flags = 0;
22 attachment->format = desc.fFormat;
23 SkAssertResult(GrSampleCountToVkSampleCount(desc.fSamples, &attachment->samples));
26 attachment->loadOp = desc.fLoadStoreOps.fLoadOp;
27 attachment->storeOp = desc.fLoadStoreOps.fStoreOp;
28 attachment->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
29 attachment->stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
32 attachment->loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
33 attachment->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE
    [all...]
  /prebuilts/go/darwin-x86/src/mime/
mediatype_test.go 143 {`attachment; filename="f\oo.html"`,
144 "attachment",
146 {`attachment; filename="\"quoting\" tested.html"`,
147 "attachment",
149 {`attachment; filename="Here's a semicolon;.html"`,
150 "attachment",
152 {`attachment; foo="\"\\";filename="foo.html"`,
153 "attachment",
155 {`attachment; filename=foo.html`,
156 "attachment",
    [all...]
  /prebuilts/go/linux-x86/src/mime/
mediatype_test.go 143 {`attachment; filename="f\oo.html"`,
144 "attachment",
146 {`attachment; filename="\"quoting\" tested.html"`,
147 "attachment",
149 {`attachment; filename="Here's a semicolon;.html"`,
150 "attachment",
152 {`attachment; foo="\"\\";filename="foo.html"`,
153 "attachment",
155 {`attachment; filename=foo.html`,
156 "attachment",
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/ui/attachmentchooser/
AttachmentGridItemView.java 34 * Shows an item in the attachment picker grid.
38 boolean isItemSelected(MessagePartData attachment);
39 void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment);
40 void onItemClicked(AttachmentGridItemView view, MessagePartData attachment);
88 // to make the attachment preview square.
92 public void bind(final MessagePartData attachment, final HostInterface hostInterface) {
93 Assert.isTrue(attachment.isAttachment());
96 if (mAttachmentData == null || !mAttachmentData.equals(attachment)) {
97 mAttachmentData = attachment;
AttachmentGridView.java 36 * Displays a grid of attachment previews for the user to choose which to select/unselect
59 public boolean isItemSelected(final MessagePartData attachment) {
60 return !mUnselectedSet.contains(attachment);
64 public void onItemClicked(final AttachmentGridItemView view, final MessagePartData attachment) {
67 if (attachment.isImage()) {
68 mHost.displayPhoto(UiUtils.getMeasuredBoundsOnScreen(view), attachment.getContentUri());
73 public void onItemCheckedChanged(AttachmentGridItemView view, MessagePartData attachment) {
75 if (isItemSelected(attachment)) {
76 mUnselectedSet.add(attachment);
78 mUnselectedSet.remove(attachment);
    [all...]

Completed in 604 milliseconds

1 2 3 4 5 6 7 8 91011>>