Lines Matching refs:line
46 int32_t CpupmStateResidencyDataProvider::matchState(char const *line) { in matchState() argument
48 if (mConfig.states[i].second == Trim(std::string(line))) { in matchState()
55 int32_t CpupmStateResidencyDataProvider::matchEntity(char const *line) { in matchEntity() argument
57 if (StartsWith(Trim(std::string(line)), mConfig.entities[i].second)) { in matchEntity()
65 char const *line, uint64_t *duration, uint64_t *count) { in parseState() argument
66 std::vector<std::string> parts = Split(line, " "); in parseState()
102 char *line = nullptr; in getStateResidencies() local
110 while (getline(&line, &len, sleepFp.get()) != -1) { in getStateResidencies()
111 std::string trimedLine = Trim(std::string(line)); in getStateResidencies()
128 while (getline(&line, &len, fp.get()) != -1) { in getStateResidencies()
129 temp = matchState(line); in getStateResidencies()
137 entityIndex = matchEntity(line); in getStateResidencies()
143 if (parseState(line, &duration, &count)) { in getStateResidencies()
147 LOG(ERROR) << "Failed to parse duration and count from [" << std::string(line) in getStateResidencies()
154 free(line); in getStateResidencies()