forked from upstream-mirrors/OpenTracks
First stab at aggregated stats. Still needs work. Check in to work on home computer
This commit is contained in:
@@ -15,6 +15,10 @@
|
||||
*/
|
||||
package com.google.android.apps.mytracks.content;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import com.google.android.apps.mytracks.stats.TripStatistics;
|
||||
|
||||
import android.content.ContentValues;
|
||||
@@ -802,6 +806,17 @@ public class MyTracksProviderUtilsImpl implements MyTracksProviderUtils {
|
||||
String select = TracksColumns._ID + "=" + id;
|
||||
return findTrackBy(select);
|
||||
}
|
||||
|
||||
public List<Track> retrieveAllTracks() {
|
||||
List<Track> tracks = new LinkedList<Track>();
|
||||
Cursor cursor = getTracksCursor(null);
|
||||
if (cursor != null) {
|
||||
do {
|
||||
tracks.add(createTrack(cursor));
|
||||
} while(cursor.moveToNext());
|
||||
}
|
||||
return tracks;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getTrackPoints(Track track, int maxPoints) {
|
||||
|
||||
Reference in New Issue
Block a user