Home
last modified time | relevance | path

Searched refs:HostAuth (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java33 HostAuth ha = new HostAuth(); in testSetLogin()
73 HostAuth ha = new HostAuth(); in testSetLoginAuthenticate()
77 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
81 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
85 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
89 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
93 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
97 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
104 HostAuth ha = new HostAuth(); in testSetConnectionFlags()
127 ha.setConnection("imap", "server", HostAuth.PORT_UNKNOWN, HostAuth.FLAG_SSL); in testSetConnectionFlags()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupAccountType.java32 import com.android.emailcommon.provider.HostAuth;
86 HostAuth hostAuth = account.mHostAuthRecv; in onPop()
87 hostAuth.mProtocol = HostAuth.SCHEME_POP3; in onPop()
90 HostAuth.SCHEME_POP3, null); in onPop()
91 AccountSetupBasics.setFlagsForProtocol(account, HostAuth.SCHEME_POP3); in onPop()
103 HostAuth hostAuth = account.mHostAuthRecv; in onImap()
104 hostAuth.mProtocol = HostAuth.SCHEME_IMAP; in onImap()
107 HostAuth.SCHEME_IMAP, null); in onImap()
108 AccountSetupBasics.setFlagsForProtocol(account, HostAuth.SCHEME_IMAP); in onImap()
120 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onExchange()
[all …]
DAccountSetupIncomingFragment.java43 import com.android.emailcommon.provider.HostAuth;
126 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( in onCreateView()
128 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( in onCreateView()
130 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( in onCreateView()
132 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( in onCreateView()
134 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( in onCreateView()
298 if (HostAuth.SCHEME_POP3.equals(mBaseScheme)) { in configureEditor()
304 } else if (HostAuth.SCHEME_IMAP.equals(mBaseScheme)) { in configureEditor()
325 HostAuth recvAuth = account.getOrCreateHostAuthRecv(mContext); in loadSettings()
340 if (HostAuth.SCHEME_IMAP.equals(recvAuth.mProtocol)) { in loadSettings()
[all …]
DAccountSetupOutgoingFragment.java43 import com.android.emailcommon.provider.HostAuth;
85 mBaseScheme = HostAuth.SCHEME_SMTP; in onCreate()
111 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( in onCreateView()
113 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( in onCreateView()
115 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( in onCreateView()
117 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( in onCreateView()
119 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( in onCreateView()
252 HostAuth sendAuth = SetupData.getAccount().getOrCreateHostAuthSend(mContext); in loadSettings()
253 if ((sendAuth.mFlags & HostAuth.FLAG_AUTHENTICATE) != 0) { in loadSettings()
266 int flags = sendAuth.mFlags & ~HostAuth.FLAG_AUTHENTICATE; in loadSettings()
[all …]
DAccountSetupBasics.java54 import com.android.emailcommon.provider.HostAuth;
444 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in finishAutoSetup()
445 HostAuth.setHostAuthFromString(recvAuth, mProvider.incomingUri); in finishAutoSetup()
448 HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in finishAutoSetup()
449 HostAuth.setHostAuthFromString(sendAuth, mProvider.outgoingUri); in finishAutoSetup()
568 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onManualSetup()
570 recvAuth.setConnection("placeholder", domain, HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE); in onManualSetup()
572 HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in onManualSetup()
574 sendAuth.setConnection("placeholder", domain, HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE); in onManualSetup()
596 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in forceCreateAccount()
[all …]
DAccountSetupExchangeFragment.java47 import com.android.emailcommon.provider.HostAuth;
97 mBaseScheme = HostAuth.SCHEME_EAS; in onCreate()
281 HostAuth hostAuth = account.mHostAuthRecv; in loadSettings()
310 boolean ssl = 0 != (hostAuth.mFlags & HostAuth.FLAG_SSL); in loadSettings()
311 boolean trustCertificates = 0 != (hostAuth.mFlags & HostAuth.FLAG_TRUST_ALL); in loadSettings()
320 if (port != HostAuth.PORT_UNKNOWN) { in loadSettings()
407 public boolean setHostAuthFromAutodiscover(HostAuth newHostAuth) { in setHostAuthFromAutodiscover()
419 public void onAutoDiscoverComplete(int result, HostAuth hostAuth) { in onAutoDiscoverComplete()
440 flags |= HostAuth.FLAG_SSL; in onNext()
443 flags |= HostAuth.FLAG_TRUST_ALL; in onNext()
[all …]
DAccountServerBaseFragment.java37 import com.android.emailcommon.provider.HostAuth;
69 /*package*/ HostAuth mLoadedSendAuth;
70 /*package*/ HostAuth mLoadedRecvAuth;
394 public void onAutoDiscoverComplete(int result, HostAuth hostAuth) { in onAutoDiscoverComplete()
404 HostAuth sendAuth = account.getOrCreateHostAuthSend(mContext); in haveSettingsChanged()
407 HostAuth recvAuth = account.getOrCreateHostAuthRecv(mContext); in haveSettingsChanged()
DAccountCheckSettingsFragment.java39 import com.android.emailcommon.provider.HostAuth;
121 public void onAutoDiscoverComplete(int result, HostAuth hostAuth); in onAutoDiscoverComplete()
261 HostAuth autoDiscoverResult = ((AutoDiscoverResults) ex).mHostAuth; in reportProgress()
384 public final HostAuth mHostAuth;
390 public AutoDiscoverResults(boolean authenticationError, HostAuth hostAuth) { in AutoDiscoverResults()
458 HostAuth serverInfo = (HostAuth) in doInBackground()
528 HostAuth auth = new HostAuth(); in fakeChecker()
530 auth.setConnection(HostAuth.SCHEME_EAS, "testserver.com", 0); in fakeChecker()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java35 public final class HostAuth extends EmailContent implements HostAuthColumns, Parcelable { class
85 public HostAuth() { in HostAuth() method in HostAuth
98 public static HostAuth restoreHostAuthWithId(Context context, long id) { in restoreHostAuthWithId()
99 return EmailContent.restoreContentWithId(context, HostAuth.class, in restoreHostAuthWithId()
100 HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, id); in restoreHostAuthWithId()
151 int flags = HostAuth.FLAG_NONE; in getSchemeFlags()
155 flags |= HostAuth.FLAG_SSL; in getSchemeFlags()
157 flags |= HostAuth.FLAG_TLS; in getSchemeFlags()
162 flags |= HostAuth.FLAG_TRUST_ALL; in getSchemeFlags()
318 public static final Parcelable.Creator<HostAuth> CREATOR
[all …]
DAccount.java136 public transient HostAuth mHostAuthRecv;
137 public transient HostAuth mHostAuthSend;
435 public HostAuth getOrCreateHostAuthSend(Context context) { in getOrCreateHostAuthSend()
438 mHostAuthSend = HostAuth.restoreHostAuthWithId(context, mHostAuthKeySend); in getOrCreateHostAuthSend()
440 mHostAuthSend = new HostAuth(); in getOrCreateHostAuthSend()
446 public HostAuth getOrCreateHostAuthRecv(Context context) { in getOrCreateHostAuthRecv()
449 mHostAuthRecv = HostAuth.restoreHostAuthWithId(context, mHostAuthKeyRecv); in getOrCreateHostAuthRecv()
451 mHostAuthRecv = new HostAuth(); in getOrCreateHostAuthRecv()
602 HostAuth hostAuth = HostAuth.restoreHostAuthWithId(context, mHostAuthKeyRecv); in getProtocol()
952 mHostAuthRecv = new HostAuth(in); in Account()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java21 import com.android.emailcommon.provider.HostAuth;
103 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
111 cr.delete(HostAuth.CONTENT_URI, null, null); in testBackupAndRestore()
115 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
124 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
134 HostAuth recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); in testBackupAndRestore()
136 HostAuth send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); in testBackupAndRestore()
148 recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); in testBackupAndRestore()
150 send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); in testBackupAndRestore()
DProviderTestUtils.java25 import com.android.emailcommon.provider.HostAuth;
87 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, in setupHostAuth()
95 public static HostAuth setupHostAuth(String protocol, String name, boolean saveIt, in setupHostAuth()
97 HostAuth hostAuth = new HostAuth(); in setupHostAuth()
331 public static void assertHostAuthEqual(String caller, HostAuth expect, HostAuth actual) { in assertHostAuthEqual()
335 public static void assertHostAuthEqual(String caller, HostAuth expect, HostAuth actual, in assertHostAuthEqual()
/packages/apps/Email/src/com/android/email/mail/
DStore.java32 import com.android.emailcommon.provider.HostAuth;
50 static final HashMap<HostAuth, Store> sStores = new HashMap<HostAuth, Store>();
61 sStoreClasses.put(HostAuth.SCHEME_EAS, ExchangeStore.class); in sStoreClasses.put()
62 sStoreClasses.put(HostAuth.SCHEME_IMAP, ImapStore.class); in sStoreClasses.put()
63 sStoreClasses.put(HostAuth.SCHEME_POP3, Pop3Store.class); in sStoreClasses.put()
90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getInstance()
126 return sStores.remove(HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv)); in removeInstance()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DTrafficFlags.java22 import com.android.emailcommon.provider.HostAuth;
42 private static final String[] PROTOCOLS = new String[] {HostAuth.SCHEME_POP3,
43 HostAuth.SCHEME_IMAP, HostAuth.SCHEME_EAS, HostAuth.SCHEME_SMTP};
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DAccountSetupExchangeTests.java31 import com.android.emailcommon.provider.HostAuth;
184 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_SSL; in testLoadSettings()
185 account.mHostAuthRecv.mFlags &= ~HostAuth.FLAG_TRUST_ALL; in testLoadSettings()
195 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_TRUST_ALL; in testLoadSettings()
233 HostAuth auth = account.getOrCreateHostAuthRecv(context); in getTestIntent()
234 HostAuth.setHostAuthFromString(auth, storeUriString); in getTestIntent()
DAccountSetupAccountTypeTests.java29 import com.android.emailcommon.provider.HostAuth;
91 HostAuth auth = account.getOrCreateHostAuthRecv(mContext); in createTestAccount()
92 HostAuth.setHostAuthFromString(auth, scheme + "://user:pass@server.com:123"); in createTestAccount()
DAccountSettingsTests.java29 import com.android.emailcommon.provider.HostAuth;
160 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthRecv(mContext), storeUri); in getTestIntent()
161 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthSend(mContext), senderUri); in getTestIntent()
DAccountSetupOptionsTests.java30 import com.android.emailcommon.provider.HostAuth;
170 HostAuth auth = account.getOrCreateHostAuthRecv(context); in getTestIntent()
171 HostAuth.setHostAuthFromString(auth, storeUri); in getTestIntent()
DAccountSetupIncomingTests.java21 import com.android.emailcommon.provider.HostAuth;
191 HostAuth auth = account.getOrCreateHostAuthRecv(context); in getTestIntent()
192 HostAuth.setHostAuthFromString(auth, storeUriString); in getTestIntent()
DAccountSetupOutgoingTests.java21 import com.android.emailcommon.provider.HostAuth;
187 HostAuth auth = account.getOrCreateHostAuthSend(context); in getTestIntent()
188 HostAuth.setHostAuthFromString(auth, senderUriString); in getTestIntent()
/packages/apps/Email/tests/src/com/android/email/mail/
DStoreTests.java28 import com.android.emailcommon.provider.HostAuth;
60 HostAuth testAuth = new HostAuth(); in testGetInstance()
73 testAuth = new HostAuth(); in testGetInstance()
85 testAuth = new HostAuth(); in testGetInstance()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java34 import com.android.emailcommon.provider.HostAuth;
65 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); in SmtpSender()
74 if ((sendAuth.mFlags & HostAuth.FLAG_SSL) != 0) { in SmtpSender()
77 } else if ((sendAuth.mFlags & HostAuth.FLAG_TLS) != 0) { in SmtpSender()
80 boolean trustCertificates = ((sendAuth.mFlags & HostAuth.FLAG_TRUST_ALL) != 0); in SmtpSender()
82 if (sendAuth.mPort != HostAuth.PORT_UNKNOWN) { in SmtpSender()
/packages/apps/Email/src/com/android/email/provider/
DDBHelper.java48 import com.android.emailcommon.provider.HostAuth;
75 "; delete from " + HostAuth.TABLE_NAME +
77 "; delete from " + HostAuth.TABLE_NAME +
377 db.execSQL("create table " + HostAuth.TABLE_NAME + s); in createHostAuthTable()
382 db.execSQL("drop table " + HostAuth.TABLE_NAME); in resetHostAuthTable()
980 + HostAuth.TABLE_NAME + " WHERE " in upgradeFromVersion17ToVersion18()
988 + HostAuth.TABLE_NAME + "." + HostAuthColumns.ID + " AND ( " in upgradeFromVersion17ToVersion18()
989 + HostAuth.TABLE_NAME + "." + HostAuthColumns.PROTOCOL + "='imap' OR " in upgradeFromVersion17ToVersion18()
990 + HostAuth.TABLE_NAME + "." + HostAuthColumns.PROTOCOL + "='pop3' ) )"); in upgradeFromVersion17ToVersion18()
1036 Cursor hostAuthCursor = db.query(HostAuth.TABLE_NAME, in upgradeFromVersion21ToVersion22()
[all …]
/packages/apps/Email/src/com/android/email/service/
DEmailBroadcastProcessorService.java40 import com.android.emailcommon.provider.HostAuth;
191 HostAuth recvAuth = HostAuth.restoreHostAuthWithId(context, recvAuthKey); in setImapDeletePolicy()
192 if (HostAuth.SCHEME_IMAP.equals(recvAuth.mProtocol)) { in setImapDeletePolicy()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DIEmailService.aidl20 import com.android.emailcommon.provider.HostAuth;
26 Bundle validate(in HostAuth hostauth); in validate()

123