Home
last modified time | relevance | path

Searched refs:metadataFile (Results 1 – 6 of 6) 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/core/java/com/android/server/integrity/
DIntegrityFileManager.java100 File metadataFile = new File(mRulesDir, METADATA_FILE); in IntegrityFileManager() local
101 if (metadataFile.exists()) { in IntegrityFileManager()
102 try (FileInputStream inputStream = new FileInputStream(metadataFile)) { in IntegrityFileManager()
212 File metadataFile = new File(directory, METADATA_FILE); in writeMetadata() local
214 try (FileOutputStream outputStream = new FileOutputStream(metadataFile)) { in writeMetadata()
/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.java803 File metadataFile = new File(instantDir, INSTANT_APP_METADATA_FILE); in pruneInstantApps() local
804 if (!metadataFile.exists()) { in pruneInstantApps()
809 - metadataFile.lastModified(); in pruneInstantApps()
946 File metadataFile = new File(getInstantApplicationDir(packageName, userId), in peekOrParseUninstalledInstantAppInfo() local
948 UninstalledInstantAppState uninstalledAppState = parseMetadataFile(metadataFile); in peekOrParseUninstalledInstantAppInfo()
975 File metadataFile = new File(instantDir, in getUninstalledInstantAppStatesLPr() local
978 parseMetadataFile(metadataFile); in getUninstalledInstantAppStatesLPr()
1001 @NonNull File metadataFile) { in parseMetadataFile()
1002 if (!metadataFile.exists()) { in parseMetadataFile()
1007 in = new AtomicFile(metadataFile).openRead(); in parseMetadataFile()
[all …]
/frameworks/base/services/incremental/
DIncrementalService.cpp1177 for (auto&& [metadataFile, bindRecord] : permanentBindPoints) { in adoptMountedInstances()
1187 addBindMountRecordLocked(*ifs, bindRecord.storage_id(), std::move(metadataFile), in adoptMountedInstances()
1199 if (addBindMountWithMd(*ifs, bindRecord.storage_id(), std::move(metadataFile), in adoptMountedInstances()
1203 mIncFs->unlink(ifs->control, metadataFile); in adoptMountedInstances()