Lines Matching defs:service

62 bool BatteryDump::GetBatteryInfo(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args)
69 int32_t capacity = service->GetCapacity();
71 BatteryCapacityLevel batteryLevel = service->GetCapacityLevel();
73 BatteryChargeState chargingStatus = service->GetChargingStatus();
75 BatteryHealthState healthState = service->GetHealthStatus();
77 BatteryPluggedType pluggedType = service->GetPluggedType();
79 int32_t voltage = service->GetVoltage();
81 bool present = service->GetPresent();
83 std::string technology = service->GetTechnology();
85 int32_t nowCurrent = service->GetNowCurrent();
87 int32_t currentAverage = service->GetCurrentAverage();
89 int32_t totalEnergy = service->GetTotalEnergy();
91 int32_t remainEnergy = service->GetRemainEnergy();
93 int64_t remainingChargeTime = service->GetRemainingChargeTime();
95 int32_t temperature = service->GetBatteryTemperature();
97 ChargeType chargeType = service->GetChargeType();
102 bool BatteryDump::MockUnplugged(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u16string>& args)
109 service->MockUnplugged();
117 bool BatteryDump::Reset(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u16string>& args)
124 service->Reset();
132 bool BatteryDump::MockCapacity(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args)
149 service->MockCapacity(capacity);
157 bool BatteryDump::MockUevent(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args)
165 service->MockUevent(uevent);