Home
last modified time | relevance | path

Searched refs:chargeType (Results 1 – 6 of 6) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp88 ChargeType chargeType = info.GetChargeType(); in PublishChargeTypeChangedEvent() local
90 if (batteryInfoChargeType_ == chargeType) { in PublishChargeTypeChangedEvent()
94 batteryInfoChargeType_ = chargeType; in PublishChargeTypeChangedEvent()
102 data.SetCode(static_cast<int32_t>(chargeType)); in PublishChargeTypeChangedEvent()
103 BATTERY_HILOGD(COMP_SVC, "publisher chargeType=%{public}d", chargeType); in PublishChargeTypeChangedEvent()
Dbattery_dump.cpp93 ChargeType chargeType = service->GetChargeType(); in GetBatteryInfo() local
94 dprintf(fd, "chargeType: %u \n", chargeType); in GetBatteryInfo()
Dbattery_service.cpp551 V1_2::ChargeType chargeType = V1_2::ChargeType::CHARGE_TYPE_NONE; in GetChargeType() local
554 return ChargeType(chargeType); in GetChargeType()
557 iBatteryInterface_->GetChargeType(chargeType); in GetChargeType()
558 return ChargeType(chargeType); in GetChargeType()
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h309 void SetChargeType(const ChargeType chargeType) in SetChargeType() argument
311 chargeType_ = chargeType; in SetChargeType()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_service_test.cpp484 ChargeType chargeType = g_service->GetChargeType(); variable
485 EXPECT_TRUE(chargeType >= ChargeType::NONE && chargeType <= ChargeType::WIRELESS_SUPER_QUICK);
Dbattery_notify_test.cpp351 const ChargeType chargeType = ChargeType::WIRED_NORMAL; variable
352 g_batteryInfo->SetChargeType(chargeType);