Home
last modified time | relevance | path

Searched refs:account (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/packages/apps/Contacts/tests/src/com/android/contacts/util/
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); in test_displayableAccount_hasIconFromAccountType()
53 addTypeMapping(account(null, null), "device", someDrawable()); in test_displayableAccount_hasIconFromAccountType()
54 addTypeMapping(account("foo", "bar.type"), "bar", someDrawable()); in test_displayableAccount_hasIconFromAccountType()
55 addTypeMapping(account("user2", "com.example"), "title", comExampleIcon); in test_displayableAccount_hasIconFromAccountType()
60 account("user", "com.example")); in test_displayableAccount_hasIconFromAccountType()
67 addTypeMapping(account("user@example.com", "com.example"), "title", comExampleIcon); in test_displayableAccount_hasNameFromAccount()
[all …]
/packages/apps/Email/provider_src/com/android/email/
DSecurityPolicy.java459 Account account = Account.restoreAccountWithId(context, accountId); in setAccountHoldFlag() local
460 if (account != null) { in setAccountHoldFlag()
461 setAccountHoldFlag(context, account, newState); in setAccountHoldFlag()
466 nc.showSecurityNeededNotification(account); in setAccountHoldFlag()
479 public static void setAccountHoldFlag(Context context, Account account, boolean newState) { in setAccountHoldFlag() argument
481 account.mFlags |= Account.FLAGS_SECURITY_HOLD; in setAccountHoldFlag()
483 account.mFlags &= ~Account.FLAGS_SECURITY_HOLD; in setAccountHoldFlag()
486 cv.put(AccountColumns.FLAGS, account.mFlags); in setAccountHoldFlag()
487 account.update(context, cv); in setAccountHoldFlag()
499 Account account = Account.restoreAccountWithId(mContext, accountId); in policiesRequired() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java43 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;
151 public AccountInfo getAccountInfoForAccount(AccountWithDataSet account) {
204 public abstract AccountInfo getAccountInfoForAccount(AccountWithDataSet account); in getAccountInfoForAccount() argument
278 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) {
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountCreationFragment.java72 void setAccount(Account account); in setAccount() argument
79 public static AccountCreationFragment newInstance(Account account, boolean syncEmail, in newInstance() argument
82 args.putParcelable(AccountCreationFragment.ACCOUNT_TAG, account); in newInstance()
167 final Account account = args.getParcelable(ACCOUNT_TAG); in onCreateLoader() local
183 account.mFlags |= Account.FLAGS_INCOMPLETE; in onCreateLoader()
185 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
187 EmailServiceUtils.setupAccountManagerAccount(mAppContext, account, in onCreateLoader()
206 new AccountPreferences(mAppContext, account.getEmailAddress()) in onCreateLoader()
211 account.mFlags &= ~Account.FLAGS_INCOMPLETE; in onCreateLoader()
212 AccountSettingsUtils.commitSettings(mAppContext, account); in onCreateLoader()
[all …]
DAccountSetupFinal.java314 final Account account = mSetupData.getAccount(); in onCreate() local
315 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onCreate()
317 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in onCreate()
320 final Account account = mSetupData.getAccount(); in onCreate() local
323 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(this); in onCreate()
326 final HostAuth sendAuth = account.getOrCreateHostAuthSend(this); in onCreate()
342 account.mSyncLookback = syncLookback; in onCreate()
584 final Account account = mSetupData.getAccount(); in proceed() local
585 setDefaultsForProtocol(account); in proceed()
738 public void setAccount(Account account) { in setAccount() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
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) { in isSyncStatusPendingOrActive() argument
45 if (account == null) { in isSyncStatusPendingOrActive()
48 return ContentResolver.isSyncPending(account, ContactsContract.AUTHORITY) in isSyncStatusPendingOrActive()
49 || ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY); in isSyncStatusPendingOrActive()
68 public static final boolean isUnsyncableGoogleAccount(Account account) { in isUnsyncableGoogleAccount() argument
69 if (account == null || !GoogleAccountType.ACCOUNT_TYPE.equals(account.type)) { in isUnsyncableGoogleAccount()
72 return ContentResolver.getIsSyncable(account, ContactsContract.AUTHORITY) <= 0; in isUnsyncableGoogleAccount()
79 public static boolean isAlertVisible(Context context, Account account, int reason) { in isAlertVisible() argument
[all …]
DAccountSelectionUtil.java37 import com.android.contacts.model.account.AccountType;
38 import com.android.contacts.model.account.AccountWithDataSet;
122 final AccountWithDataSet account = this.getItem(position); in getSelectAccountDialog()
124 account.type, account.dataSet); in getSelectAccountDialog()
128 text2.setText(account.name); in getSelectAccountDialog()
157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, in doImport() argument
160 doImportFromSim(activity, account, subscriptionId); in doImport()
162 doImportFromVcfFile(activity, account); in doImport()
166 public static void doImportFromSim(Context context, AccountWithDataSet account, in doImportFromSim() argument
170 if (account != null) { in doImportFromSim()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DNotificationUtils.java240 final Account account; in loadNotificationMap() local
243 account = Account.builder().buildFrom(accountCursor); in loadNotificationMap()
271 final NotificationKey key = new NotificationKey(account, folder); in loadNotificationMap()
291 key.account.uri.toString(), key.folder.folderUri.fullUri.toString(), in saveNotificationMap()
383 getNotificationId(notification.account.getAccountManagerAccount(), folder); in resendNotifications()
387 if (accountUri != null && !Objects.equal(accountUri, notification.account.uri) && in resendNotifications()
391 notification.account.uri, folder.folderUri, accountUri, folderUri); in resendNotifications()
396 notification.account.uri, folder.folderUri); in resendNotifications()
401 validateNotifications(context, folder, notification.account, true, in resendNotifications()
413 public static void validateAccountNotifications(Context context, Account account) { in validateAccountNotifications() argument
[all …]
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java153 Account account = Account.restoreAccountWithId(mContext, accountId); in createBaseAccountNotificationBuilder() local
154 setupSoundAndVibration(builder, account); in createBaseAccountNotificationBuilder()
322 NotificationCompat.Builder builder, Account account) { in setupSoundAndVibration() argument
328 "uiaccount", account.mId), UIProvider.ACCOUNTS_PROJECTION, null, null, null); in setupSoundAndVibration()
371 LogUtils.e(LOG_TAG, "Null uiAccount for account id %d", account.mId); in setupSoundAndVibration()
417 final Account account = Account.restoreAccountWithId(mContext, accountId); in showLoginFailedNotificationSynchronous() local
418 if (account == null) return; in showLoginFailedNotificationSynchronous()
432 mContext.getString(R.string.login_failed_ticker, account.mDisplayName), in showLoginFailedNotificationSynchronous()
434 account.getDisplayName(), in showLoginFailedNotificationSynchronous()
455 final Account account = Account.restoreAccountWithId(mContext, accountId); in showPasswordExpiringNotificationSynchronous() local
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java87 public static AccountSyncFragment newInstance(Account account) { in newInstance() argument
89 prepareArgs(b, account); in newInstance()
95 public static void prepareArgs(Bundle b, Account account) { in prepareArgs() argument
96 b.putParcelable(ARG_ACCOUNT, account); in prepareArgs()
156 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
159 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
162 boolean oldSyncState = ContentResolver.getSyncAutomaticallyAsUser(account, in onPreferenceTreeClick()
166 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
171 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
228 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DCustomContactListFilterActivity.java62 import com.android.contacts.model.account.AccountInfo;
63 import com.android.contacts.model.account.AccountWithDataSet;
64 import com.android.contacts.model.account.GoogleAccountType;
165 final AccountWithDataSet account = info.getAccount(); in createAccountSet() local
168 if (account.isNullAccount()) { in createAccountSet()
175 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name) in createAccountSet()
176 .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type); in createAccountSet()
177 if (account.dataSet != null) { in createAccountSet()
178 groupsUri.appendQueryParameter(Groups.DATA_SET, account.dataSet).build(); in createAccountSet()
199 GroupDelta.fromSettings(resolver, account.name, account.type, in createAccountSet()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DAccountsTestHelper.java31 import com.android.contacts.model.account.AccountWithDataSet;
62 public void addTestAccount(AccountWithDataSet account) { in addTestAccount() argument
63 Account newAccount = new Account(account.name, account.type); in addTestAccount()
75 final AccountWithDataSet account = new AccountWithDataSet(name, TEST_ACCOUNT_TYPE, null); in addTestAccount() local
76 addTestAccount(account); in addTestAccount()
77 return account; in addTestAccount()
89 public void removeTestAccount(AccountWithDataSet account) { in removeTestAccount() argument
90 final Account remove = account.getAccountOrNull(); in removeTestAccount()
106 public void removeContactsForAccount(AccountWithDataSet account) { in removeContactsForAccount() argument
109 new String[] { account.name, account.type }); in removeContactsForAccount()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DSendersFormattingTests.java50 final Account account = createAccount(); in testMeFromNullName() local
51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromNullName() local
62 final Account account = createAccount(); in testMeFromEmptyName() local
63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromEmptyName() local
75 final Account account = createAccount(); in testMeFromDuplicateEmptyNames() local
76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testMeFromDuplicateEmptyNames() local
90 final Account account = createAccount(); in testDuplicates() local
91 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); in testDuplicates() local
138 final Account account = createAccount(); in testSenderAvatarIsSenderOfFirstUnreadMessage() local
140 senderAvatarModel, account, false, false); in testSenderAvatarIsSenderOfFirstUnreadMessage() local
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DBaseWidgetProvider.java135 final Account account = Account.newInstance(intent.getStringExtra(Utils.EXTRA_ACCOUNT)); in onReceive() local
143 if (widgetId != -1 && account != null && folderUri != null) { in onReceive()
144 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities, in onReceive()
239 Account account = null; in doInBackground() local
241 account = getAccountObject(mContext, accountUri); in doInBackground()
243 if (Utils.isEmpty(folderUri) && account != null) { in doInBackground()
244 folderUri = account.settings.defaultInbox; in doInBackground()
265 updateWidgetInternal(mContext, mAppWidgetIds[i], account, in doInBackground()
280 Account account = null; in getAccountObject() local
287 account = Account.builder().buildFrom(accountCursor); in getAccountObject()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/
DSender.java40 public static Sender newInstance(Account account) throws MessagingException { in newInstance() argument
42 + account.mDisplayName); in newInstance()
45 private static Sender instantiateSender(Context context, String className, Account account) in instantiateSender() argument
53 o = m.invoke(null, account, context); in instantiateSender()
57 e.toString(), className, account.mDisplayName)); in instantiateSender()
58 throw new MessagingException("can not instantiate Sender for " + account.mDisplayName); in instantiateSender()
62 account.mDisplayName + ": " + className + " create incompatible object"); in instantiateSender()
70 private static Sender findSender(Context context, int resourceId, Account account) in findSender() argument
76 HostAuth sendAuth = account.getOrCreateHostAuthSend(context); in findSender()
86 sender = instantiateSender(context, className, account); in findSender()
[all …]
DStore.java65 static Store newInstance(Account account) throws MessagingException { in newInstance() argument
67 + account.mDisplayName); in newInstance()
84 public synchronized static Store getInstance(Account account, Context context) in getInstance() argument
90 HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getInstance()
93 if (!account.isTemporary()) { in getInstance()
96 store = createInstanceInternal(account, context, true); in getInstance()
99 store.mAccount = account; in getInstance()
103 return createInstanceInternal(account, context, false); in getInstance()
107 private synchronized static Store createInstanceInternal(final Account account, in createInstanceInternal() argument
111 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in createInstanceInternal()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java192 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount() local
194 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in getSubscriptionIdForPhoneAccount()
197 return tm.getSubIdForPhoneAccount(account); in getSubscriptionIdForPhoneAccount()
257 PhoneAccount account = getPhoneAccount(defaultPhoneAccountHandle.phoneAccountHandle, in getUserSelectedOutgoingPhoneAccount() local
260 if (account != null) { in getUserSelectedOutgoingPhoneAccount()
294 .filter(account -> groupId.equals(account.getGroupId()) && in getPhoneAccountByGroupId()
295 !account.getAccountHandle().equals(excludePhoneAccountHandle) && in getPhoneAccountByGroupId()
296 Objects.equals(account.getAccountHandle().getComponentName(), in getPhoneAccountByGroupId()
324 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount() local
325 if (account == null) { in setUserSelectedOutgoingPhoneAccount()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceStub.java102 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); in requestSync()
103 if (account == null) return; in requestSync()
105 EmailServiceUtils.getServiceInfoForAccount(mContext, account.mId); in requestSync()
106 final android.accounts.Account acct = new android.accounts.Account(account.mEmailAddress, in requestSync()
119 account.toString(), extras.toString()); in requestSync()
157 final Account account = Account.restoreAccountWithId(mContext, message.mAccountKey); in loadAttachment() local
180 if (account == null || mailbox == null) { in loadAttachment()
187 TrafficFlags.getAttachmentFlags(mContext, account)); in loadAttachment()
189 final Store remoteStore = Store.getInstance(account, mContext); in loadAttachment()
286 final Account account = Account.restoreAccountWithId(mContext, accountId); in updateFolderList() local
[all …]
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSettingsUtils.java58 public static void commitSettings(Context context, Account account) { in commitSettings() argument
59 if (!account.isSaved()) { in commitSettings()
60 account.save(context); in commitSettings()
62 if (account.mPolicy != null) { in commitSettings()
66 if (account.mPolicy.mProtocolPoliciesUnsupported != null) { in commitSettings()
68 + account.mPolicy.mProtocolPoliciesUnsupported); in commitSettings()
69 account.mPolicy.mProtocolPoliciesUnsupported = null; in commitSettings()
72 account.getId(), in commitSettings()
73 account.mPolicy, in commitSettings()
74 account.mSecuritySyncKey == null ? "" : account.mSecuritySyncKey, in commitSettings()
[all …]
DAccountSecurity.java244 public void onLoadFinished(final Loader<Account> loader, final Account account) { in onLoadFinished() argument
253 if (account == null || (account.mPolicyKey != 0 && account.mPolicy == null)) { in onLoadFinished()
263 activity.completeCreate(account, apLoader.mShowDialog, in onLoadFinished()
295 final Account account = Account.restoreAccountWithId(mContext, mAccountId); in loadInBackground() local
296 if (account == null) { in loadInBackground()
300 final long policyId = account.mPolicyKey; in loadInBackground()
302 account.mPolicy = Policy.restorePolicyWithId(mContext, policyId); in loadInBackground()
305 account.getOrCreateHostAuthRecv(mContext); in loadInBackground()
307 return account; in loadInBackground()
314 protected void completeCreate(final Account account, final boolean showDialog, in completeCreate() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountDisplayInfoFactory.java16 package com.android.contacts.model.account;
62 public AccountDisplayInfo getAccountDisplayInfo(AccountWithDataSet account) { in getAccountDisplayInfo() argument
63 final AccountType type = mAccountTypeManager.getAccountTypeForAccount(account); in getAccountDisplayInfo()
64 final CharSequence name = shouldUseTypeLabelForName(account) in getAccountDisplayInfo()
66 : account.name; in getAccountDisplayInfo()
67 return new AccountDisplayInfo(account, name, type.getDisplayLabel(mContext), in getAccountDisplayInfo()
78 final AccountWithDataSet account = new AccountWithDataSet(delta.getAccountName(), in getAccountDisplayInfoFor() local
80 return getAccountDisplayInfo(account); in getAccountDisplayInfoFor()
92 private boolean shouldUseTypeLabelForName(AccountWithDataSet account) { in shouldUseTypeLabelForName() argument
93 final int type = mDeviceAccountTypeFactory.classifyAccount(account.type); in shouldUseTypeLabelForName()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/internet/
DAuthenticationCache.java62 public String retrieveAccessToken(Context context, Account account) throws in retrieveAccessToken() argument
69 entry = getEntry(context, account); in retrieveAccessToken()
83 public String refreshAccessToken(Context context, Account account) throws in refreshAccessToken() argument
85 CacheEntry entry = getEntry(context, account); in refreshAccessToken()
92 private CacheEntry getEntry(Context context, Account account) { in getEntry() argument
94 if (account.isSaved() && !account.isTemporary()) { in getEntry()
95 entry = mCache.get(account.mId); in getEntry()
98 final HostAuth hostAuth = account.getOrCreateHostAuthRecv(context); in getEntry()
100 entry = new CacheEntry(account.mId, credential.mProviderId, credential.mAccessToken, in getEntry()
102 mCache.put(account.mId, entry); in getEntry()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DEditorUiUtilsTest.java28 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;
79 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, in testGetProfileAccountInfo_NonLocalAccount() local
84 account); in testGetProfileAccountInfo_NonLocalAccount()
94 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, "Device", in testGetProfileAccountInfo_DeviceLocalAccount() local
98 account); in testGetProfileAccountInfo_DeviceLocalAccount()
106 final AccountDisplayInfo account = new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, in testGetAccountInfo_AccountType_NonGoogle() local
[all …]
/packages/apps/TV/src/com/android/tv/util/account/
DAccountHelperImpl.java17 package com.android.tv.util.account;
26 public class AccountHelperImpl implements com.android.tv.util.account.AccountHelper {
49 for (Account account : getEligibleAccounts()) { in getSelectedAccount()
50 if (account.name.equals(accountId)) { in getSelectedAccount()
51 mSelectedAccount = account; in getSelectedAccount()
76 Account account = getFirstEligibleAccount(); in selectFirstAccount() local
77 if (account != null) { in selectFirstAccount()
78 selectAccount(account); in selectFirstAccount()
80 return account; in selectFirstAccount()
96 private void selectAccount(Account account) { in selectAccount() argument
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java161 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument
165 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch()
169 item.setup(account, authority, packageName, uid); in addSyncStateSwitch()
256 final Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
260 boolean syncAutomatically = ContentResolver.getSyncAutomaticallyAsUser(account, in onPreferenceTreeClick()
269 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
282 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
287 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
365 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
369 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
[all …]

12345678910>>...18