/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerService.kt | 26 import com.android.deskclock.data.DataModel 54 DataModel.dataModel.updateTimerNotification() in onStartCommand() 58 DataModel.dataModel.resetOrDeleteExpiredTimers(label) in onStartCommand() 62 DataModel.dataModel.resetUnexpiredTimers(label) in onStartCommand() 66 DataModel.dataModel.resetMissedTimers(label) in onStartCommand() 74 val timer: Timer = DataModel.dataModel.getTimer(timerId) ?: return START_NOT_STICKY in onStartCommand() 92 DataModel.dataModel.startTimer(this, timer) in onStartCommand() 96 DataModel.dataModel.pauseTimer(timer) in onStartCommand() 100 DataModel.dataModel.addTimerMinute(timer) in onStartCommand() 103 DataModel.dataModel.resetOrDeleteTimer(timer, label) in onStartCommand() [all …]
|
D | ExpiredTimersActivity.kt | 35 import com.android.deskclock.data.DataModel 99 DataModel.dataModel.addTimerListener(mTimerChangeWatcher) in onCreate() 114 DataModel.dataModel.removeTimerListener(mTimerChangeWatcher) in onDestroy() 125 DataModel.dataModel.resetOrDeleteExpiredTimers(R.string.label_hardware_button) in dispatchKeyEvent() 170 val timer: Timer = DataModel.dataModel.getTimer(timerId)!! in addTimer() 171 DataModel.dataModel.addTimerMinute(timer) in addTimer() 227 get() = DataModel.dataModel.expiredTimers 239 val timer: Timer? = DataModel.dataModel.getTimer(timerItem.id) in run() 259 DataModel.dataModel.removeTimerListener(mTimerChangeWatcher) in onClick() 260 DataModel.dataModel.resetOrDeleteExpiredTimers(R.string.label_deskclock) in onClick()
|
D | TimerFragment.kt | 39 import com.android.deskclock.data.DataModel 103 DataModel.dataModel.addTimerListener(mAdapter) in onCreateView() 104 DataModel.dataModel.addTimerListener(mTimerWatcher) in onCreateView() 153 val timer: Timer? = DataModel.dataModel.mostRecentExpiredTimer in onStart() 159 val timer: Timer? = DataModel.dataModel.getTimer(showTimerId) in onStart() 161 val index: Int = DataModel.dataModel.timers.indexOf(it) in onStart() 177 val timer: Timer? = DataModel.dataModel.getTimer(showTimerId) in onResume() 180 val index: Int = DataModel.dataModel.timers.indexOf(it) in onResume() 198 DataModel.dataModel.removeTimerListener(mAdapter) in onDestroyView() 199 DataModel.dataModel.removeTimerListener(mTimerWatcher) in onDestroyView() [all …]
|
D | TimerItemFragment.kt | 27 import com.android.deskclock.data.DataModel 74 get() = DataModel.dataModel.getTimer(timerId) 80 DataModel.dataModel.resetOrDeleteTimer(timer, R.string.label_deskclock) in onClick() 82 DataModel.dataModel.addTimerMinute(timer) in onClick() 108 DataModel.dataModel.startTimer(clickedTimer) in onClick() 110 DataModel.dataModel.pauseTimer(clickedTimer) in onClick()
|
D | TimerKlaxon.kt | 29 import com.android.deskclock.data.DataModel 57 if (DataModel.dataModel.isTimerRingtoneSilent) { in start() 61 val uri: Uri = DataModel.dataModel.timerRingtoneUri in start() 62 val crescendoDuration: Long = DataModel.dataModel.timerCrescendoDuration in start() 66 if (DataModel.dataModel.timerVibrate) { in start()
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivityTest.java | 34 import com.android.deskclock.data.DataModel; 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() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitySelectionActivity.kt | 49 import com.android.deskclock.data.DataModel 145 DataModel.dataModel.selectedCities = mCitiesAdapter.selectedCities in onPause() 326 DataModel.CitySort.NAME -> { in getView() 330 DataModel.CitySort.UTC_OFFSET -> { in getView() 395 DataModel.CitySort.NAME -> sections.add(city.indexString.orEmpty()) in getSections() 396 DataModel.CitySort.UTC_OFFSET -> { in getSections() 445 val selected = DataModel.dataModel.selectedCities as List<City> in refresh() 466 DataModel.dataModel.allCities in filter() 468 val unselected: List<City> = DataModel.dataModel.unselectedCities in filter() 493 private val citySort: DataModel.CitySort [all …]
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerSetupViewTest.java | 31 import com.android.deskclock.data.DataModel; 118 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in validateDefaultState_TimersExist() 120 DataModel.getDataModel().removeTimer(timer); in validateDefaultState_TimersExist() 141 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in type0InDefaultState_TimersExist() 143 DataModel.getDataModel().removeTimer(timer); in type0InDefaultState_TimersExist() 196 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in fillDisplayThenDeleteAll_TimersExist() 198 DataModel.getDataModel().removeTimer(timer); in fillDisplayThenDeleteAll_TimersExist() 224 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in fillDisplayWith9s_TimersExist() 226 DataModel.getDataModel().removeTimer(timer); in fillDisplayWith9s_TimersExist() 255 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertIsReset() [all …]
|
D | TimerFragmentTest.java | 36 import com.android.deskclock.data.DataModel; 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() [all …]
|
D | TimerServiceTest.java | 26 import com.android.deskclock.data.DataModel; 45 private DataModel dataModel; 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/stopwatch/ |
D | StopwatchFragment.kt | 54 import com.android.deskclock.data.DataModel in <lambda>() 146 DataModel.dataModel.addStopwatchListener(mStopwatchWatcher) in <lambda>() 175 DataModel.dataModel.startStopwatch() in <lambda>() 179 DataModel.dataModel.pauseStopwatch() in <lambda>() 211 DataModel.dataModel.removeStopwatchListener(mStopwatchWatcher) in <lambda>() 308 DataModel.dataModel.startStopwatch() in <lambda>() 316 DataModel.dataModel.pauseStopwatch() in <lambda>() 325 DataModel.dataModel.resetStopwatch() in <lambda>() 423 val appInForeground = DataModel.dataModel.isApplicationInForeground in <lambda>() 447 get() = DataModel.dataModel.stopwatch in <lambda>() [all …]
|
D | LapsAdapter.kt | 29 import com.android.deskclock.data.DataModel 90 lapTime = DataModel.dataModel.getCurrentLapTime(totalTime) in onBindViewHolder() 122 val lapTime = DataModel.dataModel.getCurrentLapTime(totalTime) in updateCurrentLap() 135 val lap = DataModel.dataModel.addLap() in addLap() 198 val lapTime = DataModel.dataModel.getCurrentLapTime(totalTime) 227 val longestLapTime = max(DataModel.dataModel.longestLapTime, lapTime) in formatLapTime() 262 get() = DataModel.dataModel.stopwatch 265 get() = DataModel.dataModel.laps
|
D | StopwatchService.kt | 25 import com.android.deskclock.data.DataModel 55 DataModel.dataModel.startStopwatch() in onBind() 59 DataModel.dataModel.pauseStopwatch() in onBind() 63 DataModel.dataModel.resetStopwatch() in onBind() 67 DataModel.dataModel.addLap() in onBind()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 62 import com.android.deskclock.data.DataModel 194 val displaySeconds: Boolean = DataModel.dataModel.displayClockSeconds in setClockSecondsEnabled() 195 when (DataModel.dataModel.clockStyle) { in setClockSecondsEnabled() 196 DataModel.ClockStyle.ANALOG -> { in setClockSecondsEnabled() 200 DataModel.ClockStyle.DIGITAL -> { in setClockSecondsEnabled() 212 return when (DataModel.dataModel.clockStyle) { in setClockStyle() 213 DataModel.ClockStyle.ANALOG -> { in setClockStyle() 218 DataModel.ClockStyle.DIGITAL -> { in setClockStyle() 231 return when (DataModel.dataModel.screensaverClockStyle) { in setScreensaverClockStyle() 232 DataModel.ClockStyle.ANALOG -> { in setScreensaverClockStyle() [all …]
|
D | AlarmInitReceiver.kt | 27 import com.android.deskclock.data.DataModel 51 DataModel.dataModel.updateGlobalIntentId() in onReceive() 56 DataModel.dataModel.updateAfterReboot() in onReceive() 60 DataModel.dataModel.updateAfterTimeSet() in onReceive() 74 DataModel.dataModel.updateAllNotifications() in onReceive()
|
D | HandleApiCalls.kt | 35 import com.android.deskclock.data.DataModel 285 val now: Calendar = DataModel.dataModel.calendar in handleSetAlarm() 298 DataModel.dataModel.resetOrDeleteTimer(selectedTimer, R.string.label_intent) in handleDismissTimer() 308 val expiredTimers: List<Timer> = DataModel.dataModel.expiredTimers in handleDismissTimer() 311 DataModel.dataModel.resetOrDeleteTimer(timer, R.string.label_intent) in handleDismissTimer() 329 DataModel.dataModel.getTimer(timerId) in getSelectedTimer() 348 val timers: List<Timer> = DataModel.dataModel.timers in handleShowTimers() 386 for (t in DataModel.dataModel.timers) { in handleSetTimer() 403 timer = DataModel.dataModel.addTimer(lengthMillis, label, skipUi) in handleSetTimer() 408 DataModel.dataModel.startTimer(timer) in handleSetTimer() [all …]
|
D | DeskClock.kt | 49 import com.android.deskclock.data.DataModel 286 DataModel.dataModel.addSilentSettingsListener(mSilentSettingChangeWatcher) in onStart() 287 DataModel.dataModel.isApplicationInForeground = true in onStart() 323 DataModel.dataModel.removeSilentSettingsListener(mSilentSettingChangeWatcher) in onStop() 325 DataModel.dataModel.isApplicationInForeground = false in onStop() 545 before: DataModel.SilentSetting?, in onSilentSettingsChange() 546 after: DataModel.SilentSetting? in onSilentSettingsChange() 567 private val mSilentSetting: DataModel.SilentSetting 596 if (DataModel.dataModel.isApplicationInForeground) { in selectedTabChanged()
|
D | ClockFragment.kt | 44 import com.android.deskclock.data.DataModel 99 DataModel.dataModel.addCityListener(mCityAdapter) in onCreateView() 180 DataModel.dataModel.removeCityListener(mCityAdapter) in onDestroyView() 312 private val mShowHomeClock: Boolean = DataModel.dataModel.showHomeClock 358 get() = DataModel.dataModel.homeCity 361 get() = DataModel.dataModel.selectedCities as List<City> 383 if (DataModel.dataModel.clockStyle == DataModel.ClockStyle.ANALOG) { in bind()
|
D | DeskClockBackupAgent.kt | 30 import com.android.deskclock.data.DataModel 93 DataModel.dataModel.isRestoreBackupFinished = true in onRestoreFinished() 122 if (!DataModel.dataModel.isRestoreBackupFinished) { in processRestoredData() 152 DataModel.dataModel.isRestoreBackupFinished = false in processRestoredData()
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtonePickerActivity.kt | 59 import com.android.deskclock.data.DataModel in <lambda>() 192 DataModel.dataModel.defaultAlarmRingtoneUri = alarm.alert!! in <lambda>() 200 DataModel.dataModel.timerRingtoneUri = it in <lambda>() 501 DataModel.dataModel.addCustomRingtone(mUri, title) in <lambda>() 554 if (mRemoveUri == DataModel.dataModel.defaultAlarmRingtoneUri) { in <lambda>() 555 DataModel.dataModel.defaultAlarmRingtoneUri = mSystemDefaultRingtoneUri in <lambda>() 559 if (mRemoveUri == DataModel.dataModel.timerRingtoneUri) { in <lambda>() 560 val timerRingtoneUri = DataModel.dataModel.defaultTimerRingtoneUri in <lambda>() 561 DataModel.dataModel.timerRingtoneUri = timerRingtoneUri in <lambda>() 565 DataModel.dataModel.removeCustomRingtone(mRemoveUri) in <lambda>() [all …]
|
D | RingtoneLoader.kt | 31 import com.android.deskclock.data.DataModel 46 mCustomRingtones = DataModel.dataModel.customRingtones in onStartLoading() 52 DataModel.dataModel.loadRingtoneTitles() in loadInBackground() 53 DataModel.dataModel.loadRingtonePermissions() in loadInBackground()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 41 import com.android.deskclock.data.DataModel 141 DataModel.dataModel.displayClockSeconds = newValue as Boolean in onPreferenceChange() 154 DataModel.dataModel.timerVibrate = timerVibratePref.isChecked() in onPreferenceChange() 156 KEY_TIMER_RINGTONE -> pref.setSummary(DataModel.dataModel.timerRingtoneTitle) in onPreferenceChange() 210 val timezones = DataModel.dataModel.timeZones in loadTimeZoneList() 261 val weekdayOrder = DataModel.dataModel.weekdayOrder in refresh() 274 it.setSummary(DataModel.dataModel.timerRingtoneTitle) in refresh()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 28 import com.android.messaging.datamodel.DataModel; 130 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction() 257 final DatabaseWrapper db = DataModel.get().getDatabase(); in createMessage() 297 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertBroadcastSmsMessage() 300 final SyncManager syncManager = DataModel.get().getSyncManager(); in insertBroadcastSmsMessage() 356 final SyncManager syncManager = DataModel.get().getSyncManager(); in insertSendingSmsMessage() 359 final DatabaseWrapper db = DataModel.get().getDatabase(); in insertSendingSmsMessage() 428 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()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsModel.kt | 53 val citySort: DataModel.CitySort 63 val clockStyle: DataModel.ClockStyle 72 val screensaverClockStyle: DataModel.ClockStyle 107 val alarmVolumeButtonBehavior: DataModel.AlarmVolumeButtonBehavior
|