Home
last modified time | relevance | path

Searched refs:packageUserId (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java110 public void pinShortcuts(@UserIdInt int packageUserId, in pinShortcuts() argument
118 final PackageWithUser pu = PackageWithUser.of(packageUserId, packageName); in pinShortcuts()
152 @UserIdInt int packageUserId) { in getPinnedShortcutIds() argument
153 return mPinnedShortcuts.get(PackageWithUser.of(packageUserId, packageName)); in getPinnedShortcutIds()
168 public void addPinnedShortcut(@NonNull String packageName, @UserIdInt int packageUserId, in addPinnedShortcut() argument
170 final ArraySet<String> pinnedSet = getPinnedShortcutIds(packageName, packageUserId); in addPinnedShortcut()
180 pinShortcuts(packageUserId, packageName, pinnedList); in addPinnedShortcut()
183 boolean cleanUpPackage(String packageName, @UserIdInt int packageUserId) { in cleanUpPackage() argument
184 return mPinnedShortcuts.remove(PackageWithUser.of(packageUserId, packageName)) != null; in cleanUpPackage()
269 final int packageUserId = fromBackup ? ownerUserId in loadFromXml() local
[all …]
DShortcutPackageItem.java46 int packageUserId, @NonNull String packageName, in ShortcutPackageItem() argument
49 mPackageUserId = packageUserId; in ShortcutPackageItem()
DShortcutUser.java197 @UserIdInt int packageUserId, @NonNull String packageName) { in removeLauncher()
198 return mLaunchers.remove(PackageWithUser.of(packageUserId, packageName)); in removeLauncher()
253 public void forPackageItem(@NonNull String packageName, @UserIdInt int packageUserId, in forPackageItem() argument
256 if ((spi.getPackageUserId() == packageUserId) in forPackageItem()
327 @UserIdInt int packageUserId) { in attemptToRestoreIfNeededAndSave() argument
328 forPackageItem(packageName, packageUserId, spi -> { in attemptToRestoreIfNeededAndSave()
DShortcutPackageInfo.java126 ShortcutService s, String packageName, @UserIdInt int packageUserId) { in generateForInstalledPackageForTest() argument
127 final PackageInfo pi = s.getPackageInfoWithSignatures(packageName, packageUserId); in generateForInstalledPackageForTest()
DShortcutService.java2303 private void cleanUpPackageForAllLoadedUsers(String packageName, @UserIdInt int packageUserId, in cleanUpPackageForAllLoadedUsers() argument
2307 cleanUpPackageLocked(packageName, user.getUserId(), packageUserId, in cleanUpPackageForAllLoadedUsers()
2320 void cleanUpPackageLocked(String packageName, int owningUserId, int packageUserId, in cleanUpPackageLocked() argument
2328 if (packageUserId == owningUserId) { in cleanUpPackageLocked()
2335 user.removeLauncher(packageUserId, packageName); in cleanUpPackageLocked()
2338 user.forAllLaunchers(l -> l.cleanUpPackage(packageName, packageUserId)); in cleanUpPackageLocked()
2351 if (appStillExists && (packageUserId == owningUserId)) { in cleanUpPackageLocked()
2847 private void handlePackageRemoved(String packageName, @UserIdInt int packageUserId) { in handlePackageRemoved() argument
2850 packageUserId)); in handlePackageRemoved()
2852 cleanUpPackageForAllLoadedUsers(packageName, packageUserId, /* appStillExists = */ false); in handlePackageRemoved()
[all …]
DShortcutPackage.java126 int packageUserId, String packageName, ShortcutPackageInfo spi) { in ShortcutPackage() argument
127 super(shortcutUser, packageUserId, packageName, in ShortcutPackage()
130 mPackageUid = shortcutUser.mService.injectGetPackageUid(packageName, packageUserId); in ShortcutPackage()
133 public ShortcutPackage(ShortcutUser shortcutUser, int packageUserId, String packageName) { in ShortcutPackage() argument
134 this(shortcutUser, packageUserId, packageName, null); in ShortcutPackage()