/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/ |
D | TimerServiceTest.java | 45 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/ |
D | DataModelTest.java | 32 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/ |
D | TimerService.kt | 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() 107 DataModel.dataModel.expireTimer(this, timer) in onStartCommand() [all …]
|
D | TimerFragment.kt | 104 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 …]
|
D | ExpiredTimersActivity.kt | 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 | TimerItemFragment.kt | 75 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()
|
D | TimerKlaxon.kt | 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/Launcher3/src/com/android/launcher3/model/ |
D | AddWorkspaceItemsTask.java | 59 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 …]
|
D | BaseModelUpdateTask.java | 51 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()
|
D | UserLockStateChangedTask.java | 52 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()
|
D | PackageInstallStateChangedTask.java | 48 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()
|
D | ShortcutsChangedTask.java | 55 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()
|
D | CacheDataUpdatedTask.java | 49 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()
|
D | PackageUpdatedTask.java | 90 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/ |
D | StopwatchFragment.kt | 147 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 …]
|
D | LapsAdapter.kt | 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 | 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/ringtone/ |
D | RingtonePickerActivity.kt | 191 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 …]
|
D | RingtoneLoader.kt | 46 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/ |
D | LauncherModel.java | 179 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/ |
D | CitySelectionActivity.kt | 146 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/ |
D | AlarmInitReceiver.kt | 51 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/ |
D | SettingsActivity.kt | 142 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/ |
D | QuickContactActivity.java | 1312 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/ |
D | DigitalAppWidgetCityViewsFactory.kt | 151 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()
|