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.java270 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrReplaceDynamicShortcut() local
274 if (oldShortcut == null) { in addOrReplaceDynamicShortcut()
279 oldShortcut.ensureUpdatableWith(newShortcut, /*isUpdating=*/ false); in addOrReplaceDynamicShortcut()
281 wasPinned = oldShortcut.isPinned(); in addOrReplaceDynamicShortcut()
393 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); in deleteOrDisableWithId() local
395 if (oldShortcut == null || !oldShortcut.isEnabled() in deleteOrDisableWithId()
396 && (ignoreInvisible && !oldShortcut.isVisibleToPublisher())) { in deleteOrDisableWithId()
400 ensureNotImmutable(oldShortcut, /*ignoreInvisible=*/ true); in deleteOrDisableWithId()
402 if (oldShortcut.isPinned()) { in deleteOrDisableWithId()
404 oldShortcut.setRank(0); in deleteOrDisableWithId()
[all …]