/base/powermgr/battery_manager/interfaces/innerkits/native/include/ |
D | battery_info.h | 103 enum class BatteryPluggedType : uint32_t { enum 203 void SetPluggedType(const BatteryPluggedType pluggedType) in SetPluggedType() 258 BatteryPluggedType GetPluggedType() const in GetPluggedType() 298 BatteryPluggedType pluggedType_ = BatteryPluggedType::PLUGGED_TYPE_BUTT;
|
D | ibattery_srv.h | 44 virtual BatteryPluggedType GetPluggedType() = 0;
|
D | battery_srv_client.h | 51 BatteryPluggedType GetPluggedType();
|
/base/powermgr/battery_manager/interfaces/kits/js/ |
D | @ohos.batteryInfo.d.ts | 48 const pluggedType: BatteryPluggedType; 80 export enum BatteryPluggedType { enum
|
/base/powermgr/battery_lite/interfaces/kits/ |
D | battery_info.h | 98 } BatteryPluggedType; typedef 103 BatteryPluggedType GetPluggedType(void);
|
/base/powermgr/battery_lite/services/include/ |
D | ibattery.h | 38 BatteryPluggedType pluggedType; 49 BatteryPluggedType (*GetPluggedType)();
|
D | battery_device.h | 51 BatteryPluggedType (*GetPluggedType)(void);
|
D | battery_manage_feature.h | 48 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown);
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 95 BatteryPluggedType BatterySrvProxy::GetPluggedType() in GetPluggedType() 98 RETURN_IF_WITH_RET(remote == nullptr, BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType() 105 return BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType() 112 return BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType() 114 uint32_t pluggedType = static_cast<uint32_t>(BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType() 115 READ_PARCEL_WITH_RET(reply, Uint32, pluggedType, BatteryPluggedType::PLUGGED_TYPE_BUTT); in GetPluggedType() 116 return static_cast<BatteryPluggedType>(pluggedType); in GetPluggedType()
|
/base/powermgr/battery_manager/frameworks/js/test/ |
D | battery_unit.test.js | 117 var batteryPluggedType = batteryInfo.BatteryPluggedType.NONE; 122 var batteryPluggedType = batteryInfo.BatteryPluggedType.AC; 127 var batteryPluggedType = batteryInfo.BatteryPluggedType.USB; 132 var batteryPluggedType = batteryInfo.BatteryPluggedType.WIRELESS;
|
/base/powermgr/battery_statistics/services/native/src/ |
D | battery_stats_subscriber.cpp | 58 if (pluggedType == (int)BatteryPluggedType::PLUGGED_TYPE_NONE || in OnReceiveEvent() 59 pluggedType == (int)BatteryPluggedType::PLUGGED_TYPE_BUTT) { in OnReceiveEvent()
|
/base/powermgr/battery_manager/services/native/test/unittest/src/ |
D | battery_service_test.cpp | 224 …OHOS::PowerMgr::BatteryPluggedType pluggedType = OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_… 230 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_WIRELESS); 233 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_sttest.cpp | 556 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB); 575 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB); 594 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_WIRELESS); 613 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 632 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 651 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 670 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 689 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 708 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); 727 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_AC); [all …]
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 106 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType() 108 BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
|
/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 | 31 BatteryPluggedType GetPluggedTypeImpl(void) in GetPluggedTypeImpl()
|
/base/powermgr/battery_lite/frameworks/native/src/mini/ |
D | battery_freamwork.c | 73 BatteryPluggedType GetPluggedType(void) in GetPluggedType() 75 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_lite/frameworks/native/include/ |
D | batterymgr_intf_define.h | 30 BatteryPluggedType (*GetPluggedTypeFunc)(IUnknown *iUnknown); \
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_service.cpp | 171 batteryInfo.SetPluggedType(BatteryPluggedType(event.pluggedType)); in HandleBatteryCallbackEvent() 389 BatteryPluggedType BatteryService::GetPluggedType() in GetPluggedType() 391 …OHOS::HDI::Battery::V1_0::BatteryPluggedType pluggedType = OHOS::HDI::Battery::V1_0::BatteryPlugge… in GetPluggedType() 395 return OHOS::PowerMgr::BatteryPluggedType(pluggedType); in GetPluggedType() 399 return OHOS::PowerMgr::BatteryPluggedType(pluggedType); in GetPluggedType()
|
/base/powermgr/battery_manager/services/zidl/include/ |
D | battery_srv_proxy.h | 35 virtual BatteryPluggedType GetPluggedType() override;
|
/base/powermgr/battery_lite/frameworks/native/src/small/ |
D | battery_freamwork.c | 95 static BatteryPluggedType GetPluggedTypeProxy(IUnknown *iUnknown) in GetPluggedTypeProxy() 274 BatteryPluggedType GetPluggedType(void) in GetPluggedType() 276 BatteryPluggedType state = PLUGGED_TYPE_NONE; in GetPluggedType()
|
/base/powermgr/battery_manager/frameworks/js/napi/ |
D | battery_info.cpp | 298 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_NONE, &none); in CreateEnumPluggedType() 299 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_AC, &ac); in CreateEnumPluggedType() 300 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_USB, &usb); in CreateEnumPluggedType() 301 napi_create_int32(env, (int32_t)BatteryPluggedType::PLUGGED_TYPE_WIRELESS, &wireless); in CreateEnumPluggedType()
|
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/ |
D | battery_client_test.cpp | 253 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB); 258 ASSERT_TRUE(pluggedType == OHOS::PowerMgr::BatteryPluggedType::PLUGGED_TYPE_USB);
|
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/ |
D | batterymgr_interfaces_test.cpp | 80 BatteryPluggedType status = GetPluggedType();
|