Home
last modified time | relevance | path

Searched refs:dataModel (Results 1 – 25 of 57) sorted by relevance

123

/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerServiceTest.java45 private DataModel dataModel; field in TimerServiceTest
49 dataModel = DataModel.getDataModel(); in setUp()
57 dataModel = null; in tearDown()
74 Timer timer1 = dataModel.addTimer(60000L, null, false); in verifyIntentsHonored_whileTimersFire()
75 Timer timer2 = dataModel.addTimer(60000L, null, false); in verifyIntentsHonored_whileTimersFire()
76 dataModel.startTimer(timer1); in verifyIntentsHonored_whileTimersFire()
77 dataModel.startTimer(timer2); in verifyIntentsHonored_whileTimersFire()
78 timer1 = dataModel.getTimer(timer1.getId()); in verifyIntentsHonored_whileTimersFire()
79 timer2 = dataModel.getTimer(timer2.getId()); in verifyIntentsHonored_whileTimersFire()
82 dataModel.expireTimer(null, timer1); in verifyIntentsHonored_whileTimersFire()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DDataModelTest.java32 DataModel dataModel; field in DataModelTest
40 dataModel = new DataModelImpl(getTestContext()); in setUp()
41 factory.withDataModel(dataModel); in setUp()
46 final ConversationListData list = dataModel.createConversationListData(getContext(), in testCreateConversationList()
49 final ConversationData conv = dataModel.createConversationData(getContext(), in testCreateConversationList()
58 dataModel.setFocusedConversation(FOCUSED_CONV_ID); in testFocusedConversationIsObservable()
59 assertTrue(dataModel.isNewMessageObservable(FOCUSED_CONV_ID)); in testFocusedConversationIsObservable()
60 dataModel.setFocusedConversation(null); in testFocusedConversationIsObservable()
61 assertFalse(dataModel.isNewMessageObservable(FOCUSED_CONV_ID)); in testFocusedConversationIsObservable()
66 dataModel.setConversationListScrolledToNewestConversation(true); in testConversationIsObservableInList()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerService.kt54 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()
107 DataModel.dataModel.expireTimer(this, timer) in onStartCommand()
[all …]
DTimerFragment.kt104 DataModel.dataModel.addTimerListener(mAdapter) in onCreateView()
105 DataModel.dataModel.addTimerListener(mTimerWatcher) in onCreateView()
154 val timer: Timer? = DataModel.dataModel.mostRecentExpiredTimer in onStart()
160 val timer: Timer? = DataModel.dataModel.getTimer(showTimerId) in onStart()
162 val index: Int = DataModel.dataModel.timers.indexOf(it) in onStart()
178 val timer: Timer? = DataModel.dataModel.getTimer(showTimerId) in onResume()
181 val index: Int = DataModel.dataModel.timers.indexOf(it) in onResume()
199 DataModel.dataModel.removeTimerListener(mAdapter) in onDestroyView()
200 DataModel.dataModel.removeTimerListener(mTimerWatcher) in onDestroyView()
307 DataModel.dataModel.pauseTimer(timer) in onFabClick()
[all …]
DExpiredTimersActivity.kt99 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()
DTimerItemFragment.kt75 get() = DataModel.dataModel.getTimer(timerId)
81 DataModel.dataModel.resetOrDeleteTimer(timer, R.string.label_deskclock) in onClick()
83 DataModel.dataModel.addTimerMinute(timer) in onClick()
109 DataModel.dataModel.startTimer(clickedTimer) in onClick()
111 DataModel.dataModel.pauseTimer(clickedTimer) in onClick()
DTimerKlaxon.kt57 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/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java59 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
67 synchronized(dataModel) { in execute()
68 IntArray workspaceScreens = dataModel.collectWorkspaceScreens(); in execute()
76 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
102 int[] coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute()
144 if (shortcutExists(dataModel, itemInfo.getIntent(), itemInfo.user)) { in execute()
198 protected boolean shortcutExists(BgDataModel dataModel, Intent intent, UserHandle user) { in shortcutExists() argument
222 synchronized (dataModel) { in shortcutExists()
223 for (ItemInfo item : dataModel.itemsIdMap) { in shortcutExists()
254 protected int[] findSpaceForItem( LauncherAppState app, BgDataModel dataModel, in findSpaceForItem() argument
[all …]
DBaseModelUpdateTask.java51 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor) { in init() argument
54 mDataModel = dataModel; in init()
75 LauncherAppState app, BgDataModel dataModel, AllAppsList apps); in execute() argument
103 public void bindDeepShortcuts(BgDataModel dataModel) { in bindDeepShortcuts() argument
105 new HashMap<>(dataModel.deepShortcutMap); in bindDeepShortcuts()
109 public void bindUpdatedWidgets(BgDataModel dataModel) { in bindUpdatedWidgets() argument
111 dataModel.widgetsModel.getWidgetsList(mApp.getContext()); in bindUpdatedWidgets()
DUserLockStateChangedTask.java52 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
77 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
109 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
117 dataModel.updateDeepShortcutCounts( in execute()
120 bindDeepShortcuts(dataModel); in execute()
DPackageInstallStateChangedTask.java48 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
73 synchronized (dataModel) { in execute()
75 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
91 for (LauncherAppWidgetInfo widget : dataModel.appWidgets) { in execute()
DShortcutsChangedTask.java55 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
64 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
116 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
117 bindDeepShortcuts(dataModel); in execute()
DCacheDataUpdatedTask.java49 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
55 synchronized (dataModel) { in execute()
56 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
DPackageUpdatedTask.java90 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList appsList) { in execute() argument
180 synchronized (dataModel) { in execute()
181 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
330 dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser)); in execute()
332 bindUpdatedWidgets(dataModel); in execute()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt147 DataModel.dataModel.addStopwatchListener(mStopwatchWatcher) in <lambda>()
176 DataModel.dataModel.startStopwatch() in <lambda>()
180 DataModel.dataModel.pauseStopwatch() in <lambda>()
212 DataModel.dataModel.removeStopwatchListener(mStopwatchWatcher) in <lambda>()
309 DataModel.dataModel.startStopwatch() in <lambda>()
317 DataModel.dataModel.pauseStopwatch() in <lambda>()
326 DataModel.dataModel.resetStopwatch() in <lambda>()
424 val appInForeground = DataModel.dataModel.isApplicationInForeground in <lambda>()
448 get() = DataModel.dataModel.stopwatch in <lambda>()
450 private fun canRecordMoreLaps(): Boolean = DataModel.dataModel.canAddMoreLaps() in <lambda>()
[all …]
DLapsAdapter.kt90 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
DStopwatchService.kt55 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/ringtone/
DRingtonePickerActivity.kt191 DataModel.dataModel.defaultAlarmRingtoneUri = alarm.alert!! in <lambda>()
199 DataModel.dataModel.timerRingtoneUri = it in <lambda>()
500 DataModel.dataModel.addCustomRingtone(mUri, title) in <lambda>()
553 if (mRemoveUri == DataModel.dataModel.defaultAlarmRingtoneUri) { in <lambda>()
554 DataModel.dataModel.defaultAlarmRingtoneUri = mSystemDefaultRingtoneUri in <lambda>()
558 if (mRemoveUri == DataModel.dataModel.timerRingtoneUri) { in <lambda>()
559 val timerRingtoneUri = DataModel.dataModel.defaultTimerRingtoneUri in <lambda>()
560 DataModel.dataModel.timerRingtoneUri = timerRingtoneUri in <lambda>()
564 DataModel.dataModel.removeCustomRingtone(mRemoveUri) in <lambda>()
627 val dataModel = DataModel.dataModel in <lambda>() constant
[all …]
DRingtoneLoader.kt46 mCustomRingtones = DataModel.dataModel.customRingtones in onStartLoading()
52 DataModel.dataModel.loadRingtoneTitles() in loadInBackground()
53 DataModel.dataModel.loadRingtonePermissions() in loadInBackground()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java179 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onSessionFailure()
181 synchronized (dataModel) { in onSessionFailure()
182 for (ItemInfo info : dataModel.itemsIdMap) { in onSessionFailure()
398 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onInstallSessionCreated()
469 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onWidgetLabelsUpdated()
470 dataModel.widgetsModel.onPackageIconsUpdated(updatedPackages, user, app); in onWidgetLabelsUpdated()
471 bindUpdatedWidgets(dataModel); in onWidgetLabelsUpdated()
499 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor); in init() argument
519 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in updateAndBindWorkspaceItem()
532 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in refreshAndBindWidgetsAndShortcuts()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt146 DataModel.dataModel.selectedCities = mCitiesAdapter.selectedCities in onPause()
446 val selected = DataModel.dataModel.selectedCities as List<City> in refresh()
467 DataModel.dataModel.allCities in filter()
469 val unselected: List<City> = DataModel.dataModel.unselectedCities in filter()
495 get() = DataModel.dataModel.citySort
498 get() = DataModel.dataModel.cityIndexComparator
575 item.setTitle(if (DataModel.dataModel.citySort == DataModel.CitySort.NAME) { in onPrepareOptionsItem()
584 DataModel.dataModel.toggleCitySort() in onOptionsItemSelected()
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmInitReceiver.kt51 DataModel.dataModel.updateGlobalIntentId() in onReceive()
56 DataModel.dataModel.updateAfterReboot() in onReceive()
60 DataModel.dataModel.updateAfterTimeSet() in onReceive()
74 DataModel.dataModel.updateAllNotifications() in onReceive()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt142 DataModel.dataModel.displayClockSeconds = newValue as Boolean in onPreferenceChange()
155 DataModel.dataModel.timerVibrate = timerVibratePref.isChecked() in onPreferenceChange()
157 KEY_TIMER_RINGTONE -> pref.setSummary(DataModel.dataModel.timerRingtoneTitle) in onPreferenceChange()
212 val timezones = DataModel.dataModel.timeZones in loadTimeZoneList()
263 val weekdayOrder = DataModel.dataModel.weekdayOrder in refresh()
276 it.setSummary(DataModel.dataModel.timerRingtoneTitle) in refresh()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java1312 final Cp2DataCardModel dataModel = new Cp2DataCardModel(); in generateDataModelFromContact() local
1313 dataModel.customAboutCardName = aboutCardName.value; in generateDataModelFromContact()
1314 dataModel.aboutCardEntries = aboutCardEntries; in generateDataModelFromContact()
1315 dataModel.contactCardEntries = contactCardEntries; in generateDataModelFromContact()
1316 dataModel.dataItemsMap = dataItemsMap; in generateDataModelFromContact()
1317 dataModel.areAllRawContactsSimAccounts = data.areAllRawContactsSimAccounts(this); in generateDataModelFromContact()
1318 return dataModel; in generateDataModelFromContact()
1912 HangoutsDataItemModel dataModel) { in populateHangoutsDataItemModel() argument
1915 dataModel.secondDataItem.getId()), dataModel.secondDataItem.getMimeType()); in populateHangoutsDataItemModel()
1917 secondIntent.putExtra(EXTRA_THIRD_PARTY_ACTION, dataModel.secondDataItem.getMimeType()); in populateHangoutsDataItemModel()
[all …]
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetCityViewsFactory.kt151 DataModel.dataModel.run(refreshRunnable) in onDataSetChanged()
204 mHomeCity = DataModel.dataModel.homeCity in run()
205 mCities = ArrayList(DataModel.dataModel.selectedCities) in run()
206 mShowHomeClock = DataModel.dataModel.showHomeClock in run()

123