Searched refs:newShortcut (Results 1 – 2 of 2) sorted by relevance
265 private void forceReplaceShortcutInner(@NonNull ShortcutInfo newShortcut) { in forceReplaceShortcutInner() argument268 forceDeleteShortcutInner(newShortcut.getId()); in forceReplaceShortcutInner()271 s.saveIconAndFixUpShortcutLocked(newShortcut); in forceReplaceShortcutInner()272 s.fixUpShortcutResourceNamesAndValues(newShortcut); in forceReplaceShortcutInner()273 mShortcuts.put(newShortcut.getId(), newShortcut); in forceReplaceShortcutInner() local282 public void addOrReplaceDynamicShortcut(@NonNull ShortcutInfo newShortcut) { in addOrReplaceDynamicShortcut() argument284 Preconditions.checkArgument(newShortcut.isEnabled(), in addOrReplaceDynamicShortcut()287 newShortcut.addFlags(ShortcutInfo.FLAG_DYNAMIC); in addOrReplaceDynamicShortcut()289 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrReplaceDynamicShortcut()298 oldShortcut.ensureUpdatableWith(newShortcut, /*isUpdating=*/ false); in addOrReplaceDynamicShortcut()[all …]
1784 final ShortcutInfo newShortcut = newShortcuts.get(i); in setDynamicShortcuts() local1785 ps.addOrReplaceDynamicShortcut(newShortcut); in setDynamicShortcuts()1916 final ShortcutInfo newShortcut = newShortcuts.get(i); in addDynamicShortcuts() local1919 fixUpIncomingShortcutInfo(newShortcut, /* forUpdate= */ false); in addDynamicShortcuts()1923 newShortcut.setRankChanged(); in addDynamicShortcuts()1926 ps.addOrReplaceDynamicShortcut(newShortcut); in addDynamicShortcuts()