Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
DUtils.java471 Conversation conversation, final Uri folderUri, Account account) { in createViewConversationIntent() argument
479 intent.setDataAndType(uniqueUri, account.mimeType); in createViewConversationIntent()
480 intent.putExtra(Utils.EXTRA_ACCOUNT, account.serialize()); in createViewConversationIntent()
494 Account account) { in createViewFolderIntent() argument
495 if (folderUri == null || account == null) { in createViewFolderIntent()
497 account); in createViewFolderIntent()
503 intent.setDataAndType(appendVersionQueryParameter(context, folderUri), account.mimeType); in createViewFolderIntent()
504 intent.putExtra(Utils.EXTRA_ACCOUNT, account.serialize()); in createViewFolderIntent()
515 public static Intent createViewInboxIntent(Account account) { in createViewInboxIntent() argument
516 if (account == null) { in createViewInboxIntent()
[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/ContactsCommon/src/com/android/contacts/common/list/
DCustomContactListFilterActivity.java59 import com.android.contacts.common.model.account.AccountType;
60 import com.android.contacts.common.model.account.AccountWithDataSet;
61 import com.android.contacts.common.model.account.GoogleAccountType;
131 for (AccountWithDataSet account : accountTypes.getAccounts(false)) { in loadInBackground()
132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account); in loadInBackground()
133 if (accountType.isExtension() && !account.hasData(context)) { in loadInBackground()
139 new AccountDisplay(resolver, account.name, account.type, account.dataSet); in loadInBackground()
142 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name) in loadInBackground()
143 .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type); in loadInBackground()
144 if (account.dataSet != null) { in loadInBackground()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
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 …]
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 …]
DAccountSetupIncomingFragment.java199 final Account account = mSetupData.getAccount(); in onActivityCreated() local
200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in onActivityCreated()
324 final Account account = mSetupData.getAccount(); in configureEditor() local
325 if (account == null || account.mHostAuthRecv == null) { in configureEditor()
328 account == null, account == null || account.mHostAuthRecv == null); in configureEditor()
331 mBaseScheme = account.mHostAuthRecv.mProtocol; in configureEditor()
351 final Account account = mSetupData.getAccount(); in loadSettings()
352 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); in loadSettings()
381 mLoadedDeletePolicy = account.getDeletePolicy(); in loadSettings()
509 final Account account = setupData.getAccount(); in saveSettingsAfterEdit() local
[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/
DAccountSyncSettings.java98 for (Account account : mAccountManager.getAccounts()) { in onCreate()
99 if (account.name.equals(accountName)) { in onCreate()
100 mAccount = account; in onCreate()
150 Account account = action.getIntent().getParcelableExtra(EXTRA_ACCOUNT); in onActionClicked() local
152 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority); in onActionClicked()
154 requestOrCancelSync(account, authority, true); in onActionClicked()
160 ContentResolver.setSyncAutomatically(account, authority, syncOn); in onActionClicked()
165 requestOrCancelSync(account, authority, syncOn); in onActionClicked()
230 final Account account = accounts[i]; in getActions() local
232 Log.d(TAG, "looking for sync adapters that match account " + account); in getActions()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java171 PhoneAccount account = getPhoneAccountCheckCallingUser(accountHandle); in getSubscriptionIdForPhoneAccount() local
173 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in getSubscriptionIdForPhoneAccount()
176 return tm.getSubIdForPhoneAccount(account); in getSubscriptionIdForPhoneAccount()
220 PhoneAccount account = getPhoneAccountCheckCallingUser(mState.defaultOutgoing); in getUserSelectedOutgoingPhoneAccount() local
221 if (account != null) { in getUserSelectedOutgoingPhoneAccount()
237 PhoneAccount account = getPhoneAccount(accountHandle); in setUserSelectedOutgoingPhoneAccount() local
238 if (account == null) { in setUserSelectedOutgoingPhoneAccount()
244 if (!account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)) { in setUserSelectedOutgoingPhoneAccount()
250 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in setUserSelectedOutgoingPhoneAccount()
376 PhoneAccount account = getPhoneAccount(accountHandle); in enablePhoneAccount() local
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DBaseWidgetProvider.java131 final Account account = Account.newInstance(intent.getStringExtra(Utils.EXTRA_ACCOUNT)); in onReceive() local
139 if (widgetId != -1 && account != null && folderUri != null) { in onReceive()
140 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities, in onReceive()
233 Account account = null; in doInBackground() local
235 account = getAccountObject(mContext, accountUri); in doInBackground()
237 if (Utils.isEmpty(folderUri) && account != null) { in doInBackground()
238 folderUri = account.settings.defaultInbox; in doInBackground()
259 updateWidgetInternal(mContext, mAppWidgetIds[i], account, in doInBackground()
274 Account account = null; in getAccountObject() local
281 account = Account.builder().buildFrom(accountCursor); in getAccountObject()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java372 public static void editDraft(Context launcher, Account account, Message message) { in editDraft() argument
373 launch(launcher, account, message, EDIT_DRAFT, null, null, null, null, in editDraft()
380 public static void compose(Context launcher, Account account) { in compose() argument
381 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */); in compose()
387 public static void composeToAddress(Context launcher, Account account, String toAddress) { in composeToAddress() argument
388 launch(launcher, account, null, COMPOSE, toAddress, null, null, null, in composeToAddress()
395 public static void composeWithExtraValues(Context launcher, Account account, in composeWithExtraValues() argument
397 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues); in composeWithExtraValues()
403 public static Intent createReplyIntent(final Context launcher, final Account account, in createReplyIntent() argument
405 return createActionIntent(launcher, account, messageUri, isReplyAll ? REPLY_ALL : REPLY); in createReplyIntent()
[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/ContactsCommon/src/com/android/contacts/common/util/
DAccountSelectionUtil.java35 import com.android.contacts.common.model.account.AccountType;
36 import com.android.contacts.common.model.account.AccountWithDataSet;
131 final AccountWithDataSet account = this.getItem(position); in getSelectAccountDialog()
133 account.type, account.dataSet); in getSelectAccountDialog()
136 text1.setText(account.name); in getSelectAccountDialog()
162 public static void doImport(Context context, int resId, AccountWithDataSet account, in doImport() argument
166 doImportFromSim(context, account, subscriptionId); in doImport()
170 doImportFromVcfFile(context, account); in doImport()
176 public static void doImportFromSim(Context context, AccountWithDataSet account, in doImportFromSim() argument
180 if (account != null) { in doImportFromSim()
[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 …]
DImapService.java165 final Account account, final Mailbox folder, final boolean loadMore, in synchronizeMailboxSynchronous() argument
167 TrafficStats.setThreadStatsTag(TrafficFlags.getSyncFlags(context, account)); in synchronizeMailboxSynchronous()
172 remoteStore = Store.getInstance(account, context); in synchronizeMailboxSynchronous()
173 processPendingActionsSynchronous(context, account, remoteStore, uiRefresh); in synchronizeMailboxSynchronous()
174 synchronizeMailboxGeneric(context, account, remoteStore, folder, loadMore, uiRefresh); in synchronizeMailboxSynchronous()
176 nc.cancelLoginFailedNotification(account.mId); in synchronizeMailboxSynchronous()
183 nc.showLoginFailedNotificationSynchronous(account.mId, true /* incoming */); in synchronizeMailboxSynchronous()
254 static void loadUnsyncedMessages(final Context context, final Account account, in loadUnsyncedMessages() argument
276 Utilities.copyOneMessageToProvider(context, message, account, toMailbox, in loadUnsyncedMessages()
281 public static void downloadFlagAndEnvelope(final Context context, final Account account, in downloadFlagAndEnvelope() argument
[all …]
/packages/apps/Email/provider_src/com/android/email/activity/setup/
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 …]
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 …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java233 private void addSyncStateSwitch(Account account, String authority) { in addSyncStateSwitch() argument
235 new SyncStateSwitchPreference(getActivity(), account, authority); in addSyncStateSwitch()
309 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
311 boolean syncAutomatically = ContentResolver.getSyncAutomaticallyAsUser(account, in onPreferenceTreeClick()
314 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
320 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
325 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
373 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
377 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
380 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
[all …]
DManageAccountsSettings.java218 Account account = ((AccountPreference) pref).getAccount(); in requestOrCancelSyncForAccounts() local
223 && ContentResolver.getSyncAutomaticallyAsUser(account, sa.authority, in requestOrCancelSyncForAccounts()
226 ContentResolver.requestSyncAsUser(account, sa.authority, userId, in requestOrCancelSyncForAccounts()
229 ContentResolver.cancelSyncAsUser(account, sa.authority, userId); in requestOrCancelSyncForAccounts()
279 Account account = accountPref.getAccount(); in showSyncState() local
287 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, in showSyncState()
289 boolean syncEnabled = isSyncEnabled(userId, account, authority); in showSyncState()
290 boolean authorityIsPending = ContentResolver.isSyncPending(account, authority); in showSyncState()
291 boolean activelySyncing = isSyncing(currentSyncs, account, authority); in showSyncState()
309 Log.v(TAG, "no syncadapters found for " + account); in showSyncState()
[all …]
/packages/apps/Dialer/src/com/android/dialer/calllog/
DPhoneAccountUtils.java43 PhoneAccount account = telecomManager.getPhoneAccount(accountHandle); in getSubscriptionPhoneAccounts() local
44 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in getSubscriptionPhoneAccounts()
66 PhoneAccount account = getAccountOrNull(context, accountHandle); in getAccountLabel() local
67 if (account != null && account.getLabel() != null) { in getAccountLabel()
68 return account.getLabel().toString(); in getAccountLabel()
79 final PhoneAccount account = telecomManager.getPhoneAccount(accountHandle); in getAccountColor() local
83 return account == null ? PhoneAccount.NO_HIGHLIGHT_COLOR : account.getHighlightColor(); in getAccountColor()
95 final PhoneAccount account = telecomManager.getPhoneAccount(accountHandle); in getAccountSupportsCallSubject() local
97 return account == null ? false : in getAccountSupportsCallSubject()
98 account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT); in getAccountSupportsCallSubject()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/
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 …]
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 …]
/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/Email/tests/src/com/android/email/provider/
DProviderTests.java230 Account account = ProviderTestUtils.setupAccount("account-hostauth", false, mMockContext); in testAccountGetHostAuthSend() local
231 account.mHostAuthSend = in testAccountGetHostAuthSend()
233 account.save(mMockContext); in testAccountGetHostAuthSend()
237 authTest = account.mHostAuthSend; in testAccountGetHostAuthSend()
239 assertTrue(account.mHostAuthKeySend != 0); in testAccountGetHostAuthSend()
242 authGet = account.getOrCreateHostAuthSend(mMockContext); in testAccountGetHostAuthSend()
246 authTest = HostAuth.restoreHostAuthWithId(mMockContext, account.mHostAuthKeySend); in testAccountGetHostAuthSend()
247 account.mHostAuthSend = null; in testAccountGetHostAuthSend()
248 authGet = account.getOrCreateHostAuthSend(mMockContext); in testAccountGetHostAuthSend()
250 assertNotNull(account.mHostAuthSend); in testAccountGetHostAuthSend()
[all …]

12345678910>>...13