Home | History | Annotate | Download | only in email

Lines Matching refs:fromAccount

590      * @param fromAccount the provider account to be backed up (including transient hostauth's)
594 EmailContent.Account fromAccount) {
597 result.setDescription(fromAccount.getDisplayName());
598 result.setEmail(fromAccount.getEmailAddress());
599 // fromAccount.mSyncKey - assume lost if restoring
600 result.setSyncWindow(fromAccount.getSyncLookback());
601 result.setAutomaticCheckIntervalMinutes(fromAccount.getSyncInterval());
602 // fromAccount.mHostAuthKeyRecv - id not saved; will be reassigned when restoring
603 // fromAccount.mHostAuthKeySend - id not saved; will be reassigned when restoring
613 (fromAccount.getFlags() & EmailContent.Account.FLAGS_NOTIFY_NEW_MAIL));
615 (fromAccount.getFlags() & EmailContent.Account.FLAGS_VIBRATE_ALWAYS));
617 (fromAccount.getFlags() & EmailContent.Account.FLAGS_VIBRATE_WHEN_SILENT));
618 result.setDeletePolicy(fromAccount.getDeletePolicy());
620 result.mUuid = fromAccount.getUuid();
621 result.setName(fromAccount.mSenderName);
622 result.setRingtone(fromAccount.mRingtoneUri);
623 result.mProtocolVersion = fromAccount.mProtocolVersion;
624 // int fromAccount.mNewMessageCount = will be reset on next sync
625 result.mSecurityFlags = fromAccount.mSecurityFlags;
626 result.mSignature = fromAccount.mSignature;
629 result.setStoreUri(fromAccount.getStoreUri(context));
630 result.setSenderUri(fromAccount.getSenderUri(context));
641 * @param fromAccount the legacy account to convert to modern format
644 public static EmailContent.Account makeAccount(Context context, Account fromAccount) {
648 result.setDisplayName(fromAccount.getDescription());
649 result.setEmailAddress(fromAccount.getEmail());
651 result.setSyncLookback(fromAccount.getSyncWindow());
652 result.setSyncInterval(fromAccount.getAutomaticCheckIntervalMinutes());
656 if (fromAccount.isNotifyNewMail()) flags |= EmailContent.Account.FLAGS_NOTIFY_NEW_MAIL;
657 if (fromAccount.isVibrate()) flags |= EmailContent.Account.FLAGS_VIBRATE_ALWAYS;
658 if (fromAccount.isVibrateWhenSilent())
661 result.setDeletePolicy(fromAccount.getDeletePolicy());
663 result.mCompatibilityUuid = fromAccount.getUuid();
664 result.setSenderName(fromAccount.getName());
665 result.setRingtone(fromAccount.getRingtone());
666 result.mProtocolVersion = fromAccount.mProtocolVersion;
668 result.mSecurityFlags = fromAccount.mSecurityFlags;
670 result.mSignature = fromAccount.mSignature;
672 result.setStoreUri(context, fromAccount.getStoreUri());
673 result.setSenderUri(context, fromAccount.getSenderUri());