Home
last modified time | relevance | path

Searched refs:getDataModel (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerService.java119 DataModel.getDataModel().updateTimerNotification(); in onStartCommand()
123 DataModel.getDataModel().resetExpiredTimers(label); in onStartCommand()
127 DataModel.getDataModel().resetUnexpiredTimers(label); in onStartCommand()
131 DataModel.getDataModel().resetMissedTimers(label); in onStartCommand()
138 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onStartCommand()
162 DataModel.getDataModel().startTimer(this, timer); in onStartCommand()
166 DataModel.getDataModel().pauseTimer(timer); in onStartCommand()
170 DataModel.getDataModel().addTimerMinute(timer); in onStartCommand()
173 DataModel.getDataModel().resetOrDeleteTimer(timer, label); in onStartCommand()
177 DataModel.getDataModel().expireTimer(this, timer); in onStartCommand()
[all …]
DTimerFragment.java124 DataModel.getDataModel().addTimerListener(mAdapter); in onCreateView()
125 DataModel.getDataModel().addTimerListener(mTimerWatcher); in onCreateView()
176 final Timer timer = DataModel.getDataModel().getMostRecentExpiredTimer(); in onStart()
182 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onStart()
184 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onStart()
201 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onResume()
204 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onResume()
224 DataModel.getDataModel().removeTimerListener(mAdapter); in onDestroyView()
225 DataModel.getDataModel().removeTimerListener(mTimerWatcher); in onDestroyView()
343 DataModel.getDataModel().pauseTimer(timer); in onFabClick()
[all …]
DExpiredTimersActivity.java104 DataModel.getDataModel().addTimerListener(mTimerChangeWatcher); in onCreate()
122 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onDestroy()
134 DataModel.getDataModel().resetExpiredTimers(R.string.label_hardware_button); in dispatchKeyEvent()
180 final Timer timer = DataModel.getDataModel().getTimer(timerId); in addTimer()
181 DataModel.getDataModel().addTimerMinute(timer); in addTimer()
240 return DataModel.getDataModel().getExpiredTimers(); in getExpiredTimers()
254 final Timer timer = DataModel.getDataModel().getTimer(timerItem.getId()); in run()
275 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onClick()
276 DataModel.getDataModel().resetExpiredTimers(R.string.label_deskclock); in onClick()
DTimerItemFragment.java92 return DataModel.getDataModel().getTimer(getTimerId()); in getTimer()
100 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_deskclock); in onClick()
102 DataModel.getDataModel().addTimerMinute(timer); in onClick()
130 DataModel.getDataModel().startTimer(clickedTimer); in onClick()
132 DataModel.getDataModel().pauseTimer(clickedTimer); in onClick()
DTimerKlaxon.java59 if (DataModel.getDataModel().isTimerRingtoneSilent()) { in start()
63 final Uri uri = DataModel.getDataModel().getTimerRingtoneUri(); in start()
64 final long crescendoDuration = DataModel.getDataModel().getTimerCrescendoDuration(); in start()
68 if (DataModel.getDataModel().getTimerVibrate()) { in start()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java151 DataModel.getDataModel().addStopwatchListener(mStopwatchWatcher); in onCreateView()
179 DataModel.getDataModel().startStopwatch(); in onStart()
183 DataModel.getDataModel().pauseStopwatch(); in onStart()
217 DataModel.getDataModel().removeStopwatchListener(mStopwatchWatcher); in onDestroyView()
321 DataModel.getDataModel().startStopwatch(); in doStart()
329 DataModel.getDataModel().pauseStopwatch(); in doPause()
338 DataModel.getDataModel().resetStopwatch(); in doReset()
442 final boolean appInForeground = DataModel.getDataModel().isApplicationInForeground(); in adjustWakeLock()
466 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
470 return DataModel.getDataModel().canAddMoreLaps(); in canRecordMoreLaps()
[all …]
DLapsAdapter.java103 lapTime = DataModel.getDataModel().getCurrentLapTime(totalTime); in onBindViewHolder()
136 final long lapTime = DataModel.getDataModel().getCurrentLapTime(totalTime); in updateCurrentLap()
150 final Lap lap = DataModel.getDataModel().addLap(); in addLap()
212 final long lapTime = DataModel.getDataModel().getCurrentLapTime(totalTime); in getShareText()
299 final long longestLapTime = Math.max(DataModel.getDataModel().getLongestLapTime(), lapTime); in formatLapTime()
334 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
338 return DataModel.getDataModel().getLaps(); in getLaps()
DStopwatchService.java75 DataModel.getDataModel().startStopwatch(); in onStartCommand()
80 DataModel.getDataModel().pauseStopwatch(); in onStartCommand()
85 DataModel.getDataModel().resetStopwatch(); in onStartCommand()
90 DataModel.getDataModel().addLap(); in onStartCommand()
DStopwatchCircleView.java116 if (laps.isEmpty() || !DataModel.getDataModel().canAddMoreLaps()) { in onDraw()
171 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
175 return DataModel.getDataModel().getLaps(); in getLaps()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.java146 final DataModel dataModel = DataModel.getDataModel(); in createTimerRingtonePickerIntent()
247 DataModel.getDataModel().setDefaultAlarmRingtoneUri(alarm.alert); in onPause()
255 DataModel.getDataModel().setTimerRingtoneUri(mSelectedRingtoneUri); in onPause()
581 DataModel.getDataModel().addCustomRingtone(mUri, title); in onPostExecute()
640 if (mRemoveUri.equals(DataModel.getDataModel().getDefaultAlarmRingtoneUri())) { in onPostExecute()
641 DataModel.getDataModel().setDefaultAlarmRingtoneUri(mSystemDefaultRingtoneUri); in onPostExecute()
645 if (mRemoveUri.equals(DataModel.getDataModel().getTimerRingtoneUri())) { in onPostExecute()
646 final Uri timerRingtoneUri = DataModel.getDataModel().getDefaultTimerRingtoneUri(); in onPostExecute()
647 DataModel.getDataModel().setTimerRingtoneUri(timerRingtoneUri); in onPostExecute()
651 DataModel.getDataModel().removeCustomRingtone(mRemoveUri); in onPostExecute()
DRingtoneLoader.java57 mCustomRingtones = DataModel.getDataModel().getCustomRingtones(); in onStartLoading()
64 DataModel.getDataModel().loadRingtoneTitles(); in loadInBackground()
65 DataModel.getDataModel().loadRingtonePermissions(); in loadInBackground()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java160 DataModel.getDataModel().setSelectedCities(mCitiesAdapter.getSelectedCities()); in onPause()
500 final List<City> selected = DataModel.getDataModel().getSelectedCities(); in refresh()
522 filteredCities = DataModel.getDataModel().getAllCities(); in filter()
524 final List<City> unselected = DataModel.getDataModel().getUnselectedCities(); in filter()
551 return DataModel.getDataModel().getCitySort(); in getCitySort()
555 return DataModel.getDataModel().getCityIndexComparator(); in getCitySortComparator()
633 item.setTitle(DataModel.getDataModel().getCitySort() == DataModel.CitySort.NAME in onPrepareOptionsItem()
640 DataModel.getDataModel().toggleCitySort(); in onOptionsItemSelected()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.java179 DataModel.getDataModel().setDisplayClockSeconds((boolean) newValue); in onPreferenceChange()
192 DataModel.getDataModel().setTimerVibrate(timerVibratePref.isChecked()); in onPreferenceChange()
195 pref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in onPreferenceChange()
253 final TimeZones timezones = DataModel.getDataModel().getTimeZones(); in loadTimeZoneList()
300 final Weekdays.Order weekdayOrder = DataModel.getDataModel().getWeekdayOrder(); in refresh()
310 timerRingtonePref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in refresh()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmInitReceiver.java61 DataModel.getDataModel().updateGlobalIntentId(); in onReceive()
66 DataModel.getDataModel().updateAfterReboot(); in onReceive()
70 DataModel.getDataModel().updateAfterTimeSet(); in onReceive()
84 DataModel.getDataModel().updateAllNotifications(); in onReceive()
DClockFragment.java116 DataModel.getDataModel().addCityListener(mCityAdapter); in onCreateView()
197 DataModel.getDataModel().removeCityListener(mCityAdapter); in onDestroyView()
356 mShowHomeClock = DataModel.getDataModel().getShowHomeClock(); in SelectedCitiesAdapter()
415 return DataModel.getDataModel().getHomeCity(); in getHomeCity()
419 return DataModel.getDataModel().getSelectedCities(); in getCities()
453 if (DataModel.getDataModel().getClockStyle() == DataModel.ClockStyle.ANALOG) { in bind()
DUtils.java193 final boolean displaySeconds = DataModel.getDataModel().getDisplayClockSeconds(); in setClockSecondsEnabled()
194 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getClockStyle(); in setClockSecondsEnabled()
214 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getClockStyle(); in setClockStyle()
234 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getScreensaverClockStyle(); in setScreensaverClockStyle()
539 return DataModel.getDataModel().elapsedRealtime(); in now()
543 return DataModel.getDataModel().currentTimeMillis(); in wallClock()
DHandleApiCalls.java377 final Calendar now = DataModel.getDataModel().getCalendar(); in handleSetAlarm()
399 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleShowTimers()
436 for (Timer t : DataModel.getDataModel().getTimers()) { in handleSetTimer()
447 timer = DataModel.getDataModel().addTimer(lengthMillis, label, skipUi); in handleSetTimer()
452 DataModel.getDataModel().startTimer(timer); in handleSetTimer()
583 final Uri defaultRingtone = DataModel.getDataModel().getDefaultAlarmRingtoneUri(); in setSelectionFromIntent()
DDeskClockBackupAgent.java88 DataModel.getDataModel().setRestoreBackupFinished(true); in onRestoreFinished()
111 if (!DataModel.getDataModel().isRestoreBackupFinished()) { in processRestoredData()
141 DataModel.getDataModel().setRestoreBackupFinished(false); in processRestoredData()
DDeskClock.java312 DataModel.getDataModel().addSilentSettingsListener(mSilentSettingChangeWatcher); in onStart()
313 DataModel.getDataModel().setApplicationInForeground(true); in onStart()
358 DataModel.getDataModel().removeSilentSettingsListener(mSilentSettingChangeWatcher); in onStop()
360 DataModel.getDataModel().setApplicationInForeground(false); in onStop()
656 if (DataModel.getDataModel().isApplicationInForeground()) { in selectedTabChanged()
DDropShadowController.java121 if (DataModel.getDataModel().isApplicationInForeground()) { in updateDropShadow()
132 if (DataModel.getDataModel().isApplicationInForeground()) { in updateDropShadow()
DLabelDialogFragment.java189 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel()
191 DataModel.getDataModel().setTimerLabel(timer, label); in setLabel()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetCityViewsFactory.java171 DataModel.getDataModel().run(refreshRunnable);
226 mHomeCity = DataModel.getDataModel().getHomeCity();
227 mCities = new ArrayList<>(DataModel.getDataModel().getSelectedCities());
228 mShowHomeClock = DataModel.getDataModel().getShowHomeClock();
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.java63 DataModel.getDataModel().addStopwatchListener(new StopwatchWatcher()); in ShortcutController()
118 final @StringRes int action = DataModel.getDataModel().getStopwatch().isRunning() in createStopwatchShortcut()
127 if (DataModel.getDataModel().getStopwatch().isRunning()) { in createStopwatchShortcut()
/packages/apps/DeskClock/src/com/android/deskclock/widget/
DTextTime.java122 final boolean format24Requested = DataModel.getDataModel().is24HourFormat(); in chooseFormat()
167 final Calendar calendar = DataModel.getDataModel().getCalendar(); in updateTime()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java148 ? DataModel.getDataModel().getCalendar() in getCurrentTime()
316 intent.putExtra(ALARM_GLOBAL_ID_EXTRA, DataModel.getDataModel().getGlobalIntentId()); in createStateChangeIntent()
483 final int snoozeMinutes = DataModel.getDataModel().getSnoozeLength(); in setSnoozeState()
912 int globalId = DataModel.getDataModel().getGlobalIntentId(); in handleIntent()

12