Home
last modified time | relevance | path

Searched refs:mockChargerPath (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/battery_manager/charger/src/
Dpower_supply_provider.cpp333 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 …]
/base/powermgr/battery_manager/charger/include/
Dpower_supply_provider.h70 void CreateMockChargerPath(std::string& mockChargerPath);