Home
last modified time | relevance | path

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

1234

/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.kt103 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()
306 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.kt74 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()
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.java63 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
71 synchronized(dataModel) { in execute()
72 IntArray workspaceScreens = dataModel.collectWorkspaceScreens(); in execute()
80 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
106 int[] coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute()
157 if (shortcutExists(dataModel, itemInfo.getIntent(), itemInfo.user)) { in execute()
214 protected boolean shortcutExists(BgDataModel dataModel, Intent intent, UserHandle user) { in shortcutExists() argument
238 synchronized (dataModel) { in shortcutExists()
239 for (ItemInfo item : dataModel.itemsIdMap) { in shortcutExists()
270 protected int[] findSpaceForItem( LauncherAppState app, BgDataModel dataModel, in findSpaceForItem() argument
[all …]
DBaseModelUpdateTask.java55 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor) { in init() argument
58 mDataModel = dataModel; in init()
79 LauncherAppState app, BgDataModel dataModel, AllAppsList apps); in execute() argument
119 public void bindDeepShortcuts(BgDataModel dataModel) { in bindDeepShortcuts() argument
121 new HashMap<>(dataModel.deepShortcutMap); in bindDeepShortcuts()
125 public void bindUpdatedWidgets(BgDataModel dataModel) { in bindUpdatedWidgets() argument
127 dataModel.widgetsModel.getWidgetsListForPicker(mApp.getContext()); in bindUpdatedWidgets()
DUserLockStateChangedTask.java52 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
75 synchronized (dataModel) { in execute()
76 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
103 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
111 dataModel.updateDeepShortcutCounts( in execute()
115 bindDeepShortcuts(dataModel); in execute()
DShortcutsChangedTask.java55 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
60 synchronized (dataModel) { in execute()
61 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
117 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
118 bindDeepShortcuts(dataModel); in execute()
DPackageInstallStateChangedTask.java44 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
71 synchronized (dataModel) { in execute()
73 dataModel.forAllWorkspaceItemInfos(mInstallInfo.user, si -> { in execute()
87 for (LauncherAppWidgetInfo widget : dataModel.appWidgets) { in execute()
DCacheDataUpdatedTask.java48 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
52 synchronized (dataModel) { in execute()
53 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
DPackageIncrementalDownloadUpdatedTask.java46 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList appsList) { in execute() argument
66 synchronized (dataModel) { in execute()
67 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt146 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>()
449 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.kt192 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>()
628 val dataModel = DataModel.dataModel in <lambda>() constant
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java427 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onInstallSessionCreated()
442 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onSessionFailure()
444 synchronized (dataModel) { in onSessionFailure()
445 for (ItemInfo info : dataModel.itemsIdMap) { in onSessionFailure()
545 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onWidgetLabelsUpdated()
546 dataModel.widgetsModel.onPackageIconsUpdated(updatedPackages, user, app); in onWidgetLabelsUpdated()
547 bindUpdatedWidgets(dataModel); in onWidgetLabelsUpdated()
575 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor); in init() argument
593 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in updateAndBindWorkspaceItem()
606 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in refreshAndBindWidgetsAndShortcuts()
[all …]
/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()
DHandleApiCalls.kt285 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()
487 val defaultRingtone: Uri = DataModel.dataModel.defaultAlarmRingtoneUri in setSelectionFromIntent()
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
DCitySelectionActivity.kt145 DataModel.dataModel.selectedCities = mCitiesAdapter.selectedCities in onPause()
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()
494 get() = DataModel.dataModel.citySort
497 get() = DataModel.dataModel.cityIndexComparator
574 item.setTitle(if (DataModel.dataModel.citySort == DataModel.CitySort.NAME) { in onPrepareOptionsItem()
583 DataModel.dataModel.toggleCitySort() in onOptionsItemSelected()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt141 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/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/Launcher3/src/com/android/launcher3/graphics/
DPreviewSurfaceRenderer.java176 LauncherAppState.getInstance(inflationContext).getModel().loadAsync(dataModel -> { in loadModelData()
177 if (dataModel != null) { in loadModelData()
178 MAIN_EXECUTOR.execute(() -> renderView(inflationContext, dataModel, null)); in loadModelData()
201 private void renderView(Context inflationContext, BgDataModel dataModel, in renderView() argument
207 .getRenderedView(dataModel, widgetProviderInfoMap); in renderView()

1234