Searched refs:newShortcut (Results 1 – 2 of 2) sorted by relevance
208 private void addShortcutInner(@NonNull ShortcutInfo newShortcut) { in addShortcutInner() argument211 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() local224 public void addOrUpdateDynamicShortcut(@NonNull ShortcutInfo newShortcut) { in addOrUpdateDynamicShortcut() argument226 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 …]
1707 final ShortcutInfo newShortcut = newShortcuts.get(i); in setDynamicShortcuts() local1708 ps.addOrUpdateDynamicShortcut(newShortcut); in setDynamicShortcuts()1829 final ShortcutInfo newShortcut = newShortcuts.get(i); in addDynamicShortcuts() local1832 fixUpIncomingShortcutInfo(newShortcut, /* forUpdate= */ false); in addDynamicShortcuts()1836 newShortcut.setRankChanged(); in addDynamicShortcuts()1839 ps.addOrUpdateDynamicShortcut(newShortcut); in addDynamicShortcuts()