Home
last modified time | relevance | path

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

123

/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsUtils.java34 public static void commitSettings(Context context, EmailContent.Account account) { in commitSettings() argument
35 if (!account.isSaved()) { in commitSettings()
36 account.save(context); in commitSettings()
39 cv.put(AccountColumns.IS_DEFAULT, account.mIsDefault); in commitSettings()
40 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName()); in commitSettings()
41 cv.put(AccountColumns.SENDER_NAME, account.getSenderName()); in commitSettings()
42 cv.put(AccountColumns.SYNC_INTERVAL, account.mSyncInterval); in commitSettings()
43 cv.put(AccountColumns.RINGTONE_URI, account.mRingtoneUri); in commitSettings()
44 cv.put(AccountColumns.FLAGS, account.mFlags); in commitSettings()
45 cv.put(AccountColumns.SYNC_LOOKBACK, account.mSyncLookback); in commitSettings()
[all …]
/packages/providers/GoogleContactsProvider/src/com/android/providers/contacts/
DGoogleContactsProvider.java94 protected void onLocalChangesForAccount(final ContentResolver resolver, Account account, in onLocalChangesForAccount() argument
96 ContactsSyncAdapter.updateSubscribedFeeds(resolver, account); in onLocalChangesForAccount()
98 schedulePurge(account); in onLocalChangesForAccount()
106 private void schedulePurge(Account account) { in schedulePurge() argument
112 intent.putExtra("account", account); in schedulePurge()
132 private void purgeContacts(Account account) { in purgeContacts() argument
144 db.execSQL(PURGE_UNSYNCED_CONTACTS_SQL, new String[]{account.name, account.type}); in purgeContacts()
149 feedsToSync.add(ContactsSyncAdapter.getGroupsFeedForAccount(account)); in purgeContacts()
150 ContactsSyncAdapter.addContactsFeedsToSync(getContext().getContentResolver(), account, in purgeContacts() local
152 AbstractGDataSyncAdapter.GDataSyncData syncData = readSyncData(account); in purgeContacts()
[all …]
DContactsSyncAdapter.java224 protected String getFeedUrl(Account account) { in getFeedUrl() argument
284 public static void addContactsFeedsToSync(ContentResolver cr, Account account, in addContactsFeedsToSync() argument
286 boolean shouldSyncEverything = getShouldSyncEverything(cr, account); in addContactsFeedsToSync()
288 feedsToSync.add(getContactsFeedForAccount(account)); in addContactsFeedsToSync()
294 new String[]{account.name, account.type}, null); in addContactsFeedsToSync()
297 feedsToSync.add(getContactsFeedForGroup(account, cursor.getString(0))); in addContactsFeedsToSync()
304 private static boolean getShouldSyncEverything(ContentResolver cr, Account account) { in getShouldSyncEverything() argument
313 final Account account = getAccount(); in getServerPhotos() local
319 new String[]{account.name, account.type}, null); in getServerPhotos()
431 final Account account = getAccount();
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountSelectionUtil.java108 final Account account = this.getItem(position); in getSelectAccountDialog()
110 sources.getInflatedSource(account.type, in getSelectAccountDialog()
114 text1.setText(account.name); in getSelectAccountDialog()
130 public static void doImport(Context context, int resId, Account account) { in doImport() argument
133 doImportFromSim(context, account); in doImport()
137 doImportFromSdCard(context, account); in doImport()
143 public static void doImportFromSim(Context context, Account account) { in doImportFromSim() argument
144 if (account != null) { in doImportFromSim()
145 GoogleSource.createMyContactsIfNotExist(account, context); in doImportFromSim()
150 if (account != null) { in doImportFromSim()
[all …]
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DAccountSetupAccountTypeUnitTests.java64 for (Account account : mAccounts) { in tearDown()
65 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); in tearDown()
112 Account account = new Account(); in createTestAccount() local
113 account.setStoreUri(mContext, scheme + "://user:pass@server.com:123"); in createTestAccount()
114 account.save(mContext); in createTestAccount()
115 mAccounts.add(account); in createTestAccount()
116 return account; in createTestAccount()
122 private Intent getTestIntent(EmailContent.Account account) { in getTestIntent() argument
124 i.putExtra(EXTRA_ACCOUNT, account); in getTestIntent()
DAccountSetupOptionsTests.java118 EmailContent.Account account = new EmailContent.Account(); in getTestIntent() local
119 account.setSenderName(name); in getTestIntent()
120 account.setStoreUri(getInstrumentation().getTargetContext(), storeUri); in getTestIntent()
122 i.putExtra(EXTRA_ACCOUNT, account); in getTestIntent()
DAccountSetupIncomingTests.java147 EmailContent.Account account = new EmailContent.Account(); in getTestIntent() local
148 account.setStoreUri(getInstrumentation().getTargetContext(), storeUriString); in getTestIntent()
150 i.putExtra(EXTRA_ACCOUNT, account); in getTestIntent()
DAccountSetupExchangeTests.java135 EmailContent.Account account = new EmailContent.Account(); in getTestIntent() local
136 account.setStoreUri(getInstrumentation().getTargetContext(), storeUriString); in getTestIntent()
138 i.putExtra(EXTRA_ACCOUNT, account); in getTestIntent()
DAccountSetupOutgoingTests.java141 EmailContent.Account account = new EmailContent.Account(); in getTestIntent() local
142 account.setSenderUri(this.getInstrumentation().getTargetContext(), senderUriString); in getTestIntent()
144 i.putExtra("account", account); // AccountSetupNames.EXTRA_ACCOUNT == "account" in getTestIntent()
/packages/apps/Email/src/com/android/email/
DMessagingController.java267 final EmailContent.Account account = in listFolders() local
269 if (account == null) { in listFolders()
280 Store store = Store.getInstance(account.getStoreUri(mContext), mContext, null); in listFolders()
296 new String[] { String.valueOf(account.mId) }, in listFolders()
343 box.mAccountKey = account.mId; in listFolders()
344 box.mType = inferMailboxTypeFromName(account, remoteNameToAdd); in listFolders()
374 public int inferMailboxTypeFromName(EmailContent.Account account, String mailboxName) { in inferMailboxTypeFromName() argument
392 public void synchronizeMailbox(final EmailContent.Account account, in synchronizeMailbox() argument
400 mListeners.synchronizeMailboxStarted(account.mId, folder.mId); in synchronizeMailbox()
403 synchronizeMailboxSynchronous(account, folder); in synchronizeMailbox()
[all …]
DController.java235 Account account = in updateMailbox() local
239 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener); in updateMailbox()
406 final EmailContent.Account account = in sendMessage() local
412 mLegacyController.sendPendingMessages(account, sentboxId, mLegacyListener); in sendMessage()
445 final EmailContent.Account account = in sendPendingMessages() local
451 mLegacyController.sendPendingMessages(account, sentboxId, mLegacyListener); in sendPendingMessages()
476 Account account = Account.restoreAccountWithId(mProviderContext, accountId); in resetVisibleLimits() local
477 if (account != null) { in resetVisibleLimits()
479 account.getStoreUri(mProviderContext), mContext); in resetVisibleLimits()
512 Account account = Account.restoreAccountWithId(mProviderContext, in loadMoreMessages() local
[all …]
DPreferences.java110 for (Account account : accounts) { in getDefaultAccount()
111 if (account.getUuid().equals(defaultAccountUuid)) { in getDefaultAccount()
112 defaultAccount = account; in getDefaultAccount()
128 public void setDefaultAccount(Account account) { in setDefaultAccount() argument
129 mSharedPreferences.edit().putString(DEFAULT_ACCOUNT_UUID, account.getUuid()).commit(); in setDefaultAccount()
/packages/apps/Contacts/src/com/android/contacts/ui/
DDisplayGroupsActivity.java159 for (Account account : sources.getAccounts(false)) { in doInBackground()
160 accounts.add(new AccountDisplay(resolver, account.name, account.type)); in doInBackground()
347 for (AccountDisplay account : this) { in buildDiff()
348 account.buildDiff(diff); in buildDiff()
507 final AccountDisplay account = mAccounts.get(groupPosition); in getChildView() local
547 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition); in getGroupView() local
549 final ContactsSource source = mSources.getInflatedSource(account.mType, in getGroupView()
552 text1.setText(account.mName); in getGroupView()
554 text2.setVisibility(account.mName == null ? View.GONE : View.VISIBLE); in getGroupView()
561 final AccountDisplay account = mAccounts.get(groupPosition); in getChild() local
[all …]
/packages/providers/GoogleSubscribedFeedsProvider/src/com/android/settings/
DAccountSyncSettings.java183 private void addSyncStateCheckBox(Account account, String authority) { in addSyncStateCheckBox() argument
185 new SyncStateCheckBoxPreference(this, account, authority); in addSyncStateCheckBox()
238 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local
239 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority); in onPreferenceTreeClick()
242 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
251 ContentResolver.setSyncAutomatically(account, authority, syncOn); in onPreferenceTreeClick()
256 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
296 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
300 ContentResolver.requestSync(account, authority, extras); in requestOrCancelSync()
302 ContentResolver.cancelSync(account, authority); in requestOrCancelSync()
[all …]
DManageAccountsSettings.java184 Account account = accountPref.getAccount();
188 SyncStatusInfo status = ContentResolver.getSyncStatus(account, authority);
189 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority)
192 boolean authorityIsPending = ContentResolver.isSyncPending(account, authority);
195 && activeSyncValues.account.equals(account);
224 final Account account = accounts[i];
225 final ArrayList<String> auths = getAuthoritiesForAccountType(account.type);
239 Drawable icon = getDrawableForType(account.type);
240 AccountPreference preference = new AccountPreference(this, account, icon, auths);
/packages/apps/Email/src/com/android/email/service/
DEasAuthenticatorService.java59 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() local
62 account, options.getString(OPTIONS_PASSWORD), null); in addAccount()
71 ContentResolver.setIsSyncable(account, in addAccount()
73 ContentResolver.setSyncAutomatically(account, in addAccount()
97 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument
109 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument
121 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument
127 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
/packages/apps/Email/tests/src/com/android/email/provider/
DProviderTestUtils.java41 Account account = new Account(); in setupAccount() local
43 account.mDisplayName = name; in setupAccount()
44 account.mEmailAddress = name + "@android.com"; in setupAccount()
45 account.mSyncKey = "sync-key-" + name; in setupAccount()
46 account.mSyncLookback = 1; in setupAccount()
47 account.mSyncInterval = EmailContent.Account.CHECK_INTERVAL_NEVER; in setupAccount()
48 account.mHostAuthKeyRecv = 0; in setupAccount()
49 account.mHostAuthKeySend = 0; in setupAccount()
50 account.mFlags = 4; in setupAccount()
51 account.mIsDefault = true; in setupAccount()
[all …]
/packages/apps/Email/src/com/android/exchange/
DContactsSyncAdapterService.java62 public void onPerformSync(Account account, Bundle extras, in onPerformSync() argument
65 ContactsSyncAdapterService.performSync(mContext, account, extras, in onPerformSync()
93 private static void performSync(Context context, Account account, Bundle extras, in performSync() argument
100 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) in performSync()
118 AccountColumns.EMAIL_ADDRESS + "=?", new String[] {account.name}, null); in performSync()
127 Log.i(TAG, "Contact sync requested for " + account.name); in performSync()
DSyncManager.java375 for (Account account: this) { in contains()
376 if (account.mId == id) { in contains()
384 for (Account account: this) { in getById()
385 if (account.mId == id) { in getById()
386 return account; in getById()
412 for (Account account: mAccounts) { in AccountObserver()
413 int cnt = Mailbox.count(context, Mailbox.CONTENT_URI, "accountKey=" + account.mId, in AccountObserver()
416 addAccountMailbox(account.mId); in AccountObserver()
430 for (Account account: mAccounts) { in getSyncableEasMailboxWhere()
436 sb.append(account.mId); in getSyncableEasMailboxWhere()
[all …]
/packages/apps/Email/src/com/android/email/activity/
DAccountShortcutPicker.java95 Account account = new Account().restore(cursor); in onItemClick() local
96 setupShortcut(account); in onItemClick()
157 private void setupShortcut(Account account) { in setupShortcut() argument
161 account.mId, Mailbox.TYPE_INBOX); in setupShortcut()
167 intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, account.getDisplayName()); in setupShortcut()
/packages/apps/Email/tests/src/com/android/email/activity/
DMessageComposeInstrumentationTests.java122 Account account = new Account(); in setUp() local
123 account.mSenderName = "Bob Sender"; in setUp()
124 account.mEmailAddress = "bob@sender.com"; in setUp()
125 account.save(context); in setUp()
126 accountId = account.mId; in setUp()
412 final Account account = new Account(); in testReplyAddresses() local
418 account.mEmailAddress = "FiRsT.tO@gOoGlE.cOm"; in testReplyAddresses()
423 a.setupAddressViews(message, account, mToView, mCcView, false); in testReplyAddresses()
446 final Account account = new Account(); in testReplyAllAddresses1() local
452 account.mEmailAddress = "FiRsT.tO@gOoGlE.cOm"; in testReplyAllAddresses1()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarSyncAdapter.java587 final Account account = getAccount(); in handleAllDeletedUnavailable() local
592 new String[]{account.name, account.type, feed}); in handleAllDeletedUnavailable()
597 public void onSyncStarting(SyncContext context, Account account, boolean manualSync, in onSyncStarting() argument
602 super.onSyncStarting(context, account, manualSync, result); in onSyncStarting()
605 public boolean getIsSyncable(Account account) in getIsSyncable() argument
609 return accounts.length > 0 && accounts[0].equals(account) && super.getIsSyncable(account); in getIsSyncable()
676 final Account account = getAccount(); in entryToContentValues() local
680 map.put(Events._SYNC_VERSION, rewriteUrlforAccount(account, version)); in entryToContentValues()
893 map.put(SyncConstValue._SYNC_ACCOUNT, account.name); in entryToContentValues()
894 map.put(SyncConstValue._SYNC_ACCOUNT_TYPE, account.type); in entryToContentValues()
[all …]
/packages/apps/Email/docs/
DTESTS12 Check delete functionality on POP and IMAP account.
16 Check save draft functionality on POP and IMAP account.
20 Check sent message functionality on POP and IMAP account.
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java118 protected Uri maybeAddAccountQueryParameters(Uri uri, Account account) { in maybeAddAccountQueryParameters() argument
119 if (account == null) { in maybeAddAccountQueryParameters()
123 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) in maybeAddAccountQueryParameters()
124 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type) in maybeAddAccountQueryParameters()
142 protected long createRawContact(Account account, String... extras) { in createRawContact() argument
148 final Uri uri = maybeAddAccountQueryParameters(RawContacts.CONTENT_URI, account); in createRawContact()
153 protected long createGroup(Account account, String sourceId, String title) { in createGroup() argument
154 return createGroup(account, sourceId, title, 1); in createGroup()
157 protected long createGroup(Account account, String sourceId, String title, int visible) { in createGroup() argument
162 final Uri uri = maybeAddAccountQueryParameters(Groups.CONTENT_URI, account); in createGroup()
[all …]
/packages/apps/Email/tests/src/com/android/exchange/
DEasEmailSyncAdapterTests.java44 Account account = new Account(); in getTestService() local
45 account.mId = -1; in getTestService()
51 service.mAccount = account; in getTestService()

123