Home
last modified time | relevance | path

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

12345678910>>...16

/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/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.java476 Conversation conversation, final Uri folderUri, Account account) { in createViewConversationIntent() argument
484 intent.setDataAndType(uniqueUri, account.mimeType); in createViewConversationIntent()
485 intent.putExtra(Utils.EXTRA_ACCOUNT, account.serialize()); in createViewConversationIntent()
499 Account account) { in createViewFolderIntent() argument
500 if (folderUri == null || account == null) { in createViewFolderIntent()
502 account); in createViewFolderIntent()
508 intent.setDataAndType(appendVersionQueryParameter(context, folderUri), account.mimeType); in createViewFolderIntent()
509 intent.putExtra(Utils.EXTRA_ACCOUNT, account.serialize()); in createViewFolderIntent()
520 public static Intent createViewInboxIntent(Account account) { in createViewInboxIntent() argument
521 if (account == null) { in createViewInboxIntent()
[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 …]
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/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/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/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/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
169 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name) in createAccountSet()
170 .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type); in createAccountSet()
171 if (account.dataSet != null) { in createAccountSet()
172 groupsUri.appendQueryParameter(Groups.DATA_SET, account.dataSet).build(); in createAccountSet()
192 GroupDelta.fromSettings(resolver, account.name, account.type, in createAccountSet()
193 account.dataSet, hasGroups); in createAccountSet()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java80 public static AccountSyncFragment newInstance(Account account) { in newInstance() argument
82 prepareArgs(b, account); in newInstance()
88 public static void prepareArgs(Bundle b, Account account) { in prepareArgs() argument
89 b.putParcelable(ARG_ACCOUNT, account); in prepareArgs()
149 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
152 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
155 boolean oldSyncState = ContentResolver.getSyncAutomaticallyAsUser(account, in onPreferenceTreeClick()
159 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
164 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
221 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
[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/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/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/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java189 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount() local
191 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in getSubscriptionIdForPhoneAccount()
194 return tm.getSubIdForPhoneAccount(account); in getSubscriptionIdForPhoneAccount()
254 PhoneAccount account = getPhoneAccount(defaultPhoneAccountHandle.phoneAccountHandle, in getUserSelectedOutgoingPhoneAccount() local
257 if (account != null) { in getUserSelectedOutgoingPhoneAccount()
291 .filter(account -> groupId.equals(account.getGroupId()) && in getPhoneAccountByGroupId()
292 !account.getAccountHandle().equals(excludePhoneAccountHandle) && in getPhoneAccountByGroupId()
293 Objects.equals(account.getAccountHandle().getComponentName(), in getPhoneAccountByGroupId()
316 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount() local
317 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/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/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java187 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument
191 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch()
195 item.setup(account, authority, packageName, uid); in addSyncStateSwitch()
280 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
284 boolean syncAutomatically = ContentResolver.getSyncAutomaticallyAsUser(account, in onPreferenceTreeClick()
293 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
306 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
311 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
389 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
393 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DComposeActivity.java374 public static void editDraft(Context launcher, Account account, Message message) { in editDraft() argument
375 launch(launcher, account, message, EDIT_DRAFT, null, null, null, null, in editDraft()
382 public static void compose(Context launcher, Account account) { in compose() argument
383 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */); in compose()
389 public static void composeToAddress(Context launcher, Account account, String toAddress) { in composeToAddress() argument
390 launch(launcher, account, null, COMPOSE, toAddress, null, null, null, in composeToAddress()
397 public static void composeWithExtraValues(Context launcher, Account account, in composeWithExtraValues() argument
399 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues); in composeWithExtraValues()
405 public static Intent createReplyIntent(final Context launcher, final Account account, in createReplyIntent() argument
407 return createActionIntent(launcher, account, messageUri, isReplyAll ? REPLY_ALL : REPLY); in createReplyIntent()
[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 …]

12345678910>>...16