Searched refs:newShortcut (Results 1 – 2 of 2) sorted by relevance
246 private void forceReplaceShortcutInner(@NonNull ShortcutInfo newShortcut) { in forceReplaceShortcutInner() argument249 forceDeleteShortcutInner(newShortcut.getId()); in forceReplaceShortcutInner()252 s.saveIconAndFixUpShortcutLocked(newShortcut); in forceReplaceShortcutInner()253 s.fixUpShortcutResourceNamesAndValues(newShortcut); in forceReplaceShortcutInner()254 mShortcuts.put(newShortcut.getId(), newShortcut); in forceReplaceShortcutInner() local263 public void addOrReplaceDynamicShortcut(@NonNull ShortcutInfo newShortcut) { in addOrReplaceDynamicShortcut() argument265 Preconditions.checkArgument(newShortcut.isEnabled(), in addOrReplaceDynamicShortcut()268 newShortcut.addFlags(ShortcutInfo.FLAG_DYNAMIC); in addOrReplaceDynamicShortcut()270 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrReplaceDynamicShortcut()279 oldShortcut.ensureUpdatableWith(newShortcut, /*isUpdating=*/ false); in addOrReplaceDynamicShortcut()[all …]
1757 final ShortcutInfo newShortcut = newShortcuts.get(i); in setDynamicShortcuts() local1758 ps.addOrReplaceDynamicShortcut(newShortcut); in setDynamicShortcuts()1887 final ShortcutInfo newShortcut = newShortcuts.get(i); in addDynamicShortcuts() local1890 fixUpIncomingShortcutInfo(newShortcut, /* forUpdate= */ false); in addDynamicShortcuts()1894 newShortcut.setRankChanged(); in addDynamicShortcuts()1897 ps.addOrReplaceDynamicShortcut(newShortcut); in addDynamicShortcuts()