/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
ComboAlbumSet.java | 26 public class ComboAlbumSet extends MediaSet implements ContentListener { 29 private final MediaSet[] mSets; 32 public ComboAlbumSet(Path path, GalleryApp application, MediaSet[] mediaSets) { 35 for (MediaSet set : mSets) { 43 public MediaSet getSubMediaSet(int index) { 44 for (MediaSet set : mSets) { 57 for (MediaSet set : mSets) {
|
FilterTypeSet.java | 21 // FilterTypeSet filters a base MediaSet according to a matching media type. 22 public class FilterTypeSet extends MediaSet implements ContentListener { 27 private final MediaSet mBaseSet; 30 private final ArrayList<MediaSet> mAlbums = new ArrayList<MediaSet>(); 32 public FilterTypeSet(Path path, DataManager dataManager, MediaSet baseSet, 47 public MediaSet getSubMediaSet(int index) { 87 MediaSet set = mBaseSet.getSubMediaSet(i); 89 MediaSet filteredSet = mDataManager.getMediaSet(filteredPath); 102 mBaseSet.enumerateMediaItems(new MediaSet.ItemConsumer() [all...] |
ChangeNotifier.java | 28 private MediaSet mMediaSet; 31 public ChangeNotifier(MediaSet set, Uri uri, GalleryApp application) { 36 public ChangeNotifier(MediaSet set, Uri[] uris, GalleryApp application) {
|
FilterEmptyPromptSet.java | 21 public class FilterEmptyPromptSet extends MediaSet implements ContentListener { 26 private MediaSet mBaseSet; 28 public FilterEmptyPromptSet(Path path, MediaSet baseSet, MediaItem emptyItem) {
|
ComboAlbum.java | 26 public class ComboAlbum extends MediaSet implements ContentListener { 29 private final MediaSet[] mSets; 32 public ComboAlbum(Path path, MediaSet[] mediaSets, String name) { 35 for (MediaSet set : mSets) { 44 for (MediaSet set : mSets) { 63 for (MediaSet set : mSets) {
|
LocalAlbumSet.java | 38 public class LocalAlbumSet extends MediaSet 39 implements FutureListener<ArrayList<MediaSet>> { 52 private ArrayList<MediaSet> mAlbums = new ArrayList<MediaSet>(); 58 private Future<ArrayList<MediaSet>> mLoadTask; 59 private ArrayList<MediaSet> mLoadBuffer; 80 public MediaSet getSubMediaSet(int index) { 101 private class AlbumsLoader implements ThreadPool.Job<ArrayList<MediaSet>> { 105 public ArrayList<MediaSet> run(JobContext jc) { 125 ArrayList<MediaSet> albums = new ArrayList<MediaSet>() [all...] |
Clustering.java | 22 public abstract void run(MediaSet baseSet);
|
LocalMergeAlbum.java | 36 public class LocalMergeAlbum extends MediaSet implements ContentListener { 42 private final MediaSet[] mSources; 52 Path path, Comparator<MediaItem> comparator, MediaSet[] sources, int bucketId) { 57 for (MediaSet set : mSources) { 66 for(MediaSet set : mSources) { 73 ArrayList<MediaSet> matches = new ArrayList<MediaSet>(); 169 for (MediaSet set : mSources) { 201 for (MediaSet set : mSources) { 208 for (MediaSet set : mSources) [all...] |
FilterSource.java | 68 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); 73 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); 78 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName);
|
DataSourceType.java | 30 public static int identifySourceType(MediaSet set) {
|
ClusterSource.java | 64 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); 77 MediaSet parent = dataManager.getMediaSet(path.getParent());
|
MediaSet.java | 25 // MediaSet is a directory-like data structure. 34 public abstract class MediaSet extends MediaObject { 36 private static final String TAG = "MediaSet"; 51 * @param mediaSet the MediaSet that's done with sync 54 void onSyncDone(MediaSet mediaSet, int resultCode); 57 public MediaSet(Path path, long version) { 90 public MediaSet getSubMediaSet(int index) { 155 // NOTE: The MediaSet only keeps a weak reference to the listener. Th [all...] |
ClusterAlbumSet.java | 27 public class ClusterAlbumSet extends MediaSet implements ContentListener { 31 private MediaSet mBaseSet; 37 MediaSet baseSet, int kind) { 46 public MediaSet getSubMediaSet(int index) { 132 mBaseSet.enumerateTotalMediaItems(new MediaSet.ItemConsumer() {
|
ClusterAlbum.java | 21 public class ClusterAlbum extends MediaSet implements ContentListener { 27 private MediaSet mClusterAlbumSet; 31 MediaSet clusterAlbumSet) {
|
SingleItemAlbum.java | 21 public class SingleItemAlbum extends MediaSet {
|
DataManager.java | 28 import com.android.gallery3d.data.MediaSet.ItemConsumer; 41 // Each MediaSet and MediaItem has a unique 64 bits id. The most significant 43 // the self id. For MediaSet the self id is is globally unique, but for 46 // To make sure the id is the same when the MediaSet is re-created, a child key 194 public MediaSet getMediaSet(Path path) { 195 return (MediaSet) getMediaObject(path); 198 public MediaSet getMediaSet(String s) { 199 return (MediaSet) getMediaObject(s); 202 public MediaSet[] getMediaSetsFromString(String segment) { 205 MediaSet[] sets = new MediaSet[n] [all...] |
TagClustering.java | 40 public void run(MediaSet baseSet) { 45 baseSet.enumerateTotalMediaItems(new MediaSet.ItemConsumer() {
|
LocalSource.java | 27 import com.android.gallery3d.data.MediaSet.ItemConsumer; 97 MediaSet imageSet = (MediaSet) dataManager.getMediaObject( 99 MediaSet videoSet = (MediaSet) dataManager.getMediaObject( 103 path, comp, new MediaSet[] {imageSet, videoSet}, bucketId); 229 if (curId - startId >= MediaSet.MEDIAITEM_BATCH_FETCH_COUNT) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MediaSetUtils.java | 23 import com.android.gallery3d.data.MediaSet; 29 public static final Comparator<MediaSet> NAME_COMPARATOR = new NameComparator(); 58 public static class NameComparator implements Comparator<MediaSet> { 60 public int compare(MediaSet set1, MediaSet set2) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
MediaSetSource.java | 28 import com.android.gallery3d.data.MediaSet; 42 private MediaSet mRootSet; 46 MediaSet mediaSet = (MediaSet) manager.getMediaObject(albumPath); 47 if (mediaSet != null) { 48 mSource = new CheckedMediaSetSource(mediaSet); 100 mRootSet = (MediaSet) mDataManager.getMediaObject(rootPath); 106 MediaSet mediaSet = (MediaSet) mDataManager.getMediaObject(mAlbumPath) [all...] |
/packages/apps/Gallery2/src/com/android/photos/shims/ |
MediaSetLoader.java | 30 import com.android.gallery3d.data.MediaSet; 32 import com.android.gallery3d.data.MediaSet.SyncListener; 39 * Returns all MediaSets in a MediaSet, wrapping them in a cursor to appear 46 public void onSyncDone(MediaSet mediaSet, int resultCode) { 50 private final MediaSet mMediaSet; 114 MediaSet m = mMediaSet.getSubMediaSet(i); 153 MediaSet ms = mMediaSet.getSubMediaSet(index); 160 MediaSet ms = mMediaSet.getSubMediaSet(index); 163 ms.enumerateMediaItems(new MediaSet.ItemConsumer() [all...] |
MediaItemsLoader.java | 32 import com.android.gallery3d.data.MediaSet; 33 import com.android.gallery3d.data.MediaSet.ItemConsumer; 34 import com.android.gallery3d.data.MediaSet.SyncListener; 42 * Returns all MediaItems in a MediaSet, wrapping them in a cursor to appear 49 public void onSyncDone(MediaSet mediaSet, int resultCode) { 53 private final MediaSet mMediaSet;
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
SlideshowPage.java | 32 import com.android.gallery3d.data.MediaSet; 202 MediaSet mediaSet = mActivity.getDataManager().getMediaSet(mediaPath); 207 new ShuffleSource(mediaSet, repeat), 0, null); 214 mModel = new SlideshowDataAdapter(mActivity, new SequentialSource(mediaSet, repeat), 226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { 227 for (int i = 0, n = mediaSet.getSubMediaSetCount(); i < n; ++i) { 228 MediaSet subset = mediaSet.getSubMediaSet(i) [all...] |
AlbumSetDataLoader.java | 27 import com.android.gallery3d.data.MediaSet; 53 private final MediaSet[] mData; 65 private final MediaSet mSource; 77 public AlbumSetDataLoader(AbstractGalleryActivity activity, MediaSet albumSet, int cacheSize) { 80 mData = new MediaSet[cacheSize]; 124 public MediaSet getMediaSet(int index) { 151 // Returns the index of the MediaSet with the given path or 156 MediaSet set = mData[i % length]; 239 public MediaSet item;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
SelectionManager.java | 22 import com.android.gallery3d.data.MediaSet; 38 private MediaSet mSourceMediaSet; 150 private static boolean expandMediaSet(ArrayList<Path> items, MediaSet set, int maxSelection) { 188 MediaSet set = mSourceMediaSet.getSubMediaSet(i); 223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); 248 public void setSourceMediaSet(MediaSet set) {
|