Searched refs:account (Results 1 - 25 of 324) sorted by relevance

1234567891011>>

/packages/apps/Calendar/src/com/android/calendar/
H A DRecipientAdapter.java30 * 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/Email/provider_src/com/android/email/
H A DNotificationController.java30 void cancelNotifications(final Context context, final Account account); argument
32 void showSecurityNeededNotification(Account account); argument
33 void showSecurityUnsupportedNotification(Account account); argument
34 void showSecurityChangedNotification(Account account); argument
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DPhoneAccountUtils.java43 PhoneAccount account = telecomManager.getPhoneAccount(accountHandle);
44 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
52 * Compose PhoneAccount object from component name and account id.
63 * Extract account label from PhoneAccount object.
66 PhoneAccount account = getAccountOrNull(context, accountHandle);
67 if (account != null && account.getLabel() != null) {
68 return account.getLabel().toString();
74 * Extract account color from PhoneAccount object.
79 final PhoneAccount account
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DRecipientAdapter.java24 public RecipientAdapter(Context context, Account account) { argument
26 setAccount(account.getAccountManagerAccount());
/packages/apps/Email/provider_src/com/android/email/mail/
H A DSender.java40 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 DConversationListContext.java48 * 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 DTestAuthenticator.java30 * 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 DTestSyncAdapter.java49 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/ContactsCommon/src/com/android/contacts/common/vcard/
H A DImportRequest.java37 public final Account account; field in class:ImportRequest
98 public ImportRequest(Account account, argument
101 this.account = account;
H A DSelectAccountActivity.java27 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/apps/UnifiedEmail/src/com/android/mail/browse/
H A DInlineAttachmentViewIntentBuilderCreator.java29 Account account, long conversationId);
28 createInlineAttachmentViewIntentBuilder( Account account, long conversationId) argument
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
H A DTestUtil.java44 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 DTrafficFlags.java30 // 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 DExchangeTestCase.java52 * 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/Email/src/com/android/email/activity/setup/
H A DAccountCreationFragment.java44 * AccountManager account and saving our account object to the database, as well as some misc
52 private static final String ACCOUNT_TAG = "account";
72 void setAccount(Account account); argument
79 public static AccountCreationFragment newInstance(Account account, boolean syncEmail, argument
82 args.putParcelable(AccountCreationFragment.ACCOUNT_TAG, account);
167 final Account account = args.getParcelable(ACCOUNT_TAG);
174 * Task loader returns true if we created the account, false if we bailed out.
183 account.mFlags |= Account.FLAGS_INCOMPLETE;
185 AccountSettingsUtils.commitSettings(mAppContext, account);
265 onLoadFinished(Loader<Account> loader, Account account) argument
311 onLoadFinished(final Loader<Account> loader, final Account account) argument
[all...]
/packages/apps/Exchange/src/com/android/exchange/
H A DExchangeBroadcastReceiver.java27 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 DAccountUtils.java39 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/Exchange/src/com/android/exchange/service/
H A DPingSyncSynchronizer.java46 * Basic rules of how these interact (note that all rules are per account):
59 * - If there are no waiting syncs and this account is configured for push: start a ping.
60 * - Otherwise: This account is now idle.
67 * - If there are no waiting syncs and this account is configured for push: This means the ping task
70 * - Otherwise: This account is now idle.
96 * This class handles bookkeeping for a single account.
108 * Tracks whether this account wants to get push notifications, based on calls to
129 // We need to look up the account and it's folders, which won't yet exist for a newly
130 // created account.
140 * - Wait until there's nothing running for this account befor
167 syncEnd(final boolean lastSyncHadError, final Account account, final PingSyncSynchronizer synchronizer) argument
238 scheduleDelayedPing(final Context context, final Account account) argument
257 pushModify(final Account account, final PingSyncSynchronizer synchronizer) argument
376 syncEnd(final boolean lastSyncHadError, final Account account) argument
411 pushModify(final Account account) argument
[all...]
H A DEasService.java103 final Account account = loadAccount(EasService.this, accountId);
104 if (account != null) {
105 final EasLoadAttachment operation = new EasLoadAttachment(EasService.this, account,
114 final Account account = loadAccount(EasService.this, accountId);
115 if (account != null) {
116 final EasFolderSync operation = new EasFolderSync(EasService.this, account);
128 final Account account = loadAccount(EasService.this, accountId);
129 if (account != null) {
130 EasFullSyncOperation op = new EasFullSyncOperation(EasService.this, account,
146 final Account account
417 pingNeededForAccount(final Context context, final Account account) argument
552 getAuthoritiesToSync(final android.accounts.Account account, final String[] authorities) argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DAccountSelectionUtil.java36 import com.android.contacts.common.model.account.AccountType;
37 import com.android.contacts.common.model.account.AccountWithDataSet;
132 final AccountWithDataSet account = this.getItem(position);
134 account.type, account.dataSet);
137 text1.setText(account.name);
163 public static void doImport(Context context, int resId, AccountWithDataSet account, argument
167 doImportFromSim(context, account, subscriptionId);
171 doImportFromSdCard(context, account);
177 public static void doImportFromSim(Context context, AccountWithDataSet account, argument
191 doImportFromSdCard(Context context, AccountWithDataSet account) argument
[all...]
/packages/apps/Email/provider_src/com/android/email/service/
H A DAuthenticatorService.java39 * with addAccount, it simply adds the account to AccountManager directly with a username and
67 // app UI; we simply create the account and return the proper bundle
70 final Account account = new Account(options.getString(OPTIONS_USERNAME),
73 account, options.getString(OPTIONS_PASSWORD), null);
78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1);
79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY,
86 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1);
87 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY,
98 ContentResolver.setIsSyncable(account, EmailContent.AUTHORITY, 1);
99 ContentResolver.setSyncAutomatically(account, EmailConten
121 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
132 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
144 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument
150 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAccountItemView.java34 * The view for each account in the folder list/drawer.
64 * Sets the account name and draws the unread count. Depending on the account state (current or
68 * @param account account whose name will be displayed
69 * @param isCurrentAccount true if the account is the one in use, false otherwise
71 public void bind(final Context context, final Account account, final boolean isCurrentAccount, argument
73 if (!TextUtils.isEmpty(account.getSenderName())) {
74 mAccountDisplayName.setText(account.getSenderName());
75 mAccountAddress.setText(account
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/photo/
H A DMailPhotoViewActivity.java47 * @param account The email address of the account.
48 * @param accountType The type of the account.
52 public static void startMailPhotoViewActivity(final Context context, final String account, argument
62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg));
70 public static void startMailPhotoViewActivity(final Context context, final String account, argument
73 buildMailPhotoViewActivityIntent(context, account, accountType, msg,
78 final Context context, final String account, final String accountType,
87 return wrapIntent(builder.build(), account, accountType, msg);
91 final Intent intent, final String account, fina
77 buildMailPhotoViewActivityIntent( final Context context, final String account, final String accountType, final ConversationMessage msg, final String initialPhotoUri) argument
90 wrapIntent( final Intent intent, final String account, final String accountType, final ConversationMessage msg) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DAccountSyncSettings.java53 * Displays the sync settings for a given account.
63 private static final String EXTRA_ACCOUNT = "account";
98 // Search for the account.
99 for (Account account : mAccountManager.getAccounts()) {
100 if (account.name.equals(accountName)) {
101 mAccount = account;
151 Account account = action.getIntent().getParcelableExtra(EXTRA_ACCOUNT);
153 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority);
155 requestOrCancelSync(account, authority, true);
161 ContentResolver.setSyncAutomatically(account, authorit
277 getAction(Account account, String authority, List<SyncInfo> currentSyncs) argument
389 requestOrCancelSync(Account account, String authority, boolean sync) argument
399 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument
[all...]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DSendersFormattingTests.java50 final Account account = createAccount();
51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false);
62 final Account account = createAccount();
63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false);
75 final Account account = createAccount();
76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false);
90 final Account account = createAccount();
91 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false);
138 final Account account = createAccount();
140 senderAvatarModel, account, fals
[all...]

Completed in 578 milliseconds

1234567891011>>