Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Drestorable_file.cpp61 RestorableFile::RestorableFile() : RestorableFile(-1, "") {} in RestorableFile() function in android::installd::RestorableFile
63 RestorableFile::RestorableFile(int value, const std::string& path) : unique_file_(value, path) { in RestorableFile() function in android::installd::RestorableFile
69 RestorableFile::~RestorableFile() { in ~RestorableFile()
73 void RestorableFile::reset() { in reset()
82 bool RestorableFile::CreateBackupFile() { in CreateBackupFile()
95 bool RestorableFile::CommitWorkFile() { in CommitWorkFile()
112 bool RestorableFile::RestoreBackupFile() { in RestoreBackupFile()
125 void RestorableFile::RemoveBackupFile() { in RemoveBackupFile()
129 const UniqueFile& RestorableFile::GetUniqueFile() const { in GetUniqueFile()
133 void RestorableFile::ResetAndRemoveAllFiles() { in ResetAndRemoveAllFiles()
[all …]
Drestorable_file.h45 class RestorableFile {
48 RestorableFile();
49 RestorableFile(RestorableFile&& other) = default;
50 ~RestorableFile();
55 RestorableFile& operator=(RestorableFile&& other) = default;
92 static RestorableFile CreateWritableFile(const std::string& path, int permissions);
98 RestorableFile(int value, const std::string& path);
Ddexopt.cpp1022 RestorableFile maybe_open_app_image(const std::string& out_oat_path, bool generate_app_image, in maybe_open_app_image()
1027 return RestorableFile(); in maybe_open_app_image()
1032 RestorableFile::RemoveAllFiles(image_path); in maybe_open_app_image()
1033 return RestorableFile(); in maybe_open_app_image()
1037 RestorableFile::RemoveAllFiles(image_path); in maybe_open_app_image()
1038 return RestorableFile(); in maybe_open_app_image()
1042 RestorableFile image_file = RestorableFile::CreateWritableFile(image_path, in maybe_open_app_image()
1124 UniqueFile* in_vdex_wrapper, RestorableFile* out_vdex_wrapper) { in open_vdex_files_for_dex2oat()
1140 *out_vdex_wrapper = RestorableFile::CreateWritableFile(out_vdex_path_str, in open_vdex_files_for_dex2oat()
1202 RestorableFile open_oat_out_file(const char* apk_path, const char* oat_dir, bool is_public, int uid, in open_oat_out_file()
[all …]
/frameworks/native/cmds/installd/tests/
Dinstalld_file_test.cpp183 RestorableFile rf1 = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
186 RestorableFile rf2(std::move(rf1)); in TEST_F()
196 RestorableFile rf1 = RestorableFile::CreateWritableFile(testFile1, 0600); in TEST_F()
199 RestorableFile rf2 = RestorableFile::CreateWritableFile(testFile2, 0600); in TEST_F()
216 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
240 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
267 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
287 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
305 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
322 RestorableFile rf = RestorableFile::CreateWritableFile(testFile, 0600); in TEST_F()
[all …]