Home
last modified time | relevance | path

Searched refs:newShortcut (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java208 private void addShortcutInner(@NonNull ShortcutInfo newShortcut) { in addShortcutInner() argument
211 deleteShortcutInner(newShortcut.getId()); in addShortcutInner()
214 s.saveIconAndFixUpShortcutLocked(newShortcut); in addShortcutInner()
215 s.fixUpShortcutResourceNamesAndValues(newShortcut); in addShortcutInner()
216 mShortcuts.put(newShortcut.getId(), newShortcut); in addShortcutInner() local
224 public void addOrUpdateDynamicShortcut(@NonNull ShortcutInfo newShortcut) { in addOrUpdateDynamicShortcut() argument
226 Preconditions.checkArgument(newShortcut.isEnabled(), in addOrUpdateDynamicShortcut()
229 newShortcut.addFlags(ShortcutInfo.FLAG_DYNAMIC); in addOrUpdateDynamicShortcut()
231 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrUpdateDynamicShortcut()
240 oldShortcut.ensureUpdatableWith(newShortcut); in addOrUpdateDynamicShortcut()
[all …]
DShortcutService.java1707 final ShortcutInfo newShortcut = newShortcuts.get(i); in setDynamicShortcuts() local
1708 ps.addOrUpdateDynamicShortcut(newShortcut); in setDynamicShortcuts()
1829 final ShortcutInfo newShortcut = newShortcuts.get(i); in addDynamicShortcuts() local
1832 fixUpIncomingShortcutInfo(newShortcut, /* forUpdate= */ false); in addDynamicShortcuts()
1836 newShortcut.setRankChanged(); in addDynamicShortcuts()
1839 ps.addOrUpdateDynamicShortcut(newShortcut); in addDynamicShortcuts()