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.java289 final ShortcutInfo oldShortcut = mShortcuts.get(newShortcut.getId()); in addOrReplaceDynamicShortcut() local
293 if (oldShortcut == null) { in addOrReplaceDynamicShortcut()
298 oldShortcut.ensureUpdatableWith(newShortcut, /*isUpdating=*/ false); in addOrReplaceDynamicShortcut()
300 wasPinned = oldShortcut.isPinned(); in addOrReplaceDynamicShortcut()
412 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); in deleteOrDisableWithId() local
414 if (oldShortcut == null || !oldShortcut.isEnabled() in deleteOrDisableWithId()
415 && (ignoreInvisible && !oldShortcut.isVisibleToPublisher())) { in deleteOrDisableWithId()
419 ensureNotImmutable(oldShortcut, /*ignoreInvisible=*/ true); in deleteOrDisableWithId()
421 if (oldShortcut.isPinned()) { in deleteOrDisableWithId()
423 oldShortcut.setRank(0); in deleteOrDisableWithId()
[all …]