Searched refs:iBatteryInterface (Results 1 – 3 of 3) sorted by relevance
95 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in SetVoltage() local96 if (iBatteryInterface == nullptr) { in SetVoltage()113 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in ExecuteVoltageLimit() local114 if (iBatteryInterface == nullptr) { in ExecuteVoltageLimit()118 int32_t result = iBatteryInterface->SetChargingLimit(chargeLimitList_); in ExecuteVoltageLimit()
117 sptr<IBatteryInterface> iBatteryInterface = IBatteryInterface::Get(); in ExecuteCurrentLimit() local118 if (iBatteryInterface == nullptr) { in ExecuteCurrentLimit()122 int32_t result = iBatteryInterface->SetChargingLimit(chargeLimitList_); in ExecuteCurrentLimit()
53 sptr<HDI::Battery::V2_0::IBatteryInterface> iBatteryInterface; variable54 iBatteryInterface = HDI::Battery::V2_0::IBatteryInterface::Get();56 EXPECT_EQ(iBatteryInterface->Register(callback), HDF_SUCCESS);61 iBatteryInterface->GetBatteryInfo(event);