Lines Matching defs:mgr
51 ShortcutManager mgr = mContext.getSystemService(ShortcutManager.class);
53 Map<String, ShortcutInfo> existing = getPinnedShortcuts(mgr);
60 mgr.setDynamicShortcuts(devices.subList(0, getNumDynSlots(mgr, devices.size())));
71 mgr.enableShortcuts(deviceIds);
72 mgr.disableShortcuts(disabled);
111 private Map<String, ShortcutInfo> getPinnedShortcuts(ShortcutManager mgr) {
113 for (ShortcutInfo s : mgr.getDynamicShortcuts()) {
119 private int getNumDynSlots(ShortcutManager mgr, int numDevices) {
120 int slots = mgr.getMaxShortcutCountForActivity() - mgr.getManifestShortcuts().size();