Searched refs:getStateFile (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/ |
D | KeyValueBackupTaskTest.java | 327 Files.write(getStateFile(mTransport, PM_PACKAGE), "pmState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 328 Files.write(getStateFile(mTransport, PACKAGE_1), "packageState".getBytes()); in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 332 assertThat(Files.readAllBytes(getStateFile(mTransport, PM_PACKAGE))) in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 334 assertThat(Files.readAllBytes(getStateFile(mTransport, PACKAGE_1))) in testRunTask_whenQueueEmpty_doesNotChangeStateFiles() 455 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndIncremental_passesOldStateToAgent() 468 Files.write(getStateFile(mTransport, PACKAGE_1), "oldState".getBytes()); in testRunTask_whenPackageWithOldStateAndNonIncremental_passesEmptyOldStateToAgent() 523 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState() 531 assertThat(Files.exists(getStateFile(mTransport, PACKAGE_2))).isFalse(); in testRunTask_whenOnePackageAndNoPmState_initializesTransportAndResetsState() 542 Files.write(getStateFile(mTransport, PACKAGE_2), "package2State".getBytes()); in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState() 547 assertThat(Files.readAllBytes(getStateFile(mTransport, PACKAGE_2))) in testRunTask_whenOnePackageAndWithPmState_doesNotInitializeTransportOrResetState() [all …]
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 3244 private static File getStateFile(int userId) { in getStateFile() method in AppWidgetServiceImpl 3250 File settingsFile = getStateFile(userId); in getSavedStateFile()
|