Home
last modified time | relevance | path

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

/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.cpp591 UniqueFile fp = MakeUniqueFile(BINDER_STATS, "re"); in read_binder_stat()
638 static bool openFile(JNIEnv* env, jobject fileDescriptor, UniqueFile& fp) in openFile()
675 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeHeap()
697 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeMallocInfo()
751 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Debug_getFreeZramKb()
Dandroid_util_Process.cpp1107 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Process_getRss()
/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()
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()
Dtask.h68 UniqueFile OpenTaskFilePointer(const std::string& name) const;