Lines Matching refs:buffer
45 std::string buffer; in ReadFromStorage() local
47 if (!android::base::ReadFileToString(std::string(kSysPersistFile), &buffer)) { in ReadFromStorage()
52 if (sscanf(buffer.c_str(), "%d %d %d %d %d %d %d %d", in ReadFromStorage()
56 LOG(ERROR) << "data format is wrong in the storage file: " << buffer; in ReadFromStorage()
58 LOG(INFO) << "Storage data: " << buffer; in ReadFromStorage()
77 std::string buffer; in ReadFromSRAM() local
79 if (!android::base::ReadFileToString(std::string(kCycCntFile), &buffer)) { in ReadFromSRAM()
84 buffer = android::base::Trim(buffer); in ReadFromSRAM()
86 if (sscanf(buffer.c_str(), "%d %d %d %d %d %d %d %d", in ReadFromSRAM()
90 LOG(ERROR) << "Failed to parse SRAM bins: " << buffer; in ReadFromSRAM()
92 LOG(INFO) << "SRAM data: " << buffer; in ReadFromSRAM()