/packages/apps/Contacts/src/com/android/contacts/vcard/ |
H A D | ImportRequest.java | 37 public final Account account; field in class:ImportRequest 98 public ImportRequest(Account account, argument 101 this.account = account;
|
H A D | SelectAccountActivity.java | 57 // - just one account -> use the account without asking the user 58 // - no account -> use phone-local storage without asking the user 67 final AccountWithDataSet account = accountList.get(0); 69 intent.putExtra(ACCOUNT_NAME, account.name); 70 intent.putExtra(ACCOUNT_TYPE, account.type); 71 intent.putExtra(DATA_SET, account.dataSet); 86 final AccountWithDataSet account = mAccountList.get(which); 88 intent.putExtra(ACCOUNT_NAME, account.name); 89 intent.putExtra(ACCOUNT_TYPE, account [all...] |
/packages/apps/Email/src/com/android/email/mail/ |
H A D | Sender.java | 40 public static Sender newInstance(Context context, Account account) argument 43 + account.mDisplayName); 46 private static Sender instantiateSender(Context context, String className, Account account) argument 54 o = m.invoke(null, account, context); 58 e.toString(), className, account.mDisplayName)); 59 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); 63 account.mDisplayName + ": " + className + " create incompatible object"); 71 private static Sender findSender(Context context, int resourceId, Account account) argument 77 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); 87 sender = instantiateSender(context, className, account); 108 getInstance(Context context, Account account) argument [all...] |
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/Calendar/src/com/android/calendar/ |
H A D | RecipientAdapter.java | 30 * Set the account when known. Causes the search to prioritize contacts from 31 * that account. 33 public void setAccount(Account account) { argument 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"));
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
H A D | TestAuthenticator.java | 30 * Simple authenticator. It has no "login" dialogs/activities. When you add a new account, it'll 31 * just create a new account with a unique name. 59 * Create a new account with the name generated by {@link #newUniqueUserName()}. 67 final Account account = new Account(newUniqueUserName(), accountType); 69 // Create an account. 70 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null); 73 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); 74 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type); 82 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 84 Log.v(TestauthConstants.LOG_TAG, "getAuthToken() account 94 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument 114 hasFeatures( AccountAuthenticatorResponse response, Account account, String[] features) argument 126 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
H A D | TestSyncAdapter.java | 49 public void onPerformSync(Account account, Bundle extras, String authority, argument 51 Log.v(TestauthConstants.LOG_TAG, "TestSyncAdapter.onPerformSync() account=" + account); 56 values.put(RawContacts.ACCOUNT_NAME, account.name); 57 values.put(RawContacts.ACCOUNT_TYPE, account.type);
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
H A D | ExchangeSender.java | 34 public static Sender newInstance(Account account, Context context) throws MessagingException { argument 35 return new ExchangeSender(context, account); 38 private ExchangeSender(Context context, Account account) { argument
|
/packages/apps/Email/src/com/android/email/mail/store/ |
H A D | ExchangeStore.java | 35 public static Store newInstance(Account account, Context context) throws MessagingException { argument 36 return new ExchangeStore(account, context); 40 * Creates a new store for the given account. 42 public ExchangeStore(Account account, Context context) throws MessagingException { argument 43 super(account, context);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
H A D | TrafficFlags.java | 32 // Bits 0->15, account id 62 * Get flags indicating sync of the passed-in account; note that, by default, these flags 67 * @param account the account being used 68 * @return flags for syncing this account 70 public static int getSyncFlags(Context context, Account account) { argument 71 int protocolIndex = Utility.arrayIndex(PROTOCOLS, account.getProtocol(context)); 72 return (int)account.mId | REASON_SYNC | (protocolIndex << PROTOCOL_SHIFT); 76 * Get flags indicating attachment loading from the passed-in account 79 * @param account th 82 getAttachmentFlags(Context context, Account account) argument 94 getSmtpFlags(Context context, Account account) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
H A D | AccountSetupAccountTypeTests.java | 61 for (Account account : mAccounts) { 62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); 87 * Create a dummy account with minimal fields 90 Account account = new Account(); 91 HostAuth auth = account.getOrCreateHostAuthRecv(mContext); 93 account.save(mContext); 94 mAccounts.add(account); 95 SetupData.init(SetupData.FLOW_MODE_NORMAL, account); 96 return account;
|
H A D | AccountSetupExchangeTests.java | 180 Account account = 181 ProviderTestUtils.setupAccount("account", false, mActivity.getBaseContext()); 182 account.mHostAuthRecv = ProviderTestUtils.setupHostAuth( 184 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_SSL; 185 account.mHostAuthRecv.mFlags &= ~HostAuth.FLAG_TRUST_ALL; 187 boolean loadResult = mActivity.mFragment.loadSettings(account); 195 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_TRUST_ALL; 197 loadResult = mActivity.mFragment.loadSettings(account); 203 // A simple test of an incomplete account, which will fail validation 204 account [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
H A D | ExchangeTestCase.java | 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) { argument 56 if (account.mId > 0) { 57 mCreatedAccountIds.add(account.mId); 62 * Create a test account that will be automatically deleted when the test is finished 63 * @param name the name of the account 64 * @param saveIt whether or not to save the account in EmailProvider 65 * @return the account create [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/Email/src/com/android/email/activity/setup/ |
H A D | AccountSetupAccountType.java | 35 * Prompts the user to select an account type. The account type, along with the 51 // If we're in account setup flow mode, for EAS, skip this screen and "click" EAS 85 Account account = SetupData.getAccount(); 86 HostAuth hostAuth = account.mHostAuthRecv; 91 AccountSetupBasics.setFlagsForProtocol(account, HostAuth.SCHEME_POP3); 93 AccountSetupIncoming.actionIncomingSettings(this, SetupData.getFlowMode(), account); 98 * The user has selected an IMAP account type. Try to put together a URI using the entered 102 Account account = SetupData.getAccount(); 103 HostAuth hostAuth = account [all...] |
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 | AccountSetupOptions.java | 101 Account account = SetupData.getAccount(); 102 String protocol = account.mHostAuthRecv.mProtocol; 131 // Note: It is OK to use mAccount.mIsDefault here *only* because the account 133 if (account.mIsDefault || SetupData.isDefault()) { 137 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0); 138 SpinnerOption.setSpinnerOptionValue(mCheckFrequencyView, account.getSyncInterval()); 168 // If the account manager initiated the creation, and success was not reported, 202 * It collects the data from the UI, updates the setup account record, and commits 203 * the account to the database (making it real for the first time.) 207 final Account account [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...] |
H A D | EasTestAuthenticatorService.java | 33 * Anauthenticator service for reconciliation tests; it simply adds the account to AccountManager 53 // app UI; we simply create the account and return the proper bundle 56 final Account account = new Account(options.getString(OPTIONS_USERNAME), 59 account, options.getString(OPTIONS_PASSWORD), null); 64 // 2) The other case is that we're creating a new account from an Account manager 66 // account information... 78 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, argument 89 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 101 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, argument 107 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, argument [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | ShortcutPicker.java | 37 * This class implements a launcher shortcut for directly accessing a single account. 63 // Load the account picking fragment if we haven't created a fragment yet 80 public Integer buildFilter(Account account) { argument 81 if (!Account.isNormalAccount(account.mId)) { 90 public void onSelected(Account account, long mailboxId) { argument 92 if (Account.isNormalAccount(account.mId) && 96 shortcutName = account.getDisplayName(); 98 setupShortcut(account, mailboxId, shortcutName); 135 private void setupShortcut(Account account, long mailboxId, String shortcutName) { argument 140 shortcutIntent = MessageList.createFroyoIntent(myActivity, account); [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | AccountSelectionUtil.java | 121 final AccountWithDataSet account = this.getItem(position); 123 account.type, account.dataSet); 126 text1.setText(account.name); 152 public static void doImport(Context context, int resId, AccountWithDataSet account) { argument 155 doImportFromSim(context, account); 159 doImportFromSdCard(context, account); 165 public static void doImportFromSim(Context context, AccountWithDataSet account) { argument 168 if (account != null) { 169 importIntent.putExtra("account_name", account 177 doImportFromSdCard(Context context, AccountWithDataSet account) argument [all...] |
/packages/apps/Email/src/com/android/email/widget/ |
H A D | WidgetConfiguration.java | 70 // Load the account picking fragment if we haven't created a fragment yet 87 public Integer buildFilter(Account account) { argument 88 if (!Account.isNormalAccount(account.mId)) { 95 return HostAuth.SCHEME_EAS.equals(account.getProtocol(this)) 101 public void onSelected(Account account, long mailboxId) { argument 102 setupWidget(account, mailboxId); 115 private void setupWidget(Account account, long mailboxId) { argument 117 WidgetManager.saveWidgetPrefs(this, mAppWidgetId, account.mId, mailboxId);
|
/packages/apps/Email/src/com/android/email/ |
H A D | Preferences.java | 269 * Returns the last used account ID as set by {@link #setLastUsedAccountId}. 273 * Note that the last used account may have been deleted in the background so there is also 274 * no guarantee that the account exists. 281 * Sets the specified ID of the last account used. Treated as an opaque ID and does not 292 * Gets whether the require manual sync dialog has been shown for the specified account. 293 * It should only be shown once per account. 295 public boolean getHasShownRequireManualSync(Context context, Account account) { argument 296 return getBoolean(context, account.getEmailAddress(), REQUIRE_MANUAL_SYNC_DIALOG_SHOWN, 301 * Sets whether the require manual sync dialog has been shown for the specified account. 302 * It should only be shown once per account 304 setHasShownRequireManualSync(Context context, Account account, boolean value) argument 314 shouldShowRequireManualSync(Context context, Account account) argument 334 setBoolean(Context context, String account, String key, Boolean value) argument 341 getBoolean(Context context, String account, String key, boolean def) argument 348 makeKey(String account, String key) argument [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
H A D | EmailContentSetupUtils.java | 37 * Create an account for test purposes 40 Account account = new Account(); 42 account.mDisplayName = name; 43 account.mEmailAddress = name + "@android.com"; 44 account.mProtocolVersion = "2.5" + name; 46 account.save(context); 48 return account;
|