Home | History | Annotate | Download | only in data

Lines Matching refs:prefs

58     static Stopwatch getStopwatch(SharedPreferences prefs) {
59 final int stateIndex = prefs.getInt(STATE, RESET.ordinal());
61 final long lastStartTime = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED);
62 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED);
63 final long accumulatedTime = prefs.getLong(ACCUMULATED_TIME, 0);
69 setStopwatch(prefs, s);
77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) {
78 final SharedPreferences.Editor editor = prefs.edit();
98 static List<Lap> getLaps(SharedPreferences prefs) {
100 final int lapCount = prefs.getInt(LAP_COUNT, 0);
109 final long accumulatedTime = prefs.getLong(lapAccumulatedTimeKey, 0);
131 static void addLap(SharedPreferences prefs, int newLapCount, long accumulatedTime) {
132 prefs.edit()
141 static void clearLaps(SharedPreferences prefs) {
142 final SharedPreferences.Editor editor = prefs.edit();
144 final int lapCount = prefs.getInt(LAP_COUNT, 0);