/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
HostAuth.aidl | 18 parcelable HostAuth
|
HostAuth.java | 35 public final class HostAuth extends EmailContent implements HostAuthColumns, Parcelable { 36 public static final String TABLE_NAME = "HostAuth"; 38 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/hostauth"); 85 public HostAuth() { 93 * Restore a HostAuth from the database, given its unique id 96 * @return the instantiated HostAuth 98 public static HostAuth restoreHostAuthWithId(Context context, long id) { 99 return EmailContent.restoreContentWithId(context, HostAuth.class, 100 HostAuth.CONTENT_URI, HostAuth.CONTENT_PROJECTION, id) [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
HostAuthTests.java | 23 * Unit tests for the HostAuth inner class. 33 HostAuth ha = new HostAuth(); 73 HostAuth ha = new HostAuth(); 77 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 81 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 85 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 89 assertEquals(HostAuth.FLAG_AUTHENTICATE, ha.mFlags); 93 assertEquals(~HostAuth.FLAG_AUTHENTICATE, ha.mFlags) [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupAccountType.java | 32 import com.android.emailcommon.provider.HostAuth; 86 HostAuth hostAuth = account.mHostAuthRecv; 87 hostAuth.mProtocol = HostAuth.SCHEME_POP3; 88 hostAuth.mLogin = hostAuth.mLogin + "@" + hostAuth.mAddress; 89 hostAuth.mAddress = AccountSettingsUtils.inferServerName(hostAuth.mAddress [all...] |
AccountSetupIncomingFragment.java | 43 import com.android.emailcommon.provider.HostAuth; 126 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( 128 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( 130 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( 132 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( 134 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( 290 if (HostAuth.SCHEME_POP3.equals(mBaseScheme)) { 296 } else if (HostAuth.SCHEME_IMAP.equals(mBaseScheme)) [all...] |
AccountSetupOutgoingFragment.java | 43 import com.android.emailcommon.provider.HostAuth; 85 mBaseScheme = HostAuth.SCHEME_SMTP; 111 new SpinnerOption(HostAuth.FLAG_NONE, context.getString( 113 new SpinnerOption(HostAuth.FLAG_SSL, context.getString( 115 new SpinnerOption(HostAuth.FLAG_SSL | HostAuth.FLAG_TRUST_ALL, context.getString( 117 new SpinnerOption(HostAuth.FLAG_TLS, context.getString( 119 new SpinnerOption(HostAuth.FLAG_TLS | HostAuth.FLAG_TRUST_ALL, context.getString( 252 HostAuth sendAuth = SetupData.getAccount().getOrCreateHostAuthSend(mContext) [all...] |
AccountSetupBasics.java | 54 import com.android.emailcommon.provider.HostAuth; 444 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); 445 HostAuth.setHostAuthFromString(recvAuth, mProvider.incomingUri); 448 HostAuth sendAuth = account.getOrCreateHostAuthSend(this); 449 HostAuth.setHostAuthFromString(sendAuth, mProvider.outgoingUri); 568 HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); 570 recvAuth.setConnection("placeholder", domain, HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE); 572 HostAuth sendAuth = account.getOrCreateHostAuthSend(this); 574 sendAuth.setConnection("placeholder", domain, HostAuth.PORT_UNKNOWN, HostAuth.FLAG_NONE) [all...] |
AccountSetupExchangeFragment.java | 47 import com.android.emailcommon.provider.HostAuth; 93 mBaseScheme = HostAuth.SCHEME_EAS; 260 HostAuth hostAuth = account.mHostAuthRecv; 262 String userName = hostAuth.mLogin; 272 if (hostAuth.mPassword != null) { 273 mPasswordView.setText(hostAuth.mPassword); 280 String protocol = hostAuth.mProtocol; 285 if (hostAuth.mAddress != null) { 286 mServerView.setText(hostAuth.mAddress) [all...] |
AccountServerBaseFragment.java | 37 import com.android.emailcommon.provider.HostAuth; 69 /*package*/ HostAuth mLoadedSendAuth; 70 /*package*/ HostAuth mLoadedRecvAuth; 394 public void onAutoDiscoverComplete(int result, HostAuth hostAuth) { 404 HostAuth sendAuth = account.getOrCreateHostAuthSend(mContext); 407 HostAuth recvAuth = account.getOrCreateHostAuthRecv(mContext);
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 21 import com.android.emailcommon.provider.HostAuth; 103 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 111 cr.delete(HostAuth.CONTENT_URI, null, null); 115 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 124 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); 134 HostAuth recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv); 136 HostAuth send = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeySend); 148 recv = HostAuth.restoreHostAuthWithId(mMockContext, restored.mHostAuthKeyRecv) [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
TrafficFlags.java | 22 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/src/com/android/email/mail/ |
Store.java | 32 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); 62 sStoreClasses.put(HostAuth.SCHEME_IMAP, ImapStore.class); 63 sStoreClasses.put(HostAuth.SCHEME_POP3, Pop3Store.class); 80 * 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 [all...] |
Sender.java | 27 import com.android.emailcommon.provider.HostAuth; 77 HostAuth sendAuth = account.getOrCreateHostAuthSend(context);
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupExchangeTests.java | 31 import com.android.emailcommon.provider.HostAuth; 183 "eas", "hostauth", false, mActivity.getBaseContext()); 184 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_SSL; 185 account.mHostAuthRecv.mFlags &= ~HostAuth.FLAG_TRUST_ALL; 195 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_TRUST_ALL; 233 HostAuth auth = account.getOrCreateHostAuthRecv(context); 234 HostAuth.setHostAuthFromString(auth, storeUriString);
|
AccountSetupAccountTypeTests.java | 29 import com.android.emailcommon.provider.HostAuth; 91 HostAuth auth = account.getOrCreateHostAuthRecv(mContext); 92 HostAuth.setHostAuthFromString(auth, scheme + "://user:pass@server.com:123");
|
AccountSettingsTests.java | 29 import com.android.emailcommon.provider.HostAuth; 160 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthRecv(mContext), storeUri); 161 HostAuth.setHostAuthFromString(mAccount.getOrCreateHostAuthSend(mContext), senderUri);
|
AccountSetupIncomingTests.java | 21 import com.android.emailcommon.provider.HostAuth; 191 HostAuth auth = account.getOrCreateHostAuthRecv(context); 192 HostAuth.setHostAuthFromString(auth, storeUriString);
|
AccountSetupOptionsTests.java | 30 import com.android.emailcommon.provider.HostAuth; 170 HostAuth auth = account.getOrCreateHostAuthRecv(context); 171 HostAuth.setHostAuthFromString(auth, storeUri);
|
AccountSetupOutgoingTests.java | 21 import com.android.emailcommon.provider.HostAuth; 187 HostAuth auth = account.getOrCreateHostAuthSend(context); 188 HostAuth.setHostAuthFromString(auth, senderUriString);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
IEmailService.aidl | 20 import com.android.emailcommon.provider.HostAuth; 26 Bundle validate(in HostAuth hostauth);
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ServiceStore.java | 26 import com.android.emailcommon.provider.HostAuth; 34 protected final HostAuth mHostAuth; 67 * HostAuth and we return null if there was a service issue
|
/packages/apps/Email/tests/src/com/android/email/mail/ |
StoreTests.java | 28 import com.android.emailcommon.provider.HostAuth; 60 HostAuth testAuth = new HostAuth(); 73 testAuth = new HostAuth(); 85 testAuth = new HostAuth();
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
SmtpSender.java | 34 import com.android.emailcommon.provider.HostAuth; 65 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); 74 if ((sendAuth.mFlags & HostAuth.FLAG_SSL) != 0) { 77 } else if ((sendAuth.mFlags & HostAuth.FLAG_TLS) != 0) { 80 boolean trustCertificates = ((sendAuth.mFlags & HostAuth.FLAG_TRUST_ALL) != 0); 82 if (sendAuth.mPort != HostAuth.PORT_UNKNOWN) {
|
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 23 import com.android.emailcommon.provider.HostAuth; 58 * Create a simple HostAuth with protocol 60 private HostAuth setupSimpleHostAuth(String protocol) { 61 HostAuth hostAuth = ProviderTestUtils.setupHostAuth(protocol, "name", false, mContext); 62 hostAuth.mProtocol = protocol; 63 return hostAuth;
|
/packages/apps/Email/src/com/android/email/service/ |
EmailServiceUtils.java | 27 import com.android.emailcommon.provider.HostAuth; 136 public Bundle validate(HostAuth hostAuth) throws RemoteException {
|