Home
last modified time | relevance | path

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

/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DDataModelTest.java32 DataModel dataModel; field in DataModelTest
39 dataModel = new DataModelImpl(getTestContext()); in setUp()
41 .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/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java60 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
75 synchronized(dataModel) { in execute()
83 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
101 userFolderInfo = new UserFolderInfo(context, item.user, dataModel); in execute()
115 Pair<Long, int[]> coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute()
179 protected boolean shortcutExists(BgDataModel dataModel, Intent intent, UserHandle user) { in shortcutExists() argument
203 synchronized (dataModel) { in shortcutExists()
204 for (ItemInfo item : dataModel.itemsIdMap) { in shortcutExists()
236 LauncherAppState app, BgDataModel dataModel, in findSpaceForItem() argument
243 synchronized (dataModel) { in findSpaceForItem()
[all …]
DBaseModelUpdateTask.java50 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor) { in init() argument
53 mDataModel = dataModel; in init()
74 LauncherAppState app, BgDataModel dataModel, AllAppsList apps); in execute() argument
109 public void bindDeepShortcuts(BgDataModel dataModel) { in bindDeepShortcuts() argument
110 … final MultiHashMap<ComponentKey, String> shortcutMapCopy = dataModel.deepShortcutMap.clone(); in bindDeepShortcuts()
119 public void bindUpdatedWidgets(BgDataModel dataModel) { in bindUpdatedWidgets() argument
121 = dataModel.widgetsModel.getWidgetsMap(); in bindUpdatedWidgets()
DUserLockStateChangedTask.java52 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
77 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
106 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
114 dataModel.updateDeepShortcutMap( in execute()
117 bindDeepShortcuts(dataModel); in execute()
DShortcutsChangedTask.java56 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
66 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
114 dataModel.updateDeepShortcutMap(mPackageName, mUser, mShortcuts); in execute()
115 bindDeepShortcuts(dataModel); in execute()
DPackageInstallStateChangedTask.java51 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
106 synchronized (dataModel) { in execute()
108 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
124 for (LauncherAppWidgetInfo widget : dataModel.appWidgets) { in execute()
DPackageUpdatedTask.java84 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList appsList) { in execute() argument
184 synchronized (dataModel) { in execute()
185 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
353 dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser)); in execute()
355 bindUpdatedWidgets(dataModel); in execute()
DCacheDataUpdatedTask.java53 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
59 synchronized (dataModel) { in execute()
60 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
DLoaderCursor.java379 public void checkAndAddItem(ItemInfo info, BgDataModel dataModel) { in checkAndAddItem() argument
380 if (checkItemPlacement(info, dataModel.workspaceScreens)) { in checkAndAddItem()
381 dataModel.addItem(mContext, info, false); in checkAndAddItem()
DLoaderResults.java67 public LoaderResults(LauncherAppState app, BgDataModel dataModel, in LoaderResults() argument
71 mBgDataModel = dataModel; in LoaderResults()
DModelWriter.java55 public ModelWriter(Context context, BgDataModel dataModel, boolean hasVerticalHotseat) { in ModelWriter() argument
57 mBgDataModel = dataModel; in ModelWriter()
DLoaderTask.java105 public LoaderTask(LauncherAppState app, AllAppsList bgAllAppsList, BgDataModel dataModel, in LoaderTask() argument
109 mBgDataModel = dataModel; in LoaderTask()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java1543 final Cp2DataCardModel dataModel = new Cp2DataCardModel(); in generateDataModelFromContact() local
1544 dataModel.customAboutCardName = aboutCardName.value; in generateDataModelFromContact()
1545 dataModel.aboutCardEntries = aboutCardEntries; in generateDataModelFromContact()
1546 dataModel.contactCardEntries = contactCardEntries; in generateDataModelFromContact()
1547 dataModel.dataItemsMap = dataItemsMap; in generateDataModelFromContact()
1548 dataModel.areAllRawContactsSimAccounts = data.areAllRawContactsSimAccounts(this); in generateDataModelFromContact()
1549 return dataModel; in generateDataModelFromContact()
2142 HangoutsDataItemModel dataModel) { in populateHangoutsDataItemModel() argument
2145 dataModel.secondDataItem.getId()), dataModel.secondDataItem.getMimeType()); in populateHangoutsDataItemModel()
2147 secondIntent.putExtra(EXTRA_THIRD_PARTY_ACTION, dataModel.secondDataItem.getMimeType()); in populateHangoutsDataItemModel()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java527 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onInstallSessionCreated()
626 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor); in init() argument
647 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in updateAndBindShortcutInfo()
659 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in refreshAndBindWidgetsAndShortcuts()
660 dataModel.widgetsModel.update(app, packageUser); in refreshAndBindWidgetsAndShortcuts()
661 bindUpdatedWidgets(dataModel); in refreshAndBindWidgetsAndShortcuts()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DManagedProfileHeuristic.java115 public UserFolderInfo(Context context, UserHandle user, BgDataModel dataModel) { in UserFolderInfo() argument
126 if (dataModel != null) { in UserFolderInfo()
129 folderInfo = dataModel.folders.get(folderId); in UserFolderInfo()
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
DRingtonePickerActivity.java146 final DataModel dataModel = DataModel.getDataModel(); in createTimerRingtonePickerIntent() local
149 .putExtra(EXTRA_RINGTONE_URI, dataModel.getTimerRingtoneUri()) in createTimerRingtonePickerIntent()
150 .putExtra(EXTRA_DEFAULT_RINGTONE_URI, dataModel.getDefaultTimerRingtoneUri()) in createTimerRingtonePickerIntent()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java239 public FakeFactory withDataModel(final DataModel dataModel) { in withDataModel() argument
240 this.mDataModel = dataModel; in withDataModel()
/packages/apps/Messaging/src/com/android/messaging/
DBugleApplication.java106 final DataModel dataModel = factory.getDataModel(); in initializeSync() local
119 dataModel.onApplicationCreated(); in initializeSync()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridView.java81 public void setDraftMessageDataModel(final BindingBase<DraftMessageData> dataModel) { in setDraftMessageDataModel() argument
82 mDraftMessageDataModel = BindingBase.createBindingReference(dataModel); in setDraftMessageDataModel()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java98 public Player(Context context, MediaSession session, DataModel dataModel) { in Player() argument
100 mDataModel = dataModel; in Player()