Home
last modified time | relevance | path

Searched refs:GetPluggedType (Results 1 – 25 of 34) sorted by relevance

12

/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp109 ….SetParam(BatteryInfo::COMMON_EVENT_KEY_PLUGGED_TYPE, static_cast<int32_t>(info.GetPluggedType())); in PublishChangedEvent()
137 "LEVEL", info.GetCapacity(), "CHARGER", static_cast<int32_t>(info.GetPluggedType()), in PublishChangedEvent()
153 …oString(BatteryInfo::COMMON_EVENT_CODE_PLUGGED_TYPE), static_cast<int32_t>(info.GetPluggedType())); in ChangedEventDeprecated()
231 if ((info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_NONE) || in PublishPowerConnectedEvent()
232 (info.GetPluggedType() == BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in PublishPowerConnectedEvent()
241 data.SetCode(static_cast<int32_t>(info.GetPluggedType())); in PublishPowerConnectedEvent()
243 static_cast<uint32_t>(info.GetPluggedType())); in PublishPowerConnectedEvent()
263 if ((info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_NONE) && in PublishPowerDisconnectedEvent()
264 (info.GetPluggedType() != BatteryPluggedType::PLUGGED_TYPE_BUTT)) { in PublishPowerDisconnectedEvent()
273 data.SetCode(static_cast<int32_t>(info.GetPluggedType())); in PublishPowerDisconnectedEvent()
[all …]
Dbattery_service.cpp210 … batteryInfo_.GetHealthState(), batteryInfo_.GetPluggedType(), batteryInfo_.GetPluggedMaxCurrent(), in HandleBatteryInfo()
216 WakeupDevice(batteryInfo_.GetPluggedType()); in HandleBatteryInfo()
450 BatteryPluggedType BatteryService::GetPluggedType() in GetPluggedType() function in OHOS::PowerMgr::BatteryService
459 iBatteryInterface_->GetPluggedType(pluggedType); in GetPluggedType()
Dbattery_dump.cpp80 BatteryPluggedType pluggedType = service->GetPluggedType(); in GetBatteryInfo()
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts90 export interface GetPluggedType { interface
193 static PluggedType(options?: GetPluggedType): void;
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_impl.c36 return GetPluggedType(); in GetPluggedTypeImpl()
Dbattery_module.cpp92 JSIValue BatteryModule::GetPluggedType(const JSIValue thisVal, const JSIValue *args, uint8_t argsNu… in GetPluggedType() function in OHOS::ACELite::BatteryModule
163 JSI::SetModuleAPI(exports, "PluggedType", BatteryModule::GetPluggedType); in InitBatteryModule()
/base/powermgr/battery_lite/services/src/
Dbattery_device.c154 .GetPluggedType = GetPluggedTypeImpl,
204 g_device.GetPluggedType = g_batteryFeatureHandle->GetPluggedType; in GetBatteryDeviceMethods()
Dbattery_manage_feature.c84 pluggedType = g_batteryDevice->GetPluggedType(); in PluggedTypeImpl()
/base/powermgr/battery_lite/interfaces/kits/
Dbattery_info.h103 BatteryPluggedType GetPluggedType(void);
/base/powermgr/battery_lite/services/include/
Dbattery_device.h51 BatteryPluggedType (*GetPluggedType)(void); member
Dibattery.h49 BatteryPluggedType (*GetPluggedType)(); member
/base/powermgr/battery_lite/frameworks/js/builtin/include/
Dbattery_module.h31 static JSIValue GetPluggedType(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp612 auto pluggedType = BatterySrvClient.GetPluggedType();
617 auto pluggedType = BatterySrvClient.GetPluggedType();
642 auto pluggedType = BatterySrvClient.GetPluggedType();
647 auto pluggedType = BatterySrvClient.GetPluggedType();
671 auto pluggedType = BatterySrvClient.GetPluggedType();
676 auto pluggedType = BatterySrvClient.GetPluggedType();
702 auto pluggedType = BatterySrvClient.GetPluggedType();
707 auto pluggedType = BatterySrvClient.GetPluggedType();
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dibattery_srv.h48 virtual BatteryPluggedType GetPluggedType() = 0;
Dbattery_srv_client.h51 BatteryPluggedType GetPluggedType();
Dbattery_info.h295 BatteryPluggedType GetPluggedType() const in GetPluggedType() function
363 (pluggedType_ == info.GetPluggedType()) &&
/base/powermgr/battery_manager/services/zidl/include/
Dbattery_srv_proxy.h42 virtual BatteryPluggedType GetPluggedType() override;
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp111 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType() function in OHOS::PowerMgr::BatterySrvClient
115 pluggedType = proxy_->GetPluggedType(); in GetPluggedType()
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp80 BatteryPluggedType status = GetPluggedType();
/base/powermgr/battery_manager/test/fuzztest/battery_fuzzer/
Dbattery_fuzzer_test.cpp76 g_batterySrvClient.GetPluggedType(); in TestGetPluggedType()
/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
Dbattery_mgr_client_adapter_impl.cpp110 auto isChangingType = battClient.GetPluggedType(); in RequestBatteryInfo()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_framework.c77 BatteryPluggedType GetPluggedType(void) in GetPluggedType() function
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_srv_proxy_mock_test.cpp100 BatteryPluggedType pluggedType = g_proxy->GetPluggedType();
/base/powermgr/battery_manager/services/native/include/
Dbattery_service.h67 BatteryPluggedType GetPluggedType() override;
/base/web/webview/test/unittest/battery_mgr_adapter_impl/
Dbattery_mgr_adapter_test.cpp51 BatteryPluggedType BatterySrvClient::GetPluggedType() in GetPluggedType() function in OHOS::PowerMgr::BatterySrvClient

12