Lines Matching refs:savePath
74 const std::string savePath = captureDir + "/screenCap_" + std::to_string(curTime) + ".png";
86 auto fd = open(savePath.c_str(), O_RDWR | O_CREAT, 0666);
88 LOGI("Failed to open file: %s", savePath.c_str());
90 if (!TakeScreenCap(savePath)) {
100 std::string savePath = captureDir + "/screenCap_" + captureTime + ".jpeg";
113 if (realpath(savePath.c_str(), realPath) == nullptr) {
119 LOGI("Failed to open file: %s", savePath.c_str());
122 if (!SPUtils::LoadCmd(snapshot + savePath, cmdResult)) {
147 bool Capture::TakeScreenCap(const std::string &savePath) const
172 if (realpath(savePath.c_str(), realPath) == nullptr) {