/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerService.java | 26 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | TimerFragment.java | 45 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | ExpiredTimersActivity.java | 36 import com.android.deskclock.data.DataModel; 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 | 28 import com.android.deskclock.data.DataModel; 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 | 29 import com.android.deskclock.data.DataModel; 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 | 52 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | LapsAdapter.java | 29 import com.android.deskclock.data.DataModel; 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 | 25 import com.android.deskclock.data.DataModel; 75 DataModel.getDataModel().startStopwatch(); in onStartCommand() 80 DataModel.getDataModel().pauseStopwatch(); in onStartCommand() 85 DataModel.getDataModel().resetStopwatch(); in onStartCommand() 90 DataModel.getDataModel().addLap(); in onStartCommand()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.java | 55 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | RingtoneLoader.java | 30 import com.android.deskclock.data.DataModel; 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/worldclock/ |
D | CitySelectionActivity.java | 49 import com.android.deskclock.data.DataModel; 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() 550 private DataModel.CitySort getCitySort() { in getCitySort() 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/ |
D | AlarmInitReceiver.java | 27 import com.android.deskclock.data.DataModel; 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 | Utils.java | 61 import com.android.deskclock.data.DataModel; 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 | HandleApiCalls.java | 34 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | ClockFragment.java | 47 import com.android.deskclock.data.DataModel; 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 | DeskClockBackupAgent.java | 32 import com.android.deskclock.data.DataModel; 88 DataModel.getDataModel().setRestoreBackupFinished(true); in onRestoreFinished() 111 if (!DataModel.getDataModel().isRestoreBackupFinished()) { in processRestoredData() 141 DataModel.getDataModel().setRestoreBackupFinished(false); in processRestoredData()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.java | 41 import com.android.deskclock.data.DataModel; 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/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 28 import com.android.messaging.datamodel.DataModel; 131 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction() 256 final DatabaseWrapper db = DataModel.get().getDatabase(); in createMessage() 296 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertBroadcastSmsMessage() 299 final SyncManager syncManager = DataModel.get().getSyncManager(); in insertBroadcastSmsMessage() 355 final SyncManager syncManager = DataModel.get().getSyncManager(); in insertSendingSmsMessage() 358 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertSendingSmsMessage() 427 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertSendingMmsMessage()
|
D | ReceiveMmsMessageAction.java | 27 import com.android.messaging.datamodel.DataModel; 65 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction() 73 final SyncManager syncManager = DataModel.get().getSyncManager(); in executeAction() 97 DataModel.get().isFocusedConversation(conversationId); in executeAction() 99 DataModel.get().isNewMessageObservable(conversationId); in executeAction()
|
D | ReceiveSmsMessageAction.java | 30 import com.android.messaging.datamodel.DataModel; 59 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction() 79 final SyncManager syncManager = DataModel.get().getSyncManager(); in executeAction() 91 DataModel.get().isFocusedConversation(conversationId); in executeAction() 93 DataModel.get().isNewMessageObservable(conversationId); in executeAction()
|
D | BugleActionToasts.java | 24 import com.android.messaging.datamodel.DataModel; 77 … final boolean isFocusedConversation = DataModel.get().isFocusedConversation(conversationId); in onSendMessageOrManualDownloadActionCompleted() 89 final boolean isObservableConversation = DataModel.get().isNewMessageObservable( in onSendMessageOrManualDownloadActionCompleted() 102 final boolean isFocusedConversation = DataModel.get().isFocusedConversation( in onMessageReceived()
|
D | Action.java | 24 import com.android.messaging.datamodel.DataModel; 144 DataModel.startActionService(this); in start() 151 DataModel.startActionService(this); in start() 158 DataModel.scheduleAction(this, requestCode, delayMs); in schedule()
|
D | ProcessDownloadedMmsAction.java | 33 import com.android.messaging.datamodel.DataModel; 287 final SyncManager syncManager = DataModel.get().getSyncManager(); in doBackgroundWork() 353 final DatabaseWrapper db = DataModel.get().getDatabase(); in processBackgroundResponse() 432 final DatabaseWrapper db = DataModel.get().getDatabase(); in processResult() 463 DataModel.get().isFocusedConversation(conversationId); in processResult() 465 DataModel.get().isNewMessageObservable(conversationId); in processResult() 477 final SyncManager syncManager = DataModel.get().getSyncManager(); in processResult() 507 DataModel.get().isFocusedConversation(notificationConversationId); in processResult()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetCityViewsFactory.java | 32 import com.android.deskclock.data.DataModel; 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/data/ |
D | SettingsDAO.java | 28 import com.android.deskclock.data.DataModel.AlarmVolumeButtonBehavior; 29 import com.android.deskclock.data.DataModel.CitySort; 30 import com.android.deskclock.data.DataModel.ClockStyle; 41 import static com.android.deskclock.data.DataModel.AlarmVolumeButtonBehavior.DISMISS; 42 import static com.android.deskclock.data.DataModel.AlarmVolumeButtonBehavior.NOTHING; 43 import static com.android.deskclock.data.DataModel.AlarmVolumeButtonBehavior.SNOOZE;
|