Searched refs:PM_PACKAGE (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | PackageData.java | 28 public static final PackageData PM_PACKAGE = new PmPackageData(); field in PackageData 95 return this == PM_PACKAGE; in isPm()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 31 import static com.android.server.backup.testing.PackageData.PM_PACKAGE; 330 Files.write(getStateFile(mTransport, PM_PACKAGE), "pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 335 assertThat(Files.readAllBytes(getStateFile(mTransport, PM_PACKAGE))) in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 398 assertCleansUpFiles(mTransport, PM_PACKAGE); in testRunTask_whenOnePackage_cleansUpPmFiles() 406 argThat(packageInfo(PM_PACKAGE)), any(), anyInt())) in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 413 assertCleansUpFiles(mTransport, PM_PACKAGE); in testRunTask_whenTransportReturnsTransportErrorForPm_cleansUpPmFiles() 421 argThat(packageInfo(PM_PACKAGE)), any(), anyInt())) in testRunTask_whenTransportReturnsTransportErrorForPm_resetsBackupState() 496 createKeyValueBackupTask(transportMock, true, PACKAGE_1, PM_PACKAGE); in testRunTask_whenNonPmPackageAndPmAndNonIncremental_backsUpPm() 1315 argThat(packageInfo(PM_PACKAGE)), any(), anyInt())) in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData() 1331 .performBackup(argThat(packageInfo(PM_PACKAGE)), any(), anyInt()); in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTask.java | 184 private static final String PM_PACKAGE = UserBackupManagerService.PACKAGE_MANAGER_SENTINEL; field in KeyValueBackupTask 357 if (PM_PACKAGE.equals(packageName)) { in run() 596 boolean backupPm = mQueue.remove(PM_PACKAGE) || !mNonIncremental; in startTask() 598 mQueue.add(0, PM_PACKAGE); in startTask() 604 File pmState = new File(mStateDirectory, PM_PACKAGE); in startTask() 649 mReporter.onStartPackageBackup(PM_PACKAGE); in backupPm() 651 mCurrentPackage.packageName = PM_PACKAGE; in backupPm() 823 new File(mStateDirectory, PM_PACKAGE).delete(); in deletePmStateFile() 828 Preconditions.checkArgument(packageInfo.packageName.equals(PM_PACKAGE)); in extractPmAgentData()
|