Home
last modified time | relevance | path

Searched refs:shortcutId (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DShortcutServiceInternal.java61 @NonNull String packageName, @NonNull String shortcutId, int userId, in createShortcutIntents() argument
67 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconResId() argument
71 @NonNull String packageName, @NonNull String shortcutId, int userId); in getShortcutIconFd() argument
DLauncherApps.java873 public int getShortcutIconResId(@NonNull String packageName, @NonNull String shortcutId, in getShortcutIconResId() argument
877 q.setShortcutIds(Arrays.asList(shortcutId)); in getShortcutIconResId()
897 @NonNull String packageName, @NonNull String shortcutId, @NonNull UserHandle user) { in getShortcutIconFd() argument
898 return getShortcutIconFd(packageName, shortcutId, user.getIdentifier()); in getShortcutIconFd()
902 @NonNull String packageName, @NonNull String shortcutId, int userId) { in getShortcutIconFd() argument
905 packageName, shortcutId, userId); in getShortcutIconFd()
1027 public void startShortcut(@NonNull String packageName, @NonNull String shortcutId, in startShortcut() argument
1032 startShortcut(packageName, shortcutId, sourceBounds, startActivityOptions, in startShortcut()
1058 private void startShortcut(@NonNull String packageName, @NonNull String shortcutId, in startShortcut() argument
1063 mService.startShortcut(mContext.getPackageName(), packageName, shortcutId, in startShortcut()
DShortcutManager.java643 public void reportShortcutUsed(String shortcutId) { in reportShortcutUsed() argument
645 mService.reportShortcutUsed(mContext.getPackageName(), shortcutId, in reportShortcutUsed() local
DIShortcutService.aidl64 void reportShortcutUsed(String packageName, String shortcutId, int userId); in reportShortcutUsed() argument
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java453 final String shortcutId = original.getId(); in directPinShortcut() local
474 final ShortcutInfo current = ps.findShortcutById(shortcutId); in directPinShortcut()
493 Slog.d(TAG, "Temporarily adding " + shortcutId + " as dynamic"); in directPinShortcut()
506 Slog.d(TAG, "Pinning " + shortcutId); in directPinShortcut()
509 launcher.addPinnedShortcut(appPackageName, appUserId, shortcutId, in directPinShortcut()
514 Slog.d(TAG, "Removing " + shortcutId + " as dynamic"); in directPinShortcut()
516 ps.deleteDynamicWithId(shortcutId, /*ignoreInvisible=*/ false); in directPinShortcut()
DShortcutService.java2184 public void reportShortcutUsed(String packageName, String shortcutId, int userId) { in reportShortcutUsed() argument
2187 Preconditions.checkNotNull(shortcutId); in reportShortcutUsed()
2191 shortcutId, packageName, userId)); in reportShortcutUsed()
2199 if (ps.findShortcutById(shortcutId) == null) { in reportShortcutUsed()
2201 packageName, shortcutId)); in reportShortcutUsed()
2208 mUsageStatsManagerInternal.reportShortcutUsage(packageName, shortcutId, userId); in reportShortcutUsed()
2596 @NonNull String packageName, @NonNull String shortcutId, int userId) { in isPinnedByCaller() argument
2598 Preconditions.checkStringNotEmpty(shortcutId, "shortcutId"); in isPinnedByCaller()
2608 launcherUserId, callingPackage, packageName, shortcutId, userId, in isPinnedByCaller()
2617 @NonNull String packageName, @NonNull String shortcutId, int userId, in getShortcutInfoLocked() argument
[all …]
DShortcutPackage.java344 public boolean deleteDynamicWithId(@NonNull String shortcutId, boolean ignoreInvisible) { in deleteDynamicWithId() argument
346 shortcutId, /* disable =*/ false, /* overrideImmutable=*/ false, ignoreInvisible, in deleteDynamicWithId()
358 private boolean disableDynamicWithId(@NonNull String shortcutId, boolean ignoreInvisible, in disableDynamicWithId() argument
361 shortcutId, /* disable =*/ true, /* overrideImmutable=*/ false, ignoreInvisible, in disableDynamicWithId()
370 public void disableWithId(@NonNull String shortcutId, String disabledMessage, in disableWithId() argument
373 final ShortcutInfo disabled = deleteOrDisableWithId(shortcutId, /* disable =*/ true, in disableWithId()
388 private ShortcutInfo deleteOrDisableWithId(@NonNull String shortcutId, boolean disable, in deleteOrDisableWithId() argument
393 final ShortcutInfo oldShortcut = mShortcuts.get(shortcutId); in deleteOrDisableWithId()
422 forceDeleteShortcutInner(shortcutId); in deleteOrDisableWithId()
427 public void enableWithId(@NonNull String shortcutId) { in enableWithId() argument
[all …]
DLauncherAppsService.java492 public boolean startShortcut(String callingPackage, String packageName, String shortcutId, in startShortcut() argument
501 callingPackage, packageName, shortcutId, targetUserId)) { in startShortcut()
506 getCallingUserId(), callingPackage, packageName, shortcutId, targetUserId, in startShortcut()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java1630 protected ShortcutInfo getPackageShortcut(String packageName, String shortcutId, int userId) { in getPackageShortcut() argument
1631 return mService.getPackageShortcutForTest(packageName, shortcutId, userId); in getPackageShortcut()
1634 protected void assertShortcutExists(String packageName, String shortcutId, int userId) { in assertShortcutExists() argument
1635 assertTrue(getPackageShortcut(packageName, shortcutId, userId) != null); in assertShortcutExists()
1638 protected void assertShortcutNotExists(String packageName, String shortcutId, int userId) { in assertShortcutNotExists() argument
1639 assertTrue(getPackageShortcut(packageName, shortcutId, userId) == null); in assertShortcutNotExists()
1643 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntentsInner() argument
1657 @NonNull String packageName, @NonNull String shortcutId, int userId) { in launchShortcutAndGetIntents() argument
1660 mLauncherApps.startShortcut(packageName, shortcutId, null, null, in launchShortcutAndGetIntents()
1662 }, packageName, shortcutId, userId in launchShortcutAndGetIntents() field in BaseShortcutManagerTest
[all …]
/frameworks/base/core/java/android/app/usage/
DUsageStatsManagerInternal.java80 public abstract void reportShortcutUsage(String packageName, String shortcutId, in reportShortcutUsage() argument
/frameworks/support/compat/src/androidTest/java/androidx/core/app/
DNotificationCompatTest.java105 String shortcutId = "fgdfg"; in testShortcutId() local
107 .setShortcutId(shortcutId) in testShortcutId()
110 assertEquals(shortcutId, NotificationCompat.getShortcutId(n)); in testShortcutId()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java1245 public void reportShortcutUsage(String packageName, String shortcutId, int userId) { in reportShortcutUsage() argument
1246 if (packageName == null || shortcutId == null) { in reportShortcutUsage()
1253 event.mShortcutId = shortcutId.intern(); in reportShortcutUsage()
/frameworks/support/compat/src/main/java/androidx/core/app/
DNotificationCompat.java1522 public Builder setShortcutId(String shortcutId) { in setShortcutId() argument
1523 mShortcutId = shortcutId; in setShortcutId()
/frameworks/base/core/java/android/app/
DNotification.java3326 public Builder setShortcutId(String shortcutId) { in setShortcutId() argument
3327 mN.mShortcutId = shortcutId; in setShortcutId()
/frameworks/base/api/
Dcurrent.txt1192 field public static final int shortcutId = 16844072; // 0x1010528
/frameworks/base/config/
Dhiddenapi-public-dex.txt36588 Landroid/R$attr;->shortcutId:I
Dhiddenapi-private-dex.txt112757 Lcom/android/internal/R$attr;->shortcutId:I