/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 | 103 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 …]
|
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 | 74 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()
|
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 | 63 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 …]
|
D | BaseModelUpdateTask.java | 55 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()
|
D | UserLockStateChangedTask.java | 52 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()
|
D | ShortcutsChangedTask.java | 55 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()
|
D | PackageInstallStateChangedTask.java | 44 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()
|
D | CacheDataUpdatedTask.java | 48 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument 52 synchronized (dataModel) { in execute() 53 dataModel.forAllWorkspaceItemInfos(mUser, si -> { in execute()
|
D | PackageIncrementalDownloadUpdatedTask.java | 46 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/ |
D | StopwatchFragment.kt | 146 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 …]
|
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 | 192 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/ |
D | LauncherModel.java | 427 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/ |
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()
|
D | HandleApiCalls.kt | 285 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/ |
D | CitySelectionActivity.kt | 145 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/ |
D | SettingsActivity.kt | 141 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/ |
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/Launcher3/src/com/android/launcher3/graphics/ |
D | PreviewSurfaceRenderer.java | 176 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()
|