/packages/apps/Email/provider_src/com/android/email/service/ |
H A D | AuthenticatorService.java | 39 * 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...] |
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... 79 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, argument 90 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, argument 102 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, argument 108 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, argument [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | AccountItemView.java | 34 * 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...] |
H A D | ConversationListHelper.java | 35 final Context context, final ControllableActivity activity, final Account account) { 42 conversationSyncDisabledTipView.bindAccount(account, activity); 47 conversationsInOutboxTipView.bind(account, activity.getFolderSelector()); 60 nestedFolderTeaserView.bind(account, activity.getFolderSelector()); 34 makeConversationListSpecialViews( final Context context, final ControllableActivity activity, final Account account) argument
|
H A D | SuppressNotificationReceiver.java | 52 final Account account = controller.getCurrentAccount(); 62 if (account != null) { 63 mMimeType = account.mimeType; 70 // If the current account is null, still register the receiver. This allows the 102 * Returns a boolean indicating whether notifications are suppressed for the specified account. 104 public boolean notificationsDisabledForAccount(Account account) { argument 105 return mContext != null && TextUtils.equals(account.mimeType, mMimeType); 132 final Account listContextAccount = listContext.account; 136 LogUtils.e(LOG_TAG, "SuppressNotificationReceiver.onReceive: account=%s, folder=%s",
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
H A D | MockAccountTypeManager.java | 21 import com.android.contacts.model.account.AccountInfo; 22 import com.android.contacts.model.account.AccountType; 23 import com.android.contacts.model.account.AccountTypeWithDataSet; 24 import com.android.contacts.model.account.AccountWithDataSet; 25 import com.android.contacts.model.account.BaseAccountType; 81 public AccountInfo getAccountInfoForAccount(AccountWithDataSet account) { argument
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
H A D | FakeAccountType.java | 24 import com.android.contacts.model.account.AccountType; 25 import com.android.contacts.model.account.AccountWithDataSet; 92 public static AccountType create(AccountWithDataSet account, String label, Drawable icon) { argument 93 final FakeAccountType result = create(account.type, label, icon); 94 result.accountType = account.type; 95 result.dataSet = account.dataSet;
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
H A D | MailPhotoViewActivity.java | 47 * @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/UnifiedEmail/tests/src/com/android/mail/browse/ |
H A D | SendersFormattingTests.java | 50 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...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
H A D | AccountComparator.java | 16 package com.android.contacts.model.account; 23 * Orders accounts for display such that the default account is first 68 private static boolean isWritableGoogleAccount(AccountWithDataSet account) { argument 69 return GoogleAccountType.ACCOUNT_TYPE.equals(account.type) && account.dataSet == null;
|
H A D | AccountInfo.java | 16 package com.android.contacts.model.account; 30 * Holds an {@link AccountWithDataSet} and the corresponding {@link AccountType} for an account. 51 * Returns the displayable account name label for the account 58 * Returns the displayable account type label for the account 65 * Returns the icon for the account type 92 * Returns whether accounts contains an account that is the same as account 94 * <p>This does not use equality rather checks whether the source account ({ 97 contains(List<AccountInfo> accounts, AccountInfo account) argument 107 contains(List<AccountInfo> accounts, AccountWithDataSet account) argument 114 getAccount(List<AccountInfo> accounts, AccountWithDataSet account) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
H A D | ServiceStore.java | 39 * Creates a new store for the given account. 41 public ServiceStore(Account account, Context context) throws MessagingException { argument 43 mHostAuth = account.getOrCreateHostAuthRecv(mContext); 49 public static Store newInstance(Account account, Context context) throws MessagingException { argument 50 return new ServiceStore(account, context); 61 * @throws MessagingException if we can't authenticate the account
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/ |
H A D | AuthUtils.java | 52 public AccountManagerFuture<Bundle> getAuthToken(final Account account, argument 55 return mAccountManager.getAuthToken(account, authTokenType, options, notifyAuthFailure, 62 public String blockingGetAuthToken(final Account account, final String authTokenType, argument 65 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure);
|
/packages/providers/ContactsProvider/test_common/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(RawContacts.ACCOUNT_NAME, account.name) 50 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type)
|
H A D | RawContactUtil.java | 76 public static long createRawContact(ContentResolver resolver, Account account, argument 81 ContactsContract.RawContacts.CONTENT_URI, account); 100 public static long createRawContactWithName(ContentResolver resolver, Account account) { argument 101 return createRawContactWithName(resolver, "John", "Doe", account); 110 String lastName, Account account) { 111 long rawContactId = createRawContact(resolver, account); 121 Account account) { 127 account.name) 129 account.type) 109 createRawContactWithName(ContentResolver resolver, String firstName, String lastName, Account account) argument 120 createRawContactWithBackupId(ContentResolver resolver, String backupId, Account account) argument
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | CallUtil.java | 82 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); 83 if (account != null) { 84 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING)) { 91 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE)) { 148 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); 149 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT)) {
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | AccountTypeManager.java | 43 import com.android.contacts.model.account.AccountInfo; 44 import com.android.contacts.model.account.AccountType; 45 import com.android.contacts.model.account.AccountTypeProvider; 46 import com.android.contacts.model.account.AccountTypeWithDataSet; 47 import com.android.contacts.model.account.AccountWithDataSet; 48 import com.android.contacts.model.account.FallbackAccountType; 49 import com.android.contacts.model.account.GoogleAccountType; 125 * Set the instance of account type manager. This is only for and should only be used by unit 151 public AccountInfo getAccountInfoForAccount(AccountWithDataSet account) { 172 * replaced with an asynchronous account loadin 204 getAccountInfoForAccount(AccountWithDataSet account) argument 278 getAccountTypeForAccount(AccountWithDataSet account) argument 297 exists(AccountWithDataSet account) argument 309 isWritable(AccountWithDataSet account) argument 579 getAccountInfoForAccount(AccountWithDataSet account) argument 692 exists(AccountWithDataSet account) argument [all...] |
/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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
H A D | MailPreferenceActivity.java | 110 final Account account = Account.builder().buildFrom(mAccountsCursor); 112 if (!account.supportsCapability(AccountCapabilities.VIRTUAL_ACCOUNT)) { 114 if (TextUtils.isEmpty(account.getDisplayName()) || 115 TextUtils.equals(account.getDisplayName(), account.getEmailAddress())) { 117 header.title = account.getEmailAddress(); 119 header.title = account.getDisplayName(); 120 header.summary = account.getEmailAddress(); 122 header.fragment = account.settingsFragmentClass; 125 account [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | AccountTypePreference.java | 71 public AccountTypePreference(Context context, int metricsCategory, Account account, argument 75 mTitle = account.name; 83 setKey(buildKey(account)); 113 * Build a unique preference key based on account. 115 public static String buildKey(Account account) { argument 116 return String.valueOf(account.hashCode());
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
H A D | AccountSyncFragment.java | 54 private static final String ARG_ACCOUNT = "account"; 80 public static AccountSyncFragment newInstance(Account account) { argument 82 prepareArgs(b, account); 88 public static void prepareArgs(Bundle b, Account account) { argument 89 b.putParcelable(ARG_ACCOUNT, account); 101 Log.v(TAG, "Got account: " + mAccount); 149 Account account = syncPref.getAccount(); 152 requestOrCancelSync(account, authority, true); 155 boolean oldSyncState = ContentResolver.getSyncAutomaticallyAsUser(account, 159 ContentResolver.setSyncAutomaticallyAsUser(account, authorit 221 requestOrCancelSync(Account account, String authority, boolean flag) argument 232 isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) argument 241 accountExists(Account account) argument 383 createSyncStateSwitch(Account account, String authority) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
H A D | EditorUiUtilsTest.java | 28 import com.android.contacts.model.account.AccountDisplayInfo; 29 import com.android.contacts.model.account.AccountInfo; 30 import com.android.contacts.model.account.AccountType; 31 import com.android.contacts.model.account.AccountWithDataSet; 32 import com.android.contacts.model.account.DeviceLocalAccountType; 50 new AccountWithDataSet(ACCOUNT_NAME, "some.account.type", null); 79 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, 81 new FakeAccountType("com.example.account")); 84 account); 94 final AccountInfo account [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/ |
H A D | Store.java | 65 static Store newInstance(Account account) throws MessagingException { argument 67 + account.mDisplayName); 71 * Get an instance of a mail store for the given account. The account must be valid (i.e. has 74 * NOTE: The internal algorithm used to find a cached store depends upon the account's 79 * @param account The account of the store. 82 * @throws MessagingException If the store cannot be obtained or if the account is invalid. 84 public synchronized static Store getInstance(Account account, Context context) argument 90 HostAuth hostAuth = account 107 createInstanceInternal(final Account account, final Context context, final boolean cacheInstance) argument 143 removeInstance(Account account, Context context) argument [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/internet/ |
H A D | AuthenticationCache.java | 60 // Gets an access token for the given account. This may be whatever is currently cached, or 62 public String retrieveAccessToken(Context context, Account account) throws argument 69 entry = getEntry(context, account); 83 public String refreshAccessToken(Context context, Account account) throws argument 85 CacheEntry entry = getEntry(context, account); 92 private CacheEntry getEntry(Context context, Account account) { argument 94 if (account.isSaved() && !account.isTemporary()) { 95 entry = mCache.get(account.mId); 98 final HostAuth hostAuth = account [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | AccountTypeManagerTest.java | 25 import com.android.contacts.model.account.AccountType; 26 import com.android.contacts.model.account.AccountTypeWithDataSet; 27 import com.android.contacts.model.account.AccountWithDataSet; 28 import com.android.contacts.model.account.GoogleAccountType; 88 for (AccountWithDataSet account : accounts) { 89 result.add(account); 132 final Account account = AccountTypeManager.getDefaultGoogleAccount( 134 return account == null ? null : account.name;
|