/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountSelectionUtil.java | 120 final Account account = this.getItem(position); in getSelectAccountDialog() 122 sources.getInflatedSource(account.type, in getSelectAccountDialog() 126 text1.setText(account.name); in getSelectAccountDialog() 152 public static void doImport(Context context, int resId, Account account) { in doImport() argument 155 doImportFromSim(context, account); in doImport() 159 doImportFromSdCard(context, account); in doImport() 165 public static void doImportFromSim(Context context, Account account) { in doImportFromSim() argument 166 if (account != null) { in doImportFromSim() 167 GoogleSource.createMyContactsIfNotExist(account, context); in doImportFromSim() 172 if (account != null) { in doImportFromSim() [all …]
|
/packages/apps/Email/tests/src/com/android/exchange/ |
D | CalendarSyncEnablerTest.java | 55 for (Account account : AccountManager.get(getContext()).getAccounts()) { in setUp() 56 origCalendarSyncStates.put(account, in setUp() 57 ContentResolver.getSyncAutomatically(account, Calendar.AUTHORITY)); in setUp() 71 for (Account account : getExchangeAccounts()) { in tearDown() 72 Boolean state = origCalendarSyncStates.get(account); in tearDown() 75 ContentResolver.setSyncAutomatically(account, Calendar.AUTHORITY, state); in tearDown() 128 for (Account account : baseAccounts) { in checkNotificationEmailAddresses() 129 expected.add(account.name); in checkNotificationEmailAddresses() 154 for (Account account : AccountManager.get(getContext()).getAccounts()) { in verifyCalendarSyncState() 155 String message = "account=" + account.name + "(" + account.type + ")"; in verifyCalendarSyncState() [all …]
|
/packages/apps/Gallery3D/src/com/cooliris/picasa/ |
D | PicasaService.java | 60 for (Account account : accounts) { in requestSync() 61 ContentResolver.requestSync(account, PicasaContentProvider.AUTHORITY, extras); in requestSync() 106 …public static boolean performSync(Context context, Account account, Bundle extras, SyncResult sync… in performSync() argument 113 performSyncImpl(context, account, extras, syncResult); in performSync() 137 …private static void performSyncImpl(Context context, Account account, Bundle extras, SyncResult sy… in performSyncImpl() argument 141 if (account != null && ContentResolver.getIsSyncable(account, authority) < 0) { in performSyncImpl() 143 … ContentResolver.setIsSyncable(account, authority, getIsSyncable(context, account) ? 1 : 0); in performSyncImpl() 153 if (account != null && ContentResolver.getIsSyncable(account, authority) < 0) { in performSyncImpl() 169 provider.setActiveSyncAccount(account); in performSyncImpl() 187 …private static boolean getIsSyncable(Context context, Account account) throws IOException, Operati… in getIsSyncable() argument [all …]
|
D | PicasaContentProvider.java | 149 public void setActiveSyncAccount(Account account) { in setActiveSyncAccount() argument 150 mActiveAccount = account; in setActiveSyncAccount() 172 if (!ContentResolver.getSyncAutomatically(context.accounts[i].account, AUTHORITY)) in syncUsersAndAlbums() 178 syncUserPhotos(context, users[i].account, syncResult); in syncUsersAndAlbums() 212 PicasaApi.AuthAccount account = accounts[i]; in isSyncEnabled() local 213 if (account.user.equals(accountName)) { in isSyncEnabled() 214 return ContentResolver.getSyncAutomatically(account.account, AUTHORITY); in isSyncEnabled() 241 if (accounts[i].user.equals(entry.account)) { in syncUsers() 247 Log.e(TAG, "Deleting user " + entry.account); in syncUsers() 249 deleteUser(db, entry.account); in syncUsers() [all …]
|
D | PicasaSyncAdapter.java | 44 …public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient … in onPerformSync() argument 55 if (account.equals(picasaAccount)) { in onPerformSync() 61 ContentResolver.setIsSyncable(account, authority, 1); in onPerformSync() 62 ContentResolver.setSyncAutomatically(account, authority, true); in onPerformSync() 74 PicasaService.performSync(mContext, account, extras, syncResult); in onPerformSync()
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettingsUtils.java | 43 public static void commitSettings(Context context, EmailContent.Account account) { in commitSettings() argument 44 if (!account.isSaved()) { in commitSettings() 45 account.save(context); in commitSettings() 48 cv.put(AccountColumns.IS_DEFAULT, account.mIsDefault); in commitSettings() 49 cv.put(AccountColumns.DISPLAY_NAME, account.getDisplayName()); in commitSettings() 50 cv.put(AccountColumns.SENDER_NAME, account.getSenderName()); in commitSettings() 51 cv.put(AccountColumns.SIGNATURE, account.getSignature()); in commitSettings() 52 cv.put(AccountColumns.SYNC_INTERVAL, account.mSyncInterval); in commitSettings() 53 cv.put(AccountColumns.RINGTONE_URI, account.mRingtoneUri); in commitSettings() 54 cv.put(AccountColumns.FLAGS, account.mFlags); in commitSettings() [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
D | AccountSetupAccountTypeUnitTests.java | 64 for (Account account : mAccounts) { in tearDown() 65 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); in tearDown() 118 Account account = new Account(); in createTestAccount() local 119 account.setStoreUri(mContext, scheme + "://user:pass@server.com:123"); in createTestAccount() 120 account.save(mContext); in createTestAccount() 121 mAccounts.add(account); in createTestAccount() 122 return account; in createTestAccount() 128 private Intent getTestIntent(EmailContent.Account account) { in getTestIntent() argument 130 i.putExtra(EXTRA_ACCOUNT, account); in getTestIntent()
|
D | AccountSetupExchangeTests.java | 147 Account account = in testLoadFields() local 149 account.mHostAuthRecv = ProviderTestUtils.setupHostAuth( in testLoadFields() 151 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_SSL; in testLoadFields() 152 account.mHostAuthRecv.mFlags &= ~HostAuth.FLAG_TRUST_ALL_CERTIFICATES; in testLoadFields() 153 mActivity.loadFields(account); in testLoadFields() 160 account.mHostAuthRecv.mFlags |= HostAuth.FLAG_TRUST_ALL_CERTIFICATES; in testLoadFields() 161 mActivity.loadFields(account); in testLoadFields() 225 EmailContent.Account account = new EmailContent.Account(); in getTestIntent() local 226 account.setStoreUri(getInstrumentation().getTargetContext(), storeUriString); in getTestIntent() 228 i.putExtra(AccountSetupExchange.EXTRA_ACCOUNT, account); in getTestIntent()
|
D | AccountSetupOptionsTests.java | 118 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()
|
/packages/apps/Email/src/com/android/email/service/ |
D | EasAuthenticatorService.java | 61 final Account account = new Account(options.getString(OPTIONS_USERNAME), in addAccount() local 64 account, options.getString(OPTIONS_PASSWORD), null); in addAccount() 73 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); in addAccount() 74 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, in addAccount() 83 ContentResolver.setIsSyncable(account, Calendar.AUTHORITY, 1); in addAccount() 84 ContentResolver.setSyncAutomatically(account, Calendar.AUTHORITY, syncCalendar); in addAccount() 107 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account, in confirmCredentials() argument 119 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account, in getAuthToken() argument 131 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account, in hasFeatures() argument 137 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account, in updateCredentials() argument
|
/packages/apps/Email/src/com/android/email/ |
D | SecurityPolicy.java | 284 public void setAccountHoldFlag(Account account, boolean newState) { in setAccountHoldFlag() argument 286 account.mFlags |= Account.FLAGS_SECURITY_HOLD; in setAccountHoldFlag() 288 account.mFlags &= ~Account.FLAGS_SECURITY_HOLD; in setAccountHoldFlag() 291 cv.put(AccountColumns.FLAGS, account.mFlags); in setAccountHoldFlag() 292 account.update(mContext, cv); in setAccountHoldFlag() 328 Account account = EmailContent.Account.restoreAccountWithId(mContext, accountId); in policiesRequired() local 331 setAccountHoldFlag(account, true); in policiesRequired() 335 account.getDisplayName()); in policiesRequired() 337 String contentText = account.getDisplayName(); in policiesRequired() 338 String ringtoneString = account.getRingtone(); in policiesRequired() [all …]
|
D | MessagingController.java | 245 final EmailContent.Account account = in listFolders() local 247 if (account == null) { in listFolders() 258 Store store = Store.getInstance(account.getStoreUri(mContext), mContext, null); in listFolders() 274 new String[] { String.valueOf(account.mId) }, in listFolders() 321 box.mAccountKey = account.mId; in listFolders() 354 public void synchronizeMailbox(final EmailContent.Account account, in synchronizeMailbox() argument 362 mListeners.synchronizeMailboxStarted(account.mId, folder.mId); in synchronizeMailbox() 365 synchronizeMailboxSynchronous(account, folder); in synchronizeMailbox() 377 private void synchronizeMailboxSynchronous(final EmailContent.Account account, in synchronizeMailboxSynchronous() argument 379 mListeners.synchronizeMailboxStarted(account.mId, folder.mId); in synchronizeMailboxSynchronous() [all …]
|
D | Controller.java | 232 Account account = in updateMailbox() local 236 if (account == null || mailbox == null) { in updateMailbox() 239 mLegacyController.synchronizeMailbox(account, mailbox, mLegacyListener); in updateMailbox() 406 final EmailContent.Account account = in sendMessage() local 408 if (account == null) { in sendMessage() 415 mLegacyController.sendPendingMessages(account, sentboxId, mLegacyListener); in sendMessage() 448 final EmailContent.Account account = in sendPendingMessages() local 450 if (account == null) { in sendPendingMessages() 457 mLegacyController.sendPendingMessages(account, sentboxId, mLegacyListener); in sendPendingMessages() 482 Account account = Account.restoreAccountWithId(mProviderContext, accountId); in resetVisibleLimits() local [all …]
|
/packages/apps/AccountsAndSyncSettings/src/com/android/settings/ |
D | AccountSyncSettings.java | 184 private void addSyncStateCheckBox(Account account, String authority) { in addSyncStateCheckBox() argument 186 new SyncStateCheckBoxPreference(this, account, authority); in addSyncStateCheckBox() 239 Account account = syncPref.getAccount(); in onPreferenceTreeClick() local 240 boolean syncAutomatically = ContentResolver.getSyncAutomatically(account, authority); in onPreferenceTreeClick() 242 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick() 248 ContentResolver.setSyncAutomatically(account, authority, syncOn); in onPreferenceTreeClick() 253 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick() 293 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument 297 ContentResolver.requestSync(account, authority, extras); in requestOrCancelSync() 299 ContentResolver.cancelSync(account, authority); in requestOrCancelSync() [all …]
|
D | ManageAccountsSettings.java | 179 Account account = accountPref.getAccount(); 185 SyncStatusInfo status = ContentResolver.getSyncStatus(account, authority); 186 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority) 189 && (ContentResolver.getIsSyncable(account, authority) > 0); 190 boolean authorityIsPending = ContentResolver.isSyncPending(account, authority); 193 … && new Account(currentSync.account.name, currentSync.account.type).equals(account); 207 Log.v(TAG, "no syncadapters found for " + account); 227 final Account account = accounts[i]; 228 final ArrayList<String> auths = getAuthoritiesForAccountType(account.type); 242 Drawable icon = getDrawableForType(account.type); [all …]
|
/packages/apps/Email/tests/src/com/android/exchange/adapter/ |
D | SyncAdapterTestCase.java | 70 Account account = new Account(); in getTestService() local 71 account.mEmailAddress = "__test__@android.com"; in getTestService() 72 account.mId = -1; in getTestService() 75 return getTestService(account, mailbox); in getTestService() 78 EasSyncService getTestService(Account account, Mailbox mailbox) { in getTestService() argument 82 service.mAccount = account; in getTestService()
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 43 Account account = new Account(); in setupAccount() local 45 account.mDisplayName = name; in setupAccount() 46 account.mEmailAddress = name + "@android.com"; in setupAccount() 47 account.mSyncKey = "sync-key-" + name; in setupAccount() 48 account.mSyncLookback = 1; in setupAccount() 49 account.mSyncInterval = EmailContent.Account.CHECK_INTERVAL_NEVER; in setupAccount() 50 account.mHostAuthKeyRecv = 0; in setupAccount() 51 account.mHostAuthKeySend = 0; in setupAccount() 52 account.mFlags = 4; in setupAccount() 53 account.mIsDefault = true; in setupAccount() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/ui/ |
D | ContactsPreferencesActivity.java | 337 for (Account account : sources.getAccounts(false)) { 338 accounts.add(new AccountDisplay(resolver, account.name, account.type)); 530 for (AccountDisplay account : this) { 531 account.buildDiff(diff); 689 final AccountDisplay account = mAccounts.get(groupPosition); 729 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition); 731 final ContactsSource source = mSources.getInflatedSource(account.mType, 734 text1.setText(account.mName); 736 text2.setVisibility(account.mName == null ? View.GONE : View.VISIBLE); 743 final AccountDisplay account = mAccounts.get(groupPosition); [all …]
|
/packages/apps/Email/src/com/android/exchange/ |
D | CalendarSyncAdapterService.java | 66 public void onPerformSync(Account account, Bundle extras, in onPerformSync() argument 69 CalendarSyncAdapterService.performSync(mContext, account, extras, in onPerformSync() 97 private static void performSync(Context context, Account account, Bundle extras, in performSync() argument 104 new String[] {Events._ID}, DIRTY_IN_ACCOUNT, new String[] {account.name}, null); in performSync() 108 Log.d(TAG, "No changes for " + account.name); in performSync() 121 new String[] {account.name}, null); in performSync() 131 Log.d(TAG, "Upload sync requested for " + account.name); in performSync()
|
D | SyncManager.java | 417 for (Account account : this) { in contains() 418 if (account.mId == id) { in contains() 426 for (Account account : this) { in getById() 427 if (account.mId == id) { in getById() 428 return account; in getById() 454 for (Account account : mAccountList) { in AccountObserver() 456 + account.mId, null); in AccountObserver() 458 addAccountMailbox(account.mId); in AccountObserver() 474 for (Account account : mAccountList) { in getSyncableEasMailboxWhere() 480 sb.append(account.mId); in getSyncableEasMailboxWhere() [all …]
|
D | ContactsSyncAdapterService.java | 63 public void onPerformSync(Account account, Bundle extras, in onPerformSync() argument 66 ContactsSyncAdapterService.performSync(mContext, account, extras, in onPerformSync() 94 private static void performSync(Context context, Account account, Bundle extras, in performSync() argument 101 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) in performSync() 119 AccountColumns.EMAIL_ADDRESS + "=?", new String[] {account.name}, null); in performSync() 128 Log.i(TAG, "Contact sync requested for " + account.name); in performSync()
|
D | CalendarSyncEnabler.java | 74 for (Account account : exchangeAccounts) { in enableEasCalendarSyncInternal() 75 final String emailAddress = account.name; in enableEasCalendarSyncInternal() 78 ContentResolver.setIsSyncable(account, Calendar.AUTHORITY, 1); in enableEasCalendarSyncInternal() 79 ContentResolver.setSyncAutomatically(account, Calendar.AUTHORITY, true); in enableEasCalendarSyncInternal()
|
/packages/apps/Email/src/com/android/email/activity/ |
D | UpgradeAccounts.java | 176 Account account; field in UpgradeAccounts.AccountInfo 183 account = legacyAccount; in AccountInfo() 253 vh.displayName.setText(ai.account.getDescription()); in bindView() 375 int estimate = UpgradeAccounts.estimateWork(mContext, mAccountInfo[i].account); in doInBackground() 386 boolean ok = scrubAccount(mContext, mAccountInfo[i].account, i, handler); in doInBackground() 421 String storeUri = info.account.getStoreUri(); in copyAndDeleteAccount() 429 copyAccount(mContext, info.account, i, handler); in copyAndDeleteAccount() 438 deleteAccountStore(mContext, info.account, i, handler); in copyAndDeleteAccount() 439 info.account.delete(mPreferences); in copyAndDeleteAccount() 465 /* package */ static int estimateWork(Context context, Account account) { in estimateWork() argument [all …]
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageComposeTests.java | 127 Account account = new Account(); in setUp() local 128 account.mSenderName = "Bob Sender"; in setUp() 129 account.mEmailAddress = "bob@sender.com"; in setUp() 130 account.save(context); in setUp() 131 accountId = account.mId; in setUp() 134 Account account = Account.restoreAccountWithId(context, accountId); in setUp() local 135 mSignature = account.getSignature(); in setUp() 214 final Account account = new Account(); in testProcessSourceMessageReplyWithSignature() local 215 account.mSignature = SIGNATURE; in testProcessSourceMessageReplyWithSignature() 218 a.processSourceMessage(message, account); in testProcessSourceMessageReplyWithSignature() [all …]
|
/packages/apps/Tag/src/com/android/vcard/ |
D | VCardEntryConstructor.java | 75 public VCardEntryConstructor(final int vcardType, final Account account) { in VCardEntryConstructor() argument 76 this(vcardType, account, null, false); in VCardEntryConstructor() 79 public VCardEntryConstructor(final int vcardType, final Account account, in VCardEntryConstructor() argument 81 this(vcardType, account, inputCharset, false); in VCardEntryConstructor() 87 public VCardEntryConstructor(final int vcardType, final Account account, in VCardEntryConstructor() argument 96 mAccount = account; in VCardEntryConstructor()
|