Searched refs:accountCursor (Results 1 – 9 of 9) sorted by relevance
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | WidgetProvider.java | 63 final Cursor accountCursor = resolver.query(Uri.parse(accountUri), in getAccountObject() local 66 return getPopulatedAccountObject(accountCursor); in getAccountObject() 74 final Cursor accountCursor = resolver.query(account.uri, in isAccountValid() local 76 if (accountCursor != null) { in isAccountValid() 78 return accountCursor.getCount() > 0; in isAccountValid() 80 accountCursor.close(); in isAccountValid() 153 final Cursor accountCursor) { in getPopulatedAccountObject() argument 154 if (accountCursor == null) { in getPopulatedAccountObject() 161 if (accountCursor.moveToFirst()) { in getPopulatedAccountObject() 162 uiAccount = com.android.mail.providers.Account.builder().buildFrom(accountCursor); in getPopulatedAccountObject() [all …]
|
D | DBHelper.java | 1613 final Cursor accountCursor = db.query(Account.TABLE_NAME, V21_ACCOUNT_PROJECTION, null, in migrateLegacyAccounts() local 1617 while (accountCursor.moveToNext()) { in migrateLegacyAccounts() 1618 hostAuthArgs[0] = accountCursor.getString(V21_ACCOUNT_RECV); in migrateLegacyAccounts() 1634 + accountCursor.getString(V21_ACCOUNT_EMAIL)); in migrateLegacyAccounts() 1637 accountCursor.getString(V21_ACCOUNT_EMAIL), in migrateLegacyAccounts() 1645 accountCursor.getString(V21_ACCOUNT_EMAIL), in migrateLegacyAccounts() 1657 accountCursor.close(); in migrateLegacyAccounts() 1710 Cursor accountCursor = db.query(Account.TABLE_NAME, V25_ACCOUNT_PROJECTION, null, in upgradeFromVersion25ToVersion26() local 1715 while (accountCursor.moveToNext()) { in upgradeFromVersion25ToVersion26() 1716 hostAuthArgs[0] = accountCursor.getString(V25_ACCOUNT_RECV); in upgradeFromVersion25ToVersion26() [all …]
|
D | EmailProvider.java | 1683 final Cursor accountCursor = db.query(Account.TABLE_NAME, Account.CONTENT_PROJECTION, in backupAccounts() local 1687 while (accountCursor.moveToNext()) { in backupAccounts() 1689 account.restore(accountCursor); in backupAccounts() 1703 accountCursor.close(); in backupAccounts() 3960 final Cursor accountCursor = in uiAccounts() local 3963 if (accountCursor.moveToNext()) { in uiAccounts() 3965 values[i] = accountCursor.getString(i); in uiAccounts() 3970 accountCursor.close(); in uiAccounts()
|
/packages/apps/Email/src/com/android/email2/ui/ |
D | MailActivityEmail.java | 101 final Cursor accountCursor = contentResolver.query( in getViewIntent() local 106 if (accountCursor == null) { in getViewIntent() 113 if (accountCursor.moveToFirst()) { in getViewIntent() 114 account = com.android.mail.providers.Account.builder().buildFrom(accountCursor); in getViewIntent() 117 accountCursor.close(); in getViewIntent()
|
/packages/apps/Email/src/com/android/email/preferences/ |
D | EmailPreferenceMigrator.java | 48 final Cursor accountCursor = context.getContentResolver().query(Uri.parse( in migrate() local 52 if (accountCursor == null) { in migrate() 59 while (accountCursor.moveToNext()) { in migrate() 60 accounts.add(Account.builder().buildFrom(accountCursor)); in migrate() 63 accountCursor.close(); in migrate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
D | BaseWidgetProvider.java | 281 Cursor accountCursor = null; in getAccountObject() local 283 accountCursor = resolver.query(Uri.parse(accountUri), in getAccountObject() 285 if (accountCursor != null) { in getAccountObject() 286 if (accountCursor.moveToFirst()) { in getAccountObject() 287 account = Account.builder().buildFrom(accountCursor); in getAccountObject() 291 if (accountCursor != null) { in getAccountObject() 292 accountCursor.close(); in getAccountObject()
|
/packages/apps/Email/src/com/android/email/ |
D | EmailNotificationController.java | 327 final Cursor accountCursor = mContext.getContentResolver().query(EmailProvider.uiUri( in setupSoundAndVibration() local 332 if (accountCursor.moveToFirst()) { in setupSoundAndVibration() 333 uiAccount = com.android.mail.providers.Account.builder().buildFrom(accountCursor); in setupSoundAndVibration() 336 accountCursor.close(); in setupSoundAndVibration() 674 final Cursor accountCursor = contentResolver.query(accountUri, in handleUpdateNotificationIntent() local 677 if (accountCursor == null) { in handleUpdateNotificationIntent() 684 if (accountCursor.moveToFirst()) { in handleUpdateNotificationIntent() 685 account = com.android.mail.providers.Account.builder().buildFrom(accountCursor); in handleUpdateNotificationIntent() 688 accountCursor.close(); in handleUpdateNotificationIntent()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationUtils.java | 232 final Cursor accountCursor = context.getContentResolver().query( in loadNotificationMap() local 235 if (accountCursor == null) { in loadNotificationMap() 242 if (accountCursor.moveToFirst()) { in loadNotificationMap() 243 account = Account.builder().buildFrom(accountCursor); in loadNotificationMap() 248 accountCursor.close(); in loadNotificationMap()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AbstractActivityController.java | 2815 private boolean accountsUpdated(ObjectCursor<Account> accountCursor) { 2817 if (mAccount == null || !accountCursor.moveToFirst()) { 2823 if (mCurrentAccountUris.size() != accountCursor.getCount()) { 2831 final Account account = accountCursor.getModel(); 2843 } while (accountCursor.moveToNext());
|