Searched refs:PackageWithUser (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutLauncher.java | 33 import com.android.server.pm.ShortcutUser.PackageWithUser; 73 final private ArrayMap<PackageWithUser, ArraySet<String>> mPinnedShortcuts = new ArrayMap<>(); 104 final ArrayList<PackageWithUser> pinnedPackages = in onRestoreBlocked() 108 final PackageWithUser pu = pinnedPackages.get(i); in onRestoreBlocked() 138 final PackageWithUser pu = PackageWithUser.of(packageUserId, packageName); in pinShortcuts() 179 return mPinnedShortcuts.get(PackageWithUser.of(packageUserId, packageName)); in getPinnedShortcutIds() 210 return mPinnedShortcuts.remove(PackageWithUser.of(packageUserId, packageName)) != null; in cleanUpPackage() 244 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in saveToXml() 348 PackageWithUser.of(packageUserId, packageName), ids); in loadFromXml() 389 final PackageWithUser pu = mPinnedShortcuts.keyAt(i); in dump() [all …]
|
D | ShortcutUser.java | 82 static final class PackageWithUser { class in ShortcutUser 86 private PackageWithUser(int userId, String packageName) { in PackageWithUser() method in ShortcutUser.PackageWithUser 91 public static PackageWithUser of(int userId, String packageName) { in of() 92 return new PackageWithUser(userId, packageName); in of() 95 public static PackageWithUser of(ShortcutPackageItem spi) { in of() 96 return new PackageWithUser(spi.getPackageUserId(), spi.getPackageName()); in of() 106 if (!(obj instanceof PackageWithUser)) { in equals() 109 final PackageWithUser that = (PackageWithUser) obj; in equals() 129 private final ArrayMap<PackageWithUser, ShortcutLauncher> mLaunchers = new ArrayMap<>(); 199 ArrayMap<PackageWithUser, ShortcutLauncher> getAllLaunchersForTest() { in getAllLaunchersForTest() [all …]
|
D | ShortcutService.java | 120 import com.android.server.pm.ShortcutUser.PackageWithUser; 3838 final ArrayList<PackageWithUser> gonePackages = new ArrayList<>(); 3853 gonePackages.add(PackageWithUser.of(spi)); 3858 final PackageWithUser pu = gonePackages.get(i); 5364 return user.getAllLaunchersForTest().get(PackageWithUser.of(userId, packageName));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | BaseShortcutManagerTest.java | 112 import com.android.server.pm.ShortcutUser.PackageWithUser; 946 protected Set<PackageWithUser> mUninstalledPackages; 947 protected Set<PackageWithUser> mDisabledPackages; 948 protected Set<PackageWithUser> mEphemeralPackages; 1455 mUninstalledPackages.add(PackageWithUser.of(userId, packageName)); in uninstallPackage() 1462 mUninstalledPackages.remove(PackageWithUser.of(userId, packageName)); in installPackage() 1469 mDisabledPackages.add(PackageWithUser.of(userId, packageName)); in disablePackage() 1476 mDisabledPackages.remove(PackageWithUser.of(userId, packageName)); in enablePackage() 1494 if (mUninstalledPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo() 1497 if (mEphemeralPackages.contains(PackageWithUser.of(userId, packageName))) { in getInjectedPackageInfo() [all …]
|
D | ShortcutManagerTest1.java | 108 import com.android.server.pm.ShortcutUser.PackageWithUser; 4081 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() 4082 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage() 4085 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage() 4086 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage() 4113 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() 4114 PackageWithUser.of(USER_0, LAUNCHER_2)), in testCleanupPackage() 4117 set(PackageWithUser.of(USER_10, LAUNCHER_1), in testCleanupPackage() 4118 PackageWithUser.of(USER_10, LAUNCHER_2)), in testCleanupPackage() 4145 set(PackageWithUser.of(USER_0, LAUNCHER_1), in testCleanupPackage() [all …]
|
D | ShortcutManagerTest2.java | 50 import com.android.server.pm.ShortcutUser.PackageWithUser; 2376 mEphemeralPackages.add(PackageWithUser.of(USER_0, CALLING_PACKAGE_1)); in testEphemeralApp()
|
/frameworks/base/services/ |
D | art-profile | 33055 HPLcom/android/server/pm/ShortcutUser$PackageWithUser;-><init>(ILjava/lang/String;)V 33056 HPLcom/android/server/pm/ShortcutUser$PackageWithUser;->equals(Ljava/lang/Object;)Z 33057 HPLcom/android/server/pm/ShortcutUser$PackageWithUser;->hashCode()I+]Ljava/lang/String;Ljava/lang/S… 33058 …ndroid/server/pm/ShortcutUser$PackageWithUser;->of(ILjava/lang/String;)Lcom/android/server/pm/Shor… 55047 Lcom/android/server/pm/ShortcutUser$PackageWithUser;
|