/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerService.java | 119 DataModel.getDataModel().updateTimerNotification(); in onStartCommand() 123 DataModel.getDataModel().resetOrDeleteExpiredTimers(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 …]
|
D | TimerFragment.java | 124 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 …]
|
D | ExpiredTimersActivity.java | 104 DataModel.getDataModel().addTimerListener(mTimerChangeWatcher); in onCreate() 122 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onDestroy() 134 DataModel.getDataModel().resetOrDeleteExpiredTimers( in dispatchKeyEvent() 181 final Timer timer = DataModel.getDataModel().getTimer(timerId); in addTimer() 182 DataModel.getDataModel().addTimerMinute(timer); in addTimer() 241 return DataModel.getDataModel().getExpiredTimers(); in getExpiredTimers() 255 final Timer timer = DataModel.getDataModel().getTimer(timerItem.getId()); in run() 276 DataModel.getDataModel().removeTimerListener(mTimerChangeWatcher); in onClick() 277 DataModel.getDataModel().resetOrDeleteExpiredTimers(R.string.label_deskclock); in onClick()
|
D | TimerItemFragment.java | 92 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()
|
D | TimerKlaxon.java | 59 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/ |
D | StopwatchFragment.java | 151 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 …]
|
D | LapsAdapter.java | 103 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()
|
D | StopwatchService.java | 75 DataModel.getDataModel().startStopwatch(); in onStartCommand() 80 DataModel.getDataModel().pauseStopwatch(); in onStartCommand() 85 DataModel.getDataModel().resetStopwatch(); in onStartCommand() 90 DataModel.getDataModel().addLap(); in onStartCommand()
|
D | StopwatchCircleView.java | 116 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/ |
D | RingtonePickerActivity.java | 146 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()
|
D | RingtoneLoader.java | 57 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/ |
D | AlarmInitReceiver.java | 61 DataModel.getDataModel().updateGlobalIntentId(); in onReceive() 66 DataModel.getDataModel().updateAfterReboot(); in onReceive() 70 DataModel.getDataModel().updateAfterTimeSet(); in onReceive() 84 DataModel.getDataModel().updateAllNotifications(); in onReceive()
|
D | HandleApiCalls.java | 380 final Calendar now = DataModel.getDataModel().getCalendar(); in handleSetAlarm() 394 DataModel.getDataModel().resetOrDeleteTimer(selectedTimer, R.string.label_intent); in handleDismissTimer() 404 final List<Timer> expiredTimers = DataModel.getDataModel().getExpiredTimers(); in handleDismissTimer() 407 DataModel.getDataModel().resetOrDeleteTimer(timer, R.string.label_intent); in handleDismissTimer() 425 return DataModel.getDataModel().getTimer(timerId); in getSelectedTimer() 444 final List<Timer> timers = DataModel.getDataModel().getTimers(); in handleShowTimers() 481 for (Timer t : DataModel.getDataModel().getTimers()) { in handleSetTimer() 492 timer = DataModel.getDataModel().addTimer(lengthMillis, label, skipUi); in handleSetTimer() 497 DataModel.getDataModel().startTimer(timer); in handleSetTimer() 628 final Uri defaultRingtone = DataModel.getDataModel().getDefaultAlarmRingtoneUri(); in setSelectionFromIntent()
|
D | ClockFragment.java | 116 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()
|
D | Utils.java | 193 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()
|
D | DeskClockBackupAgent.java | 88 DataModel.getDataModel().setRestoreBackupFinished(true); in onRestoreFinished() 111 if (!DataModel.getDataModel().isRestoreBackupFinished()) { in processRestoredData() 141 DataModel.getDataModel().setRestoreBackupFinished(false); in processRestoredData()
|
D | DeskClock.java | 312 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()
|
D | DropShadowController.java | 121 if (DataModel.getDataModel().isApplicationInForeground()) { in updateDropShadow() 132 if (DataModel.getDataModel().isApplicationInForeground()) { in updateDropShadow()
|
D | LabelDialogFragment.java | 189 final Timer timer = DataModel.getDataModel().getTimer(mTimerId); in setLabel() 191 DataModel.getDataModel().setTimerLabel(timer, label); in setLabel()
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.java | 160 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/ |
D | SettingsActivity.java | 179 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/alarmclock/ |
D | DigitalAppWidgetCityViewsFactory.java | 171 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/ |
D | ShortcutController.java | 63 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/ |
D | TextTime.java | 122 final boolean format24Requested = DataModel.getDataModel().is24HourFormat(); in chooseFormat() 167 final Calendar calendar = DataModel.getDataModel().getCalendar(); in updateTime()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | StopwatchNotificationBuilder.java | 83 if (DataModel.getDataModel().canAddMoreLaps()) { in build() 95 final int lapCount = DataModel.getDataModel().getLaps().size(); in build()
|