/frameworks/base/core/java/android/accounts/ |
Account.aidl | 19 parcelable Account;
|
OnAccountsUpdateListener.java | 24 * This invoked when the AccountMonitor starts up and whenever the account 28 void onAccountsUpdated(Account[] accounts);
|
Account.java | 24 * Value type that represents an Account in the {@link AccountManager}. This object is 28 public class Account implements Parcelable { 34 if (!(o instanceof Account)) return false; 35 final Account other = (Account)o; 46 public Account(String name, String type) { 57 public Account(Parcel in) { 71 public static final Creator<Account> CREATOR = new Creator<Account>() { 72 public Account createFromParcel(Parcel source) [all...] |
IAccountManager.aidl | 20 import android.accounts.Account; 26 * Central application service that provides account management. 30 String getPassword(in Account account); 31 String getUserData(in Account account, String key); 33 Account[] getAccounts(String accountType); 34 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features); 36 boolean addAccount(in Account account, String password, in Bundle extras) [all...] |
IAccountAuthenticator.aidl | 20 import android.accounts.Account; 29 * prompts the user for account information and adds the result to the IAccountManager 35 * prompts the user for the credentials of the account 37 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account, 43 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account, 54 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account, 63 * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has th [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
AccountSpecifier.java | 19 import android.accounts.Account; 23 * that can take an account to retrieve information tied to 24 * a specific account. 27 public void setAccount(Account account);
|
/frameworks/base/core/java/android/content/ |
IContentService.aidl | 19 import android.accounts.Account; 40 void requestSync(in Account account, String authority, in Bundle extras); 41 void cancelSync(in Account account, String authority); 48 boolean getSyncAutomatically(in Account account, String providerName); 56 void setSyncAutomatically(in Account account, String providerName, boolean sync); 64 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName) [all...] |
ISyncAdapter.aidl | 19 import android.accounts.Account; 29 * Initiate a sync for this account. SyncAdapter-specific parameters may 35 * @param account the account that should be synced 39 in Account account, in Bundle extras); 49 * Initialize the SyncAdapter for this account and authority. 51 * @param account the account that should be synced 54 void initialize(in Account account, String authority) [all...] |
AbstractThreadedSyncAdapter.java | 19 import android.accounts.Account; 64 * indicate which content authority and for which account types this sync adapter serves. 75 * it sync an account's data. 77 * to intialize the isSyncable state to 1 for that sync adapter for each account that is added. 96 private final HashMap<Account, SyncThread> mSyncThreads = new HashMap<Account, SyncThread>(); 108 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it 121 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it 140 private Account toSyncKey(Account account) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
AccountTestCase.java | 28 import com.android.emailcommon.provider.Account; 36 * Base class for unit tests that use {@link android.accounts.Account}. 48 protected android.accounts.Account[] getExchangeAccounts() { 52 protected android.accounts.Account makeAccountManagerAccount(String username) { 53 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE); 57 final android.accounts.Account account = makeAccountManagerAccount(username); local 58 AccountManager.get(getContext()).addAccountExplicitly(account, "password", null); 61 protected Account setupProviderAndAccountManagerAccount(String username) { 63 // we need to use for the account manage 74 Account account = new Account(); local [all...] |
SecurityPolicyTests.java | 29 import com.android.emailcommon.provider.Account; 140 // with a single account in security mode, should return same security as in account 142 Account a3 = ProviderTestUtils.setupAccount("sec-3", true, mMockContext); 158 // add another account which mixes it up (some fields will change, others will not) 168 Account a4 = ProviderTestUtils.setupAccount("sec-4", true, mMockContext); 184 // add another account which mixes it up (the remaining fields will change) 194 Account a5 = ProviderTestUtils.setupAccount("sec-5", true, mMockContext); 211 Account account = Account.restoreAccountWithId(mMockContext, accountId) local 235 Account account = ProviderTestUtils.setupAccount("testaccount", true, mMockContext); local 461 Account account = Account.restoreAccountWithId(mMockContext, account1Id); local [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityMediumTests.java | 21 import com.android.emailcommon.provider.Account; 62 Account account1 = ProviderTestUtils.setupAccount("account1", false, mMockContext); 66 Account account2 = ProviderTestUtils.setupAccount("account2", false, mMockContext); 71 Account acct = Utility.findExistingAccount(mMockContext, -1, "address-ha1", "login-ha1"); 77 // We shouldn't find account 85 Account account3 = ProviderTestUtils.setupAccount("account3", false, mMockContext); 96 Account account = ProviderTestUtils.setupAccount("account", true, mMockContext); local 101 ProviderTestUtils.setupMailbox("mailbox", account.mId, true, mMockContext) [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
SyncOperationTest.java | 19 import android.accounts.Account; 37 Account account1 = new Account("account1", "type1"); 38 Account account2 = new Account("account2", "type2"); 73 // Same as op1 but different account
|
/packages/apps/Exchange/tests/src/com/android/exchange/ |
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()) { 62 origCalendarSyncStates.put(account, 63 ContentResolver.getSyncAutomatically(account, CalendarContract.AUTHORITY)); 77 for (Account account : getExchangeAccounts()) { 78 Boolean state = origCalendarSyncStates.get(account); 219 final Account account = makeAccountManagerAccount(username); local 239 com.android.emailcommon.provider.Account account = local [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
RecipientAdapter.java | 21 import android.accounts.Account; 30 * Set the account when known. Causes the search to prioritize contacts from 31 * that account. 33 public void setAccount(Account account) { 34 if (account != null) { 35 // TODO: figure out how to infer the contacts account 36 // type from the email account 37 super.setAccount(new android.accounts.Account(account.name, "unknown")) [all...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
ImportRequest.java | 18 import android.accounts.Account; 35 * Can be null (typically when there's no Account available in the system). 37 public final Account account; field in class:ImportRequest 98 public ImportRequest(Account account, 101 this.account = account;
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
ExchangeSender.java | 21 import com.android.emailcommon.provider.Account; 34 public static Sender newInstance(Account account, Context context) throws MessagingException { 35 return new ExchangeSender(context, account); 38 private ExchangeSender(Context context, Account account) {
|
/packages/apps/Email/src/com/android/email/provider/ |
AccountReconciler.java | 28 import com.android.emailcommon.provider.Account; 42 * Checks two account lists to see if there is any reconciling to be done. Can be done on the 46 * @param accountManagerAccounts accounts as reported by the system account manager, for the 51 List<Account> emailProviderAccounts, 52 android.accounts.Account[] accountManagerAccounts) { 60 * Compare our account list (obtained from EmailProvider) with the account list owned by 61 * AccountManager. If there are any orphans (an account in one list without a corresponding 62 * account in the other list), delete the orphan, as these must remain in sync. 64 * Note that the duplication of account information is caused by the Email application' [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupAccountTypeTests.java | 28 import com.android.emailcommon.provider.Account; 44 private HashSet<Account> mAccounts = new HashSet<Account>(); 61 for (Account account : mAccounts) { 62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); 87 * Create a dummy account with minimal fields 89 private Account createTestAccount(String scheme) throws URISyntaxException { 90 Account account = new Account() local [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
MailServiceTests.java | 33 import com.android.emailcommon.provider.Account; 78 * prexisting (non-test) accounts in the account manager. 81 Account firstAccount = null; 94 // delete the provider account 96 // delete the account manager account 97 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context) 99 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { 113 * system (it cannot use the mock context with the Account Manager). 120 // Capture the baseline (account manager accounts) so we can measure the change [all...] |
/packages/apps/Email/tests/src/com/android/email/provider/ |
AccountBackupRestoreTests.java | 19 import com.android.emailcommon.provider.Account; 30 * This is a series of unit tests for backup/restore of the Account class. 58 public static void assertRestoredAccountEqual(Account expect, Account actual) { 85 Account saved1 = 93 Account saved2 = 102 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); 110 cr.delete(Account.CONTENT_URI, null, null); 114 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); 123 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)) [all...] |
/frameworks/base/core/tests/coretests/src/android/accounts/ |
AccountManagerServiceTest.java | 57 public class AccountSorter implements Comparator<Account> { 58 public int compare(Account object1, Account object2) { 69 Account a11 = new Account("account1", "type1"); 70 Account a21 = new Account("account2", "type1"); 71 Account a31 = new Account("account3", "type1"); 72 Account a12 = new Account("account1", "type2") [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
WelcomeTests.java | 21 import com.android.emailcommon.provider.Account; 39 final Account account1 = ProviderTestUtils.setupAccount("account-1", true, c); 41 final Account account2 = ProviderTestUtils.setupAccount("account-2", true, c); 43 final Account account3 = ProviderTestUtils.setupAccount("account-3", true, c); 46 // Make sure the last one created (account 3) is the default. 47 assertTrue(Account.getDefaultAccountId(c) == id3); 49 // No account specified -- should return the default account [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
ExchangeTestCase.java | 19 import com.android.emailcommon.provider.Account; 46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null, 52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown() 53 * @param account the account to be added to our list of test accounts 55 protected void addTestAccount(Account account) { 56 if (account.mId > 0) { 57 mCreatedAccountIds.add(account.mId); 62 * Create a test account that will be automatically deleted when the test is finishe 68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); local [all...] |
/packages/apps/Email/src/com/android/email/mail/store/ |
ExchangeStore.java | 24 import com.android.emailcommon.provider.Account; 35 public static Store newInstance(Account account, Context context) throws MessagingException { 36 return new ExchangeStore(account, context); 40 * Creates a new store for the given account. 42 public ExchangeStore(Account account, Context context) throws MessagingException { 43 super(account, context);
|