/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerService.java | 121 DataModel.getDataModel().updateTimerNotification(); in onStartCommand() 125 DataModel.getDataModel().resetOrDeleteExpiredTimers(label); in onStartCommand() 129 DataModel.getDataModel().resetUnexpiredTimers(label); in onStartCommand() 133 DataModel.getDataModel().resetMissedTimers(label); in onStartCommand() 141 final Timer timer = DataModel.getDataModel().getTimer(timerId); in onStartCommand() 166 DataModel.getDataModel().startTimer(this, timer); in onStartCommand() 170 DataModel.getDataModel().pauseTimer(timer); in onStartCommand() 174 DataModel.getDataModel().addTimerMinute(timer); in onStartCommand() 177 DataModel.getDataModel().resetOrDeleteTimer(timer, label); in onStartCommand() 181 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/tests/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivityTest.java | 101 assertEquals(DataModel.getDataModel().getDefaultTimerRingtoneUri(), in validateDefaultState_TimerRingtonePicker() 105 DataModel.getDataModel().getTimerRingtoneUri(), in validateDefaultState_TimerRingtonePicker() 106 DataModel.getDataModel().getDefaultTimerRingtoneUri()); in validateDefaultState_TimerRingtonePicker() 139 assertEquals(DataModel.getDataModel().getDefaultAlarmRingtoneUri(), in validateDefaultState_AlarmRingtonePicker() 148 DataModel.getDataModel().addCustomRingtone(CUSTOM_RINGTONE_1, "CustomSound"); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones() 183 assertEquals(DataModel.getDataModel().getDefaultTimerRingtoneUri(), in validateDefaultState_TimerRingtonePicker_WithCustomRingtones() 187 DataModel.getDataModel().getTimerRingtoneUri(), in validateDefaultState_TimerRingtonePicker_WithCustomRingtones() 188 DataModel.getDataModel().getDefaultTimerRingtoneUri()); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones() 193 DataModel.getDataModel().removeCustomRingtone(CUSTOM_RINGTONE_1); in validateDefaultState_TimerRingtonePicker_WithCustomRingtones() 201 DataModel.getDataModel().addCustomRingtone(CUSTOM_RINGTONE_1, "CustomSound"); in validateDefaultState_AlarmRingtonePicker_WithCustomRingtones() [all …]
|
/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/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 117 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in validateDefaultState_TimersExist() 119 DataModel.getDataModel().removeTimer(timer); in validateDefaultState_TimersExist() 140 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in type0InDefaultState_TimersExist() 142 DataModel.getDataModel().removeTimer(timer); in type0InDefaultState_TimersExist() 195 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in fillDisplayThenDeleteAll_TimersExist() 197 DataModel.getDataModel().removeTimer(timer); in fillDisplayThenDeleteAll_TimersExist() 223 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in fillDisplayWith9s_TimersExist() 225 DataModel.getDataModel().removeTimer(timer); in fillDisplayWith9s_TimersExist() 254 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertIsReset() 284 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertHasValue()
|
D | TimerFragmentTest.java | 89 DataModel.getDataModel().addTimer(60000L, null, false); in setUpSingleTimer() 97 DataModel.getDataModel().addTimer(60000L, null, false); in setUpTwoTimers() 98 DataModel.getDataModel().addTimer(90000L, null, false); in setUpTwoTimers() 146 final List<Timer> timers = new ArrayList<>(DataModel.getDataModel().getTimers()); in clearTimers() 148 DataModel.getDataModel().removeTimer(timer); in clearTimers() 359 DataModel.getDataModel().expireTimer(null, DataModel.getDataModel().getTimers().get(0)); in fabClick_resetsTimer() 378 DataModel.getDataModel().expireTimer(null, DataModel.getDataModel().getTimers().get(1)); in fabClick_resetsSecondTimer() 397 long remainingTime1 = DataModel.getDataModel().getTimers().get(0).getRemainingTime(); in clickAdd_addsOneMinuteToTimer() 399 long remainingTime2 = DataModel.getDataModel().getTimers().get(0).getRemainingTime(); in clickAdd_addsOneMinuteToTimer() 400 assertSame(Timer.State.RUNNING, DataModel.getDataModel().getTimers().get(0).getState()); in clickAdd_addsOneMinuteToTimer() [all …]
|
D | TimerServiceTest.java | 49 dataModel = DataModel.getDataModel(); in setUp() 63 final List<Timer> timers = new ArrayList<>(DataModel.getDataModel().getTimers()); in clearTimers() 65 DataModel.getDataModel().removeTimer(timer); in clearTimers()
|
/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 | 62 DataModel.getDataModel().updateGlobalIntentId(); in onReceive() 67 DataModel.getDataModel().updateAfterReboot(); in onReceive() 71 DataModel.getDataModel().updateAfterTimeSet(); in onReceive() 86 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 (List<City>) DataModel.getDataModel().getSelectedCities(); in getCities() 453 if (DataModel.getDataModel().getClockStyle() == DataModel.ClockStyle.ANALOG) { in bind()
|
D | Utils.java | 200 final boolean displaySeconds = DataModel.getDataModel().getDisplayClockSeconds(); in setClockSecondsEnabled() 201 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getClockStyle(); in setClockSecondsEnabled() 221 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getClockStyle(); in setClockStyle() 241 final DataModel.ClockStyle clockStyle = DataModel.getDataModel().getScreensaverClockStyle(); in setScreensaverClockStyle() 546 return DataModel.getDataModel().elapsedRealtime(); in now() 550 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()
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.java | 160 DataModel.getDataModel().setSelectedCities(mCitiesAdapter.getSelectedCities()); in onPause() 500 final List<City> selected = (List<City>) 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); 225 mHomeCity = DataModel.getDataModel().getHomeCity(); 226 mCities = new ArrayList<>(DataModel.getDataModel().getSelectedCities()); 227 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()
|