Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DShortcutLauncher.java28 import com.android.server.pm.ShortcutUser.PackageWithUser;
64 final private ArrayMap<PackageWithUser, ArraySet<String>> mPinnedShortcuts = new ArrayMap<>();
90 final ArrayList<PackageWithUser> pinnedPackages = in onRestoreBlocked()
94 final PackageWithUser pu = pinnedPackages.get(i); in onRestoreBlocked()
118 final PackageWithUser pu = PackageWithUser.of(packageUserId, packageName); in pinShortcuts()
153 return mPinnedShortcuts.get(PackageWithUser.of(packageUserId, packageName)); in getPinnedShortcutIds()
184 return mPinnedShortcuts.remove(PackageWithUser.of(packageUserId, packageName)) != null; in cleanUpPackage()
214 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in saveToXml()
274 PackageWithUser.of(packageUserId, packageName), ids); in loadFromXml()
315 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in dump()
[all …]
DShortcutUser.java70 static final class PackageWithUser { class in ShortcutUser
74 private PackageWithUser(int userId, String packageName) { in PackageWithUser() method in ShortcutUser.PackageWithUser
79 public static PackageWithUser of(int userId, String packageName) { in of()
80 return new PackageWithUser(userId, packageName); in of()
83 public static PackageWithUser of(ShortcutPackageItem spi) { in of()
84 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of()
94 if (!(obj instanceof PackageWithUser)) { in equals()
97 final PackageWithUser that = (PackageWithUser) obj; in equals()
115 private final ArrayMap<PackageWithUser, ShortcutLauncher> mLaunchers = new ArrayMap<>();
185 ArrayMap<PackageWithUser, ShortcutLauncher> getAllLaunchersForTest() { in getAllLaunchersForTest()
[all …]
DShortcutService.java103 import com.android.server.pm.ShortcutUser.PackageWithUser;
2762 final ArrayList<PackageWithUser> gonePackages = new ArrayList<>(); in checkPackageChanges()
2777 gonePackages.add(PackageWithUser.of(spi)); in checkPackageChanges()
2782 final PackageWithUser pu = gonePackages.get(i); in checkPackageChanges()
3958 return user.getAllLaunchersForTest().get(PackageWithUser.of(userId, packageName)); in getLauncherShortcutForTest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java89 import com.android.server.pm.ShortcutUser.PackageWithUser;
576 protected Set<PackageWithUser> mUninstalledPackages;
577 protected Set<PackageWithUser> mDisabledPackages;
578 protected Set<PackageWithUser> mEphemeralPackages;
1038 mUninstalledPackages.add(PackageWithUser.of(userId, packageName)); in uninstallPackage()
1045 mUninstalledPackages.remove(PackageWithUser.of(userId, packageName)); in installPackage()
1052 mDisabledPackages.add(PackageWithUser.of(userId, packageName)); in disablePackage()
1059 mDisabledPackages.remove(PackageWithUser.of(userId, packageName)); in enablePackage()
1076 if (mUninstalledPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo()
1079 if (mEphemeralPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo()
[all …]
DShortcutManagerTest1.java95 import com.android.server.pm.ShortcutUser.PackageWithUser;
3328 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
3329 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage()
3332 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage()
3333 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage()
3360 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
3361 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage()
3364 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage()
3365 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage()
3392 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage()
[all …]
DShortcutManagerTest2.java48 import com.android.server.pm.ShortcutUser.PackageWithUser;
2111 mEphemeralPackages.add(PackageWithUser.of(USER_0, CALLING_PACKAGE_1)); in testEphemeralApp()
/frameworks/base/services/
Dprofile-classes4933 Lcom/android/server/pm/ShortcutUser$PackageWithUser;