Home
last modified time | relevance | path

Searched refs:getPackages (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java136 assertEquals(1, watchdog.getPackages(observer1).size()); in testRegistration()
137 assertTrue(watchdog.getPackages(observer1).contains(APP_A)); in testRegistration()
139 assertEquals(2, watchdog.getPackages(observer2).size()); in testRegistration()
140 assertTrue(watchdog.getPackages(observer2).contains(APP_A)); in testRegistration()
141 assertTrue(watchdog.getPackages(observer2).contains(APP_B)); in testRegistration()
143 assertEquals(1, watchdog.getPackages(observer3).size()); in testRegistration()
144 assertTrue(watchdog.getPackages(observer3).contains(APP_A)); in testRegistration()
151 assertNull(watchdog.getPackages(observer1)); in testRegistration()
153 assertEquals(2, watchdog.getPackages(observer2).size()); in testRegistration()
154 assertTrue(watchdog.getPackages(observer2).contains(APP_A)); in testRegistration()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java238 dataWithPendingBackup.info.getPackages().add(pendingBackup); in commitPendingBackupAndRestoreForUser()
242 dataWithRecentRestore.info.getPackages().add(wasRecentlyRestored); in commitPendingBackupAndRestoreForUser()
246 dataForDifferentUser.info.getPackages().add(ignoredInfo); in commitPendingBackupAndRestoreForUser()
249 dataForRestore.info.getPackages().add(pendingRestore); in commitPendingBackupAndRestoreForUser()
250 dataForRestore.info.getPackages().add(wasRecentlyRestored); in commitPendingBackupAndRestoreForUser()
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java170 for (PackageRollbackInfo info : data.info.getPackages()) { in computePendingBackups()
200 for (PackageRollbackInfo info : data.info.getPackages()) { in computePendingRestores()
250 for (PackageRollbackInfo info : data.info.getPackages()) { in commitPendingBackupAndRestoreForUser()
271 for (PackageRollbackInfo info : data.info.getPackages()) { in commitPendingBackupAndRestoreForUser()
DRollbackManagerServiceImpl.java430 for (PackageRollbackInfo info : data.info.getPackages()) { in commitRollbackInternal()
567 for (PackageRollbackInfo info : data.info.getPackages()) { in expireRollbackForPackage()
625 for (PackageRollbackInfo info : data.info.getPackages()) { in onBootCompleted()
732 for (PackageRollbackInfo info : data.info.getPackages()) { in onPackageReplaced()
937 for (PackageRollbackInfo info : rd.info.getPackages()) { in enableRollback()
1046 data.info.getPackages().add(packageRollbackInfo); in enableRollbackForPackageSession()
1078 for (PackageRollbackInfo info : data.info.getPackages()) { in snapshotUserDataInternal()
1354 if (data.info.getPackages().size() != newRollback.packageSessionIds.length) { in completeEnableRollback()
1395 for (int i = 0; i < data.info.getPackages().size(); i++) { in makeRollbackAvailable()
1396 packages.add(data.info.getPackages().get(i).getPackageName()); in makeRollbackAvailable()
[all …]
DRollbackPackageHealthObserver.java207 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in onBootCompleted()
234 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in getAvailableRollback()
DRollbackStore.java177 json.put("packages", toJson(rollback.getPackages())); in rollbackInfoToJson()
245 for (PackageRollbackInfo info : data.info.getPackages()) { in deletePackageCodePaths()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java109 public @Nullable List<PackageParser.Package> getPackages() { in getPackages() method in SharedUserSetting
134 final List<PackageParser.Package> pkgList = getPackages(); in fixSeInfoLocked()
DOtaDexoptService.java362 Collection<PackageParser.Package> pkgs = mPackageManagerService.getPackages(); in moveAbArtifacts()
DPackageManagerShellCommand.java423 for (PackageRollbackInfo info : r.getPackages()) { in runRollbackApp()
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTest.java998 assertEquals(2, rollback.getPackages().size()); in assertRollbackInfoForAandB()
999 if (TEST_APP_A.equals(rollback.getPackages().get(0).getPackageName())) { in assertRollbackInfoForAandB()
1000 assertPackageRollbackInfoEquals(TEST_APP_A, 2, 1, rollback.getPackages().get(0)); in assertRollbackInfoForAandB()
1001 assertPackageRollbackInfoEquals(TEST_APP_B, 2, 1, rollback.getPackages().get(1)); in assertRollbackInfoForAandB()
1003 assertPackageRollbackInfoEquals(TEST_APP_B, 2, 1, rollback.getPackages().get(0)); in assertRollbackInfoForAandB()
1004 assertPackageRollbackInfoEquals(TEST_APP_A, 2, 1, rollback.getPackages().get(1)); in assertRollbackInfoForAandB()
DRollbackTestUtils.java338 for (PackageRollbackInfo info : rollback.getPackages()) { in getUniqueRollbackInfoForPackage()
371 assertEquals(packageNames.length, info.getPackages().size()); in assertRollbackInfoEquals()
374 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in assertRollbackInfoEquals()
/frameworks/base/core/java/android/content/rollback/
DRollbackInfo.java78 public List<PackageRollbackInfo> getPackages() { in getPackages() method in RollbackInfo
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAttributionKey.java41 public ImmutableSet<String> getPackages() { in getPackages() method in AttributionKey
/frameworks/base/services/backup/java/com/android/server/backup/
DDataChangedJournal.java92 public List<String> getPackages() throws IOException { in getPackages() method in DataChangedJournal
/frameworks/base/services/core/java/com/android/server/pm/permission/
DDefaultPermissionGrantPolicy.java419 ? voiceInteractionPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
421 ? locationPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
423 ? locationExtraPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
425 ? smsAppPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
427 ? dialerAppPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
429 ? simCallManagerPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
431 ? useOpenWifiAppPackagesProvider.getPackages(userId) : null; in grantDefaultSystemHandlerPermissions()
433 syncAdapterPackagesProvider.getPackages(ContactsContract.AUTHORITY, userId) : null; in grantDefaultSystemHandlerPermissions()
435 syncAdapterPackagesProvider.getPackages(CalendarContract.AUTHORITY, userId) : null; in grantDefaultSystemHandlerPermissions()
/frameworks/base/core/java/android/content/pm/
DPackageManagerInternal.java125 public String[] getPackages(int userId); in getPackages() method
139 public String[] getPackages(String authority, int userId); in getPackages() method
/frameworks/base/core/java/com/android/internal/os/
DBatterySipper.java186 public String[] getPackages() { in getPackages() method in BatterySipper
/frameworks/base/services/core/java/com/android/server/wm/
DCompatModePackages.java146 public HashMap<String, Integer> getPackages() { in getPackages() method in CompatModePackages
DActivityTaskManagerService.java7026 if (mCompatModePackages.getPackages().size() > 0) { in dumpForProcesses()
7029 : mCompatModePackages.getPackages().entrySet()) { in dumpForProcesses()
7146 : mCompatModePackages.getPackages().entrySet()) { in writeProcessesToProto()
/frameworks/base/services/core/java/com/android/server/
DPackageWatchdog.java283 public Set<String> getPackages(PackageHealthObserver observer) { in getPackages() method in PackageWatchdog
DNetworkScoreService.java312 public String[] getPackages(int userId) { in NetworkScoreService()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkScoreServiceTest.java202 String[] packages = mPackagesProviderCaptor.getValue().getPackages(0); in testConstructor_setsUseOpenWifiPackagesProvider()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java128 public String[] getPackages(int userId) { in VoiceInteractionManagerService()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java288 public String[] getPackages(String authority, int userId) { in ContentService()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java2729 List<String> packages = (journal == null) ? emptyList() : journal.getPackages(); in assertJournalDoesNotContain()
2745 assertThat(mBackupManagerService.getJournal().getPackages()).contains(packageName); in assertBackupPendingFor()

12