/base/web/webview/test/unittest/battery_mgr_adapter_impl/ |
D | battery_mgr_adapter_test.cpp | 36 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/ |
D | stats_service_subscriber_test.h | 37 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/ |
D | battery_notify_test.cpp | 45 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;
|
D | battery_srv_proxy_mock_test.cpp | 100 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/ |
D | battery_info.h | 98 } BatteryPluggedType; typedef 103 BatteryPluggedType GetPluggedType(void);
|
/base/powermgr/battery_manager/services/native/include/ |
D | battery_service.h | 64 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/ |
D | battery_mgr_client_adapter_impl.cpp | 59 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/ |
D | ibattery.h | 38 BatteryPluggedType pluggedType; 49 BatteryPluggedType (*GetPluggedType)();
|
D | battery_device.h | 51 BatteryPluggedType (*GetPluggedType)(void);
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_service.cpp | 57 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 …]
|
D | battery_notify.cpp | 234 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/ |
D | battery_stats_subscriber.cpp | 56 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/ |
D | battery_info.h | 103 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;
|
D | ibattery_srv.h | 31 virtual BatteryPluggedType GetPluggedType() = 0;
|
D | battery_srv_client.h | 51 BatteryPluggedType GetPluggedType();
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 103 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/ |
D | stats_service_subscriber_test.cpp | 151 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/ |
D | battery_impl.h | 30 BatteryPluggedType GetPluggedTypeImpl(void);
|
/base/powermgr/battery_lite/frameworks/js/builtin/src/ |
D | battery_impl.c | 34 BatteryPluggedType GetPluggedTypeImpl(void) in GetPluggedTypeImpl()
|
/base/powermgr/battery_lite/frameworks/native/include/ |
D | batterymgr_intf_define.h | 30 BatteryPluggedType (*GetPluggedTypeFunc)(IUnknown *iUnknown); \
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 111 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType() 113 BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
|
/base/powermgr/battery_lite/frameworks/native/src/mini/ |
D | battery_framework.c | 77 BatteryPluggedType GetPluggedType(void) in GetPluggedType() 79 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
|
/base/powermgr/battery_lite/services/src/ |
D | battery_manage_feature.c | 77 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown) in PluggedTypeImpl() 79 BatteryPluggedType pluggedType = PLUGGED_TYPE_BUTT; in PluggedTypeImpl()
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_sttest.cpp | 619 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/ |
D | battery_srv_proxy.h | 42 virtual BatteryPluggedType GetPluggedType() override;
|