Searched refs:nodeNamePathMap_ (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | power_supply_provider.cpp | 255 nodeNamePathMap_["capacity"].c_str()); in FormatSysfsPaths() 259 nodeNamePathMap_["temp"].c_str()); in FormatSysfsPaths() 261 nodeNamePathMap_["health"].c_str()); in FormatSysfsPaths() 263 nodeNamePathMap_["status"].c_str()); in FormatSysfsPaths() 265 nodeNamePathMap_["present"].c_str()); in FormatSysfsPaths() 408 if (item != nodeNamePathMap_.end()) { in ParsePluggedMaxCurrent() 430 if (item != nodeNamePathMap_.end()) { in ParsePluggedMaxVoltage() 611 nodeNamePathMap_.clear(); in InitPowerSupplySysfs() 717 nodeNamePathMap_["type"] = path; in CheckSubfolderNode() 720 for (auto& iter : nodeNamePathMap_) { in CheckSubfolderNode() [all …]
|
/ohos5.0/base/powermgr/battery_manager/charger/src/ |
H A D | power_supply_provider.cpp | 108 nodeNamePathMap_["capacity"].c_str()); in FormatSysfsPaths() 110 …batterySysfsInfo_.temperaturePath, PATH_MAX, "%s/%s/temp", path_.c_str(), nodeNamePathMap_["temp"]… in FormatSysfsPaths() 204 nodeNamePathMap_.clear(); in InitPowerSupplySysfs() 215 nodeNamePathMap_.insert(std::make_pair("capacity", "")); in TraversalNode() 216 nodeNamePathMap_.insert(std::make_pair("temp", "")); in TraversalNode() 217 nodeNamePathMap_.insert(std::make_pair("status", "")); in TraversalNode() 269 if ((strcmp(entry->d_name, "type") == 0) && (nodeNamePathMap_["type"].empty()) && in CheckSubfolderNode() 271 nodeNamePathMap_["type"] = path; in CheckSubfolderNode() 274 for (auto& iter : nodeNamePathMap_) { in CheckSubfolderNode() 275 … if ((strcmp(entry->d_name, iter.first.c_str()) == 0) && (nodeNamePathMap_[iter.first].empty())) { in CheckSubfolderNode() [all …]
|
/ohos5.0/base/powermgr/battery_manager/charger/include/ |
H A D | power_supply_provider.h | 73 std::map<std::string, std::string> nodeNamePathMap_; variable
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | power_supply_provider.h | 161 std::map<std::string, std::string> nodeNamePathMap_; variable
|