Home
last modified time | relevance | path

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

12

/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dbattery_info.h103 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;
Dibattery_srv.h44 virtual BatteryPluggedType GetPluggedType() = 0;
Dbattery_srv_client.h51 BatteryPluggedType GetPluggedType();
/base/powermgr/battery_manager/interfaces/kits/js/
D@ohos.batteryInfo.d.ts48 const pluggedType: BatteryPluggedType;
80 export enum BatteryPluggedType { enum
/base/powermgr/battery_lite/interfaces/kits/
Dbattery_info.h98 } BatteryPluggedType; typedef
103 BatteryPluggedType GetPluggedType(void);
/base/powermgr/battery_lite/services/include/
Dibattery.h38 BatteryPluggedType pluggedType;
49 BatteryPluggedType (*GetPluggedType)();
Dbattery_device.h51 BatteryPluggedType (*GetPluggedType)(void);
Dbattery_manage_feature.h48 BatteryPluggedType PluggedTypeImpl(IUnknown *iUnknown);
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp95 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/
Dbattery_unit.test.js117 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/
Dbattery_stats_subscriber.cpp58 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/
Dbattery_service_test.cpp224 …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/
Dbattery_sttest.cpp556 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/
Dbattery_srv_client.cpp106 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType()
108 BatteryPluggedType pluggedType = BatteryPluggedType::PLUGGED_TYPE_BUTT; in GetPluggedType()
/base/powermgr/battery_lite/frameworks/js/builtin/include/
Dbattery_impl.h30 BatteryPluggedType GetPluggedTypeImpl(void);
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_impl.c31 BatteryPluggedType GetPluggedTypeImpl(void) in GetPluggedTypeImpl()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_freamwork.c73 BatteryPluggedType GetPluggedType(void) in GetPluggedType()
75 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_lite/frameworks/native/include/
Dbatterymgr_intf_define.h30 BatteryPluggedType (*GetPluggedTypeFunc)(IUnknown *iUnknown); \
/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp171 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/
Dbattery_srv_proxy.h35 virtual BatteryPluggedType GetPluggedType() override;
/base/powermgr/battery_lite/frameworks/native/src/small/
Dbattery_freamwork.c95 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/
Dbattery_info.cpp298 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/
Dbattery_client_test.cpp253 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/
Dbatterymgr_interfaces_test.cpp80 BatteryPluggedType status = GetPluggedType();

12