Home
last modified time | relevance | path

Searched refs:UniqueFile (Results 1 – 21 of 21) sorted by relevance

/frameworks/native/cmds/installd/
Dunique_file.cpp28 UniqueFile::UniqueFile() : UniqueFile(-1, "") {} in UniqueFile() function in android::installd::UniqueFile
30 UniqueFile::UniqueFile(int value, std::string path) : UniqueFile(value, path, nullptr) {} in UniqueFile() function in android::installd::UniqueFile
32 UniqueFile::UniqueFile(int value, std::string path, CleanUpFunction cleanup) in UniqueFile() function in android::installd::UniqueFile
35 UniqueFile::UniqueFile(UniqueFile&& other) { in UniqueFile() function in android::installd::UniqueFile
39 UniqueFile::~UniqueFile() { in ~UniqueFile()
43 UniqueFile& UniqueFile::operator=(UniqueFile&& other) { in operator =()
53 void UniqueFile::reset() { in reset()
57 void UniqueFile::reset(int new_value, std::string path, CleanUpFunction new_cleanup) { in reset()
72 void UniqueFile::release() { in release()
Drun_dex2oat.h28 class UniqueFile; variable
35 void Initialize(const UniqueFile& output_oat,
36 const UniqueFile& output_vdex,
37 const UniqueFile& output_image,
38 const UniqueFile& input_dex,
39 const UniqueFile& input_vdex,
40 const UniqueFile& dex_metadata,
41 const UniqueFile& profile,
61 void PrepareInputFileFlags(const UniqueFile& output_oat,
62 const UniqueFile& output_vdex,
[all …]
Dunique_file.h56 class UniqueFile {
61 UniqueFile();
62 UniqueFile(int value, std::string path);
63 UniqueFile(int value, std::string path, CleanUpFunction cleanup);
64 UniqueFile(UniqueFile&& other);
65 ~UniqueFile();
67 UniqueFile& operator=(UniqueFile&& other);
Drun_dex2oat.cpp65 void RunDex2Oat::Initialize(const UniqueFile& output_oat, in Initialize()
66 const UniqueFile& output_vdex, in Initialize()
67 const UniqueFile& output_image, in Initialize()
68 const UniqueFile& input_dex, in Initialize()
69 const UniqueFile& input_vdex, in Initialize()
70 const UniqueFile& dex_metadata, in Initialize()
71 const UniqueFile& profile, in Initialize()
123 void RunDex2Oat::PrepareInputFileFlags(const UniqueFile& output_oat, in PrepareInputFileFlags()
124 const UniqueFile& output_vdex, in PrepareInputFileFlags()
125 const UniqueFile& output_image, in PrepareInputFileFlags()
[all …]
Drestorable_file.h89 const UniqueFile& GetUniqueFile() const;
101 UniqueFile unique_file_;
Drun_dex2oat_test.cpp99 UniqueFile output_oat;
100 UniqueFile output_vdex;
101 UniqueFile output_image;
102 UniqueFile input_dex;
103 UniqueFile input_vdex;
104 UniqueFile dex_metadata;
105 UniqueFile profile;
Drestorable_file.cpp129 const UniqueFile& RestorableFile::GetUniqueFile() const { in GetUniqueFile()
Ddexopt.cpp462 static UniqueFile open_reference_profile_as_unique_file(uid_t uid, const std::string& package_name, in open_reference_profile_as_unique_file()
471 return UniqueFile(ufd.release(), profile_path, [](const std::string& path) { in open_reference_profile_as_unique_file()
1083 UniqueFile maybe_open_reference_profile(const std::string& pkgname, in maybe_open_reference_profile()
1089 return UniqueFile(); in maybe_open_reference_profile()
1101 return UniqueFile(); in maybe_open_reference_profile()
1111 return UniqueFile(); in maybe_open_reference_profile()
1124 UniqueFile* in_vdex_wrapper, RestorableFile* out_vdex_wrapper) { in open_vdex_files_for_dex2oat()
1868 UniqueFile in_dex(open(dex_path, O_RDONLY, 0), dex_path); in dexopt()
1891 UniqueFile in_vdex; in dexopt()
1918 UniqueFile reference_profile = maybe_open_reference_profile( in dexopt()
[all …]
Ddexopt.h160 UniqueFile maybe_open_reference_profile(const std::string& pkgname, const std::string& dex_path,
Dotapreopt.cpp436 UniqueFile reference_profile = in IsAotCompilation()
/frameworks/base/core/jni/
Dandroid_os_Debug.h32 using UniqueFile = std::unique_ptr<FILE, decltype(&safeFclose)>; variable
34 inline UniqueFile MakeUniqueFile(const char* path, const char* mode) { in MakeUniqueFile()
35 return UniqueFile(fopen(path, mode), safeFclose); in MakeUniqueFile()
Dandroid_os_Debug.cpp455 UniqueFile fp = MakeUniqueFile(BINDER_STATS, "re"); in read_binder_stat()
502 static bool openFile(JNIEnv* env, jobject fileDescriptor, UniqueFile& fp) in openFile()
539 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeHeap()
561 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeMallocInfo()
624 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Debug_getFreeZramKb()
Dandroid_util_Process.cpp1207 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Process_getRss()
/frameworks/native/cmds/installd/tests/
Dinstalld_file_test.cpp107 UniqueFile uf1(fd, testFile); in TEST_F()
110 UniqueFile uf2(std::move(uf1)); in TEST_F()
122 UniqueFile uf1(fd1, testFile1); in TEST_F()
125 UniqueFile uf2(fd2, testFile2); in TEST_F()
144 { UniqueFile uf = UniqueFile(fd, testFile, UnlinkWithAssert); } in TEST_F()
157 UniqueFile uf = UniqueFile(fd, testFile, UnlinkWithAssert); in TEST_F()
171 UniqueFile uf(fd, testFile, UnlinkWithAssert); in TEST_F()
220 const UniqueFile& uf = rf.GetUniqueFile(); in TEST_F()
244 const UniqueFile& uf = rf.GetUniqueFile(); in TEST_F()
Dinstalld_service_test.cpp564 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
582 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
595 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
606 UniqueFile raii2(/*fd=*/-1, anotherPath, &unlink_path); in TEST_F()
616 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
635 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
647 UniqueFile raii(/*fd=*/-1, path, &unlink_path); in TEST_F()
/frameworks/native/services/vr/performanced/
Dcpu_set.h45 UniqueFile OpenPropertyFilePointer(const std::string& name) const;
48 UniqueFile OpenFilePointer(const std::string& name,
Dunique_file.h15 using UniqueFile = std::unique_ptr<FILE, FileDeleter>; variable
Dtask.cpp71 UniqueFile Task::OpenTaskFilePointer(const std::string& name) const { in OpenTaskFilePointer()
80 UniqueFile fp(fdopen(fd.release(), "r")); in OpenTaskFilePointer()
Dcpu_set.cpp208 UniqueFile CpuSet::OpenPropertyFilePointer(const std::string& name) const { in OpenPropertyFilePointer()
218 UniqueFile CpuSet::OpenFilePointer(const std::string& name, int flags) const { in OpenFilePointer()
227 UniqueFile fp(fdopen(fd.release(), "r")); in OpenFilePointer()
Dtask.h68 UniqueFile OpenTaskFilePointer(const std::string& name) const;
Dperformance_service_tests.cpp25 using android::dvr::UniqueFile;
34 std::pair<UniqueFile, int> OpenTaskFile(pid_t task_id, in OpenTaskFile()
39 UniqueFile file{fopen(stream.str().c_str(), "r")}; in OpenTaskFile()
46 UniqueFile file; in GetTaskCpuSet()