/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | 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) { in getSubMediaSet() 101 private class AlbumsLoader implements ThreadPool.Job<ArrayList<MediaSet>> { 105 public ArrayList<MediaSet> run(JobContext jc) { in run() 125 ArrayList<MediaSet> albums = new ArrayList<MediaSet>(); in run() 128 MediaSet album = getLocalAlbum(dataManager, in run() [all …]
|
D | 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) { in LocalMergeAlbum() 57 for (MediaSet set : mSources) { in LocalMergeAlbum() 66 for(MediaSet set : mSources) { in isCameraRoll() 73 ArrayList<MediaSet> matches = new ArrayList<MediaSet>(); in updateData() 169 for (MediaSet set : mSources) { in getTotalMediaItemCount() 201 for (MediaSet set : mSources) { in delete() 208 for (MediaSet set : mSources) { in rotate() 214 private MediaSet mBaseSet; [all …]
|
D | FilterTypeSet.java | 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, in FilterTypeSet() 47 public MediaSet getSubMediaSet(int index) { in getSubMediaSet() 87 MediaSet set = mBaseSet.getSubMediaSet(i); in updateData() 89 MediaSet filteredSet = mDataManager.getMediaSet(filteredPath); in updateData() 102 mBaseSet.enumerateMediaItems(new MediaSet.ItemConsumer() { in updateData()
|
D | ComboAlbumSet.java | 26 public class ComboAlbumSet extends MediaSet implements ContentListener { 29 private final MediaSet[] mSets; 32 public ComboAlbumSet(Path path, GalleryApp application, MediaSet[] mediaSets) { in ComboAlbumSet() 35 for (MediaSet set : mSets) { in ComboAlbumSet() 43 public MediaSet getSubMediaSet(int index) { in getSubMediaSet() 44 for (MediaSet set : mSets) { in getSubMediaSet() 57 for (MediaSet set : mSets) { in getSubMediaSetCount()
|
D | ComboAlbum.java | 26 public class ComboAlbum extends MediaSet implements ContentListener { 29 private final MediaSet[] mSets; 32 public ComboAlbum(Path path, MediaSet[] mediaSets, String name) { in ComboAlbum() 35 for (MediaSet set : mSets) { in ComboAlbum() 44 for (MediaSet set : mSets) { in getMediaItem() 63 for (MediaSet set : mSets) { in getMediaItemCount()
|
D | MediaSet.java | 34 public abstract class MediaSet extends MediaObject { class 54 void onSyncDone(MediaSet mediaSet, int resultCode); in onSyncDone() 57 public MediaSet(Path path, long version) { in MediaSet() method in MediaSet 90 public MediaSet getSubMediaSet(int index) { in getSubMediaSet() 269 protected Future<Integer> requestSyncOnMultipleSets(MediaSet[] sets, SyncListener listener) { in requestSyncOnMultipleSets() 285 MultiSetSyncFuture(MediaSet[] sets, SyncListener listener) { in MultiSetSyncFuture() 333 public void onSyncDone(MediaSet mediaSet, int resultCode) { in onSyncDone() 345 if (listener != null) listener.onSyncDone(MediaSet.this, mResult); in onSyncDone()
|
D | DataManager.java | 28 import com.android.gallery3d.data.MediaSet.ItemConsumer; 194 public MediaSet getMediaSet(Path path) { in getMediaSet() 195 return (MediaSet) getMediaObject(path); in getMediaSet() 198 public MediaSet getMediaSet(String s) { in getMediaSet() 199 return (MediaSet) getMediaObject(s); in getMediaSet() 202 public MediaSet[] getMediaSetsFromString(String segment) { in getMediaSetsFromString() 205 MediaSet[] sets = new MediaSet[n]; in getMediaSetsFromString()
|
D | LocalSource.java | 27 import com.android.gallery3d.data.MediaSet.ItemConsumer; 97 MediaSet imageSet = (MediaSet) dataManager.getMediaObject( in createMediaObject() 99 MediaSet videoSet = (MediaSet) dataManager.getMediaObject( in createMediaObject() 103 path, comp, new MediaSet[] {imageSet, videoSet}, bucketId); in createMediaObject() 229 if (curId - startId >= MediaSet.MEDIAITEM_BATCH_FETCH_COUNT) { in processMapMediaItems()
|
D | ClusterAlbumSet.java | 27 public class ClusterAlbumSet extends MediaSet implements ContentListener { 31 private MediaSet mBaseSet; 37 MediaSet baseSet, int kind) { in ClusterAlbumSet() 46 public MediaSet getSubMediaSet(int index) { in getSubMediaSet() 132 mBaseSet.enumerateTotalMediaItems(new MediaSet.ItemConsumer() { in updateClustersContents()
|
D | ChangeNotifier.java | 28 private MediaSet mMediaSet; 31 public ChangeNotifier(MediaSet set, Uri uri, GalleryApp application) { in ChangeNotifier() 36 public ChangeNotifier(MediaSet set, Uri[] uris, GalleryApp application) { in ChangeNotifier()
|
D | FilterEmptyPromptSet.java | 21 public class FilterEmptyPromptSet extends MediaSet implements ContentListener { 26 private MediaSet mBaseSet; 28 public FilterEmptyPromptSet(Path path, MediaSet baseSet, MediaItem emptyItem) { in FilterEmptyPromptSet()
|
D | FilterSource.java | 68 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject() 73 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject() 78 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject()
|
D | ClusterAlbum.java | 21 public class ClusterAlbum extends MediaSet implements ContentListener { 27 private MediaSet mClusterAlbumSet; 31 MediaSet clusterAlbumSet) { in ClusterAlbum()
|
D | FilterDeleteSet.java | 30 public class FilterDeleteSet extends MediaSet implements ContentListener { 59 private final MediaSet mBaseSet; 67 public FilterDeleteSet(Path path, MediaSet baseSet) { in FilterDeleteSet()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | MediaSetSource.java | 28 import com.android.gallery3d.data.MediaSet; 42 private MediaSet mRootSet; 46 MediaSet mediaSet = (MediaSet) manager.getMediaObject(albumPath); in MediaSetSource() 100 mRootSet = (MediaSet) mDataManager.getMediaObject(rootPath); in monitorRootPath() 106 MediaSet mediaSet = (MediaSet) mDataManager.getMediaObject(mAlbumPath); in resolveAlbumPath() 129 private MediaSet mSource; 137 public CheckedMediaSetSource(MediaSet source) { in CheckedMediaSetSource()
|
/packages/apps/Gallery2/src/com/android/photos/shims/ |
D | MediaSetLoader.java | 30 import com.android.gallery3d.data.MediaSet; 32 import com.android.gallery3d.data.MediaSet.SyncListener; 46 public void onSyncDone(MediaSet mediaSet, int resultCode) { 50 private final MediaSet mMediaSet; 114 MediaSet m = mMediaSet.getSubMediaSet(i); in loadInBackground() 153 MediaSet ms = mMediaSet.getSubMediaSet(index); in uriForItem() 160 MediaSet ms = mMediaSet.getSubMediaSet(index); in urisForSubItems() 163 ms.enumerateMediaItems(new MediaSet.ItemConsumer() { in urisForSubItems() 185 MediaSet ms = mMediaSet.getSubMediaSet(index); in getPathForItem()
|
D | 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; 49 public void onSyncDone(MediaSet mediaSet, int resultCode) { 53 private final MediaSet mMediaSet;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | 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) { in compare()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | SlideshowPage.java | 32 import com.android.gallery3d.data.MediaSet; 202 MediaSet mediaSet = mActivity.getDataManager().getMediaSet(mediaPath); in initializeData() 226 private static MediaItem findMediaItem(MediaSet mediaSet, int index) { in findMediaItem() 228 MediaSet subset = mediaSet.getSubMediaSet(i); in findMediaItem() 241 private final MediaSet mMediaSet; 245 private long mSourceVersion = MediaSet.INVALID_DATA_VERSION; 248 public ShuffleSource(MediaSet mediaSet, boolean repeat) { in ShuffleSource() 315 private final MediaSet mMediaSet; 318 public SequentialSource(MediaSet mediaSet, boolean repeat) { in SequentialSource()
|
D | 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) { in AlbumSetDataLoader() 80 mData = new MediaSet[cacheSize]; in AlbumSetDataLoader() 124 public MediaSet getMediaSet(int index) { in getMediaSet() 156 MediaSet set = mData[i % length]; in findSet() 239 public MediaSet item;
|
D | AlbumSetPage.java | 42 import com.android.gallery3d.data.MediaSet; 67 EyePosition.EyePositionListener, MediaSet.SyncListener { 89 private MediaSet mMediaSet; 194 MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); in onSingleTapUp() 207 private static boolean albumShouldOpenInFilmstrip(MediaSet album) { in albumShouldOpenInFilmstrip() 240 MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); in pickAlbum() 302 MediaSet set = mAlbumSetDataAdapter.getMediaSet(slotIndex); in onLongTap() 701 public void onSyncDone(final MediaSet mediaSet, final int resultCode) { in onSyncDone() 702 if (resultCode == MediaSet.SYNC_RESULT_ERROR) { in onSyncDone() 712 if (resultCode == MediaSet.SYNC_RESULT_SUCCESS) { in onSyncDone() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | 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) { in expandMediaSet() 188 MediaSet set = mSourceMediaSet.getSubMediaSet(i); in getSelected() 223 int count = Math.min(total - index, MediaSet.MEDIAITEM_BATCH_FETCH_COUNT); in getSelected() 248 public void setSourceMediaSet(MediaSet set) { in setSourceMediaSet()
|
D | AlbumSetSlidingWindow.java | 29 import com.android.gallery3d.data.MediaSet; 75 public MediaSet album; 226 ? MediaSet.INVALID_DATA_VERSION in getDataVersion() 247 MediaSet album = mSource.getMediaSet(slotIndex); in updateAlbumSetEntry() 461 private static int identifyCacheFlag(MediaSet set) { in identifyCacheFlag() 463 & MediaSet.SUPPORT_CACHE) == 0) { in identifyCacheFlag() 464 return MediaSet.CACHE_FLAG_NO; in identifyCacheFlag() 470 private static int identifyCacheStatus(MediaSet set) { in identifyCacheStatus() 472 & MediaSet.SUPPORT_CACHE) == 0) { in identifyCacheStatus() 473 return MediaSet.CACHE_STATUS_NOT_CACHED; in identifyCacheStatus()
|
D | ManageCacheDrawer.java | 24 import com.android.gallery3d.data.MediaSet; 68 boolean wantCache = entry.cacheFlag == MediaSet.CACHE_FLAG_FULL; in renderSlot() 70 entry.cacheStatus != MediaSet.CACHE_STATUS_CACHED_FULL); in renderSlot()
|
/packages/apps/Gallery2/src/com/android/gallery3d/onetimeinitializer/ |
D | GalleryWidgetMigrator.java | 30 import com.android.gallery3d.data.MediaSet; 92 MediaSet mediaSet = (MediaSet) manager.getMediaObject(path); in migrateGalleryWidgetsInternal()
|