/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | AccountDisplayInfoFactoryTests.java | 26 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/ |
D | SecurityPolicy.java | 459 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/ |
D | NotificationUtils.java | 240 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 …]
|
D | Utils.java | 476 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/Contacts/src/com/android/contacts/model/ |
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; 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/ |
D | AccountCreationFragment.java | 72 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 …]
|
D | AccountSetupFinal.java | 314 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 …]
|
D | AccountSetupIncomingFragment.java | 199 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/ |
D | EmailNotificationController.java | 153 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/util/ |
D | SyncUtil.java | 26 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 …]
|
D | AccountSelectionUtil.java | 37 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/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 62 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/ |
D | AccountSyncFragment.java | 80 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/UnifiedEmail/src/com/android/mail/widget/ |
D | BaseWidgetProvider.java | 131 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/Contacts/tests/src/com/android/contacts/tests/ |
D | AccountsTestHelper.java | 31 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/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 188 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount() local 190 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in getSubscriptionIdForPhoneAccount() 193 return tm.getSubIdForPhoneAccount(account); in getSubscriptionIdForPhoneAccount() 253 PhoneAccount account = getPhoneAccount(defaultPhoneAccountHandle.phoneAccountHandle, in getUserSelectedOutgoingPhoneAccount() local 256 if (account != null) { in getUserSelectedOutgoingPhoneAccount() 290 .filter(account -> groupId.equals(account.getGroupId()) && in getPhoneAccountByGroupId() 291 !account.getAccountHandle().equals(excludePhoneAccountHandle) && in getPhoneAccountByGroupId() 292 Objects.equals(account.getAccountHandle().getComponentName(), in getPhoneAccountByGroupId() 315 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount() local 316 if (account == null) { in setUserSelectedOutgoingPhoneAccount() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | SendersFormattingTests.java | 50 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/Email/provider_src/com/android/email/service/ |
D | EmailServiceStub.java | 102 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/ |
D | AccountSettingsUtils.java | 58 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 …]
|
D | AccountSecurity.java | 244 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/ |
D | Sender.java | 40 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 …]
|
D | Store.java | 65 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/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 373 public static void editDraft(Context launcher, Account account, Message message) { in editDraft() argument 374 launch(launcher, account, message, EDIT_DRAFT, null, null, null, null, in editDraft() 381 public static void compose(Context launcher, Account account) { in compose() argument 382 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */); in compose() 388 public static void composeToAddress(Context launcher, Account account, String toAddress) { in composeToAddress() argument 389 launch(launcher, account, null, COMPOSE, toAddress, null, null, null, in composeToAddress() 396 public static void composeWithExtraValues(Context launcher, Account account, in composeWithExtraValues() argument 398 launch(launcher, account, null, COMPOSE, null, null, null, subject, extraValues); in composeWithExtraValues() 404 public static Intent createReplyIntent(final Context launcher, final Account account, in createReplyIntent() argument 406 return createActionIntent(launcher, account, messageUri, isReplyAll ? REPLY_ALL : REPLY); in createReplyIntent() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 187 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/Contacts/tests/src/com/android/contacts/editor/ |
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; 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 …]
|