/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
HierarchicalFolderSelectorAdapter.java | 32 import com.android.mail.providers.Folder; 49 int layout, Folder excludedFolder) { 58 final Folder folder = row.getFolder(); local 61 final CharSequence displayText = TextUtils.isEmpty(row.mPathName) ? folder.name 64 checkBox.setText(TextUtils.isEmpty(row.mPathName) ? folder.name 74 * 1) If there is just a folder name, return that. 75 * 2) If there is a single parent and a folder name, return parent/folder. 76 * 3) If there is > 1 but < 3 ancestors, return ancestor/ancestor2/folder [all...] |
SuppressNotificationReceiver.java | 21 import com.android.mail.providers.Folder; 38 * A simple {@code BroadcastReceiver} which suppresses new e-mail notifications for a given folder. 48 * Registers this receiver to suppress the new mail notifications for a given folder so 133 final Folder listContextFolder = listContext.folder; 136 LogUtils.e(LOG_TAG, "SuppressNotificationReceiver.onReceive: account=%s, folder=%s", 161 LogUtils.i(LOG_TAG, "Aborting broadcast of intent %s, folder uri is %s",
|
AbstractActivityController.java | 85 import com.android.mail.providers.Folder; 143 private static final String SAVED_FOLDER = "saved-folder"; 151 private static final String SAVED_HIERARCHICAL_FOLDER = "saved-hierarchical-folder"; 175 /** Key to store a folder in a bundle */ 176 private final String BUNDLE_FOLDER_KEY = "folder"; 186 protected Folder mFolder; 187 protected Folder mInbox; 203 /** A map of {@link Folder} {@link Uri} to scroll position in the conversation list. */ 271 /** Listeners that are interested in changes to the current folder. */ 273 /** Listeners that are interested in changes to the Folder or Account selection * 1139 final Folder folder = data.getParcelableExtra(EXTRA_FOLDER); local 1355 final Folder folder = savedState.getParcelable(SAVED_FOLDER); local [all...] |
SingleFolderSelectionDialog.java | 31 import com.android.mail.providers.Folder; 39 * Displays a folder selection dialog for the conversation provided. It allows 40 * the user to switch a conversation from one folder to another. 87 // Create a system folder adapter and an adapter for hierarchical 122 final Folder folder = ((FolderRow) item).getFolder(); local 124 // Remove the current folder and add the new folder. 126 ops.add(new FolderOperation(folder, true));
|
ActionBarController.java | 34 import com.android.mail.providers.Folder; 64 * The folder currently being shown 66 private Folder mFolder; 143 public void onChanged(Folder newFolder) { 148 // have a valid folder, or a valid list of accounts. 167 * Called by the owner of the ActionBar to change the current folder. 169 public void setFolder(Folder folder) { 170 mFolder = folder; 201 // If on tablet landscape, show current folder instead of emptying the action ba [all...] |
OnePaneController.java | 39 import com.android.mail.providers.Folder; 128 // even when waiting for sync (Folder list should still show with one 150 return !(account == null || context == null || context.folder == null 152 && isDefaultInbox(context.folder.folderUri, account); 251 // If going to the inbox, clear the folder list transaction history. 252 mInbox = listContext.folder; 257 // non-inbox folder. 370 * 2) If the user is in the folder list view, go back 374 * a) they got there by going through the folder 375 * list view, go back to the folder list view 456 final Folder folder = mFolder != null ? mFolder : mInbox; local [all...] |
SwipeableListView.java | 40 import com.android.mail.providers.Folder; 71 private Folder mFolder; 159 public void setCurrentFolder(Folder folder) { 160 mFolder = folder; 252 HashMap<Uri, Folder> targetFolders = Folder
|
TwoPaneController.java | 39 import com.android.mail.providers.Folder; 311 // a different folder. 325 public void onFolderSelected(Folder folder) { 330 // a different folder. 332 intent.putExtra(AbstractActivityController.EXTRA_FOLDER, folder); 340 setHierarchyFolder(folder); 341 super.onFolderSelected(folder); 739 final boolean isTopLevel = Folder.isRoot(mFolder); 790 // The Folder List fragment can be null for monkeys where we get a back before th [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
Folder.java | 25 public abstract class Folder { 38 INBOX, // NOTE: The folder's name must be INBOX 44 OTHER, // this folder has no specific role 45 UNKNOWN // the role of this folder is unknown 51 * Not all {@link Folder} implementations may invoke it. 63 * @param callbacks Pointer to callbacks class. This may be used by the folder between this 86 * Returns the mode the folder was opened with. This may be different than the mode the open 93 * Does not actually attempt to create a folder. 100 * Attempt to create the given folder remotely using the given type. 108 * Returns the number of messages in the selected folder [all...] |
Message.java | 35 protected Folder mFolder; 45 public Folder getFolder() {
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
FolderPreferences.java | 26 import com.android.mail.providers.Folder; 37 * Preferences relevant to one specific folder. In Email, this would only be used for an account's 42 private static final String PREFS_NAME_PREFIX = "Folder"; 53 * once for the folder (<code>false</code>) 67 private final Folder mFolder; 74 * @param folder The folder 76 public FolderPreferences(final Context context, final String accountEmail, final Folder folder, 78 this(context, accountEmail, folder, folder.persistentId [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationActionUtils.java | 42 import com.android.mail.providers.Folder; 88 public boolean shouldDisplayPrimary(final Folder folder, 90 return folder == null || folder.isInbox(); 118 boolean shouldDisplayPrimary(Folder folder, Conversation conversation, Message message); 168 public int getActionIconResId(final Folder folder, final Conversation conversation, 170 if (mActionToggler == null || mActionToggler.shouldDisplayPrimary(folder, conversation 746 final Folder folder = notificationAction.getFolder(); local 815 final Folder folder = notificationAction.getFolder(); local 838 final Folder folder = notificationAction.getFolder(); local [all...] |
NotificationUtils.java | 61 import com.android.mail.providers.Folder; 256 throw new IllegalStateException("Unable to locate folder for uri: " + 260 final Folder folder; local 263 folder = new Folder(folderCursor); 271 final NotificationKey key = new NotificationKey(account, folder); 291 key.account.uri.toString(), key.folder.folderUri.fullUri.toString(), 352 * account-folder pair, pass in the account and folder that should be resent 381 final Folder folder = notification.folder; local 439 final Folder folder = notification.folder; local 456 final Folder folder = notification.folder; local 1615 notificationManager.cancel(getNotificationId(account.getAccountManagerAccount(), folder)); local 1659 final Folder folder = notificationKey.folder; local 1909 public final Folder folder; field in class:NotificationUtils.NotificationKey [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
Pop3Store.java | 30 import com.android.emailcommon.mail.Folder; 31 import com.android.emailcommon.mail.Folder.OpenMode; 61 private final HashMap<String, Folder> mFolders = new HashMap<String, Folder>(); 95 public Folder getFolder(String name) { 96 Folder folder = mFolders.get(name); local 97 if (folder == null) { 98 folder = new Pop3Folder(name); 99 mFolders.put(folder.getName(), folder) local 127 Pop3Folder folder = new Pop3Folder(POP3_MAILBOX_NAME); local [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
MailboxSettings.java | 50 import com.android.mail.providers.Folder; 79 private final List<Folder> mFolders = new ArrayList<>(); 84 public static Intent getIntent(Context context, Uri foldersUri, Folder inbox) { 123 for (final Folder f : mFolders) { 210 final Folder folder = new Folder(cursor); local 211 if (!folder.supportsCapability(UIProvider.FolderCapabilities.IS_VIRTUAL) && 212 !folder.isTrash() && !folder.isDraft() && !folder.isOutbox()) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationItemViewModel.java | 32 import com.android.mail.providers.Folder; 55 * The Folder associated with the cache of models. 57 private static Folder sCachedModelsFolder; 195 List<Folder> rawFolders, boolean starred, boolean read, int priority, 316 * Clear cached header model objects when the folder changes. 318 public static void onFolderUpdated(Folder folder) { 321 final FolderUri newUri = folder != null ? folder.folderUri : FolderUri.EMPTY; 323 sCachedModelsFolder = folder; [all...] |
ConversationPagerAdapter.java | 34 import com.android.mail.providers.Folder; 52 public void onChanged(Folder newFolder) { 60 private final Folder mFolder; 136 Folder folder, Conversation initialConversation) { 143 mFolder = folder; 150 public boolean matches(Account account, Folder folder) { 152 && mFolder.equals(folder);
|
SelectedConversationsActionMenu.java | 34 import com.android.mail.providers.Folder; 91 private final Folder mFolder; 98 ControllableActivity activity, ConversationCheckedSet checkedSet, Folder folder) { 109 mFolder = folder; 173 LogUtils.d(LOG_TAG, "We are in a starred folder, removing the star"); 176 LogUtils.d(LOG_TAG, "Not in a starred folder."); 210 new AsyncTask<Void, Void, Folder>() { 212 protected Folder doInBackground(final Void... params) { 219 protected void onPostExecute(final Folder moveToInbox) [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/ |
Store.java | 28 import com.android.emailcommon.mail.Folder; 149 * Some protocols require that a sent message be copied (uploaded) into the Sent folder 160 * Some protocols allow for syncing of folder types other than inbox. The store for any such 169 public Folder getFolder(String name) throws MessagingException { 175 * <em>Note: This does not perform folder synchronization and it will not remove mailboxes 180 public Folder[] updateFolders() throws MessagingException {
|
/packages/apps/Email/src/com/android/email/preferences/ |
EmailPreferenceMigrator.java | 30 import com.android.mail.providers.Folder; 91 // Move folder notification settings 129 LogUtils.e(LOG_TAG, "Null folder cursor for mailbox %s", 135 Folder folder = null; local 138 folder = new Folder(folderCursor); 140 LogUtils.e(LOG_TAG, "Empty folder cursor for mailbox %s", 150 new FolderPreferences(context, account.getEmailAddress(), folder,
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
Pop3StoreUnitTests.java | 32 import com.android.emailcommon.mail.Folder; 33 import com.android.emailcommon.mail.Folder.FolderType; 34 import com.android.emailcommon.mail.Folder.OpenMode; 239 Pop3Store.Pop3Folder folder = mStore.new Pop3Folder("INBOX"); local 240 folder.open(OpenMode.READ_WRITE); 257 * Test small Store & Folder functions that manage folders & namespace 261 // getPersonalNamespaces() always returns INBOX folder 262 Folder[] folders = mStore.updateFolders(); 280 * Test small Folder functions that don't really do anything in Pop3 318 * Lightweight test to confirm that POP3 hasn't implemented any folder roles yet [all...] |
ImapStoreUnitTests.java | 48 import com.android.emailcommon.mail.Folder; 49 import com.android.emailcommon.mail.Folder.FolderType; 50 import com.android.emailcommon.mail.Folder.OpenMode; 82 /** Default folder name. In order to test for encoding, we use a non-ascii name. */ 84 /** Folder name encoded in UTF-7. */ 87 * Flag bits to specify whether or not a folder can be selected. This corresponds to 105 private Folder mCopyToFolder; 186 // TODO: inject specific facts in the initial folder SELECT and check them here 507 // Now open the folder. Although the server indicates ID in the capabilities, 513 * Test small Folder functions that don't really do anything in Ima 1450 final Folder folder = mStore.getFolder("test"); local 1512 Folder folder = mStore.getFolder("\\u65E5\\u672C\\u8A9E"); local 1539 Folder folder = mStore.getFolder("\\u65E5\\u672C\\u8A9E"); local 2080 Folder folder = mStore.getFolder("INBOX"); local 2308 ImapFolder folder = new ImapFolder(null, serverId); local 2345 testMap.put(folder.getName(), folder); local [all...] |
/packages/apps/Email/provider_src/com/android/email/service/ |
EmailServiceStub.java | 41 import com.android.emailcommon.mail.Folder; 42 import com.android.emailcommon.mail.Folder.MessageRetrievalListener; 43 import com.android.emailcommon.mail.Folder.OpenMode; 125 Folder remoteFolder = null; 156 // 2. Open the remote folder. 303 // If this folder is syncable, then we should set its UISyncStatus. 316 final Folder[] remoteFolders = store.updateFolders(); 318 for (final Folder remoteFolder : remoteFolders) {
|
ImapService.java | 46 import com.android.emailcommon.mail.Folder; 47 import com.android.emailcommon.mail.Folder.FolderType; 48 import com.android.emailcommon.mail.Folder.MessageRetrievalListener; 49 import com.android.emailcommon.mail.Folder.MessageUpdateCallbacks; 50 import com.android.emailcommon.mail.Folder.OpenMode; 158 * Start foreground synchronization of the specified folder. This is called by 165 final Account account, final Mailbox folder, final boolean loadMore, 174 synchronizeMailboxGeneric(context, account, remoteStore, folder, loadMore, uiRefresh); 249 * @param remoteFolder the (open) Folder we're working on 255 Folder remoteFolder, ArrayList<Message> messages, final Mailbox toMailbox [all...] |
/packages/apps/Browser/src/com/android/browser/ |
AddBookmarkPage.java | 127 private static class Folder { 130 Folder(String name, long id) { 147 private Uri getUriForFolder(long folder) { 150 if (folder == mRootFolder && account != null) { 155 return BrowserContract.Bookmarks.buildFolderUri(folder); 161 Folder folderData = (Folder) data; 162 long folder = folderData.Id; local 166 loader.setUri(getUriForFolder(folder)); 208 Folder folder = (Folder) data local 530 long folder; local [all...] |