/frameworks/base/core/java/android/content/pm/ |
H A D | ShortcutServiceInternal.java | 58 @NonNull String packageName, @NonNull String shortcutId, int userId); 63 @NonNull String packageName, @NonNull String shortcutId, int userId); 67 @NonNull String packageName, @NonNull String shortcutId, int userId); 56 createShortcutIntents( int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 62 getShortcutIconResId(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 65 getShortcutIconFd(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument
|
H A D | ShortcutManager.java | 174 * android:shortcutId="compose" 195 * <dt>{@code android:shortcutId}</dt> 808 public void reportShortcutUsed(String shortcutId) { argument 810 mService.reportShortcutUsed(mContext.getPackageName(), shortcutId,
|
H A D | LauncherApps.java | 587 public int getShortcutIconResId(@NonNull String packageName, @NonNull String shortcutId, argument 591 q.setShortcutIds(Arrays.asList(shortcutId)); 611 @NonNull String packageName, @NonNull String shortcutId, @NonNull UserHandle user) { 612 return getShortcutIconFd(packageName, shortcutId, user.getIdentifier()); 616 @NonNull String packageName, @NonNull String shortcutId, int userId) { 619 packageName, shortcutId, userId); 704 * @param shortcutId The target shortcut ID. 714 public void startShortcut(@NonNull String packageName, @NonNull String shortcutId, argument 717 startShortcut(packageName, shortcutId, sourceBounds, startActivityOptions, 743 private void startShortcut(@NonNull String packageName, @NonNull String shortcutId, argument 610 getShortcutIconFd( @onNull String packageName, @NonNull String shortcutId, @NonNull UserHandle user) argument 615 getShortcutIconFd( @onNull String packageName, @NonNull String shortcutId, int userId) argument [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | UsageStatsManagerInternal.java | 62 * @param shortcutId The ID of the shortcut in question 67 public abstract void reportShortcutUsage(String packageName, String shortcutId, int userId); argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | LauncherAppsService.java | 439 public boolean startShortcut(String callingPackage, String packageName, String shortcutId, argument 451 callingPackage, packageName, shortcutId, userId)) { 456 getCallingUserId(), callingPackage, packageName, shortcutId, userId);
|
H A D | ShortcutPackage.java | 305 public boolean deleteDynamicWithId(@NonNull String shortcutId) { argument 307 shortcutId, /* disable =*/ false, /* overrideImmutable=*/ false); 318 private boolean disableDynamicWithId(@NonNull String shortcutId) { argument 320 shortcutId, /* disable =*/ true, /* overrideImmutable=*/ false); 328 public void disableWithId(@NonNull String shortcutId, String disabledMessage, argument 330 final ShortcutInfo disabled = deleteOrDisableWithId(shortcutId, /* disable =*/ true, 345 private ShortcutInfo deleteOrDisableWithId(@NonNull String shortcutId, boolean disable, argument 347 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); 366 deleteShortcutInner(shortcutId); 371 public void enableWithId(@NonNull String shortcutId) { argument [all...] |
H A D | ShortcutService.java | 2016 public void reportShortcutUsed(String packageName, String shortcutId, int userId) { argument 2019 Preconditions.checkNotNull(shortcutId); 2023 shortcutId, packageName, userId)); 2031 if (ps.findShortcutById(shortcutId) == null) { 2033 packageName, shortcutId)); 2040 mUsageStatsManagerInternal.reportShortcutUsage(packageName, shortcutId, userId); 2347 @NonNull String packageName, @NonNull String shortcutId, int userId) { 2349 Preconditions.checkStringNotEmpty(shortcutId, "shortcutId"); 2359 launcherUserId, callingPackage, packageName, shortcutId, userI 2346 isPinnedByCaller(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 2364 getShortcutInfoLocked( int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 2410 createShortcutIntents(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 2444 getShortcutIconResId(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 2470 getShortcutIconFd(int launcherUserId, @NonNull String callingPackage, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 3733 getPackageShortcutForTest(String packageName, String shortcutId, int userId) argument [all...] |
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsService.java | 1445 public void reportShortcutUsage(String packageName, String shortcutId, int userId) { argument 1446 if (packageName == null || shortcutId == null) { 1453 event.mShortcutId = shortcutId.intern();
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | BaseShortcutManagerTest.java | 1435 protected ShortcutInfo getPackageShortcut(String packageName, String shortcutId, int userId) { argument 1436 return mService.getPackageShortcutForTest(packageName, shortcutId, userId); 1439 protected void assertShortcutExists(String packageName, String shortcutId, int userId) { argument 1440 assertTrue(getPackageShortcut(packageName, shortcutId, userId) != null); 1443 protected void assertShortcutNotExists(String packageName, String shortcutId, int userId) { argument 1444 assertTrue(getPackageShortcut(packageName, shortcutId, userId) == null); 1448 @NonNull String packageName, @NonNull String shortcutId, int userId) { 1462 @NonNull String packageName, @NonNull String shortcutId, int userId) { 1465 mLauncherApps.startShortcut(packageName, shortcutId, null, null, 1467 }, packageName, shortcutId, userI 1447 launchShortcutAndGetIntentsInner(Runnable shortcutStarter, @NonNull String packageName, @NonNull String shortcutId, int userId) argument 1461 launchShortcutAndGetIntents( @onNull String packageName, @NonNull String shortcutId, int userId) argument 1471 launchShortcutAndGetIntent( @onNull String packageName, @NonNull String shortcutId, int userId) argument 1478 launchShortcutAndGetIntents_withShortcutInfo( @onNull String packageName, @NonNull String shortcutId, int userId) argument 1488 launchShortcutAndGetIntent_withShortcutInfo( @onNull String packageName, @NonNull String shortcutId, int userId) argument 1496 assertShortcutLaunchable(@onNull String packageName, @NonNull String shortcutId, int userId) argument 1502 assertShortcutNotLaunched(@onNull String packageName, @NonNull String shortcutId, int userId) argument 1519 assertStartShortcutThrowsException(@onNull String packageName, @NonNull String shortcutId, int userId, Class<?> expectedException) argument 1567 getBitmapFilename(int userId, String packageName, String shortcutId) argument 1599 getCallerShortcut(String shortcutId) argument 1617 getShortcutInfoAsLauncher(String packageName, String shortcutId, int userId) argument [all...] |