/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerService.java | 90 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()
|
D | TimerFragment.java | 128 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 …]
|
D | ExpiredTimersActivity.java | 83 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()
|
D | TimerItemFragment.java | 85 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()
|
D | TimerKlaxon.java | 49 if (DataModel.getDataModel().isTimerRingtoneSilent()) { in start() 53 final Uri uri = DataModel.getDataModel().getTimerRingtoneUri(); in start()
|
D | TimerReceiver.java | 39 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onReceive()
|
D | TimerPagerAdapter.java | 175 return DataModel.getDataModel().getTimers(); in getTimers()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | HandleDeskClockApiCalls.java | 131 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 …]
|
D | AlarmInitReceiver.java | 66 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()
|
D | ClockFragment.java | 377 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()
|
D | LabelDialogFragment.java | 131 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel() 133 DataModel.getDataModel().setTimerLabel(timer, label); in setLabel()
|
D | DeskClock.java | 216 DataModel.getDataModel().setApplicationInForeground(true); in onResume() 239 DataModel.getDataModel().setApplicationInForeground(false); in onPause() 385 if (DataModel.getDataModel().isApplicationInForeground()) { in onPageSelected()
|
D | DeskClockApplication.java | 31 DataModel.getDataModel().setContext(getApplicationContext()); in onCreate()
|
D | HandleApiCalls.java | 352 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/ |
D | StopwatchService.java | 46 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()
|
D | LapsAdapter.java | 91 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()
|
D | StopwatchFragment.java | 268 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()
|
D | StopwatchCircleView.java | 115 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/ |
D | CitySelectionActivity.java | 141 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/ |
D | DigitalWidgetViewsFactory.java | 174 DataModel.getDataModel().run(refreshRunnable); 229 mHomeCity = DataModel.getDataModel().getHomeCity(); 230 mCities = new ArrayList<>(DataModel.getDataModel().getSelectedCities()); 231 mShowHomeClock = DataModel.getDataModel().getShowHomeClock();
|
D | WidgetUtils.java | 63 DataModel.getDataModel().run(selectedCitiesRunnable); in getScaleRatio() 164 mAnyCitiesSelected = !DataModel.getDataModel().getSelectedCities().isEmpty(); in run()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | TimerRingtonePreference.java | 56 DataModel.getDataModel().getDefaultTimerRingtoneUri()); in onPrepareRingtonePickerIntent()
|
D | SettingsActivity.java | 170 timerRingtonePref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in onPreferenceChange() 303 timerRingtonePref.setSummary(DataModel.getDataModel().getTimerRingtoneTitle()); in refresh()
|
/packages/apps/Messaging/src/com/android/messaging/ |
D | Factory.java | 58 public abstract DataModel getDataModel(); in getDataModel() method in Factory
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DataModel.java | 60 return Factory.get().getDataModel(); in get()
|