Searched refs:PackageWithUser (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutLauncher.java | 29 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 …]
|
D | ShortcutUser.java | 72 static final class PackageWithUser { class in ShortcutUser 76 private PackageWithUser(int userId, String packageName) { in PackageWithUser() method in ShortcutUser.PackageWithUser 81 public static PackageWithUser of(int userId, String packageName) { in of() 82 return new PackageWithUser(userId, packageName); in of() 85 public static PackageWithUser of(ShortcutPackageItem spi) { in of() 86 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of() 96 if (!(obj instanceof PackageWithUser)) { in equals() 99 final PackageWithUser that = (PackageWithUser) obj; in equals() 117 private final ArrayMap<PackageWithUser, ShortcutLauncher> mLaunchers = new ArrayMap<>(); 188 ArrayMap<PackageWithUser, ShortcutLauncher> getAllLaunchersForTest() { in getAllLaunchersForTest() [all …]
|
D | ShortcutService.java | 106 import com.android.server.pm.ShortcutUser.PackageWithUser; 3006 final ArrayList<PackageWithUser> gonePackages = new ArrayList<>(); in checkPackageChanges() 3021 gonePackages.add(PackageWithUser.of(spi)); in checkPackageChanges() 3026 final PackageWithUser pu = gonePackages.get(i); in checkPackageChanges() 4415 return user.getAllLaunchersForTest().get(PackageWithUser.of(userId, packageName)); in getLauncherShortcutForTest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 95 import com.android.server.pm.ShortcutUser.PackageWithUser; 608 protected Set<PackageWithUser> mUninstalledPackages; 609 protected Set<PackageWithUser> mDisabledPackages; 610 protected Set<PackageWithUser> mEphemeralPackages; 1099 mUninstalledPackages.add(PackageWithUser.of(userId, packageName)); in uninstallPackage() 1106 mUninstalledPackages.remove(PackageWithUser.of(userId, packageName)); in installPackage() 1113 mDisabledPackages.add(PackageWithUser.of(userId, packageName)); in disablePackage() 1120 mDisabledPackages.remove(PackageWithUser.of(userId, packageName)); in enablePackage() 1138 if (mUninstalledPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo() 1141 if (mEphemeralPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo() [all …]
|
D | ShortcutManagerTest1.java | 106 import com.android.server.pm.ShortcutUser.PackageWithUser; 3468 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() 3469 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage() 3472 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage() 3473 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage() 3500 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() 3501 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage() 3504 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage() 3505 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage() 3532 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() [all …]
|
D | ShortcutManagerTest2.java | 50 import com.android.server.pm.ShortcutUser.PackageWithUser; 2174 mEphemeralPackages.add(PackageWithUser.of(USER_0, CALLING_PACKAGE_1)); in testEphemeralApp()
|
/frameworks/base/services/ |
D | art-profile | 11692 HSPLcom/android/server/pm/ShortcutUser$PackageWithUser;->equals(Ljava/lang/Object;)Z 11693 HSPLcom/android/server/pm/ShortcutUser$PackageWithUser;->hashCode()I
|