Home
last modified time | relevance | path

Searched refs:BatteryPluggedType (Results 1 – 25 of 41) sorted by relevance

12

/base/web/webview/test/unittest/battery_mgr_adapter_impl/
Dbattery_mgr_adapter_test.cpp36 BatteryPluggedType g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
51 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType()
112 want.SetParam(key, static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_NONE));
114 want.SetParam(key, static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_BUTT));
172 g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_AC;
178 g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
184 g_pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT;
/base/powermgr/battery_statistics/test/unittest/include/servicetest/
Dstats_service_subscriber_test.h37 void SetPluggedType(const BatteryPluggedType pluggedType) in SetPluggedType()
45 pluggedType_ = BatteryPluggedType::PLUGGED_TYPE_NONE; in BatteryInfoReset()
49 BatteryPluggedType pluggedType_;
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_notify_test.cpp45 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE; in SetUp()
180 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
194 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_AC;
208 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_USB;
222 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_WIRELESS;
236 const BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT;
Dbattery_srv_proxy_mock_test.cpp100 BatteryPluggedType pluggedType = g_proxy->GetPluggedType();
101 EXPECT_TRUE(pluggedType >= BatteryPluggedType::PLUGGED_TYPE_NONE &&
102 …pluggedType <= BatteryPluggedType::PLUGGED_TYPE_BUTT); // the enum value range of BatteryPluggedTy…
/base/powermgr/battery_lite/interfaces/kits/
Dbattery_info.h98 } BatteryPluggedType; typedef
103 BatteryPluggedType GetPluggedType(void);
/base/powermgr/battery_manager/services/native/include/
Dbattery_service.h64 BatteryPluggedType GetPluggedType() override;
96 bool IsNowPlugged(BatteryPluggedType pluggedType);
97 bool IsPlugged(BatteryPluggedType pluggedType);
98 bool IsUnplugged(BatteryPluggedType pluggedType);
99 void WakeupDevice(BatteryPluggedType pluggedType);
/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
Dbattery_mgr_client_adapter_impl.cpp59 if ((isChangingType == static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_NONE)) || in OnReceiveEvent()
60 (isChangingType == static_cast<int>(BatteryPluggedType::PLUGGED_TYPE_BUTT))) { in OnReceiveEvent()
112 if ((isChangingType == BatteryPluggedType::PLUGGED_TYPE_NONE) || in RequestBatteryInfo()
113 (isChangingType == BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in RequestBatteryInfo()
/base/powermgr/battery_lite/services/include/
Dibattery.h38 BatteryPluggedType pluggedType;
49 BatteryPluggedType (*GetPluggedType)();
Dbattery_device.h51 BatteryPluggedType (*GetPluggedType)(void);
/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp57 BatteryPluggedType g_lastPluggedType = BatteryPluggedType::PLUGGED_TYPE_NONE;
191 batteryInfo_.SetPluggedType(BatteryPluggedType(event.pluggedType)); in ConvertingEvent()
296 if (g_lastPluggedType != BatteryPluggedType::PLUGGED_TYPE_NONE && in IsLastPlugged()
297 g_lastPluggedType != BatteryPluggedType::PLUGGED_TYPE_BUTT) { in IsLastPlugged()
303 bool BatteryService::IsNowPlugged(BatteryPluggedType pluggedType) in IsNowPlugged()
305 if (pluggedType != BatteryPluggedType::PLUGGED_TYPE_NONE && in IsNowPlugged()
306 pluggedType != BatteryPluggedType::PLUGGED_TYPE_BUTT) { in IsNowPlugged()
312 bool BatteryService::IsPlugged(BatteryPluggedType pluggedType) in IsPlugged()
324 bool BatteryService::IsUnplugged(BatteryPluggedType pluggedType) in IsUnplugged()
332 void BatteryService::WakeupDevice(BatteryPluggedType pluggedType) in WakeupDevice()
[all …]
Dbattery_notify.cpp234 if ((info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_NONE) || in PublishPowerConnectedEvent()
235 (info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in PublishPowerConnectedEvent()
266 if ((info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_NONE) && in PublishPowerDisconnectedEvent()
267 (info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in PublishPowerDisconnectedEvent()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_subscriber.cpp56 if (pluggedType == static_cast<int32_t>(BatteryPluggedType::PLUGGED_TYPE_NONE) || in OnReceiveEvent()
57 pluggedType == static_cast<int32_t>(BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in OnReceiveEvent()
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h103 enum class BatteryPluggedType : uint32_t { enum
254 void SetPluggedType(const BatteryPluggedType pluggedType) in SetPluggedType()
334 BatteryPluggedType GetPluggedType() const in GetPluggedType()
451 BatteryPluggedType pluggedType_ = BatteryPluggedType::PLUGGED_TYPE_BUTT;
Dibattery_srv.h31 virtual BatteryPluggedType GetPluggedType() = 0;
Dbattery_srv_client.h51 BatteryPluggedType GetPluggedType();
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp103 BatteryPluggedType BatterySrvProxy::GetPluggedType() in GetPluggedType()
106 RETURN_IF_WITH_RET(remote == nullptr, BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType()
113 return BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
121 return BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
123 uint32_t pluggedType = static_cast<uint32_t>(BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType()
124 READ_PARCEL_WITH_RET(reply, Uint32, pluggedType, BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType()
125 return static_cast<BatteryPluggedType>(pluggedType); in GetPluggedType()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_subscriber_test.cpp151 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);
157 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_USB);
163 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_BUTT);
232 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_NONE);
242 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_AC);
252 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_BUTT);
297 SetPluggedType(BatteryPluggedType::PLUGGED_TYPE_AC);
/base/powermgr/battery_lite/frameworks/js/builtin/include/
Dbattery_impl.h30 BatteryPluggedType GetPluggedTypeImpl(void);
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_impl.c34 BatteryPluggedType GetPluggedTypeImpl(void) in GetPluggedTypeImpl()
/base/powermgr/battery_lite/frameworks/native/include/
Dbatterymgr_intf_define.h30 BatteryPluggedType (*GetPluggedTypeFunc)(IUnknown *iUnknown); \
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp111 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType()
113 BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_framework.c77 BatteryPluggedType GetPluggedType(void) in GetPluggedType()
79 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
/base/powermgr/battery_lite/services/src/
Dbattery_manage_feature.c77 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown) in PluggedTypeImpl()
79 BatteryPluggedType pluggedType = PLUGGED_TYPE_BUTT; in PluggedTypeImpl()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp619 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC);
626 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
649 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
656 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
679 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_WIRELESS);
686 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
710 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_NONE);
717 EXPECT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
/base/powermgr/battery_manager/services/zidl/include/
Dbattery_srv_proxy.h42 virtual BatteryPluggedType GetPluggedType() override;

12