Home
last modified time | relevance | path

Searched refs:dataManager (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DMediaSetTest.java32 DataManager dataManager = app.getDataManager(); in testComboAlbumSet() local
34 dataManager.addSource(new ComboSource(app)); in testComboAlbumSet()
35 dataManager.addSource(new MockSource(app)); in testComboAlbumSet()
37 MockSet set00 = new MockSet(Path.fromString("/mock/00"), dataManager, 0, 2000); in testComboAlbumSet()
38 MockSet set01 = new MockSet(Path.fromString("/mock/01"), dataManager, 1, 3000); in testComboAlbumSet()
39 MockSet set10 = new MockSet(Path.fromString("/mock/10"), dataManager, 2, 4000); in testComboAlbumSet()
40 MockSet set11 = new MockSet(Path.fromString("/mock/11"), dataManager, 3, 5000); in testComboAlbumSet()
41 MockSet set12 = new MockSet(Path.fromString("/mock/12"), dataManager, 4, 6000); in testComboAlbumSet()
43 MockSet set0 = new MockSet(Path.fromString("/mock/0"), dataManager, 7, 7000); in testComboAlbumSet()
47 MockSet set1 = new MockSet(Path.fromString("/mock/1"), dataManager, 8, 8000); in testComboAlbumSet()
[all …]
DMockSet.java26 public MockSet(Path path, DataManager dataManager) { in MockSet() argument
31 public MockSet(Path path, DataManager dataManager, in MockSet() argument
33 this(path, dataManager); in MockSet()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DFilterSource.java43 DataManager dataManager = mApplication.getDataManager(); in createMediaObject() local
48 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject()
49 return new FilterTypeSet(path, dataManager, sets[0], mediaType); in createMediaObject()
53 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject()
DClusterSource.java63 DataManager dataManager = mApplication.getDataManager(); in createMediaObject() local
64 MediaSet[] sets = dataManager.getMediaSetsFromString(setsName); in createMediaObject()
77 MediaSet parent = dataManager.getMediaSet(path.getParent()); in createMediaObject()
80 return new ClusterAlbum(path, dataManager, parent); in createMediaObject()
DComboSource.java43 DataManager dataManager = mApplication.getDataManager(); in createMediaObject() local
47 dataManager.getMediaSetsFromString(segments[1])); in createMediaObject()
51 dataManager.getMediaSetsFromString(segments[2]), segments[1]); in createMediaObject()
DClusterAlbum.java29 public ClusterAlbum(Path path, DataManager dataManager, in ClusterAlbum() argument
32 mDataManager = dataManager; in ClusterAlbum()
75 DataManager dataManager) { in getMediaItemFromPath() argument
87 dataManager.mapMediaItems(subset, consumer, 0); in getMediaItemFromPath()
DLocalAlbum.java108 DataManager dataManager = mApplication.getDataManager(); in getMediaItem() local
127 dataManager, mApplication, mIsImage); in getMediaItem()
137 DataManager dataManager, GalleryApp app, boolean isImage) { in loadOrUpdateItem() argument
138 LocalMediaItem item = (LocalMediaItem) dataManager.peekMediaObject(path); in loadOrUpdateItem()
175 DataManager dataManager = application.getDataManager(); in getMediaItemById() local
202 MediaItem item = loadOrUpdateItem(childPath, cursor, dataManager, in getMediaItemById()
DSnailSource.java40 DataManager dataManager = mApplication.getDataManager(); in createMediaObject() local
45 (MediaItem) dataManager.getMediaObject(itemPath); in createMediaObject()
DClusterAlbumSet.java101 DataManager dataManager = mApplication.getDataManager(); in updateClusters() local
113 ClusterAlbum album = (ClusterAlbum) dataManager.peekMediaObject( in updateClusters()
116 album = new ClusterAlbum(childPath, dataManager, this); in updateClusters()
DFilterTypeSet.java32 public FilterTypeSet(Path path, DataManager dataManager, MediaSet baseSet, in FilterTypeSet() argument
35 mDataManager = dataManager; in FilterTypeSet()
DMtpDeviceSet.java64 DataManager dataManager = mApplication.getDataManager(); in run() local
74 MtpDevice device = (MtpDevice) dataManager.peekMediaObject(childPath); in run()
DLocalSource.java96 DataManager dataManager = app.getDataManager(); in createMediaObject() local
97 MediaSet imageSet = (MediaSet) dataManager.getMediaObject( in createMediaObject()
99 MediaSet videoSet = (MediaSet) dataManager.getMediaObject( in createMediaObject()
DMtpDevice.java125 DataManager dataManager = mApplication.getDataManager(); in getMediaItem() local
129 MtpImage image = (MtpImage) dataManager.peekMediaObject(childPath); in getMediaItem()
DLocalAlbumSet.java211 DataManager dataManager = mApplication.getDataManager(); in run() local
213 MediaSet album = getLocalAlbum(dataManager, in run()