Home
last modified time | relevance | path

Searched refs:battery (Results 1 - 13 of 13) sorted by relevance

/foundation/multimedia/camera_framework/services/deferred_processing_service/src/event_monitor/
H A Devents_info.cpp69 auto& battery = PowerMgr::BatterySrvClient::GetInstance(); in GetBatteryState() local
70 auto level = battery.GetCapacityLevel(); in GetBatteryState()
89 auto& battery = PowerMgr::BatterySrvClient::GetInstance(); in GetChargingState() local
90 auto status = battery.GetChargingStatus(); in GetChargingState()
108 auto& battery = PowerMgr::BatterySrvClient::GetInstance(); in GetBatteryLevel() local
109 auto capacity = battery.GetCapacity(); in GetBatteryLevel()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_battery_info.c32 LNN_LOGE(LNN_LANE, "create battery json object failed"); in LnnSyncBatteryInfo()
81 BatteryInfo battery; in OnReceiveBatteryInfo() local
82 battery.batteryLevel = level; in OnReceiveBatteryInfo()
83 battery.isCharging = isCharging; in OnReceiveBatteryInfo()
84 (void)LnnSetDLBatteryInfo(networkId, &battery); in OnReceiveBatteryInfo()
85 LNN_LOGD(LNN_LANE, "update battery info"); in OnReceiveBatteryInfo()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/
H A Dhfp_ag_profile.h319 * @brief Reports the change of the battery level to remote HF device.
321 * @param battery Battery level.
322 * @return Returns the result of report battery level.
324 int ReportBatteryLevel(uint32_t battery);
390 * @param battery battery indicator.
392 void ProcessBia(bool service, bool roam, bool signal, bool battery);
H A Dhfp_ag_system_event_processer.cpp301 int battery = systemInterface_.GetBatteryLevel(); in GetAgIndicator() local
303 HfpAgProfile::CindIndicators indicators = {status, call, callsetup, callheld, signal, roam, battery}; in GetAgIndicator()
338 LOG_INFO("[HFP AG]%{public}s(): BIA command is battery[%{public}d], roam[%{public}d], " in ProcessAtBiaEvent()
341 event.data_.battery, in ProcessAtBiaEvent()
345 profile_.ProcessBia(event.data_.service, event.data_.roam, event.data_.signal, event.data_.battery); in ProcessAtBiaEvent()
H A Dhfp_ag_message.h30 bool battery {false};
H A Dhfp_ag_profile.cpp515 int HfpAgProfile::ReportBatteryLevel(uint32_t battery) in ReportBatteryLevel() argument
519 HFP_AG_RETURN_IF_INDICATOR_EQUAL(battery, dataConn_.batteryInd_); in ReportBatteryLevel()
521 dataConn_.batteryInd_ = battery; in ReportBatteryLevel()
522 return ReportAgIndicator(HFP_AG_INDICATOR_BATTERY_LEVEL, battery); in ReportBatteryLevel()
879 void HfpAgProfile::ProcessBia(bool service, bool roam, bool signal, bool battery) in ProcessBia() argument
884 dataConn_.batteryIndicatorEnabled_ = battery; in ProcessBia()
H A Dhfp_ag_command_processor.cpp517 bool battery = !(biaMaskOut & (1 << HFP_AG_INDICATOR_BATTERY_LEVEL)); in BiaSetter() local
519 HfpAgTransferData data = {service, roam, signal, battery}; in BiaSetter()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_file_observer.cpp90 auto battery = make_shared<MtpOperationUtils>(context); in SendBattery() local
91 if (LOW_BATTERY >= battery->GetBatteryLevel()) { in SendBattery()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_profile.h303 * @brief Reports the change of the battery level to remote HF device.
305 * @param battery Battery level.
308 bool ReportBatteryLevel(uint32_t battery);
H A Dhfp_hf_profile.cpp432 bool HfpHfProfile::ReportBatteryLevel(uint32_t battery) in ReportBatteryLevel() argument
436 HFP_HF_RETURN_IF_INDICATOR_EQUAL(battery, dataConn_.localHfIndicators_[0].value); in ReportBatteryLevel()
438 dataConn_.localHfIndicators_[0].value = battery; in ReportBatteryLevel()
439 return ReportHfIndicator(HFP_HF_INDICATOR_BATTERY_LEVEL, battery); in ReportBatteryLevel()
/foundation/resourceschedule/work_scheduler/test/fuzztest/workschedulerstartwork_fuzzer/
H A Dworkschedulerstartwork_fuzzer.cpp52 int32_t battery = 20; in CreateWorkInfo() local
61 workInfo.RequestBatteryLevel(battery); in CreateWorkInfo()
/foundation/resourceschedule/device_standby/utils/policy/src/
H A Dstandby_config_manager.cpp551 STANDBYSERVICE_LOGW("failed to parse standby battery list in %{public}s", STANDBY_CONFIG_PATH.c_str()); in ParseDeviceStanbyConfig()
790 STANDBYSERVICE_LOGW("there is unexpected value of %{public}s in standby battery list", in ParseBatteryList()
796 for (const int32_t battery : element.value()) { in ParseBatteryList()
797 batterylList.emplace_back(battery); in ParseBatteryList()
/foundation/resourceschedule/work_scheduler/frameworks/src/
H A Dwork_info.cpp238 WorkCondition::BatteryStatus battery = WorkCondition::BatteryStatus(enumVal); in GetBatteryStatus() local
239 return WorkCondition::BatteryStatus(battery); in GetBatteryStatus()

Completed in 10 milliseconds