Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java29 import com.android.server.pm.ShortcutUser.PackageWithUser;
65 final private ArrayMap<PackageWithUser, ArraySet<String>> mPinnedShortcuts = new ArrayMap<>();
96 final ArrayList<PackageWithUser> pinnedPackages = in onRestoreBlocked()
100 final PackageWithUser pu = pinnedPackages.get(i); in onRestoreBlocked()
130 final PackageWithUser pu = PackageWithUser.of(packageUserId, packageName); in pinShortcuts()
171 return mPinnedShortcuts.get(PackageWithUser.of(packageUserId, packageName)); in getPinnedShortcutIds()
202 return mPinnedShortcuts.remove(PackageWithUser.of(packageUserId, packageName)) != null; in cleanUpPackage()
236 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in saveToXml()
296 PackageWithUser.of(packageUserId, packageName), ids); in loadFromXml()
337 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in dump()
[all …]
DShortcutUser.java69 static final class PackageWithUser { class in ShortcutUser
73 private PackageWithUser(int userId, String packageName) { in PackageWithUser() method in ShortcutUser.PackageWithUser
78 public static PackageWithUser of(int userId, String packageName) { in of()
79 return new PackageWithUser(userId, packageName); in of()
82 public static PackageWithUser of(ShortcutPackageItem spi) { in of()
83 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of()
93 if (!(obj instanceof PackageWithUser)) { in equals()
96 final PackageWithUser that = (PackageWithUser) obj; in equals()
114 private final ArrayMap<PackageWithUser, ShortcutLauncher> mLaunchers = new ArrayMap<>();
185 ArrayMap<PackageWithUser, ShortcutLauncher> getAllLaunchersForTest() { in getAllLaunchersForTest()
[all …]
DShortcutService.java104 import com.android.server.pm.ShortcutUser.PackageWithUser;
2942 final ArrayList<PackageWithUser> gonePackages = new ArrayList<>(); in checkPackageChanges()
2957 gonePackages.add(PackageWithUser.of(spi)); in checkPackageChanges()
2962 final PackageWithUser pu = gonePackages.get(i); in checkPackageChanges()
4353 return user.getAllLaunchersForTest().get(PackageWithUser.of(userId, packageName)); in getLauncherShortcutForTest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java93 import com.android.server.pm.ShortcutUser.PackageWithUser;
605 protected Set<PackageWithUser> mUninstalledPackages;
606 protected Set<PackageWithUser> mDisabledPackages;
607 protected Set<PackageWithUser> mEphemeralPackages;
1087 mUninstalledPackages.add(PackageWithUser.of(userId, packageName)); in uninstallPackage()
1094 mUninstalledPackages.remove(PackageWithUser.of(userId, packageName)); in installPackage()
1101 mDisabledPackages.add(PackageWithUser.of(userId, packageName)); in disablePackage()
1108 mDisabledPackages.remove(PackageWithUser.of(userId, packageName)); in enablePackage()
1126 if (mUninstalledPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo()
1129 if (mEphemeralPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo()
[all …]
DShortcutManagerTest1.java103 import com.android.server.pm.ShortcutUser.PackageWithUser;
3457 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
3458 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage()
3461 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage()
3462 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage()
3489 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
3490 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage()
3493 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage()
3494 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage()
3521 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
[all …]
DShortcutManagerTest2.java48 import com.android.server.pm.ShortcutUser.PackageWithUser;
2113 mEphemeralPackages.add(PackageWithUser.of(USER_0, CALLING_PACKAGE_1)); in testEphemeralApp()