Lines Matching refs:folder
21 import com.android.mail.providers.Folder;
50 * An adapter for translating a cursor of {@link Folder} to a set of selectable views to be used for
56 private final Folder mFolder;
61 public FolderRow(Folder folder, boolean isSelected) {
62 mFolder = folder;
66 public Folder getFolder() {
93 private Folder mExcludedFolder;
103 int layout, Folder excludedFolder) {
123 final Folder folder = new Folder(folders);
126 folder.folderUri.getComparisonUri().toString());
127 final FolderRow row = new FolderRow(folder, isSelected);
131 if (meetsRequirements(folder) && !Objects.equal(folder, mExcludedFolder) &&
132 folder.isProviderFolder()) {
142 final Folder folder = row.getFolder();
143 if (meetsRequirements(folder) && !Objects.equal(folder, mExcludedFolder) &&
144 !folder.isProviderFolder()) {
181 * Sorts the folder list according to hierarchy.
190 * Then for each folder, we check to see if the parent TreeNode has already been created. We
193 * Whenever we create a new TreeNode we add it to the nodeMap keyed on the folder's provider
199 * @param folderList List of {@link Folder} objects to sort
205 // Map from folder Uri to TreeNode containing said folder
210 final Folder folder = folderRow.mFolder;
212 TreeNode node = nodeMap.get(folder.folderUri.getComparisonUri());
215 nodeMap.put(folder.folderUri.getComparisonUri(), node);
224 TreeNode parentNode = nodeMap.get(folder.parent);
227 nodeMap.put(folder.parent, parentNode);
242 // If parentNode is null then currentNode is the root node (not a real folder)
276 * Return whether the supplied folder meets the requirements to be displayed
277 * in the folder list.
279 protected boolean meetsRequirements(Folder folder) {
281 return folder.supportsCapability(FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES) &&
282 !folder.isTrash() && !Objects.equal(folder, mExcludedFolder);
319 final Folder folder = row.getFolder();
321 row.mPathName : folder.name;
325 // folder on the parent list item's click handler.
336 Folder.setIcon(folder, folderIcon);