/packages/apps/Email/provider_src/com/android/email/provider/ |
FolderPickerCallback.java | 20 import com.android.mail.providers.Folder; 23 public void select(Folder folder);
|
FolderPickerSelectorAdapter.java | 23 import com.android.mail.providers.Folder; 37 * Return whether the supplied folder meets the requirements to be displayed 38 * in the folder list. 41 protected boolean meetsRequirements(Folder folder) { 43 return folder.supportsCapability(FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES) 44 || folder.isTrash();
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
ErrorListener.java | 20 import com.android.mail.providers.Folder; 26 public void onError(final Folder folder, boolean replaceVisibleToast);
|
FolderSelector.java | 20 import com.android.mail.providers.Folder; 23 * Interface that permits elements to implement selecting a folder. 24 * The single method {@link #onFolderSelected(com.android.mail.providers.Folder)} defines what 25 * happens when a folder is selected. 29 * Selects the folder provided as an argument here. This corresponds to the user 30 * selecting a folder in the UI element, either for creating a widget/shortcut (as in the 32 * the folder (as in the case of {@link AbstractActivityController}. 33 * @param folder 35 public void onFolderSelected(Folder folder); [all...] |
UserFolderHierarchicalFolderSelectorAdapter.java | 21 import com.android.mail.providers.Folder; 25 Context context, Cursor folders, int layout, Folder excludedFolder) { 30 * Return whether the supplied folder meets the requirements to be displayed 31 * in the folder list. 34 protected boolean meetsRequirements(Folder folder) { 35 if (folder.isProviderFolder()) { 38 return super.meetsRequirements(folder);
|
FolderController.java | 22 import com.android.mail.providers.Folder; 25 * The canonical owner of the apps' current {@link Folder} should implement this interface to keep 31 Folder getFolder();
|
SystemFolderSelectorAdapter.java | 23 import com.android.mail.providers.Folder; 35 int layout, Folder excludedFolder) { 40 * Return whether the supplied folder meets the requirements to be displayed 41 * in the folder list. 44 protected boolean meetsRequirements(Folder folder) { 49 return folder.isInbox(); 52 // return folder.supportsCapability(FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES) 53 // && folder.isProviderFolder();
|
FolderOperation.java | 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>(); [all...] |
ConversationsInOutboxTipView.java | 36 import com.android.mail.providers.Folder; 40 * Tip that is displayed in conversation list of 'Sent' folder whenever there are 48 private Folder mOutbox; 77 public void onUpdate(Folder folder, ConversationCursor cursor) { 78 if (mLoaderManager != null && folder != null) { 79 if ((folder.type & UIProvider.FolderType.SENT) > 0) { 80 // Only display this tip if user is viewing the Sent folder 86 private final LoaderCallbacks<ObjectCursor<Folder>> mFolderListLoaderCallbacks = 87 new LoaderManager.LoaderCallbacks<ObjectCursor<Folder>>() { [all...] |
ConversationSpecialItemView.java | 24 import com.android.mail.providers.Folder; 36 void onUpdate(Folder folder, ConversationCursor cursor);
|
FolderOperations.java | 20 import com.android.mail.providers.Folder; 32 * Object that contains a list of folder operations (application/removals of folders) 39 * The key is the canonical name of the Folder, and the value is a boolean, 40 * when true, the Folder should be added, and when false, the Folder 51 public FolderOperations(Folder folder, boolean add) { 53 if (folder != null) { 54 add(folder, add); 56 LogUtils.e(LOG_TAG, "FolderOperation created with null Folder object") [all...] |
RecentFolderList.java | 28 import com.android.mail.providers.Folder; 44 * A self-updating list of folder canonical names for the N most recently touched folders, ordered 59 /** The actual cache: map of folder URIs to folder objects. */ 66 * We exclude the default inbox for the account and the current folder; these might be the 79 * Compare based on alphanumeric name of the folder, ignoring case. 81 private static final Comparator<Folder> ALPHABET_IGNORECASE = new Comparator<Folder>() { 83 public int compare(Folder lhs, Folder rhs) 180 final Folder folder = c.getModel(); local [all...] |
AccountController.java | 26 import com.android.mail.providers.Folder; 91 * @param hasNewFolderOrAccount true if we need to load conversations for a different folder 94 void closeDrawer(boolean hasNewFolderOrAccount, Account nextAccount, Folder nextFolder); 107 * @return the choice mode to use in the {@link ListView} in the default folder list (subclasses
|
FolderItemView.java | 30 import com.android.mail.providers.Folder; 37 * The view for each folder in the folder list. 44 private Folder mFolder; 95 public static boolean areSameViews(final Folder a, final Folder b) { 110 public void bind(final Folder folder, final FolderUri parentUri) { 111 mFolder = folder; 113 mFolderTextView.setText(folder.name) [all...] |
FolderListFragment.java | 56 import com.android.mail.providers.Folder; 93 * <br /> Tapping on a parent folder creates a new fragment with the child folders at 99 * any folder for a given account. 104 LoaderManager.LoaderCallbacks<ObjectCursor<Folder>>, 117 * True if you want a divided FolderList. A divided folder list shows the following groups: 125 * True if the folder list belongs to a folder selection activity (one account only) 137 /** The currently selected folder (the folder being viewed). This is never null. */ 140 * The current folder from the controller. This is meant only to check when the unread coun 605 final Folder folder; local 1235 final Folder folder = getItem(position); local [all...] |
FolderSelectorAdapter.java | 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) local 142 final Folder folder = row.getFolder(); local 210 final Folder folder = folderRow.mFolder; local 319 final Folder folder = row.getFolder(); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
FolderObserver.java | 27 * A simple extension of {@link android.database.DataSetObserver} to provide the updated Folder in 28 * {@link #onChanged(Folder)} when the Folder changes. Initializing the object registers with 30 * receive {@link #onChanged(Folder)} till {@link #unregisterAndDestroy()} is called. 32 * To implement an {@link FolderObserver}, you need to implement the {@link #onChanged(Folder)} 52 * {@link #onChanged(Folder)} when the controller changes the Folder. 56 public Folder initialize(FolderController controller) { 74 * Callback invoked when the Folder object is changed. Since {@link Folder} objects ar [all...] |
FolderList.java | 13 * Simple class to encapsulate an immutable list of {@link Folder} objects, and handle serialization 18 private static final FolderList EMPTY = new FolderList(Collections.<Folder> emptyList()); 20 public final ImmutableList<Folder> folders; 24 private FolderList(Collection<Folder> in) { 33 folders = ImmutableList.copyOf(in.createTypedArrayList(Folder.CREATOR)); 55 * Directly turns a list of {@link Folder}s into a byte-array. Avoids the 61 public static byte[] listToBlob(List<Folder> in) { 82 public static FolderList copyOf(Collection<Folder> in) {
|
FolderWatcher.java | 40 * A container to keep a list of Folder objects, with the ability to automatically keep in sync with 44 public static final String FOLDER_URI = "FOLDER-URI"; 47 /** Map returning the default inbox folder for each URI */ 48 private final Map<Uri, Folder> mInboxMap = new HashMap<Uri, Folder>(); 50 /** Handles folder callbacks and reads unread counts. */ 113 // No inbox folder yet, put a safe placeholder for now. 158 * Stops watching the given URI for folder changes. Subsequent calls to 160 * @param uri the URI for a folder 188 final Folder f = getDefaultInbox(account) [all...] |
Folder.java | 52 * A folder is a collection of conversations, and perhaps other folders. 55 public class Folder implements Parcelable, Comparable<Folder> { 64 // TODO: remove this once we figure out which folder is returning a "null" string as the 72 * Unique id of this folder. 77 * Persistent (across installations) id of this folder. 82 * The content provider URI that returns this folder for this account. 87 * The human visible name for this folder. 92 * The possible capabilities that this folder supports. 97 * Whether or not this folder has children folders [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
ConversationListContext.java | 25 import com.android.mail.providers.Folder; 37 * This includes the folder the user selected to view the list, or the search query for the 52 * The folder whose conversations we are displaying, if any. 54 public final Folder folder; field in class:ConversationListContext 61 sUrlMatcher.addURI(UIProvider.AUTHORITY, "account/*/folder/*", 0); 71 Folder folder = bundle.getParcelable(Utils.EXTRA_FOLDER); local 72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder); 76 * Builds a context for a view to a Gmail folder [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
ConversationListFooterView.java | 28 import com.android.mail.providers.Folder; 34 void onFooterViewLoadMoreClick(Folder folder); 62 final Folder f = (Folder) v.getTag(); 68 public void setFolder(Folder folder) { 69 mLoadMore.setTag(folder); 70 mLoadMoreUri = folder.loadMoreUri; 74 * Update the view to reflect the new folder status [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
FolderEditText.java | 10 private Folder mFolder; 24 public void setFolder(Folder folder) { 25 mFolder = folder;
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
FolderEditText.java | 10 private Folder mFolder; 24 public void setFolder(Folder folder) { 25 mFolder = folder;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
EmptyStateUtils.java | 26 import com.android.mail.providers.Folder; 34 * Given an empty folder, set the corresponding empty state icon for that folder. 36 public static void bindEmptyFolderIcon(ImageView view, Folder folder) { 37 if (folder == null) { 39 } else if (folder.isInbox()) { 41 } else if (folder.isSearch()) { 43 } else if (folder.isSpam()) { 45 } else if (folder.isTrash()) [all...] |