/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ChooserActivityTest.java | 855 List<ShareShortcutInfo> shortcuts = createShortcuts(activity); in testConvertToChooserTarget_predictionService() local 860 List<ChooserTarget> chooserTargets = activity.convertToChooserTarget(shortcuts, shortcuts, in testConvertToChooserTarget_predictionService() 862 assertCorrectShortcutToChooserTargetConversion(shortcuts, chooserTargets, in testConvertToChooserTarget_predictionService() 866 subset.add(shortcuts.get(1)); in testConvertToChooserTarget_predictionService() 867 subset.add(shortcuts.get(2)); in testConvertToChooserTarget_predictionService() 868 subset.add(shortcuts.get(3)); in testConvertToChooserTarget_predictionService() 873 chooserTargets = activity.convertToChooserTarget(subset, shortcuts, null, in testConvertToChooserTarget_predictionService() 875 assertCorrectShortcutToChooserTargetConversion(shortcuts, chooserTargets, in testConvertToChooserTarget_predictionService() 891 List<ShareShortcutInfo> shortcuts = createShortcuts(activity); in testConvertToChooserTarget_shortcutManager() local 896 List<ChooserTarget> chooserTargets = activity.convertToChooserTarget(shortcuts, shortcuts, in testConvertToChooserTarget_shortcutManager() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | LauncherApps.java | 285 @NonNull List<ShortcutInfo> shortcuts, @NonNull UserHandle user) { in onShortcutsChanged() argument 876 private List<ShortcutInfo> maybeUpdateDisabledMessage(List<ShortcutInfo> shortcuts) { in maybeUpdateDisabledMessage() argument 877 if (shortcuts == null) { in maybeUpdateDisabledMessage() 880 for (int i = shortcuts.size() - 1; i >= 0; i--) { in maybeUpdateDisabledMessage() 881 final ShortcutInfo si = shortcuts.get(i); in maybeUpdateDisabledMessage() 888 return shortcuts; in maybeUpdateDisabledMessage() 985 final List<ShortcutInfo> shortcuts = getShortcuts(q, user); in getShortcutIconResId() local 987 return shortcuts.size() > 0 ? shortcuts.get(0).getIconResourceId() : 0; in getShortcutIconResId() 1356 ParceledListSlice shortcuts) { 1360 final List<ShortcutInfo> list = shortcuts.getList(); [all …]
|
D | IOnAppsChangedListener.aidl | 35 void onShortcutChanged(in UserHandle user, String packageName, in ParceledListSlice shortcuts); in onShortcutChanged() argument
|
D | IShortcutService.aidl | 45 boolean updateShortcuts(String packageName, in ParceledListSlice shortcuts, int userId); in updateShortcuts() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | ShortcutPicker.java | 68 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/ |
D | ShortcutPackage.java | 241 public void ensureImmutableShortcutsNotIncluded(@NonNull List<ShortcutInfo> shortcuts, in ensureImmutableShortcutsNotIncluded() argument 243 for (int i = shortcuts.size() - 1; i >= 0; i--) { in ensureImmutableShortcutsNotIncluded() 244 ensureNotImmutable(shortcuts.get(i).getId(), ignoreInvisible); in ensureImmutableShortcutsNotIncluded() 679 final ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in getMatchingShareTargets() local 680 findAll(shortcuts, ShortcutInfo::isDynamicVisible, in getMatchingShareTargets() 684 for (int i = 0; i < shortcuts.size(); i++) { in getMatchingShareTargets() 685 final Set<String> categories = shortcuts.get(i).getCategories(); in getMatchingShareTargets() 700 result.add(new ShortcutManager.ShareShortcutInfo(shortcuts.get(i), in getMatchingShareTargets() 724 final ArrayList<ShortcutInfo> shortcuts = new ArrayList<>(); in getSharingShortcutCount() local 725 findAll(shortcuts, ShortcutInfo::isDynamicVisible, ShortcutInfo.CLONE_REMOVE_FOR_LAUNCHER); in getSharingShortcutCount() [all …]
|
D | ShortcutUser.java | 420 final ShortcutPackage shortcuts = ShortcutPackage.loadFromXml( in loadFromXml() 424 ret.mPackages.put(shortcuts.getPackageName(), shortcuts); in loadFromXml()
|
D | ShortcutService.java | 1712 private void fillInDefaultActivity(List<ShortcutInfo> shortcuts) { in fillInDefaultActivity() argument 1714 for (int i = shortcuts.size() - 1; i >= 0; i--) { in fillInDefaultActivity() 1715 final ShortcutInfo si = shortcuts.get(i); in fillInDefaultActivity() 1728 private void assignImplicitRanks(List<ShortcutInfo> shortcuts) { in assignImplicitRanks() argument 1729 for (int i = shortcuts.size() - 1; i >= 0; i--) { in assignImplicitRanks() 1730 shortcuts.get(i).setImplicitRank(i); in assignImplicitRanks() 1734 private List<ShortcutInfo> setReturnedByServer(List<ShortcutInfo> shortcuts) { in setReturnedByServer() argument 1735 for (int i = shortcuts.size() - 1; i >= 0; i--) { in setReturnedByServer() 1736 shortcuts.get(i).setReturnedByServer(); in setReturnedByServer() 1738 return shortcuts; in setReturnedByServer()
|
D | OWNERS | 47 # shortcuts
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 719 public static List<ShortcutInfo> sortedByRank(List<ShortcutInfo> shortcuts) { in sortedByRank() argument 720 final ArrayList<ShortcutInfo> ret = new ArrayList<>(shortcuts); in sortedByRank() 1128 final ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in assertCallbackCalledForPackageAndUser() local 1131 shortcuts.capture(), in assertCallbackCalledForPackageAndUser() 1133 return new ShortcutListAsserter(shortcuts.getValue()); in assertCallbackCalledForPackageAndUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest1.java | 4380 ArgumentCaptor<List> shortcuts; in testHandlePackageUpdate() local 4394 shortcuts = ArgumentCaptor.forClass(List.class); in testHandlePackageUpdate() 4397 shortcuts.capture(), in testHandlePackageUpdate() 4405 assertShortcutIds(shortcuts.getValue(), "s1", "s2", "s3", "s4"); in testHandlePackageUpdate() 4407 findShortcut(shortcuts.getValue(), "s1").getLastChangedTimestamp()); in testHandlePackageUpdate() 4409 findShortcut(shortcuts.getValue(), "s2").getLastChangedTimestamp()); in testHandlePackageUpdate() 4411 findShortcut(shortcuts.getValue(), "s3").getLastChangedTimestamp()); in testHandlePackageUpdate() 4413 findShortcut(shortcuts.getValue(), "s4").getLastChangedTimestamp()); in testHandlePackageUpdate() 4430 shortcuts = ArgumentCaptor.forClass(List.class); in testHandlePackageUpdate() 4438 shortcuts.capture(), in testHandlePackageUpdate() [all …]
|
/frameworks/base/packages/SystemUI/ |
D | README.md | 134 Shows UI for keyboard shortcuts (triggered by keyboard shortcut).
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ChooserActivity.java | 2371 final List<ShortcutInfo> shortcuts = launcherApps.getShortcuts(q, getUser()); 2372 if (shortcuts != null && shortcuts.size() > 0) { 2373 directShareIcon = launcherApps.getShortcutIconDrawable(shortcuts.get(0), 0);
|
/frameworks/base/proto/src/metrics_constants/ |
D | metrics_constants.proto | 7245 // ACTION: Published shortcuts in ShortcutManager changed
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 15065 Landroid/content/pm/LauncherApps$CallbackMessageHandler$CallbackInfo;->shortcuts:Ljava/util/List;
|