/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | AddableFolderSelectorAdapter.java | 61 final Object[] folder = new Object[projectionSize]; in filterFolders() local 94 folder[UIProvider.FOLDER_ID_COLUMN] = folderCursor in filterFolders() 96 folder[UIProvider.FOLDER_PERSISTENT_ID_COLUMN] = folderCursor in filterFolders() 98 folder[UIProvider.FOLDER_URI_COLUMN] = folderCursor in filterFolders() 100 folder[UIProvider.FOLDER_NAME_COLUMN] = folderCursor in filterFolders() 102 folder[UIProvider.FOLDER_HAS_CHILDREN_COLUMN] = folderCursor in filterFolders() 104 folder[UIProvider.FOLDER_CAPABILITIES_COLUMN] = folderCursor in filterFolders() 106 folder[UIProvider.FOLDER_SYNC_WINDOW_COLUMN] = folderCursor in filterFolders() 108 folder[UIProvider.FOLDER_CONVERSATION_LIST_URI_COLUMN] = folderCursor in filterFolders() 110 folder[UIProvider.FOLDER_CHILD_FOLDERS_LIST_COLUMN] = folderCursor in filterFolders() [all …]
|
D | FolderSelectorAdapter.java | 61 public FolderRow(Folder folder, boolean isSelected) { in FolderRow() argument 62 mFolder = folder; in FolderRow() 123 final Folder folder = new Folder(folders); in createFolderRows() local 126 folder.folderUri.getComparisonUri().toString()); in createFolderRows() 127 final FolderRow row = new FolderRow(folder, isSelected); in createFolderRows() 131 if (meetsRequirements(folder) && !Objects.equal(folder, mExcludedFolder) && in createFolderRows() 132 folder.isProviderFolder()) { in createFolderRows() 142 final Folder folder = row.getFolder(); in createFolderRows() local 143 if (meetsRequirements(folder) && !Objects.equal(folder, mExcludedFolder) && in createFolderRows() 144 !folder.isProviderFolder()) { in createFolderRows() [all …]
|
D | FolderOperations.java | 51 public FolderOperations(Folder folder, boolean add) { in FolderOperations() argument 53 if (folder != null) { in FolderOperations() 54 add(folder, add); in FolderOperations() 66 public void add(Folder folder, boolean add) { in add() argument 67 Operation operation = new Operation(folder, add); in add() 69 mOperations.put(folder.name, operation); in add() 78 public boolean hasOperation(Folder folder) { in hasOperation() argument 79 return hasOperation(folder.name); in hasOperation() 97 public boolean hasApplyOperation(Folder folder) { in hasApplyOperation() argument 98 return hasApplyOperation(folder.name); in hasApplyOperation() [all …]
|
D | FolderListFragment.java | 256 public static FolderListFragment ofTree(Folder folder) { in ofTree() argument 258 fragment.setArguments(getBundleFromArgs(folder, folder.childFoldersListUri, null)); in ofTree() 605 final Folder folder; in viewFolderOrChangeAccount() local 614 folder = null; in viewFolderOrChangeAccount() 618 folder = drawerItem.mFolder; in viewFolderOrChangeAccount() 620 mSelectedFolderType = folder.type; in viewFolderOrChangeAccount() 622 folder, mSelectedDrawerItemCategory); in viewFolderOrChangeAccount() 625 folder = null; in viewFolderOrChangeAccount() 634 folder = (Folder) item; in viewFolderOrChangeAccount() 638 folder = null; in viewFolderOrChangeAccount() [all …]
|
D | RecentFolderList.java | 105 public StoreRecent(Account account, Folder folder) { in StoreRecent() argument 106 assert (account != null && folder != null); in StoreRecent() 108 mFolder = folder; in StoreRecent() 180 final Folder folder = c.getModel(); in loadFromUiProvider() local 181 final RecentFolderListEntry entry = new RecentFolderListEntry(folder); in loadFromUiProvider() 182 mFolderCache.putElement(folder.folderUri.fullUri.toString(), entry); in loadFromUiProvider() 183 LogUtils.v(TAG, "Account %s, Recent: %s", mAccount.getEmailAddress(), folder.name); in loadFromUiProvider() 193 public void touchFolder(@NonNull Folder folder, Account account) { in touchFolder() argument 204 if (folder.isProviderFolder() || folder.isType(FolderType.SEARCH)) { in touchFolder() 209 final RecentFolderListEntry entry = new RecentFolderListEntry(folder); in touchFolder() [all …]
|
D | NestedFolderTeaserView.java | 130 public void setFolder(final Folder folder) { in setFolder() argument 131 mFolder = folder; in setFolder() 245 public void onUpdate(final Folder folder, final ConversationCursor cursor) { in onUpdate() argument 248 if (folder == null) { in onUpdate() 252 final Uri folderListUri = folder.childFoldersListUri; in onUpdate() 262 if (mFolderListUri == null || !mFolderListUri.equals(folder.childFoldersListUri)) { in onUpdate() 335 final Folder folder = folderHolder.getFolder(); in updateViews() local 338 final String unreadText = Utils.getUnreadCountString(getContext(), folder.unreadCount); in updateViews() 441 final Folder folder = data.getModel(); 442 FolderHolder holder = mFolderHolders.get(folder.id); [all …]
|
D | AbstractActivityController.java | 884 protected void onFolderChanged(Folder folder, final boolean force) { in onFolderChanged() argument 888 final boolean isTopLevel = Folder.isRoot(folder); in onFolderChanged() 896 if (mFolder == null || !mFolder.equals(folder)) { in onFolderChanged() 902 if (folder != null && folder.isType(FolderType.SEARCH)) { in onFolderChanged() 908 changeFolder(folder, query, force); in onFolderChanged() 917 private void setListContext(Folder folder, String query) { in setListContext() argument 918 updateFolder(folder); in setListContext() 934 private void changeFolder(Folder folder, String query, final boolean force) { in changeFolder() argument 935 if (!Objects.equal(mFolder, folder)) { in changeFolder() 938 if (folder != null && (!folder.equals(mFolder) || force) in changeFolder() [all …]
|
D | FolderSelectionActivity.java | 132 Account account, Folder folder) { 259 private void onFolderChanged(Folder folder, final boolean force) { in onFolderChanged() argument 260 if (!folder.equals(mSelectedFolder)) { in onFolderChanged() 261 mSelectedFolder = folder; in onFolderChanged() 329 public void onFolderSelected(Folder folder) { in onFolderSelected() argument 330 if (folder.hasChildren && !folder.equals(mNavigatedFolder)) { in onFolderSelected() 331 mNavigatedFolder = folder; in onFolderSelected() 335 createFolderListFragment(FolderListFragment.ofTree(folder)); in onFolderSelected() 338 onFolderChanged(folder, false /* force */); in onFolderSelected() 391 public void onFooterViewLoadMoreClick(Folder folder) { in onFooterViewLoadMoreClick() argument
|
D | OnePaneController.java | 150 return !(account == null || context == null || context.folder == null in inInbox() 152 && isDefaultInbox(context.folder.folderUri, account); in inInbox() 252 mInbox = listContext.folder; in showConversationList() 399 public void onFolderSelected(Folder folder) { in onFolderSelected() argument 405 intent.putExtra(AbstractActivityController.EXTRA_FOLDER, folder); in onFolderSelected() 410 setHierarchyFolder(folder); in onFolderSelected() 411 super.onFolderSelected(folder); in onFolderSelected() 456 final Folder folder = mFolder != null ? mFolder : mInbox; in transitionBackToConversationListMode() local 457 onFolderChanged(folder, true /* force */); in transitionBackToConversationListMode() 505 public void onError(final Folder folder, boolean replaceVisibleToast) { in onError() argument [all …]
|
D | ConversationsInOutboxTipView.java | 77 public void onUpdate(Folder folder, ConversationCursor cursor) { 78 if (mLoaderManager != null && folder != null) { 79 if ((folder.type & UIProvider.FolderType.SENT) > 0) { 98 final Folder folder = data.getModel(); 99 if ((folder.type & UIProvider.FolderType.OUTBOX) > 0) { 100 mOutbox = folder; 101 onOutboxTotalCount(folder.totalCount);
|
D | FolderItemView.java | 110 public void bind(final Folder folder, final FolderUri parentUri) { in bind() argument 111 mFolder = folder; in bind() 113 mFolderTextView.setText(folder.name); in bind() 116 final boolean isParent = folder.folderUri.equals(parentUri); in bind() 135 public void setIcon(final Folder folder) { in setIcon() argument 137 Folder.setIcon(folder, folderIconView); in setIcon()
|
D | FolderOperation.java | 38 public FolderOperation(Folder folder, Boolean operation) { in FolderOperation() argument 40 mFolder = folder; in FolderOperation() 72 public static boolean isDestructive(Collection<FolderOperation> folderOps, Folder folder) { in isDestructive() argument 74 if (Objects.equal(op.mFolder, folder) && !op.mAdd) { in isDestructive() 77 if (folder.isTrash() && op.mFolder.isInbox()) { in isDestructive()
|
D | MultiFoldersSelectionDialog.java | 202 final Folder folder = ((FolderRow)item).getFolder(); in update() local 203 mOperations.put(folder.folderUri.fullUri, in update() 204 new FolderOperation(folder, false)); in update() 210 final Folder folder = row.getFolder(); in update() local 211 mOperations.put(folder.folderUri.fullUri, new FolderOperation(folder, add)); in update()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | NotificationUtils.java | 260 final Folder folder; in loadNotificationMap() local 263 folder = new Folder(folderCursor); in loadNotificationMap() 271 final NotificationKey key = new NotificationKey(account, folder); in loadNotificationMap() 291 key.account.uri.toString(), key.folder.folderUri.fullUri.toString(), in saveNotificationMap() 381 final Folder folder = notification.folder; in resendNotifications() local 383 getNotificationId(notification.account.getAccountManagerAccount(), folder); in resendNotifications() 388 folderUri != null && !Objects.equal(folderUri, folder.folderUri)) { 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() [all …]
|
D | NotificationActionUtils.java | 88 public boolean shouldDisplayPrimary(final Folder folder, 90 return folder == null || folder.isInbox(); 118 boolean shouldDisplayPrimary(Folder folder, Conversation conversation, Message message); in shouldDisplayPrimary() argument 168 public int getActionIconResId(final Folder folder, final Conversation conversation, in getActionIconResId() argument 170 if (mActionToggler == null || mActionToggler.shouldDisplayPrimary(folder, conversation, in getActionIconResId() 178 public int getDisplayStringResId(final Folder folder, final Conversation conversation, in getDisplayStringResId() argument 180 if (mActionToggler == null || mActionToggler.shouldDisplayPrimary(folder, conversation, in getDisplayStringResId() 202 final Folder folder, final int notificationId, final long when, in addNotificationActions() argument 205 getSortedNotificationActions(folder, notificationActions); in addNotificationActions() 210 folder, notificationIntent, notificationAction, notificationId, when); in addNotificationActions() [all …]
|
D | EmptyStateUtils.java | 36 public static void bindEmptyFolderIcon(ImageView view, Folder folder) { in bindEmptyFolderIcon() argument 37 if (folder == null) { in bindEmptyFolderIcon() 39 } else if (folder.isInbox()) { in bindEmptyFolderIcon() 41 } else if (folder.isSearch()) { in bindEmptyFolderIcon() 43 } else if (folder.isSpam()) { in bindEmptyFolderIcon() 45 } else if (folder.isTrash()) { in bindEmptyFolderIcon() 55 public static void bindEmptyFolderText(TextView view, Folder folder, Resources res, in bindEmptyFolderText() argument 57 if (folder == null) { in bindEmptyFolderText() 59 } else if (folder.isInbox()) { in bindEmptyFolderText() 61 } else if (folder.isSearch()) { in bindEmptyFolderText() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 612 private void expectSelect(MockTransport mockTransport, String folder, String readWriteMode) { in expectSelect() argument 614 getNextTag(false) + " SELECT \"" + folder + "\"", new String[] { in expectSelect() 622 folder + " selected. (Success)"}); in expectSelect() 1450 final Folder folder = mStore.getFolder("test"); in testOpen() local 1458 folder.open(OpenMode.READ_WRITE); in testOpen() 1471 folder.open(OpenMode.READ_WRITE); in testOpen() 1472 assertTrue(folder.exists()); in testOpen() 1473 assertEquals(1, folder.getMessageCount()); in testOpen() 1474 assertEquals(OpenMode.READ_WRITE, folder.getMode()); in testOpen() 1476 assertTrue(folder.isOpen()); in testOpen() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | ImapStore.java | 338 final ImapFolder folder = mailboxes.get(path); in createHierarchy() local 339 final Mailbox mailbox = folder.mMailbox; in createHierarchy() 384 final ImapFolder folder = (ImapFolder) getFolder(mailboxPath); in addMailbox() local 388 folder.mHash = mailbox.getHashes(); in addMailbox() 391 if (folder.mHash == null) { in addMailbox() 395 folder.mHash = mailbox.getHashes(); in addMailbox() 404 folder.mMailbox = mailbox; in addMailbox() 405 return folder; in addMailbox() 452 ImapFolder folder = addMailbox( in updateFolders() local 454 mailboxes.put(folderName, folder); in updateFolders() [all …]
|
D | Pop3Store.java | 96 Folder folder = mFolders.get(name); in getFolder() local 97 if (folder == null) { in getFolder() 98 folder = new Pop3Folder(name); in getFolder() 99 mFolders.put(folder.getName(), folder); in getFolder() local 101 return folder; in getFolder() 127 Pop3Folder folder = new Pop3Folder(POP3_MAILBOX_NAME); in checkSettings() local 131 folder.close(false); in checkSettings() 134 folder.open(OpenMode.READ_WRITE); in checkSettings() 135 bundle = folder.checkSettings(); in checkSettings() 137 folder.close(false); // false == don't expunge anything in checkSettings() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | ConversationListContext.java | 54 public final Folder folder; field in ConversationListContext 71 Folder folder = bundle.getParcelable(Utils.EXTRA_FOLDER); in forBundle() local 72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder); in forBundle() 81 public static ConversationListContext forFolder(Account account, Folder folder) { in forFolder() argument 82 return new ConversationListContext(account, null, folder); in forFolder() 88 public static ConversationListContext forSearchQuery(Account account, Folder folder, in forSearchQuery() argument 90 return new ConversationListContext(account, Preconditions.checkNotNull(query), folder); in forSearchQuery() 104 folder = f; in ConversationListContext() 123 result.putParcelable(Utils.EXTRA_FOLDER, folder); in toBundle()
|
D | MailIntentService.java | 80 final Folder folder = intent.getParcelableExtra(Utils.EXTRA_FOLDER); in onHandleIntent() local 82 NotificationUtils.clearFolderNotification(this, account, folder, true /* markSeen */); in onHandleIntent() 83 Analytics.getInstance().sendEvent("notification_dismiss", folder.getTypeDescription(), in onHandleIntent() 96 final Folder folder = intent.getParcelableExtra(Utils.EXTRA_FOLDER); in onHandleIntent() local 103 folder.folderUri, getContactFetcher()); in onHandleIntent() 108 final Folder folder = intent.getParcelableExtra(Utils.EXTRA_FOLDER); in onHandleIntent() local 113 account, folder, getAttention, getContactFetcher()); in onHandleIntent()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Folder.java | 621 public static void setFolderBlockColor(Folder folder, View colorBlock) { in setFolderBlockColor() argument 626 !TextUtils.isEmpty(folder.bgColor) && (folder.type & FolderType.INBOX_SECTION) == 0; in setFolderBlockColor() 627 final int backgroundColor = showBg ? Integer.parseInt(folder.bgColor) : 0; in setFolderBlockColor() 644 public static void setIcon(Folder folder, ImageView iconView) { in setIcon() argument 648 int icon = folder.iconResId; in setIcon() 651 if (icon == R.drawable.ic_drawer_folder_24dp && folder.hasChildren) { in setIcon() 659 if (folder.supportsCapability(UIProvider.FolderCapabilities.TINT_ICON)) { in setIcon() 661 defaultIconDrawable.mutate().setColorFilter(folder.getBackgroundColor(0xFFFFFF), in setIcon() 682 LogUtils.e(LogUtils.TAG, "No icon returned for folder %s", folder); in setIcon() 710 for (Folder folder : folders) { in getUriArray() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | RequestPushMessage.java | 35 private RequestPushMessage(String folder) { in RequestPushMessage() argument 37 if (folder == null) { in RequestPushMessage() 38 folder = ""; in RequestPushMessage() 40 mHeaderSet.setHeader(HeaderSet.NAME, folder); in RequestPushMessage() 43 public RequestPushMessage(String folder, Bmessage msg, in RequestPushMessage() argument 46 this(folder); in RequestPushMessage()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 39 import com.android.launcher3.folder.Folder; 190 Folder folder = Folder.getOpen(mLauncher); in performAction() local 191 folder.close(true); in performAction() 193 folder.getInfo().remove(info, false); in performAction() 371 Folder folder = Folder.getOpen(mLauncher); in beginAccessibleDrag() local 372 if (folder != null) { in beginAccessibleDrag() 373 if (!folder.getItemsInReadingOrder().contains(item)) { in beginAccessibleDrag() 374 folder.close(true); in beginAccessibleDrag() 375 folder = null; in beginAccessibleDrag() 383 if (folder != null) { in beginAccessibleDrag() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
D | BaseWidgetProvider.java | 241 Folder folder = null; in doInBackground() local 251 folder = new Folder(folderCursor); in doInBackground() 260 folder == null ? FolderType.DEFAULT : folder.type, in doInBackground() 261 folder == null ? 0 : folder.capabilities, in doInBackground() 263 folder == null ? null : folder.conversationListUri, in doInBackground() 264 folder == null ? null : folder.name); in doInBackground()
|