Home | History | Annotate | Download | only in service

Lines Matching refs:account

40 import com.android.emailcommon.provider.Account;
86 // Limit on the number of simultaneous downloads per account
105 // A map of attachment storage used per account
107 // amount plus the size of any new attachments laoded). If and when we reach the per-account
123 * allows us to build a mock account manager stub in the unit tests
325 // Enforce per-account limit here
362 Account account = Account.restoreAccountWithId(mContext, accountKey);
363 if (account == null) {
367 } else if (canPrefetchForAccount(account, cacheDir)) {
394 * Count the number of running downloads in progress for this account
395 * @param accountId the id of the account
442 * Attempt to execute the DownloadRequest, enforcing the maximum downloads per account
566 // Update our attachment storage for this account
705 * Return an Intent to be used used based on the account type of the provided account id. We
707 * @param accountId the id of the account
708 * @return the Intent to be used for the account or null (if the account no longer exists)
714 String protocol = Account.getProtocol(mContext, accountId);
822 * Determine whether an attachment can be prefetched for the given account
825 public boolean canPrefetchForAccount(Account account, File dir) {
826 // Check account, just in case
827 if (account == null) return false;
829 if ((account.mFlags & Account.FLAGS_BACKGROUND_ATTACHMENTS) == 0) return false;
846 // account, we walk the directory to determine the actual number
847 Long accountStorage = mAttachmentStorageMap.get(account.mId);
849 // Calculate the exact figure for attachment storage for this account
858 mAttachmentStorageMap.put(account.mId, accountStorage);
861 // Return true if we're using less than the maximum per account
866 Log.d(TAG, ">> Prefetch not allowed for account " + account.mId + "; used " +
973 pw.println(" Account: " + req.accountId + ", Attachment: " + req.attachmentId);