/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
HostAuth.aidl | 18 parcelable HostAuth
|
HostAuth.java | 38 public class HostAuth extends EmailContent implements Parcelable { 39 public static final String TABLE_NAME = "HostAuth"; 43 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/hostauth"); 97 public HostAuth() { 104 * Restore a HostAuth from the database, given its unique id 107 * @return the instantiated HostAuth 109 public static HostAuth restoreHostAuthWithId(Context context, long id) { 110 return EmailContent.restoreContentWithId(context, HostAuth.class, 111 HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, id) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
HostAuthTests.java | 30 * Unit tests for the HostAuth inner class. 40 HostAuth ha = new HostAuth(); 80 HostAuth ha = new HostAuth(); 84 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 88 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 92 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 96 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 100 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags) [all...] |
AccountTest.java | 62 * A factory method to generate HostAuth values that allow us to serialize the Account object. 63 * See {@link HostAuthTests} for tests that exercise serialization of HostAuth. 67 * @return a HostAuth that includes the given username and password 69 private static HostAuth getHostAuthJSON(String username, String password) { 70 final HostAuth ha = new HostAuth();
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 28 import com.android.emailcommon.provider.HostAuth; 99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 107 cr.delete(HostAuth.CONTENT_URI, null, null); 111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 130 HostAuth recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); 132 HostAuth send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); 144 recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupOutgoingFragment.java | 48 import com.android.emailcommon.provider.HostAuth; 102 mBaseScheme = HostAuth.LEGACY_SCHEME_SMTP; 181 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( 183 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( 185 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( 187 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( 189 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( 224 final HostAuth sendAuth = mSetupData.getAccount().getOrCreateHostAuthSend(mAppContext) [all...] |
AccountSetupFinal.java | 50 import com.android.emailcommon.provider.HostAuth; 315 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); 317 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); 323 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); 326 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); [all...] |
AccountSetupIncomingFragment.java | 50 import com.android.emailcommon.provider.HostAuth; 200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); 209 recvAuth.setConnection(recvAuth.mProtocol, domain, HostAuth.PORT_UNKNOWN, 210 HostAuth.FLAG_NONE); 236 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( 239 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( 242 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( 246 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( 248 securityTypes.add(new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL [all...] |
AccountServerBaseFragment.java | 34 import com.android.emailcommon.provider.HostAuth; 61 protected HostAuth mLoadedSendAuth; 62 protected HostAuth mLoadedRecvAuth; 252 final HostAuth sendAuth = account.getOrCreateHostAuthSend(mAppContext); 255 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext);
|
SetupDataFragment.java | 12 import com.android.emailcommon.provider.HostAuth; 168 * @param context For resolving the service info, and possibly loading the {@link HostAuth} 191 * the hostauth isn't already loaded. 192 * @param context context to possibly load the {@link HostAuth} from the provider 200 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); 205 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context); 212 final HostAuth recvAuth = mAccount.getOrCreateHostAuthRecv(context);
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasAutoDiscover.java | 9 import com.android.emailcommon.provider.HostAuth; 68 private HostAuth mHostAuth; 73 final HostAuth hostAuth = new HostAuth(); 74 hostAuth.mLogin = username; 75 hostAuth.mPassword = password; 76 hostAuth.mPort = 443; 77 hostAuth.mProtocol = Eas.PROTOCOL; 78 hostAuth.mFlags = HostAuth.FLAG_SSL | HostAuth.FLAG_AUTHENTICATE [all...] |
EasConnectionCache.java | 22 import com.android.emailcommon.provider.HostAuth; 41 * We use {@link HostAuth}'s id as the cache key. Multiple calls to {@link #getConnectionManager} 42 * with {@link HostAuth} objects with the same id will get the same connection object returned, 43 * i.e. we assume that the rest of the contents of the {@link HostAuth} objects are also the same, 44 * not just the id. If the {@link HostAuth} changes or is deleted, {@link #uncacheConnectionManager} 82 * Create an {@link EmailClientConnectionManager} for this {@link HostAuth}. 84 * @param hostAuth The {@link HostAuth} to which we want to connect. 85 * @return The {@link EmailClientConnectionManager} for hostAuth. 88 final HostAuth hostAuth [all...] |
EasFolderSync.java | 24 import com.android.emailcommon.provider.HostAuth; 77 private static Account makeAccount(final HostAuth hostAuth) { 79 account.mHostAuthRecv = hostAuth; 80 account.mEmailAddress = hostAuth.mLogin; 87 * @param hostAuth 89 public EasFolderSync(final Context context, final HostAuth hostAuth) { 90 super(context, makeAccount(hostAuth), hostAuth); [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
ServiceStore.java | 27 import com.android.emailcommon.provider.HostAuth; 36 protected final HostAuth mHostAuth; 79 * HostAuth and we return null if there was a service issue
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
HostAuthCompat.java | 8 import com.android.emailcommon.provider.HostAuth; 12 * This class is explicitly for communicating HostAuth information to different implementations of 13 * IEmailService. We do not want to use the regular HostAuth class because it's used in many ways 31 public HostAuthCompat(HostAuth hostAuth) { 32 mProtocol = hostAuth.mProtocol; 33 mAddress = hostAuth.mAddress; 34 mPort = hostAuth.mPort; 35 mFlags = hostAuth.mFlags; 36 mLogin = hostAuth.mLogin [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 29 import com.android.emailcommon.provider.HostAuth; 65 HostAuth testAuth = new HostAuth(); 78 testAuth = new HostAuth(); 90 testAuth = new HostAuth();
|
/packages/apps/Email/provider_src/com/android/email/mail/ |
Store.java | 32 import com.android.emailcommon.provider.HostAuth; 51 static final HashMap<HostAuth, Store> sStores = new HashMap<HostAuth, Store>(); 75 * HostAuth row. If this ever changes (e.g. such as the user updating the 90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); 92 if (hostAuth == null) return null; 94 Store store = sStores.get(hostAuth); 111 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context) [all...] |
Sender.java | 26 import com.android.emailcommon.provider.HostAuth; 76 HostAuth sendAuth = account.getOrCreateHostAuthSend(context);
|
/packages/apps/Email/provider_src/com/android/email/mail/transport/ |
MailTransport.java | 25 import com.android.emailcommon.provider.HostAuth; 59 protected final HostAuth mHostAuth; 65 public MailTransport(Context context, String debugLabel, HostAuth hostAuth) { 69 mHostAuth = hostAuth; 91 return (mHostAuth.mFlags & HostAuth.FLAG_SSL) != 0; 95 return (mHostAuth.mFlags & HostAuth.FLAG_TLS) != 0; 99 return (mHostAuth.mFlags & HostAuth.FLAG_TRUST_ALL) != 0;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLUtils.java | 27 import com.android.emailcommon.provider.HostAuth; 52 // All secure factories are the same; all insecure factories are associated with HostAuth's 62 * A trust manager specific to a particular HostAuth. The first time a server certificate is 63 * encountered for the HostAuth, its certificate is saved; subsequent checks determine whether 68 private final HostAuth mHostAuth; 70 // The public key associated with the HostAuth; we'll lazily initialize it 73 SameCertificateCheckingTrustManager(Context context, HostAuth hostAuth) { 75 mHostAuth = hostAuth; 77 Cursor c = context.getContentResolver().query(HostAuth.CONTENT_URI [all...] |
EmailClientConnectionManager.java | 24 import com.android.emailcommon.provider.HostAuth; 64 HostAuth hostAuth) { 66 boolean ssl = hostAuth.shouldUseSsl(); 67 int port = hostAuth.mPort; 75 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, false), 79 SSLUtils.getHttpSocketFactory(context, hostAuth, keyManager, true), 92 public synchronized void registerClientCert(Context context, HostAuth hostAuth) 94 if (TextUtils.isEmpty(hostAuth.mClientCertAlias)) [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 28 import com.android.emailcommon.provider.HostAuth; 60 * Create a simple HostAuth with protocol 62 private HostAuth setupSimpleHostAuth(String protocol) { 63 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); 64 hostAuth.mProtocol = protocol; 65 return hostAuth;
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
DBHelper.java | 52 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 " + 138 // Version 24: Add column to hostauth table for client cert alias 159 // Version 106: Add certificate to HostAuth 268 * (select HostAuth.protocol from HostAuth, Account where 269 * new.accountKey=account._id and account.hostAuthKeyRecv=hostAuth._id) = 'gEas [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/internet/ |
AuthenticationCache.java | 12 import com.android.emailcommon.provider.HostAuth; 98 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); 99 final Credential credential = hostAuth.getOrCreateCredential(context); 107 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); 108 final Credential credential = hostAuth.getCredential(context); 145 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); 146 final Credential cred = hostAuth.getOrCreateCredential(context) [all...] |
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
MockTransport.java | 21 import com.android.emailcommon.provider.HostAuth; 97 return new MockTransport(context, new HostAuth()); 100 public MockTransport(Context context, HostAuth hostAuth) { 101 super(context, LOG_TAG, hostAuth); 291 connectionSecurity & (trustAllCertificates ? HostAuth.FLAG_TRUST_ALL : 0xff);
|