Home
last modified time | relevance | path

Searched refs:getDataModel (Results 1 – 20 of 20) sorted by relevance

/packages/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java101 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/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java118 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()
285 if (DataModel.getDataModel().getTimers().isEmpty()) { in assertHasValue()
DTimerFragmentTest.java89 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 …]
DTimerServiceTest.java49 dataModel = DataModel.getDataModel(); in setUp()
63 final List<Timer> timers = new ArrayList<>(DataModel.getDataModel().getTimers()); in clearTimers()
65 DataModel.getDataModel().removeTimer(timer); in clearTimers()
DTimerItemFragmentTest.java57 Timer timer = DataModel.getDataModel().addTimer(5000L, "", false); in ensureTimerIsHeldSuccessfully_whenOneTimerIsRunning()
74 DataModel.getDataModel().removeTimer(timer); in ensureTimerIsHeldSuccessfully_whenOneTimerIsRunning()
DExpiredTimersActivityTest.java53 final DataModel dm = DataModel.getDataModel(); in configurationChanges_DoNotResetFiringTimer()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/util/
DVoiceUtil.java248 .getDataModel() in directSend()
266 .getDataModel() in voiceReply()
277 AppFactory.get().getDataModel().muteConversation(conversationKey, true); in mute()
287 AppFactory.get().getDataModel().markAsRead(conversationKey); in markAsRead()
/packages/apps/DeskClock/tests/src/com/android/deskclock/worldclock/
DCitySelectionActivityTest.java64 final City city = DataModel.getDataModel().getAllCities().get(0); in setUp()
65 DataModel.getDataModel().setSelectedCities(Collections.singletonList(city)); in setUp()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/interfaces/
DAppFactory.java65 public abstract DataModel getDataModel(); in getDataModel() method in AppFactory
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/launcher/
DMessageLauncherViewModel.java43 mDataSource = AppFactory.get().getDataModel(); in MessageLauncherViewModel()
DMessageLauncherActivity.java79 AppFactory.get().getDataModel().refreshUserAccounts(); in onResume()
/packages/apps/Messaging/src/com/android/messaging/
DFactory.java58 public abstract DataModel getDataModel(); in getDataModel() method in Factory
DFactoryImpl.java139 public DataModel getDataModel() { in getDataModel() method in FactoryImpl
DBugleApplication.java106 final DataModel dataModel = factory.getDataModel(); in initializeSync()
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/ui/conversationlist/
DConversationListViewModel.java46 mDataModel = AppFactory.get().getDataModel(); in ConversationListViewModel()
DConversationItemViewHolder.java80 mDataModel = AppFactory.get().getDataModel(); in ConversationItemViewHolder()
/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/
DAppFactoryImpl.java96 public DataModel getDataModel() { in getDataModel() method in AppFactoryImpl
/packages/apps/Car/Messenger/src/com/android/car/messenger/core/service/
DMessengerService.java94 DataModel dataModel = AppFactory.get().getDataModel(); in subscribeToNotificationUpdates()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModel.java59 return Factory.get().getDataModel(); in get()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java169 public DataModel getDataModel() { in getDataModel() method in FakeFactory