Searched refs:UniqueFile (Results 1 – 3 of 3) sorted by relevance
/aosp14/frameworks/base/core/jni/ |
H A 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()
|
H A D | android_os_Debug.cpp | 643 UniqueFile fp = MakeUniqueFile(BINDER_STATS, "re"); in read_binder_stat() 690 static bool openFile(JNIEnv* env, jobject fileDescriptor, UniqueFile& fp) in openFile() 727 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeHeap() 749 UniqueFile fp(nullptr, safeFclose); in android_os_Debug_dumpNativeMallocInfo() 803 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Debug_getFreeZramKb()
|
H A D | android_util_Process.cpp | 1122 UniqueFile file = MakeUniqueFile(status_path.c_str(), "re"); in android_os_Process_getRss()
|