Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DLauncherApps.java274 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() argument
770 private List<ShortcutInfo> maybeUpdateDisabledMessage(List<ShortcutInfo> shortcuts) { in maybeUpdateDisabledMessage() argument
771 if (shortcuts == null) { in maybeUpdateDisabledMessage()
774 for (int i = shortcuts.size() - 1; i >= 0; i--) { in maybeUpdateDisabledMessage()
775 final ShortcutInfo si = shortcuts.get(i); in maybeUpdateDisabledMessage()
782 return shortcuts; in maybeUpdateDisabledMessage()
879 final List<ShortcutInfo> shortcuts = getShortcuts(q, user); in getShortcutIconResId() local
881 return shortcuts.size() > 0 ? shortcuts.get(0).getIconResourceId() : 0; in getShortcutIconResId()
1249 ParceledListSlice shortcuts) {
1253 final List<ShortcutInfo> list = shortcuts.getList();
[all …]
DIOnAppsChangedListener.aidl35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged() argument
DIShortcutService.aidl44 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DShortcutPicker.java68 List<Shortcut> shortcuts = new ShortcutParser(getContext(), in onCreatePreferences()
72 if (shortcuts.size() != 0) { in onCreatePreferences()
77 shortcuts.forEach(shortcut -> { in onCreatePreferences()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackage.java222 public void ensureImmutableShortcutsNotIncluded(@NonNull List<ShortcutInfo> shortcuts, in ensureImmutableShortcutsNotIncluded() argument
224 for (int i = shortcuts.size() - 1; i >= 0; i--) { in ensureImmutableShortcutsNotIncluded()
225 ensureNotImmutable(shortcuts.get(i).getId(), ignoreInvisible); in ensureImmutableShortcutsNotIncluded()
1277 final ArrayMap<String, ShortcutInfo> shortcuts = mShortcuts; in dump() local
1278 final int size = shortcuts.size(); in dump()
1280 final ShortcutInfo si = shortcuts.valueAt(i); in dump()
1311 final ArrayMap<String, ShortcutInfo> shortcuts = mShortcuts; in dumpCheckin() local
1312 final int size = shortcuts.size(); in dumpCheckin()
1314 final ShortcutInfo si = shortcuts.valueAt(i); in dumpCheckin()
DShortcutUser.java416 final ShortcutPackage shortcuts = ShortcutPackage.loadFromXml( in loadFromXml()
420 ret.mPackages.put(shortcuts.getPackageName(), shortcuts); in loadFromXml()
DShortcutService.java1686 private void fillInDefaultActivity(List<ShortcutInfo> shortcuts) { in fillInDefaultActivity() argument
1688 for (int i = shortcuts.size() - 1; i >= 0; i--) { in fillInDefaultActivity()
1689 final ShortcutInfo si = shortcuts.get(i); in fillInDefaultActivity()
1702 private void assignImplicitRanks(List<ShortcutInfo> shortcuts) { in assignImplicitRanks() argument
1703 for (int i = shortcuts.size() - 1; i >= 0; i--) { in assignImplicitRanks()
1704 shortcuts.get(i).setImplicitRank(i); in assignImplicitRanks()
1708 private List<ShortcutInfo> setReturnedByServer(List<ShortcutInfo> shortcuts) { in setReturnedByServer() argument
1709 for (int i = shortcuts.size() - 1; i >= 0; i--) { in setReturnedByServer()
1710 shortcuts.get(i).setReturnedByServer(); in setReturnedByServer()
1712 return shortcuts; in setReturnedByServer()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java713 public static List<ShortcutInfo> sortedByRank(List<ShortcutInfo> shortcuts) { in sortedByRank() argument
714 final ArrayList<ShortcutInfo> ret = new ArrayList<>(shortcuts); in sortedByRank()
1122 final ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in assertCallbackCalledForPackageAndUser() local
1125 shortcuts.capture(), in assertCallbackCalledForPackageAndUser()
1127 return new ShortcutListAsserter(shortcuts.getValue()); in assertCallbackCalledForPackageAndUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java4369 ArgumentCaptor<List> shortcuts; in testHandlePackageUpdate() local
4383 shortcuts = ArgumentCaptor.forClass(List.class); in testHandlePackageUpdate()
4386 shortcuts.capture(), in testHandlePackageUpdate()
4394 assertShortcutIds(shortcuts.getValue(), "s1", "s2", "s3", "s4"); in testHandlePackageUpdate()
4396 findShortcut(shortcuts.getValue(), "s1").getLastChangedTimestamp()); in testHandlePackageUpdate()
4398 findShortcut(shortcuts.getValue(), "s2").getLastChangedTimestamp()); in testHandlePackageUpdate()
4400 findShortcut(shortcuts.getValue(), "s3").getLastChangedTimestamp()); in testHandlePackageUpdate()
4402 findShortcut(shortcuts.getValue(), "s4").getLastChangedTimestamp()); in testHandlePackageUpdate()
4419 shortcuts = ArgumentCaptor.forClass(List.class); in testHandlePackageUpdate()
4427 shortcuts.capture(), in testHandlePackageUpdate()
[all …]
/frameworks/base/packages/SystemUI/
DREADME.md134 Shows UI for keyboard shortcuts (triggered by keyboard shortcut).