/packages/apps/Contacts/src/com/android/contacts/list/ |
CustomContactListFilterActivity.java | 60 import com.android.contacts.model.account.AccountType; 61 import com.android.contacts.model.account.AccountWithDataSet; 62 import com.android.contacts.model.account.GoogleAccountType; 132 for (AccountWithDataSet account : accountTypes.getAccounts(false)) { 133 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); 134 if (accountType.isExtension() && !account.hasData(context)) { 140 new AccountDisplay(resolver, account.name, account.type, account.dataSet); 143 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name 581 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition); local 605 final AccountDisplay account = mAccounts.get(groupPosition); local 628 final AccountDisplay account = mAccounts.get(groupPosition); local 709 final AccountDisplay account = (AccountDisplay)mAdapter.getGroup(groupPosition); local [all...] |
/cts/tests/tests/accounts/src/android/accounts/cts/ |
MockAccountAuthenticator.java | 20 import android.accounts.Account; 30 * A simple Mock Account Authenticator 42 private Account mAccount; 71 public Account getAccount() { 102 * Adds an account of the specified accountType. 119 * Update the locally stored credentials for an account. 122 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 126 this.mAccount = account; 148 * Checks that the user knows the credentials of an account [all...] |
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
Authenticator.java | 23 import android.accounts.Account; 37 * part of the authentication process. In the account setup UI, the user enters 42 * we need to return the appropriate authToken for the specified account. If we 43 * already have an authToken stored in the account, we return that authToken. If 76 AccountAuthenticatorResponse response, Account account, Bundle options) { 88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, 100 // Extract the username and password from the Account Manager, and ask 103 final String password = am.getPassword(account); [all...] |
/packages/apps/Email/src/com/android/email/ |
RequireManualSyncDialog.java | 19 import com.android.emailcommon.provider.Account; 29 public RequireManualSyncDialog(Context context, Account account) { 33 Preferences.getPreferences(context).setHasShownRequireManualSync(context, account, true);
|
/cts/tests/src/android/content/cts/ |
MockAccountAuthenticator.java | 20 import android.accounts.Account; 30 public static final String ACCOUNT_NAME = "android.content.cts.account.name"; 31 public static final String ACCOUNT_TYPE = "android.content.cts.account.type"; 32 public static final String ACCOUNT_PASSWORD = "android.content.cts.account.password"; 62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, 68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, 77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, [all...] |
MockSyncAdapter.java | 19 import android.accounts.Account; 33 private ArrayList<Account> mAccounts = new ArrayList<Account>(); 41 public ArrayList<Account> getAccounts() { 79 public void startSync(ISyncContext syncContext, String authority, Account account, 82 mAccounts.add(account); 115 public void initialize(android.accounts.Account account, java.lang.String authority) 118 mAccounts.add(account); [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
VCardEntryConstructor.java | 18 import android.accounts.Account; 54 private final Account mAccount; 66 public VCardEntryConstructor(final int vcardType, final Account account) { 67 this(vcardType, account, null); 72 * Use {@link #VCardEntryConstructor(int, Account)} 75 public VCardEntryConstructor(final int vcardType, final Account account, 78 mAccount = account;
|
/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...] |
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...] |
/frameworks/base/test-runner/src/android/test/ |
SyncBaseInstrumentation.java | 24 import android.accounts.Account; 50 Account account = new Account(accountName, "com.google"); local 52 ContentResolver.requestSync(account, authority, extras); 67 if (ContentResolver.isSyncActive(account, authority)) {
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | 39 import com.android.emailcommon.provider.Account; 69 private static final String ACCOUNT = "account@android.com"; 131 * are configured on the device and a default account has been specified, 139 // Force assignment of a default account 140 long accountId = Account.getDefaultAccountId(mContext); 142 Account account = new Account(); local 143 account.mSenderName = "Bob Sender" 150 Account account = Account.restoreAccountWithId(mContext, accountId); local 207 final Account account = new Account(); local 251 final Account account = new Account(); local 294 final Account account = new Account(); local 326 final Account account = new Account(); local 347 final Account account = new Account(); local 382 final Account account = new Account(); local 555 final Account account = new Account(); local 591 final Account account = new Account(); local 628 final Account account = new Account(); local 666 final Account account = new Account(); local 964 final Account account = new Account(); local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsUtils.java | 30 import com.android.emailcommon.provider.Account; 45 * Commits the UI-related settings of an account to the provider. This is static so that it 46 * can be used by the various account activities. If the account has never been saved, this 49 * @param account the account whose settings will be committed 51 public static void commitSettings(Context context, Account account) { 52 if (!account.isSaved()) { 53 account.save(context) [all...] |
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...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactEditorActivity.java | 40 import com.android.contacts.model.account.AccountType; 41 import com.android.contacts.model.account.AccountWithDataSet; 202 public void onCustomCreateContactActivityRequested(AccountWithDataSet account, 207 account.type, account.dataSet); 217 intent.putExtra(RawContacts.ACCOUNT_NAME, account.name); 218 intent.putExtra(RawContacts.ACCOUNT_TYPE, account.type); 219 intent.putExtra(RawContacts.DATA_SET, account.dataSet); 227 public void onCustomEditContactActivityRequested(AccountWithDataSet account, 232 account.type, account.dataSet) [all...] |
ContactEditorAccountsChangedActivity.java | 34 import com.android.contacts.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/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/Settings/src/com/android/settings/accounts/ |
ManageAccountsSettings.java | 19 import android.accounts.Account; 63 private static final String ACCOUNT_KEY = "account"; // to pass to auth settings 76 // If an account type is set, then show only accounts of that type 79 private Account mFirstAccount; 191 // For each account 195 Account account = ((AccountPreference) pref).getAccount(); local 196 // For all available sync authorities, sync those that are enabled for the account 200 && ContentResolver.getSyncAutomatically(account, sa.authority)) { 202 ContentResolver.requestSync(account, sa.authority, extras) 239 Account account = accountPref.getAccount(); local 308 final Account account = accounts[i]; local [all...] |
AccountSyncSettings.java | 19 import android.accounts.Account; 65 public static final String ACCOUNT_KEY = "account"; 76 private Account mAccount; 79 private Account[] mAccounts; 179 mAccount = (Account) arguments.getParcelable(ACCOUNT_KEY); 181 if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Got account: " + mAccount); 203 private void addSyncStateCheckBox(Account account, String authority) { 205 new SyncStateCheckBoxPreference(getActivity(), account, authority); 274 Account account = syncPref.getAccount() local 375 Account account = syncPref.getAccount(); local 468 final Account account = accounts[i]; local [all...] |
/frameworks/base/core/java/android/content/ |
SyncManager.java | 19 import android.accounts.Account; 182 cancelActiveSync(null /* any account */, UserHandle.USER_ALL, 203 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */, 214 // Kick off sync for everyone, since this was a radical account change 233 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { 237 && accounts[i].account.equals(account)) { 254 currentSyncContext.mSyncOperation.account, 256 Log.d(TAG, "canceling sync since the account is no longer running") [all...] |
SyncStorageEngine.java | 26 import android.accounts.Account; 146 final Account account; field in class:SyncStorageEngine.PendingOperation 156 PendingOperation(Account account, int userId, int source, 158 this.account = account; 168 this.account = other.account; 189 final Account account field in class:SyncStorageEngine.AuthorityInfo 1382 AccountInfo account = mAccounts.get(au); 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...] |