/frameworks/native/cmds/installd/ |
D | unique_file.cpp | 28 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()
|
D | run_dex2oat.h | 28 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 …]
|
D | unique_file.h | 56 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);
|
D | run_dex2oat.cpp | 65 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 …]
|
D | restorable_file.h | 89 const UniqueFile& GetUniqueFile() const; 101 UniqueFile unique_file_;
|
D | run_dex2oat_test.cpp | 99 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;
|
D | restorable_file.cpp | 129 const UniqueFile& RestorableFile::GetUniqueFile() const { in GetUniqueFile()
|
D | dexopt.cpp | 462 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 …]
|
D | dexopt.h | 160 UniqueFile maybe_open_reference_profile(const std::string& pkgname, const std::string& dex_path,
|
D | otapreopt.cpp | 436 UniqueFile reference_profile = in IsAotCompilation()
|
/frameworks/base/core/jni/ |
D | android_os_Debug.h | 32 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()
|
D | android_os_Debug.cpp | 455 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()
|
D | android_util_Process.cpp | 1207 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Process_getRss()
|
/frameworks/native/cmds/installd/tests/ |
D | installd_file_test.cpp | 107 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()
|
D | installd_service_test.cpp | 564 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/ |
D | cpu_set.h | 45 UniqueFile OpenPropertyFilePointer(const std::string& name) const; 48 UniqueFile OpenFilePointer(const std::string& name,
|
D | unique_file.h | 15 using UniqueFile = std::unique_ptr<FILE, FileDeleter>; variable
|
D | task.cpp | 71 UniqueFile Task::OpenTaskFilePointer(const std::string& name) const { in OpenTaskFilePointer() 80 UniqueFile fp(fdopen(fd.release(), "r")); in OpenTaskFilePointer()
|
D | cpu_set.cpp | 208 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()
|
D | task.h | 68 UniqueFile OpenTaskFilePointer(const std::string& name) const;
|
D | performance_service_tests.cpp | 25 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()
|