Home
last modified time | relevance | path

Searched refs:DataModel (Results 1 – 25 of 103) sorted by relevance

12345

/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerService.java26 import com.android.deskclock.data.DataModel;
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()
[all …]
DTimerFragment.java42 import com.android.deskclock.data.DataModel;
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()
[all …]
DExpiredTimersActivity.java32 import com.android.deskclock.data.DataModel;
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()
DTimerItemFragment.java28 import com.android.deskclock.data.DataModel;
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()
DTimerKlaxon.java24 import com.android.deskclock.data.DataModel;
49 if (DataModel.getDataModel().isTimerRingtoneSilent()) { in start()
53 final Uri uri = DataModel.getDataModel().getTimerRingtoneUri(); in start()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleDeskClockApiCalls.java25 import com.android.deskclock.data.DataModel;
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()
[all …]
DAlarmInitReceiver.java26 import com.android.deskclock.data.DataModel;
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()
DClockFragment.java42 import com.android.deskclock.data.DataModel;
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()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchService.java25 import com.android.deskclock.data.DataModel;
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()
DLapsAdapter.java29 import com.android.deskclock.data.DataModel;
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()
DStopwatchCircleView.java30 import com.android.deskclock.data.DataModel;
115 if (laps.isEmpty() || !DataModel.getDataModel().canAddMoreLaps()) { in onDraw()
170 return DataModel.getDataModel().getStopwatch(); in getStopwatch()
174 return DataModel.getDataModel().getLaps(); in getLaps()
DStopwatchFragment.java40 import com.android.deskclock.data.DataModel;
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()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.java49 import com.android.deskclock.data.DataModel;
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()
498 private DataModel.CitySort getCitySort() { in getCitySort()
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/Messaging/src/com/android/messaging/datamodel/action/
DReceiveMmsMessageAction.java27 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()
DInsertNewMessageAction.java28 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()
DReceiveSmsMessageAction.java30 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()
DAction.java24 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()
DBugleActionToasts.java24 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()
DProcessDownloadedMmsAction.java33 import com.android.messaging.datamodel.DataModel;
284 final SyncManager syncManager = DataModel.get().getSyncManager(); in doBackgroundWork()
350 final DatabaseWrapper db = DataModel.get().getDatabase(); in processBackgroundResponse()
429 final DatabaseWrapper db = DataModel.get().getDatabase(); in processResult()
460 DataModel.get().isFocusedConversation(conversationId); in processResult()
462 DataModel.get().isNewMessageObservable(conversationId); in processResult()
474 final SyncManager syncManager = DataModel.get().getSyncManager(); in processResult()
504 DataModel.get().isFocusedConversation(notificationConversationId); in processResult()
DSyncMessagesAction.java30 import com.android.messaging.datamodel.DataModel;
144 final DatabaseWrapper db = DataModel.get().getDatabase(); in executeAction()
158 final SyncManager syncManager = DataModel.get().getSyncManager(); in executeAction()
196 final DatabaseWrapper db = DataModel.get().getDatabase(); in doBackgroundWork()
223 final SyncManager syncManager = DataModel.get().getSyncManager(); in doBackgroundWork()
362 final SyncManager syncManager = DataModel.get().getSyncManager(); in processBackgroundResponse()
469 final DatabaseWrapper db = DataModel.get().getDatabase(); in processBackgroundResponse()
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalWidgetViewsFactory.java31 import com.android.deskclock.data.DataModel;
174 DataModel.getDataModel().run(refreshRunnable);
229 mHomeCity = DataModel.getDataModel().getHomeCity();
230 mCities = new ArrayList<>(DataModel.getDataModel().getSelectedCities());
231 mShowHomeClock = DataModel.getDataModel().getShowHomeClock();
/packages/apps/DeskClock/src/com/android/deskclock/data/
DDataModel.java35 public final class DataModel { class
47 private static final DataModel sDataModel = new DataModel();
71 public static DataModel getDataModel() { in getDataModel()
75 private DataModel() {} in DataModel() method in DataModel
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
DReadWriteDraftMessageActionTest.java30 import com.android.messaging.datamodel.DataModel;
69 final DatabaseWrapper db = DataModel.get().getDatabase(); in testWriteDraft()
128 final DatabaseWrapper db = DataModel.get().getDatabase(); in testReadDraft()
170 final DatabaseWrapper db = DataModel.get().getDatabase(); in testReadDraftForNewConversation()
226 final DatabaseWrapper db = DataModel.get().getDatabase(); in testWriteAndReadDraft()
287 final DatabaseWrapper db = DataModel.get().getDatabase(); in testUpdateDraft()
337 final DatabaseWrapper db = DataModel.get().getDatabase(); in testBugleDatabaseDraftOperations()
DActionServiceSystemTest.java32 import com.android.messaging.datamodel.DataModel;
93 final ActionService service = DataModel.get().getActionService(); in testChatActionSucceeds()
146 final ActionService service = DataModel.get().getActionService(); in testChatActionFails()
194 final ActionService service = DataModel.get().getActionService(); in testChatActionNoMonitor()
235 final ActionService service = DataModel.get().getActionService(); in testChatActionUnregisterListener()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java26 import com.android.messaging.datamodel.DataModel;
56 private DataModel mDataModel;
167 public DataModel getDataModel() { in getDataModel()
239 public FakeFactory withDataModel(final DataModel dataModel) { in withDataModel()

12345