/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountSetupNames.java | 49 * Final screen of setup process. Collect account nickname and/or username. 93 Account account = SetupData.getAccount(); 94 if (account == null) { 95 throw new IllegalStateException("unexpected null account"); 97 if (account.mHostAuthRecv == null) { 104 String accountEmail = account.mEmailAddress; 111 // Remember whether we're an EAS account, since it doesn't require the user name field 112 mEasAccount = HostAuth.SCHEME_EAS.equals(account.mHostAuthRecv.mProtocol); 117 if (account != null && account 249 FinalSetupTask(Account account) argument [all...] |
H A D | AccountSecurity.java | 44 * 1. Confirm the account of interest has any security policies defined - exit early if not 73 * @param accountId The account of interest 76 * is not clear (e.g. any time after the account has been set up). 77 * @return an Intent which can be used to view that account 135 // This account wants to control security 164 * the requisite security settings for the given account. 175 private void tryAdvanceSecurity(Account account) { argument 183 repostNotification(account, security); 188 HostAuth hostAuth = HostAuth.restoreHostAuthWithId(this, account.mHostAuthKeyRecv); 193 repostNotification(account, securit 284 repostNotification(final Account account, final SecurityPolicy security) argument [all...] |
H A D | AccountSettingsUtils.java | 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) { argument 52 if (!account.isSaved()) { 53 account.save(context); 55 ContentValues cv = getAccountContentValues(account); 56 account 66 getAccountContentValues(Account account) argument [all...] |
H A D | AccountSetupExchangeFragment.java | 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) { argument 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) { argument 281 HostAuth hostAuth = account.mHostAuthRecv; 303 throw new Error("Unknown account type: " + protocol); 384 Account account [all...] |
H A D | MailboxSettings.java | 61 private static final String BUNDLE_ACCOUNT = "MailboxSettings.account"; 186 * @param account the Account (or owner of a Mailbox) whose preference is being set 189 Account account) { 197 if (account.mPolicyKey > 0) { 198 Policy policy = Policy.restorePolicyWithId(context, account.mPolicyKey); 283 // Here, 0 is valid and means "use the account default sync window". 344 final Account account = mAccount; 355 cv.put(AccountColumns.SYNC_INTERVAL, account.mSyncInterval); 356 cv.put(AccountColumns.SYNC_LOOKBACK, account.mSyncLookback); 357 uri = ContentUris.withAppendedId(Account.CONTENT_URI, account 188 setupLookbackPreferenceOptions(Context context, ListPreference pref, Account account) argument [all...] |
/packages/apps/Email/src/com/android/email/mail/ |
H A D | Store.java | 70 static Store newInstance(Account account, Context context) throws MessagingException { argument 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. 86 * @throws MessagingException If the store cannot be obtained or if the account is invalid. 88 public synchronized static Store getInstance(Account account, Context context) argument 90 HostAuth hostAuth = account 124 removeInstance(Account account, Context context) argument [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | EasAuthenticatorService.java | 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 63 // app UI; we simply create the account and return the proper bundle 66 final Account account = new Account(options.getString(OPTIONS_USERNAME), 69 account, options.getString(OPTIONS_PASSWORD), null); 78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); 79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, 88 ContentResolver.setIsSyncable(account, CalendarProviderStub.AUTHORITY, 1); 89 ContentResolver.setSyncAutomatically(account, CalendarProviderStub.AUTHORITY, 98 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1); 99 ContentResolver.setSyncAutomatically(account, EmailConten 120 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument 131 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument 143 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument 149 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
H A D | PopImapAuthenticatorService.java | 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 61 // app UI; we simply create the account and return the proper bundle 64 final Account account = new Account(options.getString(OPTIONS_USERNAME), 67 account, options.getString(OPTIONS_PASSWORD), null); 75 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1); 76 ContentResolver.setSyncAutomatically(account, EmailContent.AUTHORITY, syncEmail); 77 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 0); 78 ContentResolver.setIsSyncable(account, CalendarProviderStub.AUTHORITY, 0); 84 // 2) The other case is that we're creating a new account from an Account manager 86 // account informatio 98 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument 109 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument 121 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument 127 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
H A D | FindParentMailboxTaskTest.java | 33 /** ID of the account created by {@link #setUpMailboxes}. */ 66 * Set up a test account and mailboxes. 80 private long createMailboxAndGetId(String name, Account account, int type, argument 82 Mailbox m = ProviderTestUtils.setupMailbox(name, account.mId, false, mProviderContext,
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
H A D | AttachmentProviderTests.java | 185 // Create mailboxes for each account 198 // b1 (account 1, inbox): 2 messages 202 // b2 (account 1, mail): 2 messages 206 // b3 (account 2, inbox): 1 message 209 // b4 (account 2, mail) has no messages. 211 // bt (account 2, trash): 1 message 457 private Uri createAttachment(Account account, long messageId, String contentUriStr) { argument 462 long attachmentId = addAttachmentToDb(account, newAttachment); 463 Uri attachmentUri = AttachmentUtilities.getAttachmentUri(account.mId, attachmentId); 601 * Test the functionality of deleting an entire account' 656 populateAccountMailbox(Account account, long mailboxId, int numAttachments) argument [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
H A D | MessageTestUtils.java | 62 * @param account Account object 65 public static Uri contentUri(long attachmentId, Account account) { argument 66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/ |
H A D | CalendarSyncEnablerTest.java | 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); 81 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, state); 91 // 1. Test with 1 account 107 // Delete added account. 134 for (Account account : baseAccounts) { 135 expected.add(account 250 deleteAccountManagerAccount(Account account) argument [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/ |
H A D | CalendarSyncEnablerTest.java | 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); 81 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, state); 91 // 1. Test with 1 account 107 // Delete added account. 134 for (Account account : baseAccounts) { 135 expected.add(account 250 deleteAccountManagerAccount(Account account) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | AccountPreference.java | 30 * AccountPreference is used to display a username, status and provider icon for an account on 45 public AccountPreference(Context context, Account account, Drawable icon, argument 48 mAccount = account;
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | SyncStateCheckBoxPreference.java | 52 public SyncStateCheckBoxPreference(Context context, Account account, String authority) { argument 54 mAccount = account;
|
H A D | AccountSyncSettings.java | 67 public static final String ACCOUNT_KEY = "account"; 186 if (Log.isLoggable(TAG, Log.VERBOSE)) Log.v(TAG, "Got account: " + mAccount); 208 private void addSyncStateCheckBox(Account account, String authority) { argument 210 new SyncStateCheckBoxPreference(getActivity(), account, authority); 279 Account account = syncPref.getAccount(); 280 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority); 282 requestOrCancelSync(account, authority, true); 288 ContentResolver.setSyncAutomatically(account, authority, syncOn); 293 requestOrCancelSync(account, authority, syncOn); 330 // invisible sync adapters' account typ 338 requestOrCancelSync(Account account, String authority, boolean flag) argument 348 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
H A D | GoogleSource.java | 169 public static final void createMyContactsIfNotExist(Account account, Context context) { argument 170 attemptMyContactsMembership(null, account.name, account.type, context, true);
|
/packages/apps/Email/src/com/android/email/ |
H A D | SecurityPolicy.java | 216 * @param accountId the account that has been updated, -1 if unknown/deleted 343 * This can be used when syncing a specific account, by passing a specific set of policies 344 * for that account. Or, it can be used at any time to compare the device 351 * will return 'false' as soon as the password expires - irrespective of which account caused 353 * based on the requirements of the account with the shortest interval. 502 Account account = Account.restoreAccountWithId(context, accountId); 503 if (account != null) { 504 setAccountHoldFlag(context, account, newState); 509 * API: Set/Clear the "hold" flag in any account. This flag serves a dual purpose: 513 * @param account th 516 setAccountHoldFlag(Context context, Account account, boolean newState) argument 527 clearAccountPolicy(Context context, Account account) argument 541 setAccountPolicy(Context context, Account account, Policy policy, String securitySyncKey) argument [all...] |
/packages/apps/Phone/src/com/android/phone/ |
H A D | SimContacts.java | 138 final Cursor cursor, final ContentResolver resolver, Account account) { 157 if (account != null) { 158 builder.withValue(RawContacts.ACCOUNT_NAME, account.name); 159 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type); 137 actuallyImportOneSimContact( final Cursor cursor, final ContentResolver resolver, Account account) argument
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SynchronousContactsProvider2.java | 151 protected boolean isContactsAccount(Account account) { argument
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 64 public String account; field in class:PhotoSource.AlbumData
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
H A D | SelectSyncedCalendarsMultiAccountAdapter.java | 209 // Collect proper description for account types 263 * Gets the label associated with a particular account type. If none found, return null. 264 * @param accountType the type of account 275 Log.w(TAG, "No label for account type " + ", type " + accountType); 317 String account = cursor.getString(accountColumn); 320 setText(view, R.id.account, account); 330 String account = groupCursor.getString(accountColumn); 332 //Get all the calendars for just this account. 333 Cursor childCursor = mChildrenCursors.get(accountType + "#" + account); 356 RefreshCalendars(int token, String account, String accountType) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | AccountTypeManager.java | 48 import com.android.contacts.model.account.AccountType; 49 import com.android.contacts.model.account.AccountTypeWithDataSet; 50 import com.android.contacts.model.account.AccountWithDataSet; 51 import com.android.contacts.model.account.ExchangeAccountType; 52 import com.android.contacts.model.account.ExternalAccountType; 53 import com.android.contacts.model.account.FallbackAccountType; 54 import com.android.contacts.model.account.GoogleAccountType; 92 Log.e(TAG, "No account type service in context: " + context); 119 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { argument 120 return getAccountType(account 159 contains(AccountWithDataSet account, boolean contactWritableOnly) argument [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
H A D | ExternalAccountType.java | 17 package com.android.contacts.model.account; 45 * A general contacts account type descriptor. 70 // The following attributes should only be set in non-sync-adapter account types. They allow 71 // for the account type and resource IDs to be specified without an associated authenticator. 117 // If the package name is not found, we can't initialize this account type. 171 // If we reach this point, the account type has been successfully initialized. 179 * which account type, so this method looks through all services in the package, and just 183 * the account type *will* be initialized with minimal configuration. 186 * in which case the account type will *not* be initialized. 226 * Whether this account typ [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | ShortcutPickerFragment.java | 57 /** Builds a mailbox filter for the given account. See MailboxShortcutPickerFragment. */ 58 public Integer buildFilter(Account account); argument 59 /** Invoked when an account and mailbox have been selected. */ 60 public void onSelected(Account account, long mailboxId); argument 61 /** Required data is missing; either the account and/or mailbox */ 67 @Override public Integer buildFilter(Account account) { return null; } 68 @Override public void onSelected(Account account, long mailboxId){ getActivity().finish(); } 77 /** Cursor adapter that provides either the account or mailbox list */ 131 // Only add "All accounts" if there is more than 1 account defined 144 Account account 330 newInstance( Context context, Account account, Integer filter) argument [all...] |