Lines Matching refs:folder
23 import com.android.mail.providers.Folder;
35 public final Folder mFolder;
38 public FolderOperation(Folder folder, Boolean operation) {
40 mFolder = folder;
44 * Get all the unique folders associated with a set of folder operations.
46 * @return ArrayList of Folder objects
48 public static ArrayList<Folder> getFolders(Collection<FolderOperation> ops) {
49 HashSet<Folder> folders = new HashSet<Folder>();
53 return new ArrayList<Folder>(folders);
58 * returns a valid collection even if the input folder is null.
61 * @return a collection of the folder.
69 * Return if a set of folder operations removes the specified folder or adds
72 public static boolean isDestructive(Collection<FolderOperation> folderOps, Folder folder) {
74 if (Objects.equal(op.mFolder, folder) && !op.mAdd) {
77 if (folder.isTrash() && op.mFolder.isInbox()) {