/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/UnifiedEmail/tests/src/com/android/mail/providers/ |
H A D | AccountTests.java | 38 Account account = new Account(dest, null); 40 intent.putExtra(Utils.EXTRA_ACCOUNT, account); 42 assertEquals(outAccount.name, account.name); 43 assertEquals(outAccount.accountFromAddresses, account.accountFromAddresses); 44 assertEquals(outAccount.capabilities, account.capabilities); 45 assertEquals(outAccount.providerVersion, account.providerVersion); 46 assertEquals(outAccount.uri, account.uri); 47 assertEquals(outAccount.folderListUri, account.folderListUri); 48 assertEquals(outAccount.searchUri, account.searchUri); 49 assertEquals(outAccount.expungeMessageUri, account [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | RecipientAdapter.java | 24 public RecipientAdapter(Context context, Account account) { argument 26 setAccount(account.getAccountManagerAccount());
|
/packages/apps/Email/src/com/android/email/mail/ |
H A D | Sender.java | 40 public static Sender newInstance(Account account) throws MessagingException { argument 42 + account.mDisplayName); 45 private static Sender instantiateSender(Context context, String className, Account account) argument 53 o = m.invoke(null, account, context); 57 e.toString(), className, account.mDisplayName)); 58 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); 62 account.mDisplayName + ": " + className + " create incompatible object"); 70 private static Sender findSender(Context context, int resourceId, Account account) argument 76 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); 86 sender = instantiateSender(context, className, account); 107 getInstance(Context context, Account account) argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
H A D | ConversationListContext.java | 48 * The account for whom we are showing a list 50 public final Account account; field in class:ConversationListContext 61 sUrlMatcher.addURI(UIProvider.AUTHORITY, "account/*/folder/*", 0); 68 // The account is created here as a new object. This is probably not the best thing to do. 69 // We should probably be reading an account instance from our controller. 70 Account account = bundle.getParcelable(Utils.EXTRA_ACCOUNT); 72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder); 77 * @param account 81 public static ConversationListContext forFolder(Account account, Folder folder) { argument 82 return new ConversationListContext(account, nul 88 forSearchQuery(Account account, Folder folder, String query) argument [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/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/ContactsCommon/src/com/android/contacts/common/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 | 27 import com.android.contacts.common.model.account.AccountWithDataSet; 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 [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
H A D | TestUtil.java | 44 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) { argument 45 if (account == null) { 49 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME, account.name) 50 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type)
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
H A D | TrafficFlags.java | 30 // Bits 0->15, account id 50 * Get flags indicating sync of the passed-in account; note that, by default, these flags 55 * @param account the account being used 56 * @return flags for syncing this account 58 public static int getSyncFlags(Context context, Account account) { argument 59 return (int)account.mId | REASON_SYNC; 63 * Get flags indicating attachment loading from the passed-in account 66 * @param account the account bein 69 getAttachmentFlags(Context context, Account account) argument 80 getSmtpFlags(Context context, Account account) argument [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 249 deleteAccountManagerAccount(Account account) argument [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
H A D | ExchangeBroadcastReceiver.java | 27 for (final Account account : accounts) { 30 if (!ContentResolver.getSyncAutomatically(account, EmailContent.AUTHORITY) && 31 !ContentResolver.getSyncAutomatically(account, CalendarContract.AUTHORITY) && 32 !ContentResolver.getSyncAutomatically(account, ContactsContract.AUTHORITY)) { 37 ContentResolver.requestSync(account, EmailContent.AUTHORITY, bundle);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | AccountUtils.java | 39 for (final Account account : getAccounts(context)) { 40 final String name = account.name; 53 * @return List of account names that contain the specified domain name 59 for (final Account account : getAccounts(context)) { 60 if (account.name.toLowerCase(Locale.ROOT).endsWith(atDomain)) { 61 retval.add(account.name);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | AccountSelectionUtil.java | 35 import com.android.contacts.common.model.account.AccountType; 36 import com.android.contacts.common.model.account.AccountWithDataSet; 122 final AccountWithDataSet account = this.getItem(position); 124 account.type, account.dataSet); 127 text1.setText(account.name); 153 public static void doImport(Context context, int resId, AccountWithDataSet account) { argument 156 doImportFromSim(context, account); 160 doImportFromSdCard(context, account); 166 public static void doImportFromSim(Context context, AccountWithDataSet account) { argument 178 doImportFromSdCard(Context context, AccountWithDataSet account) argument [all...] |
/packages/apps/Email/src/com/android/email/service/ |
H A D | AuthenticatorService.java | 38 * 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); 72 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); 73 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, 80 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1); 81 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, 92 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1); 93 ContentResolver.setSyncAutomatically(account, EmailConten 115 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument 126 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument 138 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument 144 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
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/Email/src/com/android/email/ |
H A D | RequireManualSyncDialog.java | 28 public RequireManualSyncDialog(Context context, Account account) { argument 32 Preferences.getPreferences(context).setHasShownRequireManualSync(account, true);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | AccountSetupOptions.java | 104 final Account account = mSetupData.getAccount(); 106 account.mHostAuthRecv.mProtocol); 128 SpinnerOption.setSpinnerOptionValue(mCheckFrequencyView, account.getSyncInterval()); 166 // If the account manager initiated the creation, and success was not reported, 200 * It collects the data from the UI, updates the setup account record, and commits 201 * the account to the database (making it real for the first time.) 206 final Account account = mSetupData.getAccount(); 207 if (account.isSaved()) { 208 // Disrupting the normal flow could get us here, but if the account is already 211 } else if (account [all...] |
H A D | AccountSetupNames.java | 49 * Final screen of setup process. Collect account nickname and/or username. 101 final Account account = mSetupData.getAccount(); 102 if (account == null) { 103 throw new IllegalStateException("unexpected null account"); 105 if (account.mHostAuthRecv == null) { 113 final String accountEmail = account.mEmailAddress; 120 // Remember whether we're an EAS account, since it doesn't require the user name field 122 EmailServiceUtils.getServiceInfo(this, account.mHostAuthRecv.mProtocol); 128 if (account.getSenderName() != null) { 129 mName.setText(account 247 FinalSetupTask(Account account) argument [all...] |
/packages/apps/Email/src/com/android/email/mail/store/ |
H A D | ServiceStore.java | 38 * Creates a new store for the given account. 40 public ServiceStore(Account account, Context context) throws MessagingException { argument 42 mHostAuth = account.getOrCreateHostAuthRecv(mContext); 48 public static Store newInstance(Account account, Context context) throws MessagingException { argument 49 return new ServiceStore(account, context); 60 * @throws MessagingException if we can't authenticate the account
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ConversationListHelper.java | 35 final Context context, final ControllableActivity activity, final Account account) { 39 conversationSyncDisabledTipView.bindAccount(account, activity); 44 conversationsInOutboxTipView.bind(account, activity.getFolderSelector()); 59 nestedFolderTeaserView.bind(account, activity.getFolderSelector()); 34 makeConversationListSpecialViews( final Context context, final ControllableActivity activity, final Account account) argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
H A D | ReplyFromAccount.java | 45 public Account account; field in class:ReplyFromAccount 53 public ReplyFromAccount(Account account, Uri baseAccountUri, String address, String name, argument 55 this.account = account; 74 LogUtils.wtf(LOG_TAG, e, "Could not serialize account with address " + address); 79 public static ReplyFromAccount deserialize(Account account, JSONObject json) { argument 88 replyFromAccount = new ReplyFromAccount(account, uri, addressString, nameString, 96 public static ReplyFromAccount deserialize(Account account, String stringExtra) { argument 99 replyFromAccount = deserialize(account, new JSONObject(stringExtra)); 107 * Determine if this address is the account itsel 110 matchesAccountOrCustomFrom(Account account, String possibleCustomFrom, List<ReplyFromAccount> replyFromAccounts) argument [all...] |