/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_battery_observer.cpp | 35 void ClassicBatteryObserverHf::OnBatteryLevelChanged(const RawAddress &device, int batteryLevel) in OnBatteryLevelChanged() argument 37 HILOGI("address: %{public}s, batteryLevel: %{public}d", GET_ENCRYPT_ADDR(device), batteryLevel); in OnBatteryLevelChanged() 38 dispatcher_->PostTask(std::bind(&ClassicBatteryObserverHf::SetBatteryLevel, this, device, batteryLevel)); in OnBatteryLevelChanged() 41 void ClassicBatteryObserverHf::SetBatteryLevel(const RawAddress &device, int batteryLevel) const in SetBatteryLevel() 46 classicAdapter->SetDeviceBatteryLevel(device, batteryLevel); in SetBatteryLevel() 62 HILOGI("address: %{public}s, batteryLevel: %{public}d", GET_ENCRYPT_ADDR(device), indValue); in OnHfBatteryLevelChanged() 66 void ClassicBatteryObserverAg::SetBatteryLevel(const RawAddress &device, int batteryLevel) const in SetBatteryLevel() 71 classicAdapter->SetDeviceBatteryLevel(device, batteryLevel); in SetBatteryLevel()
|
H A D | classic_battery_observer.h | 45 void OnBatteryLevelChanged(const RawAddress &device, int batteryLevel); 46 void SetBatteryLevel(const RawAddress &device, int batteryLevel) const; 58 void SetBatteryLevel(const RawAddress &device, int batteryLevel) const;
|
H A D | classic_remote_device.cpp | 362 LOG_DEBUG("[ClassicRemoteDevice]::%{public}s batteryLevel = %{public}d", __func__, batteryLevel_); in GetBatteryLevel() 367 void ClassicRemoteDevice::SetBatteryLevel(int batteryLevel) in SetBatteryLevel() argument 369 LOG_DEBUG("[ClassicRemoteDevice]::%{public}s batteryLevel = %{public}d", __func__, batteryLevel); in SetBatteryLevel() 371 batteryLevel_ = batteryLevel; in SetBatteryLevel()
|
H A D | classic_remote_device.h | 179 * @return Returns batteryLevel. 186 * @param batteryLevel battery level. 188 void SetBatteryLevel(int batteryLevel);
|
H A D | classic_adapter.h | 403 void SetDeviceBatteryLevel(const RawAddress &device, int batteryLevel) const override; 795 * @param batteryLevel Remote device battery level. 797 void SendRemoteBatteryLevelChanged(const RawAddress &device, int batteryLevel) const;
|
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/event_monitor/impl/ |
H A D | battery_level_strategy.cpp | 46 int32_t batteryLevel = BatteryLevel::BATTERY_LEVEL_LOW; in handleEvent() local 48 batteryLevel = BatteryLevel::BATTERY_LEVEL_OKAY; in handleEvent() 50 DP_CHECK_RETURN(batteryLevel == preLevel_); in handleEvent() 52 preLevel_ = batteryLevel; in handleEvent()
|
/foundation/communication/bluetooth_service/services/bluetooth/external/dummy/include/stub/ |
H A D | telephone_client_service.h | 31 virtual void OnBatteryLevelChanged(int batteryLevel) in OnBatteryLevelChanged() argument 73 void NotifyBatteryLevel(int batteryLevel) in NotifyBatteryLevel() argument
|
H A D | telephone_service.h | 45 virtual void OnBatteryLevelChanged(int batteryLevel) in OnBatteryLevelChanged() argument 180 void SetBatteryLevel(int batteryLevel) in SetBatteryLevel() argument 192 void NotifyBatteryLevelChanged(int batteryLevel) in NotifyBatteryLevelChanged() argument
|
/foundation/communication/bluetooth/frameworks/js/napi/src/connection/ |
H A D | napi_bluetooth_remote_device_observer.cpp | 72 const BluetoothRemoteDevice &device, int batteryLevel) in OnRemoteBatteryLevelChanged() 74 HILOGD("addr:%{public}s, batteryLevel:%{public}d", GET_ENCRYPT_ADDR(device), batteryLevel); in OnRemoteBatteryLevelChanged() 71 OnRemoteBatteryLevelChanged( const BluetoothRemoteDevice &device, int batteryLevel) OnRemoteBatteryLevelChanged() argument
|
H A D | napi_bluetooth_remote_device_observer.h | 37 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override;
|
/foundation/resourceschedule/work_scheduler/interfaces/kits/cj/work_scheduler/ |
H A D | work_scheduler_ffi.cpp | 171 if (cwork.batteryLevel == UNSET_INT_PARAM) { in GetBatteryInfo() 172 LOGI("Unset batteryLevel."); in GetBatteryInfo() 173 } else if (cwork.batteryLevel >= BATTERY_LEVEL_MIN && cwork.batteryLevel <= BATTERY_LEVEL_MAX) { in GetBatteryInfo() 174 workInfo.RequestBatteryLevel(cwork.batteryLevel); in GetBatteryInfo() 254 cwork.batteryLevel = workInfo->GetBatteryLevel(); in ParseWorkInfo()
|
H A D | work_scheduler_ffi.h | 34 int32_t batteryLevel; member
|
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/ |
H A D | js_work_scheduler_extension.cpp | 256 void SetBatteryInfo(napi_env env, napi_value workInfoData, int32_t batteryLevel, in SetBatteryInfo() argument 259 if (batteryLevel != INVALID_VALUE) { in SetBatteryInfo() 261 napi_create_int32(env, batteryLevel, &batteryLevelValue); in SetBatteryInfo() 262 napi_set_named_property(env, workInfoData, "batteryLevel", batteryLevelValue); in SetBatteryInfo() 355 int32_t batteryLevel = workInfo.GetBatteryLevel(); in OnWorkStart() local 380 SetBatteryInfo(env, workInfoData, batteryLevel, batteryStatus); in OnWorkStart() 407 int32_t batteryLevel = workInfo.GetBatteryLevel(); in OnWorkStop() local 432 SetBatteryInfo(env, workInfoData, batteryLevel, batteryStatus); in OnWorkStop()
|
/foundation/communication/bluetooth/frameworks/js/napi/include/ |
H A D | napi_bluetooth_remote_device_observer.h | 35 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override;
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/ |
H A D | hfp_hf_service.h | 384 * @param batteryLevel The value of the battery level. 387 void BatteryLevelChanged(int batteryLevel); 428 * @param batteryLevel The battery level. 431 void NotifyBatteryLevelChanged(const RawAddress &device, int batteryLevel);
|
H A D | hfp_hf_service.cpp | 35 void OnBatteryLevelChanged(int batteryLevel) override 37 LOG_DEBUG("[HFP HF]%{public}s() batteryLevel[%{public}d]", __PRETTY_FUNCTION__, batteryLevel); 38 service_.BatteryLevelChanged(batteryLevel); 646 void HfpHfService::BatteryLevelChanged(int batteryLevel) in BatteryLevelChanged() argument 648 HfpHfMessage event(HFP_HF_BATTERY_LEVEL_CHANGED_EVT, batteryLevel); in BatteryLevelChanged() 768 void HfpHfService::NotifyBatteryLevelChanged(const RawAddress &device, int batteryLevel) in NotifyBatteryLevelChanged() argument 773 (*iter)->OnBatteryLevelChanged(device, batteryLevel); in NotifyBatteryLevelChanged()
|
/foundation/communication/bluetooth/frameworks/cj/connection/include/ |
H A D | bluetooth_connection_ffi.h | 43 int batteryLevel; member
|
H A D | bluetooth_connection_impl.h | 93 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override{};
|
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_battery_info.c | 82 battery.batteryLevel = level; in OnReceiveBatteryInfo()
|
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/ |
H A D | common.cpp | 134 int32_t batteryLevel = GetIntProperty(env, objValue, "batteryLevel", E_BATTERY_LEVEL_ERR); in GetBatteryInfo() local 135 if (batteryLevel == UNSET_INT_PARAM) { in GetBatteryInfo() 136 WS_HILOGD("Unset batteryLevel."); in GetBatteryInfo() 137 } else if (batteryLevel >= BATTERY_LEVEL_MIN && batteryLevel <= BATTERY_LEVEL_MAX) { in GetBatteryInfo() 138 workInfo.RequestBatteryLevel(batteryLevel); in GetBatteryInfo() 495 // Set batteryLevel info. in GetConditionInfo() 499 napi_set_named_property(env, napiWork, "batteryLevel", napiBatteryLevel); in GetConditionInfo()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/include/ |
H A D | interface_adapter_classic.h | 226 * @param batteryLevel battery level 229 virtual void SetDeviceBatteryLevel(const RawAddress &device, int batteryLevel) const = 0;
|
H A D | interface_profile_hfp_hf.h | 92 * @param batteryLevel Battery level. 95 virtual void OnBatteryLevelChanged(const RawAddress &device, int batteryLevel) in OnBatteryLevelChanged() argument 102 * @param batteryLevel Signal strength.
|
/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gap.h | 306 typedef void (*GapRemoteBatteryLevelChangedCallback)(const BdAddr *bdAddr, int batteryLevel);
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_host.h | 220 virtual void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) = 0;
|
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_callback.cpp | 134 cBatteryInfo.batteryLevel = batteryInfo.batteryLevel_; in OnRemoteBatteryChanged()
|