Lines Matching defs:folder

43  * A self-updating list of folder canonical names for the N most recently touched folders, ordered
58 /** The actual cache: map of folder URIs to folder objects. */
65 * We exclude the default inbox for the account and the current folder; these might be the
78 * Compare based on alphanumeric name of the folder, ignoring case.
87 * Class to store the recent folder list asynchronously.
99 * Create a new asynchronous task to store the recent folder list. Both the account
100 * and the folder should be non-null.
101 * @param account the current account for this folder.
102 * @param folder the folder which is to be stored.
104 public StoreRecent(Account account, Folder folder) {
105 assert (account != null && folder != null);
107 mFolder = folder;
115 // Only the folder URIs are provided. Providers are free to update their specific
179 final Folder folder = c.getModel();
180 final RecentFolderListEntry entry = new RecentFolderListEntry(folder);
181 mFolderCache.putElement(folder.folderUri.fullUri.toString(), entry);
182 LogUtils.v(TAG, "Account %s, Recent: %s", mAccount.getEmailAddress(), folder.name);
187 * Marks the given folder as 'accessed' by the user interface, its entry is updated in the
188 * recent folder list, and the current time is written to the provider. This should never
189 * be called with a null folder.
190 * @param folder the folder we touched
192 public void touchFolder(Folder folder, Account account) {
202 assert (folder != null);
204 if (folder.isProviderFolder() || folder.isType(FolderType.SEARCH)) {
205 LogUtils.d(TAG, "Not touching recent folder because it's provider or search folder");
209 final RecentFolderListEntry entry = new RecentFolderListEntry(folder);
210 mFolderCache.putElement(folder.folderUri.fullUri.toString(), entry);
211 new StoreRecent(mAccount, folder).execute();
215 * Generate a sorted list of recent folders, excluding the passed in folder (if any) and
219 * @param excludedFolderUri the uri of folder to be excluded (typically the current folder)
265 RecentFolderListEntry(Folder folder) {
266 mFolder = folder;