Home | History | Annotate | Download | only in media

Lines Matching full:clustering

231                 MediaClustering clustering = mClusterSets.get(mediaSet);
232 if (clustering == null) {
233 clustering = new MediaClustering(mediaSet.isPicassaAlbum());
234 mClusterSets.put(mediaSet, clustering);
236 clustering.setTimeRange(mediaSet.mMaxTimestamp - mediaSet.mMinTimestamp, mediaSet.getNumExpectedItems());
237 clustering.addItemForClustering(item);
270 MediaClustering clustering = mClusterSets.get(set);
274 if (clustering != null) {
275 clustering.removeItemFromClustering(item);
306 MediaClustering clustering = mClusterSets.get(mediaSet);
307 if (clustering != null) {
308 clustering.removeItemFromClustering(item);
333 MediaClustering clustering = mClusterSets.get(set);
334 if (clustering != null) {
335 return clustering.getClustersForDisplay().size();
355 MediaClustering clustering = mClusterSets.get(set);
356 if (clustering != null) {
357 clustering.compute(null, true);
358 final ArrayList<Cluster> clusters = clustering.getClustersForDisplay();
400 MediaClustering clustering = mClusterSets.get(set);
401 if (clustering != null) {
402 ArrayList<MediaClustering.Cluster> clusters = clustering.getClustersForDisplay();
658 MediaClustering clustering = mClusterSets.get(set);
659 if (clustering != null) {
660 clustering.clear();
674 MediaClustering clustering = mClusterSets.get(set);
675 if (clustering != null) {
676 clustering.clear();
686 // requestedItems count changes in clustering mode.
689 MediaClustering clustering = mClusterSets.get(mediaSets.get(expandedSetIndex));
690 if (clustering != null) {
691 ArrayList<Cluster> clusters = clustering.getClustersForDisplay();
805 // Disable clustering.
833 MediaClustering clustering = null;
836 clustering = mClusterSets.get(setToUse);
837 if (clustering != null) {
838 clustering.compute(null, true);