/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | UtilityMediumTests.java | 21 import com.android.emailcommon.provider.Account; 62 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); in testFindExistingAccount() 66 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); in testFindExistingAccount() 71 Account acct = Utility.findExistingAccount(mMockContext, -1, "address-ha1", "login-ha1"); in testFindExistingAccount() 85 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext); in testFindExistingAccount() 96 Account account = ProviderTestUtils.setupAccount("account", true, mMockContext); in testAttachmentExists() 150 Account account1 = ProviderTestUtils.setupAccount("1", true, mMockContext); in testGetFirstRowLong() 151 Account account2 = ProviderTestUtils.setupAccount("X1", true, mMockContext); in testGetFirstRowLong() 152 Account account3 = ProviderTestUtils.setupAccount("X2", true, mMockContext); in testGetFirstRowLong() 156 mMockContext, Account.CONTENT_URI, EmailContent.ID_PROJECTION, in testGetFirstRowLong() [all …]
|
/packages/apps/Email/tests/src/com/android/email/ |
D | AccountTestCase.java | 28 import com.android.emailcommon.provider.Account; 48 protected android.accounts.Account[] getExchangeAccounts() { in getExchangeAccounts() 52 protected android.accounts.Account makeAccountManagerAccount(String username) { in makeAccountManagerAccount() 53 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE); in makeAccountManagerAccount() 57 final android.accounts.Account account = makeAccountManagerAccount(username); in createAccountManagerAccount() 61 protected Account setupProviderAndAccountManagerAccount(String username) { in setupProviderAndAccountManagerAccount() 68 protected ArrayList<Account> makeExchangeServiceAccountList() { in makeExchangeServiceAccountList() 69 ArrayList<Account> accountList = new ArrayList<Account>(); in makeExchangeServiceAccountList() 70 Cursor c = getMockContext().getContentResolver().query(Account.CONTENT_URI, in makeExchangeServiceAccountList() 71 Account.CONTENT_PROJECTION, null, null, null); in makeExchangeServiceAccountList() [all …]
|
/packages/apps/Exchange/tests/src/com/android/exchange/ |
D | CalendarSyncEnablerTest.java | 19 import android.accounts.Account; 49 private HashMap<Account, Boolean> origCalendarSyncStates = new HashMap<Account, Boolean>(); 61 for (Account account : AccountManager.get(getContext()).getAccounts()) { in setUp() 77 for (Account account : getExchangeAccounts()) { in tearDown() 86 final Account[] baseAccounts = getExchangeAccounts(); in testEnableEasCalendarSync() 126 private static void checkNotificationEmailAddresses(String actual, Account[] baseAccounts, in checkNotificationEmailAddresses() 134 for (Account account : baseAccounts) { in checkNotificationEmailAddresses() 160 for (Account account : AccountManager.get(getContext()).getAccounts()) { in verifyCalendarSyncState() 209 protected Account[] getExchangeAccounts() { in getExchangeAccounts() 214 protected Account makeAccountManagerAccount(String username) { in makeAccountManagerAccount() [all …]
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/ |
D | CalendarSyncEnablerTest.java | 19 import android.accounts.Account; 49 private HashMap<Account, Boolean> origCalendarSyncStates = new HashMap<Account, Boolean>(); 61 for (Account account : AccountManager.get(getContext()).getAccounts()) { in setUp() 77 for (Account account : getExchangeAccounts()) { in tearDown() 86 final Account[] baseAccounts = getExchangeAccounts(); in testEnableEasCalendarSync() 126 private static void checkNotificationEmailAddresses(String actual, Account[] baseAccounts, in checkNotificationEmailAddresses() 134 for (Account account : baseAccounts) { in checkNotificationEmailAddresses() 160 for (Account account : AccountManager.get(getContext()).getAccounts()) { in verifyCalendarSyncState() 209 protected Account[] getExchangeAccounts() { in getExchangeAccounts() 214 protected Account makeAccountManagerAccount(String username) { in makeAccountManagerAccount() [all …]
|
/packages/apps/Email/tests/src/com/android/email/service/ |
D | MailServiceTests.java | 33 import com.android.emailcommon.provider.Account; 81 Account firstAccount = null; in testTestReconcileAccounts() 97 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context) in testTestReconcileAccounts() 99 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { in testTestReconcileAccounts() 122 android.accounts.Account[] baselineAccounts = in testReconcileAccounts() 126 Account firstAccount = setupProviderAndAccountManagerAccount(getTestAccountName("1")); in testReconcileAccounts() 131 assertEquals(3, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null)); in testReconcileAccounts() 132 android.accounts.Account[] accountManagerAccounts = in testReconcileAccounts() 137 android.accounts.Account removedAccount = in testReconcileAccounts() 151 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI, null, null)); in testReconcileAccounts() [all …]
|
D | EmailBroadcastProcessorServiceTests.java | 21 import com.android.emailcommon.provider.Account; 71 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId); in getAccountFlags() 85 Account account1 = ProviderTestUtils.setupAccount("eas-account1", false, mMockContext); in testSetImapDeletePolicy() 90 Account account2 = ProviderTestUtils.setupAccount("pop-account1", false, mMockContext); in testSetImapDeletePolicy() 96 Account account3 = ProviderTestUtils.setupAccount("pop-account2", false, mMockContext); in testSetImapDeletePolicy() 101 Account account4 = ProviderTestUtils.setupAccount("imap-account1", false, mMockContext); in testSetImapDeletePolicy() 107 Account account5 = ProviderTestUtils.setupAccount("imap-account2", false, mMockContext); in testSetImapDeletePolicy() 113 Account account6 = ProviderTestUtils.setupAccount("imap-account3", false, mMockContext); in testSetImapDeletePolicy()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | AccountReconciler.java | 28 import com.android.emailcommon.provider.Account; 51 List<Account> emailProviderAccounts, in accountsNeedReconciling() 52 android.accounts.Account[] accountManagerAccounts) { in accountsNeedReconciling() 77 List<Account> emailProviderAccounts, in reconcileAccounts() 78 android.accounts.Account[] accountManagerAccounts, in reconcileAccounts() 92 List<Account> emailProviderAccounts, in reconcileAccountsInternal() 93 android.accounts.Account[] accountManagerAccounts, in reconcileAccountsInternal() 100 for (Account providerAccount: emailProviderAccounts) { in reconcileAccountsInternal() 103 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { in reconcileAccountsInternal() 110 if ((providerAccount.mFlags & Account.FLAGS_INCOMPLETE) != 0) { in reconcileAccountsInternal() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | AccountService.java | 34 import com.android.emailcommon.provider.Account; 58 private ArrayList<Account> getAccountList(String forProtocol) { 59 ArrayList<Account> providerAccounts = new ArrayList<Account>(); 60 Cursor c = mContext.getContentResolver().query(Account.CONTENT_URI, 61 Account.ID_PROJECTION, null, null, null); 64 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 65 String protocol = Account.getProtocol(mContext, accountId); 67 Account account = Account.restoreAccountWithId(mContext, accountId); 81 ArrayList<Account> providerList = getAccountList(protocol); 82 android.accounts.Account[] accountMgrList =
|
D | MailService.java | 44 import com.android.emailcommon.provider.Account; 221 Cursor c = mContentResolver.query(Account.CONTENT_URI, Account.ID_PROJECTION, in onStartCommand() 225 long accountId = c.getLong(Account.ID_PROJECTION_COLUMN); in onStartCommand() 226 if ("eas".equals(Account.getProtocol(mContext, accountId))) { in onStartCommand() 500 uri = Account.CONTENT_URI; in setupSyncReportsLocked() 502 uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId); in setupSyncReportsLocked() 512 Cursor c = resolver.query(uri, Account.CONTENT_PROJECTION, null, null, null); in setupSyncReportsLocked() 515 Account account = Account.getContent(c, Account.class); in setupSyncReportsLocked() 531 syncInterval = Account.CHECK_INTERVAL_NEVER; in setupSyncReportsLocked() 543 android.accounts.Account accountManagerAccount = in setupSyncReportsLocked() [all …]
|
D | EmailBroadcastProcessorService.java | 38 import com.android.emailcommon.provider.Account; 186 Cursor c = resolver.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, in setImapDeletePolicy() 190 long recvAuthKey = c.getLong(Account.CONTENT_HOST_AUTH_KEY_RECV_COLUMN); in setImapDeletePolicy() 193 int flags = c.getInt(Account.CONTENT_FLAGS_COLUMN); in setImapDeletePolicy() 194 flags &= ~Account.FLAGS_DELETE_POLICY_MASK; in setImapDeletePolicy() 195 flags |= Account.DELETE_POLICY_ON_DELETE << Account.FLAGS_DELETE_POLICY_SHIFT; in setImapDeletePolicy() 198 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); in setImapDeletePolicy() 199 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, accountId); in setImapDeletePolicy()
|
D | EasTestAuthenticatorService.java | 20 import android.accounts.Account; 56 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() 78 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() 89 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() 101 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() 107 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | AccountBackupRestoreTests.java | 19 import com.android.emailcommon.provider.Account; 58 public static void assertRestoredAccountEqual(Account expect, Account actual) { in assertRestoredAccountEqual() 85 Account saved1 = in testBackupAndRestore() 93 Account saved2 = in testBackupAndRestore() 102 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 110 cr.delete(Account.CONTENT_URI, null, null); in testBackupAndRestore() 114 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 123 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 127 Cursor c = cr.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, "_id ASC"); in testBackupAndRestore() 131 Account restored = new Account(); in testBackupAndRestore() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Account.java | 41 public final class Account extends EmailContent implements AccountColumns, Parcelable { class 140 public transient android.accounts.Account mAmAccount; 198 Account.POLICY_KEY + " IS NOT NULL AND " + Account.POLICY_KEY + "!=0"; 214 public Account() { in Account() method in Account 225 public static Account restoreAccountWithId(Context context, long id) { in restoreAccountWithId() 226 return EmailContent.restoreContentWithId(context, Account.class, in restoreAccountWithId() 227 Account.CONTENT_URI, Account.CONTENT_PROJECTION, id); in restoreAccountWithId() 244 Cursor c = context.getContentResolver().query(getUri(), Account.CONTENT_PROJECTION, in refresh() 485 Account account = Account.restoreAccountWithId(context, accountId); in supportsServerSearch() 487 return (account.mFlags & Account.FLAGS_SUPPORTS_SEARCH) != 0; in supportsServerSearch() [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsFragment.java | 51 import com.android.emailcommon.provider.Account; 111 private Account mAccount; 129 public void onSettingsChanged(Account account, String preference, Object value); in onSettingsChanged() 130 public void onEditQuickResponses(Account account); in onEditQuickResponses() 131 public void onIncomingSettings(Account account); in onIncomingSettings() 132 public void onOutgoingSettings(Account account); in onOutgoingSettings() 134 public void deleteAccount(Account account); in deleteAccount() 139 @Override public void onSettingsChanged(Account account, String preference, Object value) {} in onSettingsChanged() 140 @Override public void onEditQuickResponses(Account account) {} in onEditQuickResponses() 141 @Override public void onIncomingSettings(Account account) {} in onIncomingSettings() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
D | AccountSetupAccountTypeTests.java | 28 import com.android.emailcommon.provider.Account; 44 private HashSet<Account> mAccounts = new HashSet<Account>(); 61 for (Account account : mAccounts) { in tearDown() 62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); in tearDown() 89 private Account createTestAccount(String scheme) throws URISyntaxException { in createTestAccount() 90 Account account = new Account(); in createTestAccount()
|
D | AccountSettingsTests.java | 28 import com.android.emailcommon.provider.Account; 46 private Account mAccount; 73 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, mAccountId); in tearDown() 91 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); in disable_testPushOptionPOP() 105 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); in disable_testPushOptionIMAP() 119 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); in disable_testPushOptionEAS() 156 mAccount = new Account(); in getTestIntent()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | Welcome.java | 40 import com.android.emailcommon.provider.Account; 308 accountId = Account.getAccountIdFromUuid(context, inputUuid); in resolveAccountId() 310 } else if (inputAccountId != Account.NO_ACCOUNT) { in resolveAccountId() 312 if (inputAccountId == Account.ACCOUNT_ID_COMBINED_VIEW in resolveAccountId() 313 || Account.isValidId(context, inputAccountId)) { in resolveAccountId() 316 accountId = Account.NO_ACCOUNT; in resolveAccountId() 322 if (lastUsedId != Account.NO_ACCOUNT) { in resolveAccountId() 323 if (!Account.isValidId(context, lastUsedId)) { in resolveAccountId() 325 lastUsedId = Account.NO_ACCOUNT; in resolveAccountId() 326 Preferences.getPreferences(context).setLastUsedAccountId(Account.NO_ACCOUNT); in resolveAccountId() [all …]
|
D | AccountSelectorAdapter.java | 37 import com.android.emailcommon.provider.Account; 76 Account.DISPLAY_NAME, 77 Account.EMAIL_ADDRESS, 86 Account.DISPLAY_NAME, 87 Account.EMAIL_ADDRESS, 94 private static final String ORDER_BY = Account.IS_DEFAULT + " desc, " + Account.RECORD_ID; 176 ((CursorWithExtras) c).getAccountId() == Account.ACCOUNT_ID_COMBINED_VIEW; in getView() 178 if (isCombinedActive && Account.isNormalAccount(id)) { in getView() 259 return c.moveToPosition(position) ? getId(c) : Account.NO_ACCOUNT; in getId() 269 : Account.NO_ACCOUNT; in getAccountId() [all …]
|
D | ShortcutPickerFragment.java | 20 import com.android.emailcommon.provider.Account; 58 public Integer buildFilter(Account account); in buildFilter() 60 public void onSelected(Account account, long mailboxId); in onSelected() 67 @Override public Integer buildFilter(Account account) { return null; } 68 @Override public void onSelected(Account account, long mailboxId){ getActivity().finish(); } 144 Account account = new Account(); in addCombinedAccountRow() 145 account.mId = Account.ACCOUNT_ID_COMBINED_VIEW; in addCombinedAccountRow() 155 row.add(Account.ACCOUNT_ID_COMBINED_VIEW); in addCombinedAccountRow() 192 context, Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, null); in onCreateLoader() 219 Account account = new Account(); in selectAccountCursor() [all …]
|
/packages/apps/Email/src/com/android/email/ |
D | NotificationController.java | 50 import com.android.emailcommon.provider.Account; 81 Account.FLAGS + "&" + Account.FLAGS_NOTIFY_NEW_MAIL + " != 0"; 103 private long mSuspendAccountId = Account.NO_ACCOUNT; 174 private Notification.Builder createBaseAccountNotificationBuilder(Account account, in createBaseAccountNotificationBuilder() 213 private void showAccountNotification(Account account, String ticker, String title, in showAccountNotification() 251 unregisterMessageNotification(Account.ACCOUNT_ID_COMBINED_VIEW); in watchForMessages() 264 registerMessageNotification(Account.ACCOUNT_ID_COMBINED_VIEW); in watchForMessages() 271 resolver.registerContentObserver(Account.NOTIFIER_URI, true, mAccountObserver); in watchForMessages() 288 if (mSuspendAccountId != Account.NO_ACCOUNT) { in suspendMessageNotification() 290 mSuspendAccountId = Account.NO_ACCOUNT; in suspendMessageNotification() [all …]
|
D | MessageListContext.java | 25 import com.android.emailcommon.provider.Account; 70 long accountId = intent.getLongExtra(EmailActivity.EXTRA_ACCOUNT_ID, Account.NO_ACCOUNT); in forIntent() 79 if (accountId == Account.NO_ACCOUNT) { in forIntent() 80 accountId = Account.getDefaultAccountId(context); in forIntent() 81 if (accountId == Account.NO_ACCOUNT) { in forIntent() 86 mailboxId = (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) in forIntent() 101 Account.isNormalAccount(accountId), in forSearch() 110 Preconditions.checkArgument(accountId != Account.NO_ACCOUNT, "Must specify an account"); in forMailbox()
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
D | ExchangeTestCase.java | 19 import com.android.emailcommon.provider.Account; 46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null, in tearDown() 55 protected void addTestAccount(Account account) { in addTestAccount() 67 protected Account setupTestAccount(String name, boolean saveIt) { in setupTestAccount() 68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); in setupTestAccount()
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/ |
D | ExchangeTestCase.java | 19 import com.android.emailcommon.provider.Account; 46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null, in tearDown() 55 protected void addTestAccount(Account account) { in addTestAccount() 67 protected Account setupTestAccount(String name, boolean saveIt) { in setupTestAccount() 68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); in setupTestAccount()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | WelcomeTests.java | 21 import com.android.emailcommon.provider.Account; 39 final Account account1 = ProviderTestUtils.setupAccount("account-1", true, c); in testResolveAccountId() 41 final Account account2 = ProviderTestUtils.setupAccount("account-2", true, c); in testResolveAccountId() 43 final Account account3 = ProviderTestUtils.setupAccount("account-3", true, c); in testResolveAccountId() 47 assertTrue(Account.getDefaultAccountId(c) == id3); in testResolveAccountId()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
D | TestAuthenticator.java | 20 import android.accounts.Account; 67 final Account account = new Account(newUniqueUserName(), accountType); in addAccount() 82 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() 95 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() 115 AccountAuthenticatorResponse response, Account account, String[] features) { in hasFeatures() 126 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials()
|