/packages/apps/Email/src/com/android/email/ |
D | NotificationController.java | 135 private NotificationCompat.Builder createBaseAccountNotificationBuilder(long accountId, in createBaseAccountNotificationBuilder() argument 158 Account account = Account.restoreAccountWithId(mContext, accountId); in createBaseAccountNotificationBuilder() 175 private void showNotification(long accountId, String ticker, String title, in showNotification() argument 177 final NotificationCompat.Builder builder = createBaseAccountNotificationBuilder(accountId, in showNotification() 249 for (final Long accountId : sRefreshAccountSet) { in ensureHandlerExists() 250 refreshNotificationsForAccountInternal(context, accountId); in ensureHandlerExists() 267 private void registerMessageNotification(final long accountId) { in registerMessageNotification() argument 269 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { in registerMessageNotification() 282 ContentObserver obs = mNotificationMap.get(accountId); in registerMessageNotification() 284 LogUtils.i(LOG_TAG, "Registering for notifications for account " + accountId); in registerMessageNotification() [all …]
|
D | ResourceHelper.java | 59 /* package */ int getAccountColorIndex(long accountId) { in getAccountColorIndex() argument 62 return Math.abs((int) ((accountId - 1) % mAccountColors.length)); in getAccountColorIndex() 68 public int getAccountColor(long accountId) { in getAccountColor() argument 69 return mAccountColors[getAccountColorIndex(accountId)]; in getAccountColor() 76 public int getAccountColorId(long accountId) { in getAccountColorId() argument 77 return mAccountColorArray.getResourceId(getAccountColorIndex(accountId), in getAccountColorId() 84 public Paint getAccountColorPaint(long accountId) { in getAccountColorPaint() argument 85 return mAccountColorPaints[getAccountColorIndex(accountId)]; in getAccountColorPaint()
|
D | SecurityPolicy.java | 449 public static void setAccountHoldFlag(Context context, long accountId, boolean newState) { in setAccountHoldFlag() argument 450 Account account = Account.restoreAccountWithId(context, accountId); in setAccountHoldFlag() 487 public void policiesRequired(long accountId) { in policiesRequired() argument 488 Account account = Account.restoreAccountWithId(mContext, accountId); in policiesRequired() 585 public void setAccountPolicy(long accountId, Policy policy, String securityKey) { in setAccountPolicy() argument 586 Account account = Account.restoreAccountWithId(mContext, accountId); in setAccountPolicy() 618 Uri uri = EmailProvider.uiUri("uiaccountdata", accountId); in setAccountPolicy() 701 long accountId = c.getLong(EmailContent.ID_PROJECTION_COLUMN); in deleteSecuredAccounts() local 702 Uri uri = EmailProvider.uiUri("uiaccountdata", accountId); in deleteSecuredAccounts() 787 long accountId = Policy.getAccountIdWithPolicyKey(context, policyId); [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
D | MockUiProvider.java | 68 private static void initializeAccount(int accountId, in initializeAccount() argument 71 createFolderDetailsMap(0, accountId, "zero", true, 0, 2); in initializeAccount() 75 final Map<String, Object> accountDetailsMap = createAccountDetailsMap(accountId, in initializeAccount() 81 createFolderDetailsMap(2, accountId, "two", 2, 2); in initializeAccount() 87 ImmutableList.of(createFolderDetailsMap(10, accountId, "zeroChild0", 0, 0), in initializeAccount() 88 createFolderDetailsMap(11, accountId, "zeroChild1", 0, 0))); in initializeAccount() 93 conversations.add(createConversationDetailsMap(accountId, name.hashCode(), in initializeAccount() 100 createMessageDetailsMap(accountId, "zeroConv0".hashCode(), "zeroConv0", 1, false); in initializeAccount() 107 createMessageDetailsMap(accountId, "zeroConv1".hashCode(), "zeroConv1", 1, false); in initializeAccount() 110 createMessageDetailsMap(accountId, "zeroConv1a".hashCode(), "zeroConv1a", 2, false); in initializeAccount() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/service/ |
D | PingSyncSynchronizer.java | 255 private AccountSyncState getAccountState(final long accountId, final boolean createIfNeeded) { in getAccountState() argument 257 AccountSyncState state = mAccountStateMap.get(accountId); in getAccountState() 259 LogUtils.d(TAG, "PSS adding account state for %d", accountId); in getAccountState() 261 mAccountStateMap.put(accountId, state); in getAccountState() 276 private void removeAccount(final long accountId) { in removeAccount() argument 278 LogUtils.d(TAG, "PSS removing account state for %d", accountId); in removeAccount() 279 mAccountStateMap.delete(accountId); in removeAccount() 286 public void syncStart(final long accountId) { in syncStart() argument 289 LogUtils.d(TAG, "PSS syncStart for account %d", accountId); in syncStart() 290 final AccountSyncState accountState = getAccountState(accountId, true); in syncStart() [all …]
|
D | EmailSyncAdapterService.java | 169 private synchronized void waitUntilNoActivity(final long accountId) { in waitUntilNoActivity() argument 170 while (mPingHandlers.containsKey(accountId)) { in waitUntilNoActivity() 171 final PingTask pingHandler = mPingHandlers.get(accountId); in waitUntilNoActivity() 188 private synchronized boolean isRunningSync(final long accountId) { in isRunningSync() argument 189 return (mPingHandlers.containsKey(accountId) && mPingHandlers.get(accountId) == null); in isRunningSync() 209 public synchronized void startSync(final long accountId) { in startSync() argument 210 waitUntilNoActivity(accountId); in startSync() 211 mPingHandlers.put(accountId, null); in startSync() 337 final long accountId, final int pingStatus) { in pingComplete() argument 338 mPingHandlers.remove(accountId); in pingComplete() [all …]
|
D | EasService.java | 74 public void sendMail(final long accountId) { 75 LogUtils.d(TAG, "IEmailService.sendMail: %d", accountId); 79 public void loadAttachment(final IEmailServiceCallback callback, final long accountId, 82 final EasLoadAttachment operation = new EasLoadAttachment(EasService.this, accountId, 88 public void updateFolderList(final long accountId) { 89 final EasFolderSync operation = new EasFolderSync(EasService.this, accountId); 94 public void sync(final long accountId, final boolean updateFolderList, 98 public void pushModify(final long accountId) { 99 LogUtils.d(TAG, "IEmailService.pushModify: %d", accountId); 100 final Account account = Account.restoreAccountWithId(EasService.this, accountId); [all …]
|
/packages/apps/Email/src/com/android/email/provider/ |
D | WidgetProvider.java | 92 long accountId = loadAccountIdPref(context, widgetId); in migrateLegacyWidgetInformation() local 95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) { in migrateLegacyWidgetInformation() 97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); in migrateLegacyWidgetInformation() 101 accountId = migrateLegacyWidgetAccountId(accountId); in migrateLegacyWidgetInformation() 102 mailboxId = migrateLegacyWidgetMailboxId(mailboxId, accountId); in migrateLegacyWidgetInformation() 105 final com.android.mail.providers.Account uiAccount = getAccount(context, accountId); in migrateLegacyWidgetInformation() 122 private static long migrateLegacyWidgetAccountId(long accountId) { in migrateLegacyWidgetAccountId() argument 123 if (accountId == Account.ACCOUNT_ID_COMBINED_VIEW) { in migrateLegacyWidgetAccountId() 126 return accountId; in migrateLegacyWidgetAccountId() 133 private static long migrateLegacyWidgetMailboxId(long mailboxId, long accountId) { in migrateLegacyWidgetMailboxId() argument [all …]
|
D | EmailProvider.java | 662 final long accountId; in delete() local 664 accountId = Mailbox.getAccountIdForMailbox(context, id); in delete() 666 accountId = Account.NO_ACCOUNT; in delete() 675 notifyUIFolder(id, accountId); in delete() 847 final Long accountId = in insert() local 849 if (accountId != null && accountId > 0) { in insert() 850 notifyUI(UIPROVIDER_ACCOUNT_NOTIFIER, accountId); in insert() 851 notifyUI(UIPROVIDER_FOLDERLIST_NOTIFIER, accountId); in insert() 1641 final ContentValues values, final String accountId) { in restartPushForMailbox() argument 1644 return restartPush(context, db, accountId); in restartPushForMailbox() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | Account.java | 236 public static boolean isNormalAccount(long accountId) { in isNormalAccount() argument 237 return (accountId > 0L) && (accountId != ACCOUNT_ID_COMBINED_VIEW); in isNormalAccount() 474 public static boolean supportsServerSearch(Context context, long accountId) { in supportsServerSearch() argument 475 Account account = Account.restoreAccountWithId(context, accountId); in supportsServerSearch() 560 final long accountId = cursor.getLong(Account.ID_PROJECTION_COLUMN); in getDefaultAccountId() local 562 if (accountId == lastUsedAccountId) { in getDefaultAccountId() 563 return accountId; in getDefaultAccountId() 567 firstAccount = accountId; in getDefaultAccountId() 586 public static String getProtocol(Context context, long accountId) { in getProtocol() argument 587 Account account = Account.restoreAccountWithId(context, accountId); in getProtocol() [all …]
|
D | MailboxUtilities.java | 164 private static void setAccountSyncAdapterFlag(Context context, long accountId, boolean start) { in setAccountSyncAdapterFlag() argument 165 Account account = Account.restoreAccountWithId(context, accountId); in setAccountSyncAdapterFlag() 180 public static void startMailboxChanges(Context context, long accountId) { in startMailboxChanges() argument 181 setAccountSyncAdapterFlag(context, accountId, true); in startMailboxChanges() 189 public static void endMailboxChanges(Context context, long accountId) { in endMailboxChanges() argument 190 setAccountSyncAdapterFlag(context, accountId, false); in endMailboxChanges() 200 public static void checkMailboxConsistency(Context context, long accountId) { in checkMailboxConsistency() argument 203 Account account = Account.restoreAccountWithId(context, accountId); in checkMailboxConsistency() 217 endMailboxChanges(context, accountId); in checkMailboxConsistency() 247 public static void setupHierarchicalNames(Context context, long accountId) { in setupHierarchicalNames() argument [all …]
|
D | Mailbox.java | 466 public static Mailbox newSystemMailbox(Context context, long accountId, int mailboxType) { in newSystemMailbox() argument 492 box.mAccountKey = accountId; in newSystemMailbox() 511 public static Mailbox restoreMailboxForPath(Context context, long accountId, String path) { in restoreMailboxForPath() argument 516 new String[] { path, Long.toString(accountId) }, in restoreMailboxForPath() 539 public static Mailbox getMailboxForPath(Context context, long accountId, String path) { in getMailboxForPath() argument 540 Mailbox mailbox = restoreMailboxForPath(context, accountId, path); in getMailboxForPath() 664 public static long findMailboxOfType(Context context, long accountId, int type) { in findMailboxOfType() argument 665 String[] bindArguments = new String[] {Long.toString(type), Long.toString(accountId)}; in findMailboxOfType() 674 public static Mailbox restoreMailboxOfType(Context context, long accountId, int type) { in restoreMailboxOfType() argument 675 long mailboxId = findMailboxOfType(context, accountId, type); in restoreMailboxOfType() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
D | AttachmentUtilities.java | 143 public static Uri getAttachmentUri(long accountId, long id) { in getAttachmentUri() argument 148 .appendPath(Long.toString(accountId)) in getAttachmentUri() 155 public static Uri getAttachmentThumbnailUri(long accountId, long id, long width, long height) { in getAttachmentThumbnailUri() argument 160 .appendPath(Long.toString(accountId)) in getAttachmentThumbnailUri() 175 public static File getAttachmentFilename(Context context, long accountId, long attachmentId) { in getAttachmentFilename() argument 176 return new File(getAttachmentDirectory(context, accountId), Long.toString(attachmentId)); in getAttachmentFilename() 186 public static File getAttachmentDirectory(Context context, long accountId) { in getAttachmentDirectory() argument 187 return context.getDatabasePath(accountId + ".db_att"); in getAttachmentDirectory() 302 public static void deleteAllAttachmentFiles(Context context, long accountId, long messageId) { in deleteAllAttachmentFiles() argument 309 File attachmentFile = getAttachmentFilename(context, accountId, attachmentId); in deleteAllAttachmentFiles() [all …]
|
/packages/apps/Email/src/com/android/email/service/ |
D | AttachmentDownloadService.java | 180 final long accountId; field in AttachmentDownloadService.DownloadRequest 193 accountId = msg.mAccountKey; in DownloadRequest() 196 accountId = messageId = -1; in DownloadRequest() 206 accountId = orig.accountId; in DownloadRequest() 354 if (downloadsForAccount(req.accountId) >= MAX_SIMULTANEOUS_DOWNLOADS_PER_ACCOUNT) { in processQueue() 357 req.accountId); in processQueue() 436 /*package*/ synchronized int downloadsForAccount(long accountId) { in downloadsForAccount() argument 439 if (req.accountId == accountId) { in downloadsForAccount() 487 AttachmentDownloadService.this, req.accountId); in tryStartDownload() 540 service.loadAttachment(mServiceCallback, req.accountId, req.attachmentId, in startDownload() [all …]
|
D | EmailServiceStub.java | 122 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument 281 public void updateFolderList(long accountId) throws RemoteException { in updateFolderList() argument 282 final Account account = Account.restoreAccountWithId(mContext, accountId); in updateFolderList() 290 if (Mailbox.findMailboxOfType(mContext, accountId, type) == Mailbox.NO_MAILBOX) { in updateFolderList() 291 final Mailbox mailbox = Mailbox.newSystemMailbox(mContext, accountId, type); in updateFolderList() 337 mContext, accountId, mailboxId); in updateFolderList() 382 public int searchMessages(long accountId, SearchParams params, long destMailboxId) in searchMessages() argument 389 public void pushModify(long accountId) throws RemoteException { in pushModify() argument 390 LogUtils.e(Logging.LOG_TAG, "pushModify invalid for account type for %d", accountId); in pushModify() 394 public void sync(final long accountId, final boolean updateFolderList, in sync() argument [all …]
|
D | AccountService.java | 44 public void notifyLoginFailed(long accountId, String reason) { 46 nc.showLoginFailedNotification(accountId, reason); 50 public void notifyLoginSucceeded(long accountId) { 51 NotificationController.getInstance(mContext).cancelLoginFailedNotification(accountId); 60 public int getAccountColor(long accountId) { 61 return ResourceHelper.getInstance(mContext).getAccountColor(accountId);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
D | EmailServiceProxy.java | 117 public void loadAttachment(final IEmailServiceCallback cb, final long accountId, in loadAttachment() argument 124 mService.loadAttachment(cb, accountId, attachmentId, background); in loadAttachment() 208 public void updateFolderList(final long accountId) throws RemoteException { in updateFolderList() argument 212 mService.updateFolderList(accountId); in updateFolderList() 283 public int searchMessages(final long accountId, final SearchParams searchParams, in searchMessages() argument 288 mReturn = mService.searchMessages(accountId, searchParams, destMailboxId); in searchMessages() 305 public void sendMail(final long accountId) throws RemoteException { in sendMail() argument 309 mService.sendMail(accountId); in sendMail() 320 public void pushModify(final long accountId) throws RemoteException { in pushModify() argument 324 mService.pushModify(accountId); in pushModify() [all …]
|
D | IEmailService.aidl | 30 void sendMail(long accountId); in sendMail() argument 31 oneway void loadAttachment(IEmailServiceCallback cb, long accountId, long attachmentId, in loadAttachment() argument 33 oneway void updateFolderList(long accountId); in updateFolderList() argument 35 void sync(long accountId, boolean updateFolderList, int mailboxType, in long[] foldersToSync); in sync() argument 40 void pushModify(long accountId); in pushModify() argument 46 int searchMessages(long accountId, in SearchParams params, long destMailboxId); in searchMessages() argument
|
D | AccountServiceProxy.java | 46 public void notifyLoginFailed(final long accountId, final String reason) { in notifyLoginFailed() argument 50 mService.notifyLoginFailed(accountId, reason); in notifyLoginFailed() 56 public void notifyLoginSucceeded(final long accountId) { in notifyLoginSucceeded() argument 60 mService.notifyLoginSucceeded(accountId); in notifyLoginSucceeded() 79 public int getAccountColor(final long accountId) { in getAccountColor() argument 83 mReturn = mService.getAccountColor(accountId); in getAccountColor()
|
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
D | EmailContentSetupUtils.java | 54 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 56 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL, null); in setupMailbox() 59 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 61 return setupMailbox(name, accountId, saveIt, context, type, null); in setupMailbox() 64 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 69 box.mAccountKey = accountId; in setupMailbox() 86 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 89 return setupMessage(name, accountId, mailboxId, addBody, saveIt, context, true, true); in setupMessage() 95 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument 101 message.mAccountKey = accountId; in setupMessage()
|
/packages/apps/Exchange/src/com/android/exchange/ |
D | ExchangeService.java | 135 public void loadAttachment(final IEmailServiceCallback callback, final long accountId, 143 public void updateFolderList(long accountId) throws RemoteException { 144 reloadFolderList(ExchangeService.this, accountId, false); 172 public int searchMessages(long accountId, SearchParams searchParams, long destMailboxId) { 175 EasSearch op = new EasSearch(exchangeService, accountId, searchParams, destMailboxId); 181 public void sendMail(long accountId) throws RemoteException {} 184 public void pushModify(long accountId) throws RemoteException {} 187 public void sync(final long accountId, final boolean updateFolderList, 439 static private void reloadFolderListFailed(long accountId) { in reloadFolderListFailed() argument 443 static public void reloadFolderList(Context context, long accountId, boolean force) { in reloadFolderList() argument [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 77 public static void deleteAccount(Context context, long accountId) { in deleteAccount() argument 79 Account.CONTENT_URI, accountId), null, null); in deleteAccount() 85 public static HostAuth setupHostAuth(String name, long accountId, boolean saveIt, in setupHostAuth() argument 114 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 116 return setupMailbox(name, accountId, saveIt, context, Mailbox.TYPE_MAIL); in setupMailbox() 118 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 120 return setupMailbox(name, accountId, saveIt, context, type, '/'); in setupMailbox() 122 public static Mailbox setupMailbox(String name, long accountId, boolean saveIt, in setupMailbox() argument 135 box.mAccountKey = accountId; in setupMailbox() 154 public static Message setupMessage(String name, long accountId, long mailboxId, in setupMessage() argument [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSettings.java | 140 public static void actionSettings(Activity fromActivity, long accountId) { in actionSettings() argument 141 fromActivity.startActivity(createAccountSettingsIntent(accountId, null, null)); in actionSettings() 149 public static Intent createAccountSettingsIntent(long accountId, in createAccountSettingsIntent() argument 153 IntentUtilities.setAccountId(b, accountId); in createAccountSettingsIntent() 167 final long accountId = IntentUtilities.getAccountIdFromIntent(intent); in getIntent() local 168 if (accountId < 0) { in getIntent() 176 accountId, IntentUtilities.getAccountNameFromIntent(intent))); in getIntent() 505 final long accountId = c.getLong(Account.CONTENT_ID_COLUMN); in doInBackground() local 506 if (accountId == deletingAccountId) { in doInBackground() 513 newHeader.id = accountId; in doInBackground() [all …]
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
D | EasPing.java | 192 final long accountId = getAccountId(); in handleResponse() local 195 LogUtils.i(TAG, "Ping expired for account %d", accountId); in handleResponse() 200 LogUtils.i(TAG, "Ping found changed folders for account %d", accountId); in handleResponse() 208 LogUtils.e(TAG, "Bad ping request for account %d", accountId); in handleResponse() 213 "old duration %d new duration %d", accountId, mPingDuration, newDuration); in handleResponse() 218 LogUtils.i(TAG, "Too many folders for account %d", accountId); in handleResponse() 221 LogUtils.i(TAG, "FolderSync needed for account %d", accountId); in handleResponse() 225 LogUtils.i(TAG, "Server error for account %d", accountId); in handleResponse() 229 LogUtils.i(TAG, "Retryable server error for account %d", accountId); in handleResponse()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForGroupMembership.java | 208 final long accountId = accountIdOrNull; 219 if (entry.accountId == accountId) { 225 entry.accountId = accountId; 233 new String[]{sourceId, Long.toString(accountId)}, null, null, null); 240 groupValues.put(GroupsColumns.ACCOUNT_ID, accountId);
|