Searched refs:mockChargerPath (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/base/powermgr/battery_manager/charger/src/ |
H A D | power_supply_provider.cpp | 333 void PowerSupplyProvider::CreateMockChargerPath(std::string& mockChargerPath) in CreateMockChargerPath() argument 336 CreateFile(mockChargerPath + "/type", "USB"); in CreateMockChargerPath() 337 CreateFile(mockChargerPath + "/constant_charge_current", "0"); in CreateMockChargerPath() 338 CreateFile(mockChargerPath + "/health", "Good"); in CreateMockChargerPath() 339 CreateFile(mockChargerPath + "/online", "1"); in CreateMockChargerPath() 340 CreateFile(mockChargerPath + "/status", "Charging"); in CreateMockChargerPath() 341 CreateFile(mockChargerPath + "/type", "USB"); in CreateMockChargerPath() 355 std::string mockChargerPath = MOCK_POWER_SUPPLY_BASE_PATH + "/ohos_charger"; in InitDefaultSysfs() local 363 if (access(mockChargerPath.c_str(), 0) == -1) { in InitDefaultSysfs() 364 mkdir(mockChargerPath.c_str(), S_IRWXU); in InitDefaultSysfs() [all …]
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | power_supply_provider.cpp | 944 void PowerSupplyProvider::CreateMockChargerPath(std::string& mockChargerPath) in CreateMockChargerPath() argument 947 CreateFile(mockChargerPath + "/type", "USB"); in CreateMockChargerPath() 948 CreateFile(mockChargerPath + "/constant_charge_current", "0"); in CreateMockChargerPath() 949 CreateFile(mockChargerPath + "/health", "Good"); in CreateMockChargerPath() 950 CreateFile(mockChargerPath + "/online", "1"); in CreateMockChargerPath() 951 CreateFile(mockChargerPath + "/status", "Charging"); in CreateMockChargerPath() 979 std::string mockChargerPath = MOCK_POWER_SUPPLY_BASE_PATH + "/ohos_charger"; in InitDefaultSysfs() local 987 if (access(mockChargerPath.c_str(), 0) == -1) { in InitDefaultSysfs() 988 mkdir(mockChargerPath.c_str(), S_IRWXU); in InitDefaultSysfs() 998 CreateMockChargerPath(mockChargerPath); in InitDefaultSysfs()
|
/ohos5.0/base/powermgr/battery_manager/charger/include/ |
H A D | power_supply_provider.h | 70 void CreateMockChargerPath(std::string& mockChargerPath);
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | power_supply_provider.h | 155 void CreateMockChargerPath(std::string& mockChargerPath);
|