Home
last modified time | relevance | path

Searched refs:chargeState (Results 1 - 9 of 9) sorted by relevance

/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/include/
H A Dbattery_thread_test.h32 void UpdateEpollIntervalTest(const int32_t chargeState, BatteryThread& bthread);
49 friend void UpdateEpollIntervalTest(const int32_t chargeState, BatteryThread& bthread) in UpdateEpollIntervalTest() argument
51 (bthread.*privateFun)(chargeState); in UpdateEpollIntervalTest()
/drivers/peripheral/battery/interfaces/hdi_service/src/
H A Dbattery_thread.cpp104 void BatteryThread::UpdateEpollInterval(const int32_t chargeState) in UpdateEpollInterval() argument
106 if ((chargeState != PowerSupplyProvider::CHARGE_STATE_NONE) && in UpdateEpollInterval()
107 (chargeState != PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in UpdateEpollInterval()
198 event.chargeState = batteryInfo->chargeState_; in UpdateBatteryInfo()
217 event.pluggedType, event.chargeState, event.pluggedMaxCurrent, event.pluggedMaxVoltage, in UpdateBatteryInfo()
H A Dbattery_interface_impl.cpp150 int32_t BatteryInterfaceImpl::GetChargeState(BatteryChargeState& chargeState) in GetChargeState() argument
158 chargeState = BatteryChargeState(state); in GetChargeState()
213 info.chargeState = batteryInfo.chargeState_; in GetBatteryInfo()
H A Dpower_supply_provider.cpp859 int32_t PowerSupplyProvider::ParseChargeState(int32_t* chargeState) in ParseChargeState() argument
868 *chargeState = ChargeStateEnumConverter(buf); in ParseChargeState()
/drivers/peripheral/battery/interfaces/hdi_service/include/
H A Dbattery_thread.h49 void UpdateEpollInterval(int32_t chargeState);
H A Dbattery_interface_impl.h48 int32_t GetChargeState(BatteryChargeState& chargeState) override;
H A Dpower_supply_provider.h89 int32_t ParseChargeState(int32_t* chargeState);
/drivers/peripheral/battery/interfaces/hdi_service/test/unittest/src/
H A Dhdi_service_test.cpp669 BATTERY_HILOGE(LABEL_TEST, "read system file chargeState is %{public}d", battChargeState); in ReadChargeStateSysfs()
705 BATTERY_HILOGE(LABEL_TEST, "read system file chargeState is %{public}d", battChargeCounter); in ReadChargeCounterSysfs()
707 BATTERY_HILOGE(LABEL_TEST, "read system file chargeState is %{public}d", battChargeCounter); in ReadChargeCounterSysfs()
743 BATTERY_HILOGE(LABEL_TEST, "read system file chargeState is %{public}d", battPresent); in ReadPresentSysfs()
745 BATTERY_HILOGE(LABEL_TEST, "read system file chargeState is %{public}d", battPresent); in ReadPresentSysfs()
927 int32_t chargeState = PowerSupplyProvider::CHARGE_STATE_RESERVED; in HWTEST_F() local
929 giver_->ParseChargeState(&chargeState); in HWTEST_F()
932 LABEL_TEST, "Not Mock HdiService006::chargeState=%{public}d, cs=%{public}d", chargeState, sysfsChargeState); in HWTEST_F()
933 ASSERT_TRUE(chargeState in HWTEST_F()
[all...]
/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_type.h216 int32_t chargeState; member

Completed in 7 milliseconds