Home
last modified time | relevance | path

Searched refs:dataModel (Results 1 – 22 of 22) 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.java56 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
64 synchronized(dataModel) { in execute()
65 IntArray workspaceScreens = dataModel.collectWorkspaceScreens(); in execute()
73 if (shortcutExists(dataModel, item.getIntent(), item.user)) { in execute()
90 int[] coords = findSpaceForItem(app, dataModel, workspaceScreens, in execute()
142 protected boolean shortcutExists(BgDataModel dataModel, Intent intent, UserHandle user) { in shortcutExists() argument
166 synchronized (dataModel) { in shortcutExists()
167 for (ItemInfo item : dataModel.itemsIdMap) { in shortcutExists()
198 protected int[] findSpaceForItem( LauncherAppState app, BgDataModel dataModel, in findSpaceForItem() argument
203 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
107 public void bindDeepShortcuts(BgDataModel dataModel) { in bindDeepShortcuts() argument
109 new HashMap<>(dataModel.deepShortcutMap); in bindDeepShortcuts()
113 public void bindUpdatedWidgets(BgDataModel dataModel) { in bindUpdatedWidgets() argument
115 dataModel.widgetsModel.getWidgetsList(mApp.getContext()); in bindUpdatedWidgets()
DUserLockStateChangedTask.java54 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
79 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
111 Iterator<ComponentKey> keysIter = dataModel.deepShortcutMap.keySet().iterator(); in execute()
119 dataModel.updateDeepShortcutCounts( in execute()
122 bindDeepShortcuts(dataModel); in execute()
DShortcutsChangedTask.java56 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in execute() argument
65 for (ItemInfo itemInfo : dataModel.itemsIdMap) { in execute()
117 dataModel.updateDeepShortcutCounts(mPackageName, mUser, mShortcuts); in execute()
118 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()
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()
DPackageUpdatedTask.java87 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList appsList) { in execute() argument
183 synchronized (dataModel) { in execute()
184 for (ItemInfo info : dataModel.itemsIdMap) { in execute()
349 dataModel.widgetsModel.update(app, new PackageUserKey(packages[i], mUser)); in execute()
351 bindUpdatedWidgets(dataModel); in execute()
DModelPreload.java43 public final void init(LauncherAppState app, LauncherModel model, BgDataModel dataModel, in init() argument
47 mBgDataModel = dataModel; in init()
DBaseLoaderResults.java66 public BaseLoaderResults(LauncherAppState app, BgDataModel dataModel, in BaseLoaderResults() argument
70 mBgDataModel = dataModel; in BaseLoaderResults()
DLoaderCursor.java382 public void checkAndAddItem(ItemInfo info, BgDataModel dataModel) { in checkAndAddItem() argument
384 dataModel.addItem(mContext, info, false); in checkAndAddItem()
DModelWriter.java72 public ModelWriter(Context context, LauncherModel model, BgDataModel dataModel, in ModelWriter() argument
76 mBgDataModel = dataModel; in ModelWriter()
DLoaderTask.java113 public LoaderTask(LauncherAppState app, AllAppsList bgAllAppsList, BgDataModel dataModel, in LoaderTask() argument
117 mBgDataModel = dataModel; in LoaderTask()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java412 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onInstallSessionCreated()
492 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in onWidgetLabelsUpdated()
493 dataModel.widgetsModel.onPackageIconsUpdated(updatedPackages, user, app); in onWidgetLabelsUpdated()
494 bindUpdatedWidgets(dataModel); in onWidgetLabelsUpdated()
528 BgDataModel dataModel, AllAppsList allAppsList, Executor uiExecutor); in init() argument
548 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in updateAndBindWorkspaceItem()
561 public void execute(LauncherAppState app, BgDataModel dataModel, AllAppsList apps) { in refreshAndBindWidgetsAndShortcuts()
562 dataModel.widgetsModel.update(app, packageUser); in refreshAndBindWidgetsAndShortcuts()
563 bindUpdatedWidgets(dataModel); in refreshAndBindWidgetsAndShortcuts()
/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/go/src/com/android/launcher3/model/
DLoaderResults.java30 public LoaderResults(LauncherAppState app, BgDataModel dataModel, in LoaderResults() argument
32 super(app, dataModel, allAppsList, pageToBindFirst, callbacks); in LoaderResults()
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/
DLoaderResults.java34 public LoaderResults(LauncherAppState app, BgDataModel dataModel, in LoaderResults() argument
36 super(app, dataModel, allAppsList, pageToBindFirst, callbacks); in LoaderResults()
/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/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/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()