Home
last modified time | relevance | path

Searched refs:WriteToFile_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/
H A Dmemcg.cpp208 ret = WriteToFile_(scorePath, std::to_string(score_)); in SetScoreAndReclaimRatiosToKernel()
212 ret = ret && WriteToFile_(ratiosPath, reclaimRatios_->NumsToString()); in SetScoreAndReclaimRatiosToKernel()
237 bool ret = WriteToFile_(zramPath, std::to_string(PERCENT_100)); // load 100% to zram in SwapIn()
239 ret = ret && WriteToFile_(swapinPath, "0"); // echo 0 to trigger force swapin in SwapIn()
249 inline bool Memcg::WriteToFile_(const std::string& path, const std::string& content, bool truncated) in WriteToFile_() function in OHOS::Memory::Memcg
332 bool ret = WriteToFile_(fullPath, std::to_string(pid), false); in AddProc()
/ohos5.0/foundation/resourceschedule/memmgr/services/memmgrservice/include/reclaim_strategy_manager/
H A Dmemcg.h102 bool WriteToFile_(const std::string& path, const std::string& content, bool truncated = true);