Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerService.java90 DataModel.getDataModel().updateTimerNotification(); in onStartCommand()
94 DataModel.getDataModel().resetExpiredTimers(R.string.label_notification); in onStartCommand()
98 DataModel.getDataModel().resetUnexpiredTimers(R.string.label_notification); in onStartCommand()
105 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onStartCommand()
115 DataModel.getDataModel().startTimer(timer); in onStartCommand()
119 DataModel.getDataModel().pauseTimer(timer); in onStartCommand()
123 DataModel.getDataModel().addTimerMinute(timer); in onStartCommand()
127 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_notification); in onStartCommand()
130 DataModel.getDataModel().expireTimer(this, timer); in onStartCommand()
136 if (DataModel.getDataModel().getExpiredTimers().isEmpty()) { in onStartCommand()
DTimerFragment.java128 DataModel.getDataModel().addTimerListener(mAdapter); in onCreateView()
129 DataModel.getDataModel().addTimerListener(mTimerWatcher); in onCreateView()
183 final Timer timer = DataModel.getDataModel().getMostRecentExpiredTimer(); in onResume()
189 final Timer timer = DataModel.getDataModel().getTimer(showTimerId); in onResume()
191 final int index = DataModel.getDataModel().getTimers().indexOf(timer); in onResume()
217 DataModel.getDataModel().removeTimerListener(mAdapter); in onDestroyView()
218 DataModel.getDataModel().removeTimerListener(mTimerWatcher); in onDestroyView()
278 DataModel.getDataModel().pauseTimer(timer); in onFabClick()
283 DataModel.getDataModel().startTimer(timer); in onFabClick()
287 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_deskclock); in onFabClick()
[all …]
DExpiredTimersActivity.java83 DataModel.getDataModel().addTimerListener(mTimerChangeWatcher); in onCreate()
101 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onDestroy()
113 DataModel.getDataModel().resetExpiredTimers(R.string.label_hardware_button); in dispatchKeyEvent()
159 DataModel.getDataModel().addTimerMinute(timer); in addTimer()
211 return DataModel.getDataModel().getExpiredTimers(); in getExpiredTimers()
243 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onClick()
244 DataModel.getDataModel().resetExpiredTimers(R.string.label_deskclock); in onClick()
DTimerItemFragment.java85 return DataModel.getDataModel().getTimer(getTimerId()); in getTimer()
93 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_deskclock); in onClick()
95 DataModel.getDataModel().addTimerMinute(timer); in onClick()
DTimerKlaxon.java49 if (DataModel.getDataModel().isTimerRingtoneSilent()) { in start()
53 final Uri uri = DataModel.getDataModel().getTimerRingtoneUri(); in start()
DTimerReceiver.java39 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onReceive()
DTimerPagerAdapter.java175 return DataModel.getDataModel().getTimers(); in getTimers()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleDeskClockApiCalls.java131 DataModel.getDataModel().startStopwatch(); in handleStopwatchIntent()
137 DataModel.getDataModel().pauseStopwatch(); in handleStopwatchIntent()
143 DataModel.getDataModel().clearLaps(); in handleStopwatchIntent()
144 DataModel.getDataModel().resetStopwatch(); in handleStopwatchIntent()
150 if (!DataModel.getDataModel().getStopwatch().isRunning()) { in handleStopwatchIntent()
154 DataModel.getDataModel().addLap(); in handleStopwatchIntent()
192 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleTimerIntent()
204 timer = DataModel.getDataModel().getTimer(timerId); in handleTimerIntent()
218 DataModel.getDataModel().resetOrDeleteTimer(timer, eventLabel); in handleTimerIntent()
228 DataModel.getDataModel().startTimer(timer); in handleTimerIntent()
[all …]
DAlarmInitReceiver.java66 DataModel.getDataModel().clearLaps(); in onReceive()
67 DataModel.getDataModel().resetStopwatch(); in onReceive()
69 DataModel.getDataModel().resetTimers(R.string.label_reboot); in onReceive()
75 DataModel.getDataModel().updateAllNotifications(); in onReceive()
DClockFragment.java377 if (DataModel.getDataModel().getClockStyle() == DataModel.ClockStyle.ANALOG) { in getView()
419 return DataModel.getDataModel().getHomeCity(); in getHomeCity()
423 return DataModel.getDataModel().getSelectedCities(); in getCities()
427 return DataModel.getDataModel().getShowHomeClock(); in getShowHomeClock()
DLabelDialogFragment.java131 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel()
133 DataModel.getDataModel().setTimerLabel(timer, label); in setLabel()
DDeskClock.java216 DataModel.getDataModel().setApplicationInForeground(true); in onResume()
239 DataModel.getDataModel().setApplicationInForeground(false); in onPause()
385 if (DataModel.getDataModel().isApplicationInForeground()) { in onPageSelected()
DDeskClockApplication.java31 DataModel.getDataModel().setContext(getApplicationContext()); in onCreate()
DHandleApiCalls.java352 for (Timer t : DataModel.getDataModel().getTimers()) { in handleSetTimer()
363 timer = DataModel.getDataModel().addTimer(lengthMillis, label, skipUi); in handleSetTimer()
368 DataModel.getDataModel().startTimer(timer); in handleSetTimer()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java46 DataModel.getDataModel().startStopwatch(); in onStartCommand()
51 DataModel.getDataModel().pauseStopwatch(); in onStartCommand()
56 DataModel.getDataModel().addLap(); in onStartCommand()
61 DataModel.getDataModel().clearLaps(); in onStartCommand()
62 DataModel.getDataModel().resetStopwatch(); in onStartCommand()
DLapsAdapter.java91 lapTime = DataModel.getDataModel().getCurrentLapTime(totalTime); in onBindViewHolder()
124 final long lapTime = DataModel.getDataModel().getCurrentLapTime(totalTime); in updateCurrentLap()
138 final Lap lap = DataModel.getDataModel().addLap(); in addLap()
158 DataModel.getDataModel().clearLaps(); in clearLaps()
260 final long longestLapTime = Math.max(DataModel.getDataModel().getLongestLapTime(), lapTime); in formatLapTime()
295 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
299 return DataModel.getDataModel().getLaps(); in getLaps()
DStopwatchFragment.java268 DataModel.getDataModel().startStopwatch(); in doStart()
290 DataModel.getDataModel().pauseStopwatch(); in doPause()
314 DataModel.getDataModel().resetStopwatch(); in doReset()
455 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
459 return DataModel.getDataModel().canAddMoreLaps(); in canRecordMoreLaps()
DStopwatchCircleView.java115 if (laps.isEmpty() || !DataModel.getDataModel().canAddMoreLaps()) { in onDraw()
170 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
174 return DataModel.getDataModel().getLaps(); in getLaps()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java141 DataModel.getDataModel().setSelectedCities(mCitiesAdapter.getSelectedCities()); in onPause()
453 final List<City> selected = DataModel.getDataModel().getSelectedCities(); in refresh()
475 filteredCities = DataModel.getDataModel().getAllCities(); in filter()
477 final List<City> unselected = DataModel.getDataModel().getUnselectedCities(); in filter()
499 return DataModel.getDataModel().getCitySort(); in getCitySort()
503 return DataModel.getDataModel().getCityIndexComparator(); in getCitySortComparator()
577 if (DataModel.getDataModel().getCitySort() == DataModel.CitySort.NAME) { in showMenuItem()
589 DataModel.getDataModel().toggleCitySort(); in handleMenuItemClick()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalWidgetViewsFactory.java174 DataModel.getDataModel().run(refreshRunnable);
229 mHomeCity = DataModel.getDataModel().getHomeCity();
230 mCities = new ArrayList<>(DataModel.getDataModel().getSelectedCities());
231 mShowHomeClock = DataModel.getDataModel().getShowHomeClock();
DWidgetUtils.java63 DataModel.getDataModel().run(selectedCitiesRunnable); in getScaleRatio()
164 mAnyCitiesSelected = !DataModel.getDataModel().getSelectedCities().isEmpty(); in run()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DTimerRingtonePreference.java56 DataModel.getDataModel().getDefaultTimerRingtoneUri()); in onPrepareRingtonePickerIntent()
DSettingsActivity.java170 timerRingtonePref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in onPreferenceChange()
303 timerRingtonePref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in refresh()
/packages/apps/Messaging/src/com/android/messaging/
DFactory.java58 public abstract DataModel getDataModel(); in getDataModel() method in Factory
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModel.java60 return Factory.get().getDataModel(); in get()

12