Searched refs:mockChargerPath (Results 1 – 2 of 2) sorted by relevance
333 void PowerSupplyProvider::CreateMockChargerPath(std::string& mockChargerPath) in CreateMockChargerPath() argument336 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() local363 if (access(mockChargerPath.c_str(), 0) == -1) { in InitDefaultSysfs()364 mkdir(mockChargerPath.c_str(), S_IRWXU); in InitDefaultSysfs()[all …]
70 void CreateMockChargerPath(std::string& mockChargerPath);