/external/chromium_org/sync/api/attachments/ |
attachment.cc | 5 #include "sync/api/attachments/attachment.h" 11 Attachment::~Attachment() {} 14 Attachment Attachment::Create( 20 Attachment Attachment::CreateWithId( 23 return Attachment(id, data); 26 const AttachmentId& Attachment::GetId() const { return id_; } 28 const scoped_refptr<base::RefCountedMemory>& Attachment::GetData() const [all...] |
attachment.h | 22 // While Attachment objects themselves aren't immutable (they are assignable) 26 class SYNC_EXPORT Attachment { 28 ~Attachment(); 32 // Creates an attachment with a unique id and the supplied data. 34 // Used when creating a brand new attachment. 35 static Attachment Create(const scoped_refptr<base::RefCountedMemory>& data); 37 // Creates an attachment with the supplied id and data. 39 // Used when you want to recreate a specific attachment. E.g. creating a local 40 // copy of an attachment that already exists on the sync server. 41 static Attachment CreateWithId [all...] |
attachment_unittest.cc | 5 #include "sync/api/attachments/attachment.h" 27 Attachment a1 = Attachment::Create(some_data); 28 Attachment a2 = Attachment::Create(some_data); 35 Attachment a = Attachment::Create(empty_data); 43 Attachment a = Attachment::CreateWithId(id, some_data);
|
attachment_downloader.h | 10 #include "sync/api/attachments/attachment.h" 20 DOWNLOAD_SUCCESS, // No error, attachment was downloaded 25 typedef base::Callback<void(const DownloadResult&, scoped_ptr<Attachment>)> 30 // Download attachment referred by |attachment_id| and invoke |callback| when 33 // |callback| will receive a DownloadResult code and an Attachment object. If 34 // DownloadResult is not DOWNLOAD_SUCCESS then attachment pointer is NULL.
|
attachment_uploader.h | 11 #include "sync/api/attachments/attachment.h" 21 UPLOAD_SUCCESS, // No error, attachment was uploaded 32 // Upload |attachment| and invoke |callback| when done. 38 // containing the server address of the newly uploaded attachment. 39 virtual void UploadAttachment(const Attachment& attachment,
|
attachment_store.h | 11 #include "sync/api/attachments/attachment.h" 21 class Attachment; 53 // successfully read, AttachmentIdList will contain attachment ids of 54 // attachments that are unavailable in attachment store, these need to be 58 // read only part of an attachment. 65 // attachment that already exists is not an error. 78 // |callback| will be invoked when finished. Attempting to drop an attachment 79 // that does not exist is not an error. If any of the existing attachment
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
MockAttachment.java | 20 import com.android.mail.providers.Attachment; 24 public class MockAttachment extends Attachment {
|
/external/chromium_org/sync/internal_api/attachments/ |
fake_attachment_uploader_unittest.cc | 11 #include "sync/api/attachments/attachment.h" 45 // Call upload attachment several times, see that the supplied callback is 50 Attachment attachment1 = Attachment::Create(some_data); 51 Attachment attachment2 = Attachment::Create(some_data); 52 Attachment attachment3 = Attachment::Create(some_data);
|
fake_attachment_downloader.cc | 24 // attachment. 26 scoped_ptr<Attachment> attachment; local 27 attachment.reset( 28 new Attachment(Attachment::CreateWithId(attachment_id, data))); 31 base::Bind(callback, DOWNLOAD_SUCCESS, base::Passed(&attachment)));
|
attachment_downloader_impl.cc | 25 scoped_ptr<Attachment> attachment; local 29 callback, DOWNLOAD_UNSPECIFIED_ERROR, base::Passed(&attachment)));
|
fake_attachment_store_unittest.cc | 11 #include "sync/api/attachments/attachment.h" 89 Attachment attachment1 = Attachment::Create(some_data1); 90 Attachment attachment2 = 91 Attachment::CreateWithId(attachment1.GetId(), some_data2); 122 Attachment attachment1 = Attachment::Create(some_data1); 123 Attachment attachment2 = Attachment::Create(some_data2); 152 Attachment attachment1 = Attachment::Create(some_data1) [all...] |
fake_attachment_uploader.cc | 9 #include "sync/api/attachments/attachment.h" 22 void FakeAttachmentUploader::UploadAttachment(const Attachment& attachment, 25 DCHECK(!attachment.GetId().GetProto().unique_id().empty()); 28 AttachmentId updated_id = attachment.GetId(); 29 // TODO(maniscalco): Update the attachment id with server address information
|
/external/chromium_org/sync/internal_api/public/attachments/ |
fake_attachment_uploader.h | 21 virtual void UploadAttachment(const Attachment& attachment,
|
fake_attachment_store.h | 27 class Attachment;
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
AttachmentLoader.java | 28 import com.android.mail.providers.Attachment; 46 private Map<String, Attachment> mCache = Maps.newHashMap(); 52 public Attachment get() { 54 Attachment m = mCache.get(uri); 56 m = new Attachment(this);
|
MessageFooterView.java | 41 import com.android.mail.providers.Attachment; 123 // Destroy the loader if we are attempting to load a different attachment 140 // kick off load of Attachment objects in background thread 161 final List<Attachment> attachments; 169 // before the attachment loader results are in, we can still render immediately using 176 private void renderAttachments(List<Attachment> attachments, boolean loaderResult) { 183 final List<Attachment> tiledAttachments = new ArrayList<Attachment>(maxSize); 184 final List<Attachment> barAttachments = new ArrayList<Attachment>(maxSize) [all...] |
AttachmentProgressDialogFragment.java | 26 import com.android.mail.providers.Attachment; 32 public static final String ATTACHMENT_KEY = "attachment"; 35 private Attachment mAttachment; 39 static AttachmentProgressDialogFragment newInstance(Attachment attachment) { 42 // Supply the attachment as an argument. 44 args.putParcelable(ATTACHMENT_KEY, attachment); 89 // This needs to cancel the attachment 117 public boolean isShowingDialogForAttachment(Attachment attachment) { [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
PolicyTests.java | 28 import com.android.emailcommon.provider.EmailContent.Attachment; 47 Attachment.FLAG_POLICY_DISALLOWS_DOWNLOAD + ")!=0"; 118 private Attachment setupSimpleAttachment(String name, long size, Account acct) { 119 Attachment att = ProviderTestUtils.setupAttachment(-1, name, size, false, mMockContext); 131 ArrayList<Attachment> atts = new ArrayList<Attachment>(); 132 Attachment att1 = setupSimpleAttachment("fileName1", 10001L, acct); 134 Attachment att2 = setupSimpleAttachment("fileName2", 20001L, acct); 141 Attachment att3 = setupSimpleAttachment("fileName3", 70001L, acct); 143 Attachment att4 = setupSimpleAttachment("fileName4", 5001L, acct) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
renderbuffer.c | 102 /* There should be no previous renderbuffer on this attachment point, 108 fb->Attachment[bufferName].Renderbuffer == NULL); 118 fb->Attachment[bufferName].Type = GL_RENDERBUFFER_EXT; 119 fb->Attachment[bufferName].Complete = GL_TRUE; 120 _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer, rb); 133 _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer,
|
/external/mesa3d/src/mesa/main/ |
renderbuffer.c | 102 /* There should be no previous renderbuffer on this attachment point, 108 fb->Attachment[bufferName].Renderbuffer == NULL); 118 fb->Attachment[bufferName].Type = GL_RENDERBUFFER_EXT; 119 fb->Attachment[bufferName].Complete = GL_TRUE; 120 _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer, rb); 133 _mesa_reference_renderbuffer(&fb->Attachment[bufferName].Renderbuffer,
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
MailPhotoViewController.java | 42 import com.android.mail.providers.Attachment; 170 final Attachment attachment = getCurrentAttachment(); local 172 if (attachment != null && mSaveItem != null && mShareItem != null) { 173 mSaveItem.setEnabled(!attachment.isDownloading() 174 && attachment.canSave() && !attachment.isSavedToExternal()); 175 final boolean canShare = attachment.canShare(); 178 mDownloadAgainItem.setEnabled(attachment.canSave() && attachment.isDownloading()) 235 final Attachment attachment = getCurrentAttachment(); local 259 final Attachment attachment = getCurrentAttachment(); local 320 final Attachment attachment = getCurrentAttachment(); local 396 final Attachment attachment = getCurrentAttachment(); local [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/Email/src/com/android/email/service/ |
AttachmentService.java | 40 import com.android.emailcommon.provider.EmailContent.Attachment; 81 // Try to download an attachment in the background this many times before giving up 131 // A map of attachment storage used per account as we have account based maximums to follow. 137 // A map of attachment ids to the number of failed attempts to download the attachment 142 // Keeps tracks of downloads in progress based on an attachment ID to DownloadRequest mapping. 163 * an attachment. These objects are constructed and either placed in the {@link DownloadQueue} 186 * @param attPriority The priority of this attachment 187 * @param attId The id of the row in the attachment table. 199 private DownloadRequest(final Context context, final Attachment attachment) 544 final Attachment attachment = local 672 final Attachment attachment = Attachment.restoreAttachmentWithId( local 845 final Attachment attachment = Attachment.restoreAttachmentWithId(this, id); local 1119 final Attachment attachment = Attachment.restoreAttachmentWithId(this, attachmentId); local [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
framebuffer_manager.h | 30 class Attachment : public base::RefCounted<Attachment> { 56 friend class base::RefCounted<Attachment>; 57 virtual ~Attachment() {} 66 bool HasUnclearedAttachment(GLenum attachment) const; 72 GLenum attachment, 75 // Attaches a renderbuffer to a particlar attachment. 78 GLenum attachment, Renderbuffer* renderbuffer); 80 // Attaches a texture to a particlar attachment. Pass null to detach. 82 GLenum attachment, TextureRef* texture_ref, GLenum target [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
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...] |