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

1234567891011>>

/packages/apps/Contacts/src/com/android/contacts/util/
H A DSyncUtil.java26 import com.android.contacts.model.account.AccountWithDataSet;
27 import com.android.contacts.model.account.GoogleAccountType;
44 public static final boolean isSyncStatusPendingOrActive(Account account) { argument
45 if (account == null) {
48 return ContentResolver.isSyncPending(account, ContactsContract.AUTHORITY)
49 || ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY);
54 * {@link ContentResolver#isSyncActive(Account, String)} is true for any account in accounts
66 * Returns true if the given Google account is not syncable.
68 public static final boolean isUnsyncableGoogleAccount(Account account) { argument
69 if (account
79 isAlertVisible(Context context, Account account, int reason) argument
89 calculateReasonSyncOff(Context context, Account account) argument
[all...]
H A DAccountSelectionUtil.java37 import com.android.contacts.model.account.AccountType;
38 import com.android.contacts.model.account.AccountWithDataSet;
122 final AccountWithDataSet account = this.getItem(position);
124 account.type, account.dataSet);
128 text2.setText(account.name);
157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, argument
160 doImportFromSim(activity, account, subscriptionId);
162 doImportFromVcfFile(activity, account);
166 public static void doImportFromSim(Context context, AccountWithDataSet account, argument
180 doImportFromVcfFile(Activity activity, AccountWithDataSet account) argument
[all...]
/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/Contacts/src/com/android/contacts/vcard/
H A DImportRequest.java21 import com.android.contacts.model.account.AccountWithDataSet;
38 public final Account account; field in class:ImportRequest
99 public ImportRequest(AccountWithDataSet account, argument
102 this.account = account != null ? account.getAccountOrNull() : null;
H A DSelectAccountActivity.java27 import com.android.contacts.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/Contacts/src/com/android/contacts/model/account/
H A DDeviceLocalAccountType.java16 package com.android.contacts.model.account;
39 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { argument
43 new AccountDisplayInfo(account, getDisplayLabel(context), getDisplayLabel(context),
H A DAccountDisplayInfoFactory.java16 package com.android.contacts.model.account;
32 * For most accounts the account name will be used for the label but device accounts and
62 public AccountDisplayInfo getAccountDisplayInfo(AccountWithDataSet account) { argument
63 final AccountType type = mAccountTypeManager.getAccountTypeForAccount(account);
64 final CharSequence name = shouldUseTypeLabelForName(account)
66 : account.name;
67 return new AccountDisplayInfo(account, name, type.getDisplayLabel(mContext),
78 final AccountWithDataSet account = new AccountWithDataSet(delta.getAccountName(),
80 return getAccountDisplayInfo(account);
92 private boolean shouldUseTypeLabelForName(AccountWithDataSet account) { argument
[all...]
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/accounts/
H A DAccountStateChangedListener.java24 * Handles changes to account used to sign in to the keyboard.
25 * e.g. account switching/sign-in/sign-out from the keyboard
31 * Called when the current account being used in keyboard is signed out.
33 * @param oldAccount the account that was signed out of.
40 * This may be called when the user switches accounts to sign in with a different account.
42 * @param oldAccount the previous account that was being used for sign-in.
44 * @param newAccount the account being used for sign-in.
52 * @param account the account being used for sync.
55 public static void onSyncPreferenceChanged(@Nullable String account, boolea argument
64 forceSync(@ullable String account) argument
73 forceDelete(@ullable String account) argument
[all...]
/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/Contacts/tests/src/com/android/contacts/util/
H A DAccountDisplayInfoFactoryTests.java26 import com.android.contacts.model.account.AccountDisplayInfo;
27 import com.android.contacts.model.account.AccountDisplayInfoFactory;
28 import com.android.contacts.model.account.AccountType;
29 import com.android.contacts.model.account.AccountWithDataSet;
52 addTypeMapping(account("user", "com.example"), "title", comExampleIcon);
53 addTypeMapping(account(null, null), "device", someDrawable());
54 addTypeMapping(account("foo", "bar.type"), "bar", someDrawable());
55 addTypeMapping(account("user2", "com.example"), "title", comExampleIcon);
60 account("user", "com.example"));
67 addTypeMapping(account("use
169 private AccountWithDataSet account(String name, String type) { method in class:AccountDisplayInfoFactoryTests
173 addTypeMapping(AccountWithDataSet account, String label, Drawable icon) argument
[all...]
/packages/apps/TV/src/com/android/tv/util/
H A DAccountHelper.java31 * Helper methods for getting and selecting a user account.
50 * Returns the currently selected account or {@code null} if none is selected.
60 for (Account account : getEligibleAccounts()) {
61 if (account.name.equals(accountId)) {
62 mSelectedAccount = account;
78 * Selects the first account available.
80 * @return selected account or {@code null} if none is selected.
84 Account account = getFirstEligibleAccount();
85 if (account != null) {
86 selectAccount(account);
105 selectAccount(Account account) argument
[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/services/Telecomm/src/com/android/server/telecom/settings/
H A DEnableAccountPreferenceFragment.java44 public AccountSwitchPreference(Context context, PhoneAccount account) { argument
46 mAccount = account;
48 setTitle(account.getLabel());
49 setSummary(account.getShortDescription());
50 Icon icon = account.getIcon();
54 setChecked(account.isEnabled());
92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle);
93 if (account != null) {
95 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
97 screen.addPreference(new AccountSwitchPreference(context, account));
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DAccountSyncActivity.java29 * Displays the sync settings for a given account.
38 Account account = null;
40 // Search for the account.
43 account = candidateAccount;
49 return SettingsFragment.newInstance(account);
53 private static final String ARG_ACCOUNT = "account";
55 public static SettingsFragment newInstance(Account account) { argument
57 b.putParcelable(ARG_ACCOUNT, account);
65 final Account account = getArguments().getParcelable(ARG_ACCOUNT);
66 startPreferenceFragment(AccountSyncFragment.newInstance(account));
[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/Dialer/java/com/android/dialer/calllogutils/
H A DPhoneAccountUtils.java38 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
39 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
46 /** Compose PhoneAccount object from component name and account id. */
60 /** Extract account label from PhoneAccount object. */
64 PhoneAccount account = getAccountOrNull(context, accountHandle);
65 if (account != null && account.getLabel() != null) {
66 return account.getLabel().toString();
71 /** Extract account color from PhoneAccount object. */
73 final PhoneAccount account
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
H A DAccountsTestHelper.java31 import com.android.contacts.model.account.AccountWithDataSet;
62 public void addTestAccount(AccountWithDataSet account) { argument
63 Account newAccount = new Account(account.name, account.type);
75 final AccountWithDataSet account = new AccountWithDataSet(name, TEST_ACCOUNT_TYPE, null);
76 addTestAccount(account);
77 return account;
89 public void removeTestAccount(AccountWithDataSet account) { argument
90 final Account remove = account.getAccountOrNull();
106 public void removeContactsForAccount(AccountWithDataSet account) { argument
[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/apps/Contacts/src/com/android/contacts/compat/
H A DPhoneAccountSdkCompat.java34 public static Bundle getExtras(PhoneAccount account) { argument
35 return CompatUtils.isNCompatible() ? account.getExtras() : null;
/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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
H A DUserHistoryDictionary.java48 @Nullable final String account) {
49 super(context, getUserHistoryDictName(NAME, locale, null /* dictFile */, account), locale, Dictionary.TYPE_USER_HISTORY, null);
60 @Nullable final File dictFile, @Nullable final String account) {
64 return getUserHistoryDictNamePerAccount(name, locale, dictFile, account);
68 * Uses the currently signed in account to determine the dictionary name.
71 @Nullable final File dictFile, @Nullable final String account) {
76 if (account != null) {
77 dictName += "." + account;
86 final File dictFile, final String dictNamePrefix, @Nullable final String account) {
87 return PersonalizationHelper.getUserHistoryDictionary(context, locale, account);
47 UserHistoryDictionary(final Context context, final Locale locale, @Nullable final String account) argument
59 getUserHistoryDictName(final String name, final Locale locale, @Nullable final File dictFile, @Nullable final String account) argument
70 getUserHistoryDictNamePerAccount(final String name, final Locale locale, @Nullable final File dictFile, @Nullable final String account) argument
85 getDictionary(final Context context, final Locale locale, final File dictFile, final String dictNamePrefix, @Nullable final String account) argument
[all...]
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/Contacts/tests/src/com/android/contacts/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()}.
69 final Account account = new Account(newUniqueUserName(), accountType);
71 // Create an account.
72 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null);
75 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
76 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
84 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument
87 Log.v(TestauthConstants.LOG_TAG, "getAuthToken() account
98 confirmCredentials( AccountAuthenticatorResponse response, Account account, Bundle options) argument
124 hasFeatures( AccountAuthenticatorResponse response, Account account, String[] features) argument
138 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
[all...]

Completed in 1334 milliseconds

1234567891011>>