Home
last modified time | relevance | path

Searched refs:metadataFile (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java261 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_writesCorrectData() local
264 mBackupWriter.backupWidget(packageInfo, metadataFile, mFilesDir, widgetBytes); in testBackupWidget_writesCorrectData()
280 metadataFile.delete(); in testBackupWidget_writesCorrectData()
287 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_withNullWidgetData_throwsNullPointerException() local
293 packageInfo, metadataFile, mFilesDir, /* widgetData */ null)); in testBackupWidget_withNullWidgetData_throwsNullPointerException()
295 metadataFile.delete(); in testBackupWidget_withNullWidgetData_throwsNullPointerException()
303 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException() local
309 packageInfo, metadataFile, mFilesDir, new byte[0])); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException()
311 metadataFile.delete(); in testBackupWidget_withEmptyWidgetData_throwsIllegalArgumentException()
319 File metadataFile = createFile(BACKUP_METADATA_FILENAME); in testBackupWidget_whenRunPreviouslyWithSameData_producesSameBytesOnSecondRun() local
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DAppMetadataBackupWriter.java170 PackageInfo packageInfo, File metadataFile, File filesDir, byte[] widgetData) in backupWidget() argument
175 FileOutputStream fileOutputStream = new FileOutputStream(metadataFile); in backupWidget()
187 metadataFile.setLastModified(0); in backupWidget()
194 metadataFile.getAbsolutePath(), in backupWidget()
DFullBackupEngine.java123 File metadataFile = new File(mFilesDir, BACKUP_METADATA_FILENAME); in run() local
125 mPackage, metadataFile, mFilesDir, widgetData); in run()
126 metadataFile.delete(); in run()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java794 File metadataFile = new File(instantDir, INSTANT_APP_METADATA_FILE); in pruneInstantApps() local
795 if (!metadataFile.exists()) { in pruneInstantApps()
800 - metadataFile.lastModified(); in pruneInstantApps()
932 File metadataFile = new File(getInstantApplicationDir(packageName, userId), in peekOrParseUninstalledInstantAppInfo() local
934 UninstalledInstantAppState uninstalledAppState = parseMetadataFile(metadataFile); in peekOrParseUninstalledInstantAppInfo()
961 File metadataFile = new File(instantDir, in getUninstalledInstantAppStatesLPr() local
964 parseMetadataFile(metadataFile); in getUninstalledInstantAppStatesLPr()
987 @NonNull File metadataFile) { in parseMetadataFile()
988 if (!metadataFile.exists()) { in parseMetadataFile()
993 in = new AtomicFile(metadataFile).openRead(); in parseMetadataFile()
[all …]