Home
last modified time | relevance | path

Searched refs:kApexBackupDir (Results 1 – 3 of 3) sorted by relevance

/system/apex/apexd/
Dapex_constants.h27 static constexpr const char* kApexBackupDir = "/data/apex/backup"; variable
Dapexd.cpp740 auto exists = PathExists(std::string(kApexBackupDir)); in DeleteBackup()
742 return Error() << "Can't clean " << kApexBackupDir << " : " in DeleteBackup()
746 LOG(DEBUG) << kApexBackupDir << " does not exist. Nothing to clean"; in DeleteBackup()
749 return DeleteDirContent(std::string(kApexBackupDir)); in DeleteBackup()
756 auto create_status = createDirIfNeeded(kApexBackupDir, 0700); in BackupActivePackages()
782 return StringPrintf("%s/%s%s", kApexBackupDir, in BackupActivePackages()
788 auto result = DeleteDirContent(std::string(kApexBackupDir)); in BackupActivePackages()
790 LOG(ERROR) << "Failed to cleanup " << kApexBackupDir << " : " in BackupActivePackages()
814 auto backup_exists = PathExists(std::string(kApexBackupDir)); in RestoreActivePackages()
819 return Error() << kApexBackupDir << " does not exist"; in RestoreActivePackages()
[all …]
Dapexservice_test.cpp2053 auto backups = ReadEntireDir(kApexBackupDir); in TEST_F()
2056 StringPrintf("%s/com.android.apex.test_package@1.apex", kApexBackupDir); in TEST_F()
2058 StringPrintf("%s/com.android.apex.test_package_2@1.apex", kApexBackupDir); in TEST_F()
2078 ASSERT_TRUE(IsOk(createDirIfNeeded(std::string(kApexBackupDir), 0700))); in TEST_F()
2080 std::ofstream old_backup(StringPrintf("%s/file1", kApexBackupDir)); in TEST_F()
2099 auto backups = ReadEntireDir(kApexBackupDir); in TEST_F()
2102 StringPrintf("%s/com.android.apex.test_package@1.apex", kApexBackupDir); in TEST_F()
2104 StringPrintf("%s/com.android.apex.test_package_2@1.apex", kApexBackupDir); in TEST_F()
2132 auto backups = ReadEntireDir(kApexBackupDir); in TEST_F()
2157 auto backups = ReadEntireDir(kApexBackupDir); in TEST_F()
[all …]