Home | History | Annotate | Download | only in mail

Lines Matching refs:account

30 import com.android.emailcommon.provider.Account;
40 * Store is the legacy equivalent of the Account class
52 protected Account mAccount;
70 static Store newInstance(Account account, Context context) throws MessagingException {
72 + account.mDisplayName);
76 * Get an instance of a mail store for the given account. The account must be valid (i.e. has
79 * NOTE: The internal algorithm used to find a cached store depends upon the account's
84 * @param account The account of the store.
86 * @throws MessagingException If the store cannot be obtained or if the account is invalid.
88 public synchronized static Store getInstance(Account account, Context context)
90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context);
91 // An existing account might have been deleted
99 Method m = klass.getMethod("newInstance", Account.class, Context.class);
100 store = (Store)m.invoke(null, account, appContext);
103 "exception %s invoking method %s#newInstance(Account, Context) for %s",
104 e.toString(), klass.getName(), account.mDisplayName));
105 throw new MessagingException("Can't instantiate Store for " + account.mDisplayName);
116 * Delete the mail store associated with the given account. The account must be valid (i.e. has
122 * @throws MessagingException If the store cannot be removed or if the account is invalid.
124 public synchronized static Store removeInstance(Account account, Context context)
126 return sStores.remove(HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv));
167 * Handle discovery of account settings using only the user's email address and password