Searched refs:archiveState (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageUserStateTest.java | 409 public void archiveState() { in archiveState() method in PackageUserStateTest 418 ArchiveState archiveState = new ArchiveState(List.of(archiveActivityInfo), in archiveState() local 420 packageUserState.setArchiveState(archiveState); in archiveState() 421 assertEquals(archiveState, packageUserState.getArchiveState()); in archiveState() 422 assertTrue(archiveState.getArchiveTimeMillis() >= currentTimeMillis); in archiveState() 435 ArchiveState archiveState = new ArchiveState(List.of(archiveActivityInfo), in archiveStateWithTimestamp() local 437 packageUserState.setArchiveState(archiveState); in archiveStateWithTimestamp() 438 assertEquals(archiveState, packageUserState.getArchiveState()); in archiveStateWithTimestamp() 439 assertEquals(archiveState.getArchiveTimeMillis(), currentTimeMillis); in archiveStateWithTimestamp()
|
D | PackageManagerSettingsTests.java | 1038 ArchiveState archiveState = in testWriteReadArchiveState() local 1053 archiveState); in testWriteReadArchiveState() 1062 UserHandle.SYSTEM).getArchiveState()).isEqualTo(archiveState); in testWriteReadArchiveState()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageArchiver.java | 468 var archiveState = createArchiveStateInternal(packageName, userId, mainActivities, in createAndStoreArchiveState() local 470 storeArchiveState(packageName, archiveState, userId); in createAndStoreArchiveState() 949 ArchiveState archiveState = getAnyArchiveState(ps, userId); in getArchivedAppIcon() local 950 if (archiveState == null || archiveState.getActivityInfos().size() == 0) { in getArchivedAppIcon() 957 Bitmap icon = decodeIcon(archiveState.getActivityInfos().get(0)); in getArchivedAppIcon() 1248 ArchiveState archiveState = packageState.getUserStateOrDefault(userId).getArchiveState(); in getInstallerTitle() local 1249 if (archiveState == null) { in getInstallerTitle() 1254 return archiveState.getInstallerTitle(); in getInstallerTitle() 1291 private void storeArchiveState(String packageName, ArchiveState archiveState, int userId) in storeArchiveState() argument 1297 .setArchiveState(archiveState); in storeArchiveState() [all …]
|
D | PackageSetting.java | 805 void setArchiveState(ArchiveState archiveState, int userId) { 806 modifyUserState(userId).setArchiveState(archiveState); 995 long firstInstallTime, int aspectRatio, ArchiveState archiveState) { 1017 .setArchiveState(archiveState); 1263 private static void writeArchiveState(ProtoOutputStream proto, ArchiveState archiveState) { 1264 if (archiveState == null) { 1268 for (ArchiveState.ArchiveActivityInfo activityInfo : archiveState.getActivityInfos()) { 1287 archiveState.getInstallerTitle());
|
D | DeletePackageHelper.java | 608 ArchiveState archiveState = in markPackageUninstalledForUserLPw() local 640 archiveState); in markPackageUninstalledForUserLPw()
|
D | Settings.java | 1950 ArchiveState archiveState = null; 1991 archiveState = parseArchiveState(parser); 2025 minAspectRatio, archiveState); 2522 private void writeArchiveStateLPr(TypedXmlSerializer serializer, ArchiveState archiveState) 2524 if (archiveState == null) { 2529 serializer.attribute(null, ATTR_ARCHIVE_INSTALLER_TITLE, archiveState.getInstallerTitle()); 2530 serializer.attributeLongHex(null, ATTR_ARCHIVE_TIME, archiveState.getArchiveTimeMillis()); 2531 for (ArchiveState.ArchiveActivityInfo activityInfo : archiveState.getActivityInfos()) { 5400 final ArchiveState archiveState = pus.getArchiveState(); 5402 date.setTime(archiveState.getArchiveTimeMillis()); [all …]
|
D | LauncherAppsService.java | 926 ArchiveState archiveState = in generateLauncherActivitiesForArchivedApp() local 928 if (archiveState == null) { in generateLauncherActivitiesForArchivedApp() 938 archiveState.getActivityInfos(); in generateLauncherActivitiesForArchivedApp()
|
D | PackageManagerService.java | 1474 ArchiveState archiveState; in getArchivedPackageInternal() local 1481 archiveState = psi.getArchiveState(); in getArchivedPackageInternal() 1482 if (archiveState == null && !psi.isInstalled()) { in getArchivedPackageInternal() 1503 if (archiveState != null) { in getArchivedPackageInternal() 1505 archiveState); in getArchivedPackageInternal() 1554 var archiveState = mInstallerService.mPackageArchiver.createArchiveState( in markPackageAsArchivedIfNeeded() local 1557 if (archiveState != null) { in markPackageAsArchivedIfNeeded() 1560 .setArchiveState(archiveState); in markPackageAsArchivedIfNeeded()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageUserStateImpl.java | 614 public PackageUserStateImpl setArchiveState(@NonNull ArchiveState archiveState) { 615 mArchiveState = archiveState;
|