Home
last modified time | relevance | path

Searched refs:iBatteryInterface (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/powermgr/thermal_manager/services/native/src/thermal_action/action/
H A Daction_voltage.cpp95 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in SetVoltage() local
96 if (iBatteryInterface == nullptr) { in SetVoltage()
113 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in ExecuteVoltageLimit() local
114 if (iBatteryInterface == nullptr) { in ExecuteVoltageLimit()
118 int32_t result = iBatteryInterface->SetChargingLimit(chargeLimitList_); in ExecuteVoltageLimit()
H A Daction_charger.cpp117 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in ExecuteCurrentLimit() local
118 if (iBatteryInterface == nullptr) { in ExecuteCurrentLimit()
122 int32_t result = iBatteryInterface->SetChargingLimit(chargeLimitList_); in ExecuteCurrentLimit()
/ohos5.0/base/powermgr/battery_manager/test/unittest/src/
H A Dbattery_callback_test.cpp53 sptr<HDI::Battery::V2_0::IBatteryInterface> iBatteryInterface; variable
54 iBatteryInterface = HDI::Battery::V2_0::IBatteryInterface::Get();
56 EXPECT_EQ(iBatteryInterface->Register(callback), HDF_SUCCESS);
61 iBatteryInterface->GetBatteryInfo(event);