Home
last modified time | relevance | path

Searched refs:batteryLevel (Results 1 - 25 of 34) sorted by relevance

12

/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/
H A Dclassic_battery_observer.cpp35 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 Dclassic_battery_observer.h45 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 Dclassic_remote_device.cpp362 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 Dclassic_remote_device.h179 * @return Returns batteryLevel.
186 * @param batteryLevel battery level.
188 void SetBatteryLevel(int batteryLevel);
H A Dclassic_adapter.h403 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 Dbattery_level_strategy.cpp46 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 Dtelephone_client_service.h31 virtual void OnBatteryLevelChanged(int batteryLevel) in OnBatteryLevelChanged() argument
73 void NotifyBatteryLevel(int batteryLevel) in NotifyBatteryLevel() argument
H A Dtelephone_service.h45 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 Dnapi_bluetooth_remote_device_observer.cpp72 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 Dnapi_bluetooth_remote_device_observer.h37 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override;
/foundation/resourceschedule/work_scheduler/interfaces/kits/cj/work_scheduler/
H A Dwork_scheduler_ffi.cpp171 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 Dwork_scheduler_ffi.h34 int32_t batteryLevel; member
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/
H A Djs_work_scheduler_extension.cpp256 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 Dnapi_bluetooth_remote_device_observer.h35 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override;
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_service.h384 * @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 Dhfp_hf_service.cpp35 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 Dbluetooth_connection_ffi.h43 int batteryLevel; member
H A Dbluetooth_connection_impl.h93 void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) override{};
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_battery_info.c82 battery.batteryLevel = level; in OnReceiveBatteryInfo()
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
H A Dcommon.cpp134 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 Dinterface_adapter_classic.h226 * @param batteryLevel battery level
229 virtual void SetDeviceBatteryLevel(const RawAddress &device, int batteryLevel) const = 0;
H A Dinterface_profile_hfp_hf.h92 * @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 Dohos_bt_gap.h306 typedef void (*GapRemoteBatteryLevelChangedCallback)(const BdAddr *bdAddr, int batteryLevel);
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_host.h220 virtual void OnRemoteBatteryLevelChanged(const BluetoothRemoteDevice &device, int batteryLevel) = 0;
/foundation/communication/bluetooth/frameworks/cj/connection/src/
H A Dbluetooth_connection_callback.cpp134 cBatteryInfo.batteryLevel = batteryInfo.batteryLevel_; in OnRemoteBatteryChanged()

Completed in 16 milliseconds

12