Home | History | Annotate | Download | only in data

Lines Matching refs:editor

106         final SharedPreferences.Editor editor = prefs.edit();
110 editor.putInt(NEXT_TIMER_ID, id + 1);
115 editor.putStringSet(TIMER_IDS, timerIds);
118 editor.putInt(STATE + id, timer.getState().getValue());
119 editor.putLong(LENGTH + id, timer.getLength());
120 editor.putLong(TOTAL_LENGTH + id, timer.getTotalLength());
121 editor.putLong(LAST_START_TIME + id, timer.getLastStartTime());
122 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.getLastWallClockTime());
123 editor.putLong(REMAINING_TIME + id, timer.getRemainingTime());
124 editor.putString(LABEL + id, timer.getLabel());
125 editor.putBoolean(DELETE_AFTER_USE + id, timer.getDeleteAfterUse());
127 editor.apply();
139 final SharedPreferences.Editor editor = prefs.edit();
143 editor.putInt(STATE + id, timer.getState().getValue());
144 editor.putLong(LENGTH + id, timer.getLength());
145 editor.putLong(TOTAL_LENGTH + id, timer.getTotalLength());
146 editor.putLong(LAST_START_TIME + id, timer.getLastStartTime());
147 editor.putLong(LAST_WALL_CLOCK_TIME + id, timer.getLastWallClockTime());
148 editor.putLong(REMAINING_TIME + id, timer.getRemainingTime());
149 editor.putString(LABEL + id, timer.getLabel());
150 editor.putBoolean(DELETE_AFTER_USE + id, timer.getDeleteAfterUse());
152 editor.apply();
159 final SharedPreferences.Editor editor = prefs.edit();
167 editor.remove(TIMER_IDS);
168 editor.remove(NEXT_TIMER_ID);
170 editor.putStringSet(TIMER_IDS, timerIds);
174 editor.remove(STATE + id);
175 editor.remove(LENGTH + id);
176 editor.remove(TOTAL_LENGTH + id);
177 editor.remove(LAST_START_TIME + id);
178 editor.remove(LAST_WALL_CLOCK_TIME + id);
179 editor.remove(REMAINING_TIME + id);
180 editor.remove(LABEL + id);
181 editor.remove(DELETE_AFTER_USE + id);
183 editor.apply();