Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java231 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrUpdateDynamicShortcut() local
235 if (oldShortcut == null) { in addOrUpdateDynamicShortcut()
240 oldShortcut.ensureUpdatableWith(newShortcut); in addOrUpdateDynamicShortcut()
242 wasPinned = oldShortcut.isPinned(); in addOrUpdateDynamicShortcut()
347 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); in deleteOrDisableWithId() local
349 if (oldShortcut == null || !oldShortcut.isEnabled()) { in deleteOrDisableWithId()
353 ensureNotImmutable(oldShortcut); in deleteOrDisableWithId()
355 if (oldShortcut.isPinned()) { in deleteOrDisableWithId()
357 oldShortcut.setRank(0); in deleteOrDisableWithId()
358 oldShortcut.clearFlags(ShortcutInfo.FLAG_DYNAMIC | ShortcutInfo.FLAG_MANIFEST); in deleteOrDisableWithId()
[all …]