/frameworks/base/core/java/android/provider/ |
SyncStateContract.java | 24 import android.accounts.Account; 30 * The ContentProvider contract for associating data with ana data array account. 36 * A reference to the name of the account to which this data belongs 42 * A reference to the type of the account to which this data belongs 48 * The sync data associated with this account. 64 * Get the sync state that is associated with the account or null. 68 * @param account the {@link Account} whose sync state should be returned 69 * @return the sync state or null if there is no sync state associated with the account 74 Account account) throws RemoteException [all...] |
/packages/apps/Email/src/com/android/email/mail/ |
Store.java | 30 import com.android.emailcommon.provider.Account; 40 * Store is the legacy equivalent of the Account class 52 protected Account mAccount; 70 static Store newInstance(Account account, Context context) throws MessagingException { 72 + account.mDisplayName); 76 * Get an instance of a mail store for the given account. The account must be valid (i.e. has 79 * NOTE: The internal algorithm used to find a cached store depends upon the account's 84 * @param account The account of the store [all...] |
/packages/apps/Email/src/com/android/email/widget/ |
EmailWidgetLoader.java | 21 import com.android.emailcommon.provider.Account; 68 * addition to a message count and account name. The later elements were opportunistically 92 /** Gets the display name of the account */ 126 Account account = Account.restoreAccountWithId(mContext, mAccountId); local 128 if (account != null) { 129 accountName = account.mDisplayName; 131 if (mAccountId == Account.ACCOUNT_ID_COMBINED_VIEW) { 132 int accountCount = EmailContent.count(mContext, Account.CONTENT_URI) [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
Account.java | 41 public final class Account extends EmailContent implements AccountColumns, Parcelable { 42 public static final String TABLE_NAME = "Account"; 44 public static final Uri CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/account"); 50 Uri.parse(EmailContent.CONTENT_NOTIFIER_URI + "/account"); 52 Uri.parse(EmailContent.CONTENT_URI + "/account/default"); 54 // Define all pseudo account IDs here to avoid conflict with one another. 56 * Pseudo account ID to represent a "combined account" that includes messages and mailboxes 63 * Pseudo account ID to represent "no account". This may be used any time the account I 481 Account account = Account.restoreAccountWithId(context, accountId); local 585 Account account = Account.restoreAccountWithId(context, accountId); local 693 Account account = Account.restoreAccountWithId(context, accountId); local [all...] |
/packages/apps/Email/src/com/android/email/ |
EmailAddressAdapter.java | 20 import com.android.emailcommon.provider.Account; 72 * Set the account when known. Causes the search to prioritize contacts 73 * from that account. 75 public void setAccount(Account account) { 76 if (account != null) { 77 // TODO: figure out how to infer the contacts account type from the email account 78 super.setAccount(new android.accounts.Account(account.mEmailAddress, "unknown")) [all...] |
NotificationController.java | 50 import com.android.emailcommon.provider.Account; 81 Account.FLAGS + "&" + Account.FLAGS_NOTIFY_NEW_MAIL + " != 0"; 92 // TODO We're maintaining all of our structures based upon the account ID. This is fine 93 // for now since the assumption is that we only ever look for changes in an account's 95 /** Maps account id to the message data */ 99 * Suspend notifications for this account. If {@link Account#NO_ACCOUNT}, no 100 * account notifications are suspended. If {@link Account#ACCOUNT_ID_COMBINED_VIEW} 435 final Account account = Account.restoreAccountWithId(mContext, accountId); local 690 final Account account = Account.restoreAccountWithId(mContext, attachment.mAccountKey); local 713 final Account account = Account.restoreAccountWithId(mContext, accountId); local 738 Account account = Account.restoreAccountWithId(mContext, accountId); local 758 Account account = Account.restoreAccountWithId(mContext, accountId); local 835 Account account = Account.restoreAccountWithId(mContext, mAccountId); local [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
NfcHandler.java | 26 import com.android.emailcommon.provider.Account; 33 * active account to another device using NFC. NFC sharing is only 63 final Account account = Account.restoreAccountWithId(mActivity, accountId); local 64 if (account == null) return; 65 mCurrentEmail = account.mEmailAddress;
|
InsertQuickResponseDialog.java | 22 import com.android.emailcommon.provider.Account; 38 * Dialog which lists QuickResponses for the specified account. On user selection, will call 46 // Key for the Account object in the arguments bundle 47 private static final String ACCOUNT_KEY = "account"; 66 newInstance(Fragment callbackFragment, Account account) { 82 args.putParcelable(ACCOUNT_KEY, account); 106 Account account = (Account) getArguments().getParcelable(ACCOUNT_KEY) local [all...] |
ShortcutPickerFragment.java | 20 import com.android.emailcommon.provider.Account; 57 /** Builds a mailbox filter for the given account. See MailboxShortcutPickerFragment. */ 58 public Integer buildFilter(Account account); 59 /** Invoked when an account and mailbox have been selected. */ 60 public void onSelected(Account account, long mailboxId); 61 /** Required data is missing; either the account and/or mailbox */ 67 @Override public Integer buildFilter(Account account) { return null; 144 Account account = new Account(); local 219 Account account = new Account(); local [all...] |
AccountSelectorAdapter.java | 37 import com.android.emailcommon.provider.Account; 50 * Account selector spinner. 61 /** meta data position of the currently selected account in the drop-down list */ 64 /** "account id" virtual column name for the matrix cursor */ 73 /** Projection for account database query */ 76 Account.DISPLAY_NAME, 77 Account.EMAIL_ADDRESS, 81 * account database, so, this should be a super-set of {@link #ACCOUNT_PROJECTION}. 86 Account.DISPLAY_NAME, 87 Account.EMAIL_ADDRESS [all...] |
UIControllerBase.java | 39 import com.android.emailcommon.provider.Account; 494 * @return the currently selected account ID, *or* {@link Account#ACCOUNT_ID_COMBINED_VIEW}. 501 * @return true if an account is selected, or the current view is the combined view. 504 return getUIAccountId() != Account.NO_ACCOUNT; 508 * @return if an actual account is selected. (i.e. {@link Account#ACCOUNT_ID_COMBINED_VIEW} 512 return isAccountSelected() && (getUIAccountId() != Account.ACCOUNT_ID_COMBINED_VIEW); 516 * @return the currently selected account ID. If the current view is the combined view, 517 * it'll return {@link Account#NO_ACCOUNT} 650 Account account = Account.restoreAccountWithId(mActivity, accountId); local 708 Account account = getMessageListFragment().getAccount(); local 800 Account account = Account.restoreAccountWithId(mActivity, accountId); local 1035 Account account = Account.restoreAccountWithId(mActivity, accountId); local [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
CalendarSyncEnabler.java | 21 import android.accounts.Account; 55 // Exchange account(s) found. 69 Account[] exchangeAccounts = AccountManager.get(mContext) 71 for (Account account : exchangeAccounts) { 72 final String emailAddress = account.name; 75 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1); 76 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, true);
|
EmailSyncAdapterService.java | 24 import android.accounts.Account; 60 public void onPerformSync(Account account, Bundle extras, 63 EmailSyncAdapterService.performSync(mContext, account, extras, 89 private static void performSync(Context context, Account account, Bundle extras, 95 // Find the (EmailProvider) account associated with this email address 97 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, 98 ID_PROJECTION, AccountColumns.EMAIL_ADDRESS + "=?", new String[] {account.name}, 103 // Now, find the inbox associated with the account [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
RawContactUtil.java | 19 import android.accounts.Account; 42 public static long createRawContactWithName(ContentResolver resolver, Account account, 44 Long rawContactId = insertRawContact(resolver, account); 50 Account account) { 51 Long rawContactId = insertRawContact(resolver, account); 56 public static long insertRawContact(ContentResolver resolver, Account account) { 58 values.put(ContactsContract.RawContacts.ACCOUNT_NAME, account.name) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContentResolver.java | 3 import android.accounts.Account; 32 private static final Map<String, Map<Account, Status>> syncableAccounts = 33 new HashMap<String, Map<Account, Status>>(); 174 public static void requestSync(Account account, String authority, Bundle extras) { 176 Status status = getStatus(account, authority, true); 182 public static void setIsSyncable(Account account, String authority, int syncable) { 183 getStatus(account, authority, true).state = syncable; 187 public static int getIsSyncable(Account account, String authority) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
AccountsChangedReceiver.java | 18 import android.accounts.Account; 54 Account[] accounts = AccountManager.get(mContext).getAccounts(); 72 // be deleted, which will propagate to the server if the account 80 boolean contains(Account[] accounts, String name, String type) { 81 for (Account a : accounts) {
|
/packages/apps/Email/src/com/android/email/service/ |
PopImapSyncAdapterService.java | 19 import android.accounts.Account; 56 public void onPerformSync(Account account, Bundle extras, 59 PopImapSyncAdapterService.performSync(mContext, account, extras, 84 private static void performSync(Context context, Account account, Bundle extras, 88 String emailAddress = account.name; 89 // Find an EmailProvider account with the Account's email address 91 com.android.emailcommon.provider.Account.CONTENT_URI [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
AccountSelectorAdapterTest.java | 23 import com.android.emailcommon.provider.Account; 47 * - Confirm that AccountsLoader adds the combined view row, iif there is more than 1 account. 55 final Account a1 = ProviderTestUtils.setupAccount("a1", true, mProviderContext); 57 // Only 1 account -- no combined view row. 67 final Account a2 = ProviderTestUtils.setupAccount("a2", true, mProviderContext); 69 // 2 accounts -- with combined view row, so returns 3 account rows. 87 final Account a1 = ProviderTestUtils.setupAccount("a1", true, context); 88 final Account a2 = ProviderTestUtils.setupAccount("a2", true, context); 98 // Account 1 - no mailbox 109 // Account 1 - inbo [all...] |
/packages/apps/Settings/src/com/android/settings/ |
AccountPreference.java | 21 import android.accounts.Account; 30 * AccountPreference is used to display a username, status and provider icon for an account on 40 private Account mAccount; 45 public AccountPreference(Context context, Account account, Drawable icon, 48 mAccount = account; 62 public Account getAccount() {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
SyncStateCheckBoxPreference.java | 19 import android.accounts.Account; 36 private Account mAccount; 52 public SyncStateCheckBoxPreference(Context context, Account account, String authority) { 54 mAccount = account; 144 public Account getAccount() {
|
/frameworks/base/core/java/android/accounts/ |
ChooseTypeAndAccountActivity.java | 53 * A Parcelable ArrayList of Account objects that limits the choosable accounts to those 61 * used to filter the allowable account types if add account is selected. 85 * If set then the specified account is already "selected". 90 * If true then display the account selection list even if there is just 91 * one account to choose from. boolean. 115 private Set<Account> mSetOfAllowableAccounts; 122 private ArrayList<Account> mAccounts; 175 // If the selected account as specified in the intent matches one in the list we will 177 Account selectedAccount = (Account) intent.getParcelableExtra(EXTRA_SELECTED_ACCOUNT) 224 Account account = mAccounts.get(0); local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsFragment.java | 51 import com.android.emailcommon.provider.Account; 57 * Fragment containing the main logic for account settings. This also calls out to other 61 * TODO: Can we defer calling addPreferencesFromResource() until after we load the account? This 107 private Account mAccount; 115 /** The e-mail of the account being edited. */ 125 public void onSettingsChanged(Account account, String preference, Object value); 126 public void onEditQuickResponses(Account account); 127 public void onIncomingSettings(Account account) 334 Account account = Account.restoreAccountWithId(mContext, accountId); local 351 Account account = (Account) results[0]; local [all...] |
AccountSetupOptions.java | 45 import com.android.emailcommon.provider.Account; 54 * TODO: Cleanup the manipulation of Account.FLAGS_INCOMPLETE and make sure it's never left set. 102 Account account = SetupData.getAccount(); local 103 HostAuth host = account.getOrCreateHostAuthRecv(this); 133 // Note: It is OK to use mAccount.mIsDefault here *only* because the account 134 // has not been written to the DB yet. Ordinarily, call Account.getDefaultAccountId(). 135 if (account.mIsDefault || SetupData.isDefault()) { 139 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0) 209 final Account account = SetupData.getAccount(); local 333 Account account = SetupData.getAccount(); local [all...] |
AccountSetupBasics.java | 52 import com.android.emailcommon.provider.Account; 65 * Prompts the user for the email address and password. Also prompts for "Use this account as 66 * default" if this is the 2nd+ account being set up. 68 * If the domain is well-known, the account is configured fully and checked immediately 72 * AccountSetupAccountType activity where the user can begin to manually configure the account. 78 * an intent which contains all necessary information to create the account. No connection 79 * checking is done, so the account may or may not actually work. Here is a sample command, for a 80 * gmail account "test_account" with a password of "test_password". 84 * -e USER "Test Account Name" \ 97 * Direct access for forcing account creatio 208 Account account = SetupData.getAccount(); local 443 Account account = SetupData.getAccount(); local 489 Account account = Utility.findExistingAccount(mContext, -1, local 567 Account account = SetupData.getAccount(); local 594 Account account = SetupData.getAccount(); local 614 Account account = SetupData.getAccount(); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsProvider2_AccountRemovalTest.java | 21 import android.accounts.Account; 31 import android.provider.cts.contacts.account.StaticAccountAuthenticator; 49 // other tests running when the account is removed. No other tests should use the following 51 private static final Account ACCT_1 = new Account("cp removal acct 1", 53 private static final Account ACCT_2 = new Account("cp removal acct 2", 100 * Contact has merged raw contacts from a single account. Contact should be deleted upon 101 * account removal. 112 * one account is removed. But contact should have last updated timestamp updated [all...] |