/packages/apps/Email/src/com/android/email/widget/ |
WidgetConfiguration.java | 33 import com.android.emailcommon.provider.Account; 70 // Load the account picking fragment if we haven't created a fragment yet 87 public Integer buildFilter(Account account) { 88 if (!Account.isNormalAccount(account.mId)) { 95 return HostAuth.SCHEME_EAS.equals(account.getProtocol(this)) 101 public void onSelected(Account account, long mailboxId) { 102 setupWidget(account, mailboxId) [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...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
CalendarSyncAdapterService.java | 19 import android.accounts.Account; 66 public void onPerformSync(Account account, Bundle extras, 69 CalendarSyncAdapterService.performSync(mContext, account, extras, 97 private static void performSync(Context context, Account account, Bundle extras, 104 new String[] {Events._ID}, DIRTY_IN_ACCOUNT, new String[] {account.name}, null); 108 Log.d(TAG, "No changes for " + account.name); 117 // Find the (EmailProvider) account associated with this email address 119 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI [all...] |
ContactsSyncAdapterService.java | 23 import android.accounts.Account; 62 public void onPerformSync(Account account, Bundle extras, 65 ContactsSyncAdapterService.performSync(mContext, account, extras, 102 private static void performSync(Context context, Account account, Bundle extras, 110 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 117 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) 129 // Find the (EmailProvider) account associated with this email address 131 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI, ID_PROJECTION [all...] |
ExchangeService.java | 53 import com.android.emailcommon.provider.Account; 369 Account acct = Account.restoreAccountWithId(exchangeService, m.mAccountKey); 372 // try again (the hold might have been specific to this account and released already) 376 log("User requested sync of account in sync disabled hold; releasing"); 380 log("User requested sync of account in security hold; releasing"); 448 // If it's for the account whose host has changed, clear the error 500 * Delete PIM (calendar, contacts) data for the specified account 502 * @param accountId the account whose data should be deleted 516 // Make sure the account mailbox is held due to securit 561 Account account = new Account(); local 2294 Account account = getAccountById(c.getInt(Mailbox.CONTENT_ACCOUNT_KEY_COLUMN)); local 2612 Account account = Account.restoreAccountWithId(exchangeService, accountId); local [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
ManageAccountsSettings.java | 19 import android.accounts.Account; 65 private static final String ACCOUNT_KEY = "account"; // to pass to auth settings 78 // If an account type is set, then show only accounts of that type 81 private Account mFirstAccount; 195 // For each account 199 Account account = ((AccountPreference) pref).getAccount(); local 200 // For all available sync authorities, sync those that are enabled for the account 204 && ContentResolver.getSyncAutomatically(account, sa.authority)) { 206 ContentResolver.requestSync(account, sa.authority, extras) 243 Account account = accountPref.getAccount(); local 312 final Account account = accounts[i]; local [all...] |
AccountSyncSettings.java | 19 import android.accounts.Account; 66 public static final String ACCOUNT_KEY = "account"; 77 private Account mAccount; 80 private Account[] mAccounts; 185 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); 187 if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Got account: " + mAccount); 209 private void addSyncStateCheckBox(Account account, String authority) { 211 new SyncStateCheckBoxPreference(getActivity(), account, authority); 283 Account account = syncPref.getAccount() local 384 Account account = syncPref.getAccount(); local 477 final Account account = accounts[i]; local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupExchangeFragment.java | 46 import com.android.emailcommon.provider.Account; 135 // We're editing an existing account; don't allow modification of the user name 250 * Force the given account settings to be loaded using {@link #loadSettings(Account)}. 254 private boolean forceLoadSettings(Account account) { 256 return loadSettings(account); 272 * Load the given account settings into the UI and then ensure the settings are valid. 274 * updated, but, the account fields will still be validated. 278 /*package*/ boolean loadSettings(Account account) 384 Account account = SetupData.getAccount(); local 408 Account account = SetupData.getAccount(); local 429 Account account = SetupData.getAccount(); local [all...] |
/frameworks/base/services/java/com/android/server/content/ |
SyncOperation.java | 19 import android.accounts.Account; 50 public final Account account; field in class:SyncOperation 65 public SyncOperation(Account account, int userId, int reason, int source, String authority, 68 this.account = account; 104 this.account = other.account; 125 .append(account.name [all...] |
SyncStorageEngine.java | 19 import android.accounts.Account; 150 final Account account; field in class:SyncStorageEngine.PendingOperation 161 PendingOperation(Account account, int userId, int reason,int source, 163 this.account = account; 174 this.account = other.account; 196 final Account account field in class:SyncStorageEngine.AuthorityInfo 1388 AccountInfo account = mAccounts.get(au); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactEditorAccountsChangedActivity.java | 34 import com.android.contacts.common.model.account.AccountWithDataSet; 42 * which account the contact will be saved in. There is also an option to add an account at 44 * {@link #Intents.Insert.ACCOUNT} that contains the {@link AccountWithDataSet} to create 46 * account for this contact. 89 // which account to create a contact in. 105 // If the user has 1 writable account we will just show the user a message with 2 113 final AccountWithDataSet account = accounts.get(0); local 115 account.name)); 117 // This button allows the user to add a new account to the device and return t 172 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); local [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/ |
MailboxUtilities.java | 27 import com.android.emailcommon.provider.Account; 35 // The flag we use in Account to indicate a mailbox change in progress 36 private static final int ACCOUNT_MAILBOX_CHANGE_FLAG = Account.FLAGS_SYNC_ADAPTER; 119 * Given an account selector, specifying the account(s) on which to work, create the parentKey 120 * and flags for each mailbox in the account(s) that is uninitialized (parentKey = 0 or null) 159 Account account = Account.restoreAccountWithId(context, accountId); local 160 if (account == null) return 196 Account account = Account.restoreAccountWithId(context, accountId); local [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverSyncTestCase.java | 19 import android.accounts.Account; 39 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, 57 // Need to clean up created account 58 removeAccount(sAccountManager, ACCOUNT, null /* callback */); 75 private void addAccountExplicitly(Account account, String password, Bundle userdata) { 76 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata)); 79 private boolean removeAccount(AccountManager am, Account account [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
AccountsListAdapter.java | 30 import com.android.contacts.common.model.account.AccountType; 31 import com.android.contacts.common.model.account.AccountWithDataSet; 37 * List-Adapter for Account selection 50 ACCOUNTS_CONTACT_WRITABLE, // Only where the account type is contact writable 51 ACCOUNTS_GROUP_WRITABLE // Only accounts where the account type is group writable 59 * @param currentAccount the Account currently selected by the user, which should come 93 final AccountWithDataSet account = mAccounts.get(position); local 94 final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet); 100 text2.setText(account.name) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
RawContactUtil.java | 19 import android.accounts.Account; 89 public static long createRawContact(ContentResolver resolver, Account account, 93 final Uri uri = TestUtil.maybeAddAccountQueryParameters(ContactsContract.RawContacts.CONTENT_URI, account); 102 public static long createRawContactWithName(ContentResolver resolver, Account account) { 103 return createRawContactWithName(resolver, "John", "Doe", account); 112 String lastName, Account account) { 113 long rawContactId = createRawContact(resolver, account); [all...] |
/packages/apps/Email/src/com/android/email/ |
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...] |
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...] |
MessagingController.java | 49 import com.android.emailcommon.provider.Account; 116 * Cache search results by account; this allows for "load more" support without having to 141 * Simple cache for last search result mailbox by account and serverId, since the most common 144 private long mLastSearchAccountKey = Account.NO_ACCOUNT; 244 * @param accountId ID of the account for which to list the folders 248 final Account account = Account.restoreAccountWithId(mContext, accountId); local 249 if (account == null) { 250 Log.i(Logging.LOG_TAG, "Could not load account id " + accountI 617 final Account account = Account.restoreAccountWithId(mContext, accountId); local [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
MockAccountTypeManager.java | 19 import com.android.contacts.common.model.account.AccountType; 20 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 21 import com.android.contacts.common.model.account.AccountWithDataSet;
|
/packages/apps/Email/src/com/android/email/activity/ |
MessageList.java | 20 import com.android.emailcommon.provider.Account; 32 * A dummy activity to support old-style (pre-honeycomb) account shortcuts. 53 if ((accountId == null) || (accountId == Account.NO_ACCOUNT)) { 54 // Account deleted? 75 return Account.NO_ACCOUNT; 77 return Account.getAccountIdFromShortcutSafeUri(context, uri); 81 * Create a froyo/gingerbread style account shortcut intent. Used by unit tests and 85 static Intent createFroyoIntent(Context context, Account account) { 88 intent.putExtra(EXTRA_ACCOUNT_ID, account.mId) [all...] |
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;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
AccountWithDataSet.java | 19 import android.accounts.Account; 25 * Account information that includes the data set, if any. 48 public static AccountWithDataSet get(Account account, String dataSet) { 49 return new AccountWithDataSet(account.name, account.type, null); 94 * @return {@code true} if the owning {@link Account} is in the passed array. 96 public boolean inSystemAccounts(Account[] systemAccounts) { 97 // Note we don't want to create a new Account object from this instance, as it may contain 98 // null account name/type, which Account wouldn't accept. So we need to compare field b [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
SelectAccountDialogFragment.java | 19 import android.accounts.Account; 33 * Shows a dialog asking the user which account to chose. 47 Account[] accounts = accountManager.getAccounts(); 52 final ArrayAdapter<Account> accountAdapter = 53 new ArrayAdapter<Account>(builder.getContext(), 64 final Account account = getItem(position); 66 text1.setText("Name: " + account.name); 67 text2.setText("Type: " + account.type); 86 builder.setTitle("Choose account to send to editor") [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/editor/ |
SelectAccountDialogFragment.java | 27 import com.android.contacts.common.model.account.AccountWithDataSet; 32 * Shows a dialog asking the user which account to chose. 52 * @param accountListFilter account filter. 109 private void onAccountSelected(AccountWithDataSet account) { 113 target.onAccountChosen(account, getArguments().getBundle(KEY_EXTRA_ARGS)); 118 void onAccountChosen(AccountWithDataSet account, Bundle extraArgs);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
AccountFilterActivity.java | 39 import com.android.contacts.common.model.account.AccountType; 40 import com.android.contacts.common.model.account.AccountWithDataSet; 47 * Shows a list of all available accounts, letting the user select under which account to view 117 for (AccountWithDataSet account : accounts) { 118 AccountType accountType = accountTypes.getAccountType(account.type, account.dataSet); 119 if (accountType.isExtension() && !account.hasData(context)) { 125 account.type, account.name, account.dataSet, icon)) [all...] |