Home
last modified time | relevance | path

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

12

/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DHostAuthTests.java40 HostAuth ha = new HostAuth(); in testSetLogin()
80 HostAuth ha = new HostAuth(); in testSetLoginAuthenticate()
84 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
88 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
92 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
96 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
100 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
104 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); in testSetLoginAuthenticate()
111 HostAuth ha = new HostAuth(); in testSetConnectionFlags()
134 ha.setConnection("imap", "server", HostAuth.PORT_UNKNOWN, HostAuth.FLAG_SSL); in testSetConnectionFlags()
[all …]
DAccountTest.java69 private static HostAuth getHostAuthJSON(String username, String password) { in getHostAuthJSON()
70 final HostAuth ha = new HostAuth(); in getHostAuthJSON()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DHostAuth.java38 public class HostAuth extends EmailContent implements Parcelable { class
97 public HostAuth() { in HostAuth() method in HostAuth
109 public static HostAuth restoreHostAuthWithId(Context context, long id) { in restoreHostAuthWithId()
110 return EmailContent.restoreContentWithId(context, HostAuth.class, in restoreHostAuthWithId()
111 HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, id); in restoreHostAuthWithId()
203 int flags = HostAuth.FLAG_NONE; in getSchemeFlags()
207 flags |= HostAuth.FLAG_SSL; in getSchemeFlags()
209 flags |= HostAuth.FLAG_TLS; in getSchemeFlags()
214 flags |= HostAuth.FLAG_TRUST_ALL; in getSchemeFlags()
277 protected static HostAuth fromJson(final JSONObject json) { in fromJson()
[all …]
DAccount.java149 public transient HostAuth mHostAuthRecv;
150 public transient HostAuth mHostAuthSend;
446 public HostAuth getOrCreateHostAuthSend(Context context) { in getOrCreateHostAuthSend()
449 mHostAuthSend = HostAuth.restoreHostAuthWithId(context, mHostAuthKeySend); in getOrCreateHostAuthSend()
451 mHostAuthSend = new HostAuth(); in getOrCreateHostAuthSend()
457 public HostAuth getOrCreateHostAuthRecv(Context context) { in getOrCreateHostAuthRecv()
460 mHostAuthRecv = HostAuth.restoreHostAuthWithId(context, mHostAuthKeyRecv); in getOrCreateHostAuthRecv()
462 mHostAuthRecv = new HostAuth(); in getOrCreateHostAuthRecv()
524 HostAuth hostAuth = getOrCreateHostAuthRecv(context); in getProtocol()
808 a.mHostAuthRecv = HostAuth.fromJson(recvJson); in fromJson()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DAccountBackupRestoreTests.java28 import com.android.emailcommon.provider.HostAuth;
99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
107 cr.delete(HostAuth.CONTENT_URI, null, null); in testBackupAndRestore()
111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore()
130 HostAuth recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); in testBackupAndRestore()
132 HostAuth send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); in testBackupAndRestore()
144 recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); in testBackupAndRestore()
146 send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); in testBackupAndRestore()
DProviderTestUtils.java25 import com.android.emailcommon.provider.HostAuth;
83 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, in setupHostAuth()
91 public static HostAuth setupHostAuth(String protocol, String name, boolean saveIt, in setupHostAuth()
93 HostAuth hostAuth = new HostAuth(); in setupHostAuth()
315 public static void assertHostAuthEqual(String caller, HostAuth expect, HostAuth actual) { in assertHostAuthEqual()
319 public static void assertHostAuthEqual(String caller, HostAuth expect, HostAuth actual, in assertHostAuthEqual()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoingFragment.java48 import com.android.emailcommon.provider.HostAuth;
102 mBaseScheme = HostAuth.LEGACY_SCHEME_SMTP; in onCreate()
181 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( in onActivityCreated()
183 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( in onActivityCreated()
185 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( in onActivityCreated()
187 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( in onActivityCreated()
189 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( in onActivityCreated()
224 final HostAuth sendAuth = mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext); in loadSettings()
231 sendAuth.setConnection(sendAuth.mProtocol, domain, HostAuth.PORT_UNKNOWN, in loadSettings()
232 HostAuth.FLAG_NONE); in loadSettings()
[all …]
DAccountSetupIncomingFragment.java50 import com.android.emailcommon.provider.HostAuth;
200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in onActivityCreated()
209 recvAuth.setConnection(recvAuth.mProtocol, domain, HostAuth.PORT_UNKNOWN, in onActivityCreated()
210 HostAuth.FLAG_NONE); in onActivityCreated()
236 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( in onActivityCreated()
239 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( in onActivityCreated()
242 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( in onActivityCreated()
246 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( in onActivityCreated()
248 securityTypes.add(new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, in onActivityCreated()
352 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in loadSettings()
[all …]
DAccountSetupFinal.java50 import com.android.emailcommon.provider.HostAuth;
315 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onCreate()
317 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in onCreate()
323 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onCreate()
326 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in onCreate()
835 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in collectCredentials()
841 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in collectCredentials()
870 final String primaryProtocol = HostAuth.getProtocolFromString(mProvider.incomingUri); in finishAutoSetup()
878 final String alternateProtocol = HostAuth.getProtocolFromString( in finishAutoSetup()
883 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in finishAutoSetup()
[all …]
DAccountServerBaseFragment.java34 import com.android.emailcommon.provider.HostAuth;
61 protected HostAuth mLoadedSendAuth;
62 protected HostAuth mLoadedRecvAuth;
252 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mAppContext); in haveSettingsChanged()
255 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in haveSettingsChanged()
DSetupDataFragment.java12 import com.android.emailcommon.provider.HostAuth;
200 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in getIncomingProtocol()
205 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in setIncomingProtocol()
212 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); in getClientCert()
DAccountCheckSettingsFragment.java34 import com.android.emailcommon.provider.HostAuth;
249 final HostAuth autoDiscoverResult = ((AutoDiscoverResults) ex).mHostAuth; in reportProgress()
287 public final HostAuth mHostAuth;
293 public AutoDiscoverResults(boolean authenticationError, HostAuth hostAuth) { in AutoDiscoverResults()
369 HostAuth serverInfo = null; in doInBackground()
/packages/apps/Email/provider_src/com/android/email/mail/
DStore.java32 import com.android.emailcommon.provider.HostAuth;
51 static final HashMap<HostAuth, Store> sStores = new HashMap<HostAuth, Store>();
90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getInstance()
111 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in createInstanceInternal()
145 return sStores.remove(HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv)); in removeInstance()
/packages/apps/Email/provider_src/com/android/email/provider/
DDBHelper.java52 import com.android.emailcommon.provider.HostAuth;
96 "; delete from " + HostAuth.TABLE_NAME +
98 "; delete from " + HostAuth.TABLE_NAME +
105 "create trigger host_auth_delete after delete on " + HostAuth.TABLE_NAME +
108 " and (select count(*) from " + HostAuth.TABLE_NAME + " where " +
283 + HostAuth.TABLE_NAME + "." + HostAuthColumns.PROTOCOL + " from " in createDeleteDuplicateMessagesTrigger()
284 + HostAuth.TABLE_NAME + "," + Account.TABLE_NAME in createDeleteDuplicateMessagesTrigger()
288 + "=" + HostAuth.TABLE_NAME + "." + HostAuthColumns._ID in createDeleteDuplicateMessagesTrigger()
576 db.execSQL("create table " + HostAuth.TABLE_NAME + s); in createHostAuthTable()
581 db.execSQL("drop table " + HostAuth.TABLE_NAME); in resetHostAuthTable()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/
DStoreTests.java29 import com.android.emailcommon.provider.HostAuth;
65 HostAuth testAuth = new HostAuth(); in testGetInstance()
78 testAuth = new HostAuth(); in testGetInstance()
90 testAuth = new HostAuth(); in testGetInstance()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DHostAuthCompat.java8 import com.android.emailcommon.provider.HostAuth;
31 public HostAuthCompat(HostAuth hostAuth) { in HostAuthCompat()
49 public HostAuth toHostAuth() { in toHostAuth()
50 HostAuth hostAuth = new HostAuth(); in toHostAuth()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLUtils.java27 import com.android.emailcommon.provider.HostAuth;
68 private final HostAuth mHostAuth;
73 SameCertificateCheckingTrustManager(Context context, HostAuth hostAuth) { in SameCertificateCheckingTrustManager()
77 Cursor c = context.getContentResolver().query(HostAuth.CONTENT_URI, in SameCertificateCheckingTrustManager()
129 ContentUris.withAppendedId(HostAuth.CONTENT_URI, mHostAuth.mId), in checkServerTrusted()
159 final Context context, final HostAuth hostAuth, final KeyManager keyManager, in getSSLSocketFactory()
198 public static SSLSocketFactory getHttpSocketFactory(Context context, HostAuth hostAuth, in getHttpSocketFactory()
DEmailClientConnectionManager.java24 import com.android.emailcommon.provider.HostAuth;
64 HostAuth hostAuth) { in newInstance()
92 public synchronized void registerClientCert(Context context, HostAuth hostAuth) in registerClientCert()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DMailTransport.java25 import com.android.emailcommon.provider.HostAuth;
59 protected final HostAuth mHostAuth;
65 public MailTransport(Context context, String debugLabel, HostAuth hostAuth) { in MailTransport()
91 return (mHostAuth.mFlags & HostAuth.FLAG_SSL) != 0; in canTrySslSecurity()
95 return (mHostAuth.mFlags & HostAuth.FLAG_TLS) != 0; in canTryTlsSecurity()
99 return (mHostAuth.mFlags & HostAuth.FLAG_TRUST_ALL) != 0; in canTrustAllCertificates()
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DAuthenticationCache.java12 import com.android.emailcommon.provider.HostAuth;
98 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getEntry()
107 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getEntry()
145 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in saveEntry()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DMockTransport.java21 import com.android.emailcommon.provider.HostAuth;
97 return new MockTransport(context, new HostAuth()); in createMockTransport()
100 public MockTransport(Context context, HostAuth hostAuth) { in MockTransport()
291 connectionSecurity & (trustAllCertificates ? HostAuth.FLAG_TRUST_ALL : 0xff); in setSecurity()
DSmtpSenderUnitTests.java32 import com.android.emailcommon.provider.HostAuth;
52 HostAuth mHostAuth;
72 mHostAuth = new HostAuth(); in setUp()
255 mockTransport.setSecurity(HostAuth.FLAG_NONE, false); in openAndInjectMockTransport()
/packages/apps/Email/tests/src/com/android/email/service/
DEmailBroadcastProcessorServiceTests.java28 import com.android.emailcommon.provider.HostAuth;
62 private HostAuth setupSimpleHostAuth(String protocol) { in setupSimpleHostAuth()
63 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); in setupSimpleHostAuth()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DServiceStore.java27 import com.android.emailcommon.provider.HostAuth;
36 protected final HostAuth mHostAuth;
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceUtils.java58 import com.android.emailcommon.provider.HostAuth;
292 final HostAuth hostAuthRecv = in setupAccountManagerAccount()
293 HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv); in setupAccountManagerAccount()
311 final boolean contacts, final HostAuth hostAuth, in setupAccountManagerAccount()
340 final HostAuth hostAuth = in updateAccountManagerType()
341 HostAuth.restoreHostAuthWithId(context, account.mHostAuthKeyRecv); in updateAccountManagerType()
367 resolver.update(ContentUris.withAppendedId(HostAuth.CONTENT_URI, hostAuth.mId), in updateAccountManagerType()

12