code: public void addDynamicShortcut(ShortcutInfo shortcutInfo) {
      shortcuts.add(shortcutInfo);
      shortcutsChanged(shortcutInfo.getPackage(), Lists.newArrayList(shortcutInfo));
    }
docs: Adds a dynamic shortcut to be returned by {@link #getShortcuts(ShortcutQuery, UserHandle)}.
  
  @param shortcutInfo the shortcut to add.