/base/powermgr/battery_statistics/services/native/src/entities/ |
H A D | uid_entity.cpp | 48 STATS_HILOGD(COMP_SVC, "Update %{public}d to uid power map", uid);
in UpdateUidMap() 66 double power = StatsUtils::DEFAULT_VALUE;
in CalculateForConnectivity() local 71 // Calculate bluetooth power consumption
in CalculateForConnectivity() 73 power += bluetoothEntity->GetEntityPowerMah(uid);
in CalculateForConnectivity() 74 STATS_HILOGD(COMP_SVC, "Connectivity power consumption: %{public}lfmAh for uid: %{public}d", power, uid);
in CalculateForConnectivity() 75 return power;
in CalculateForConnectivity() 80 double power = StatsUtils::DEFAULT_VALUE;
in CalculateForCommon() local 92 // Calculate camera power consumption
in CalculateForCommon() 94 power in CalculateForCommon() 128 double power = StatsUtils::DEFAULT_VALUE; Calculate() local 142 AddtoStatsList(int32_t uid, double power) AddtoStatsList() argument 154 double power = StatsUtils::DEFAULT_VALUE; GetEntityPowerMah() local 169 double power = StatsUtils::DEFAULT_VALUE; GetPowerForConnectivity() local 184 double power = StatsUtils::DEFAULT_VALUE; GetPowerForCommon() local 224 double power = StatsUtils::DEFAULT_VALUE; GetStatsPowerMah() local [all...] |
H A D | user_entity.cpp | 36 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 39 power = iter->second;
in GetEntityPowerMah() 40 STATS_HILOGD(COMP_SVC, "Get user power consumption: %{public}lfmAh for user id: %{public}d",
in GetEntityPowerMah() 41 power, uidOrUserId);
in GetEntityPowerMah() 44 "No user power consumption related with user id: %{public}d found, return 0", uidOrUserId);
in GetEntityPowerMah() 46 return power;
in GetEntityPowerMah() 49 void UserEntity::AggregateUserPowerMah(int32_t userId, double power)
in AggregateUserPowerMah() argument 53 iter->second += power;
in AggregateUserPowerMah() 54 STATS_HILOGD(COMP_SVC, "Add user power consumption: %{public}lfmAh for user id: %{public}d",
in AggregateUserPowerMah() 55 power, userI in AggregateUserPowerMah() [all...] |
H A D | flashlight_entity.cpp | 59 STATS_HILOGD(COMP_SVC, "Update flashlight on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 63 STATS_HILOGD(COMP_SVC, "Create flashlight on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 71 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 74 power = iter->second;
in GetEntityPowerMah() 75 STATS_HILOGD(COMP_SVC, "Get app flashlight power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 76 power, uidOrUserId);
in GetEntityPowerMah() 79 "No app flashlight power consumption related to uid: %{public}d was found, return 0", uidOrUserId);
in GetEntityPowerMah() 81 return power;
in GetEntityPowerMah() 86 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 90 power in GetStatsPowerMah() [all...] |
H A D | gnss_entity.cpp | 58 STATS_HILOGD(COMP_SVC, "Update gnss on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 62 STATS_HILOGD(COMP_SVC, "Create gnss on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 70 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 73 power = iter->second;
in GetEntityPowerMah() 74 STATS_HILOGD(COMP_SVC, "Get app gnss power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 75 power, uidOrUserId);
in GetEntityPowerMah() 78 "No app gnss power consumption related to uid: %{public}d was found, return 0", uidOrUserId);
in GetEntityPowerMah() 80 return power;
in GetEntityPowerMah() 85 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 89 power in GetStatsPowerMah() [all...] |
H A D | audio_entity.cpp | 62 STATS_HILOGD(COMP_SVC, "Update audio on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 66 STATS_HILOGD(COMP_SVC, "Create audio on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 74 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 77 power = iter->second;
in GetEntityPowerMah() 78 STATS_HILOGD(COMP_SVC, "Get app audio power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 79 power, uidOrUserId);
in GetEntityPowerMah() 82 "No app audio power consumption related to uid: %{public}d was found, return 0", uidOrUserId);
in GetEntityPowerMah() 84 return power;
in GetEntityPowerMah() 89 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 93 power in GetStatsPowerMah() [all...] |
H A D | alarm_entity.cpp | 55 STATS_HILOGD(COMP_SVC, "Update alarm on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 59 STATS_HILOGD(COMP_SVC, "Create alarm on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 67 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local 70 power = iter->second; in GetEntityPowerMah() 71 STATS_HILOGD(COMP_SVC, "Get app alarm power consumption: %{public}lfmAh for uid: %{public}d", in GetEntityPowerMah() 72 power, uidOrUserId); in GetEntityPowerMah() 75 "No app alarm power consumption related to uid: %{public}d was found, return 0", uidOrUserId); in GetEntityPowerMah() 77 return power; in GetEntityPowerMah() 82 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local 86 power in GetStatsPowerMah() [all...] |
H A D | wakelock_entity.cpp | 59 STATS_HILOGD(COMP_SVC, "Update wakelock on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 63 STATS_HILOGD(COMP_SVC, "Create wakelock on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 71 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 74 power = iter->second;
in GetEntityPowerMah() 75 STATS_HILOGD(COMP_SVC, "Get app wakelock power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 76 power, uidOrUserId);
in GetEntityPowerMah() 79 "No app wakelock power consumption related to uid: %{public}d was found, return 0", uidOrUserId);
in GetEntityPowerMah() 81 return power;
in GetEntityPowerMah() 86 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 90 power in GetStatsPowerMah() [all...] |
H A D | camera_entity.cpp | 56 STATS_HILOGD(COMP_SVC, "Update camera on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 60 STATS_HILOGD(COMP_SVC, "Create camera on power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 68 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 71 power = iter->second;
in GetEntityPowerMah() 72 STATS_HILOGD(COMP_SVC, "Get app camera power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 73 power, uidOrUserId);
in GetEntityPowerMah() 76 "No app camera power consumption related to uid: %{public}d was found, return 0", uidOrUserId);
in GetEntityPowerMah() 78 return power;
in GetEntityPowerMah() 83 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 87 power in GetStatsPowerMah() [all...] |
H A D | sensor_entity.cpp | 74 STATS_HILOGD(COMP_SVC, "Update gravity on power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateGravity() 78 STATS_HILOGD(COMP_SVC, "Create gravity on power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateGravity() 94 STATS_HILOGD(COMP_SVC, "Update proximity on power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateProximity() 98 STATS_HILOGD(COMP_SVC, "Create proximity on power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateProximity() 113 STATS_HILOGD(COMP_SVC, "Update sensor total power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 117 STATS_HILOGD(COMP_SVC, "Create sensor total power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 125 double power = StatsUtils::DEFAULT_VALUE;
in GetEntityPowerMah() local 128 power = iter->second;
in GetEntityPowerMah() 129 STATS_HILOGD(COMP_SVC, "Get app sensor power consumption: %{public}lfmAh for uid: %{public}d",
in GetEntityPowerMah() 130 power, uidOrUserI in GetEntityPowerMah() 140 double power = StatsUtils::DEFAULT_VALUE; GetStatsPowerMah() local [all...] |
H A D | idle_entity.cpp | 59 STATS_HILOGD(COMP_SVC, "Calculate idle total power consumption: %{public}lfmAh", idleTotalPowerMah_);
in Calculate() 70 STATS_HILOGD(COMP_SVC, "Calculate cpu suspend power consumption: %{public}lfmAh", cpuSuspendPowerMah);
in CalculateCpuSuspendPower() 82 STATS_HILOGD(COMP_SVC, "Calculate cpu idle power consumption: %{public}lfmAh", cpuIdlePowerMah);
in CalculateCpuIdlePower() 93 double power = StatsUtils::DEFAULT_VALUE;
in GetStatsPowerMah() local 95 power = cpuIdlePowerMah_;
in GetStatsPowerMah() 96 STATS_HILOGD(COMP_SVC, "Get cpu idle power consumption: %{public}lfmAh", power);
in GetStatsPowerMah() 98 power = cpuSuspendPowerMah_;
in GetStatsPowerMah() 99 STATS_HILOGD(COMP_SVC, "Get cpu suspend power consumption: %{public}lfmAh", power);
in GetStatsPowerMah() [all...] |
H A D | cpu_entity.cpp | 81 // Calculate cpu active power
in Calculate() 84 // Calculate cpu cluster power
in Calculate() 87 // Calculate cpu speed power
in Calculate() 92 STATS_HILOGD(COMP_SVC, "Update cpu speed power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 96 STATS_HILOGD(COMP_SVC, "Create cpu speed power consumption: %{public}lfmAh for uid: %{public}d",
in Calculate() 112 STATS_HILOGD(COMP_SVC, "Update cpu active power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateCpuActivePower() 116 STATS_HILOGD(COMP_SVC, "Create cpu active power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateCpuActivePower() 135 STATS_HILOGD(COMP_SVC, "Update cpu cluster power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateCpuClusterPower() 139 STATS_HILOGD(COMP_SVC, "Create cpu cluster power consumption: %{public}lfmAh for uid: %{public}d",
in CalculateCpuClusterPower() 161 STATS_HILOGD(COMP_SVC, "Update cpu speed power consumptio in CalculateCpuSpeedPower() 174 double power = StatsUtils::DEFAULT_VALUE; GetEntityPowerMah() local 189 double power = StatsUtils::DEFAULT_VALUE; GetStatsPowerMah() local [all...] |
H A D | bluetooth_entity.cpp | 46 // Calculate Bluetooth on and Bluetooth app power consumption caused by Bluetooth hardware
in Calculate() 54 // Calculate Bluetooth BR on power
in CalculateBtPower() 61 // Calculate Bluetooth BLE on power
in CalculateBtPower() 78 STATS_HILOGD(COMP_SVC, "Calculate bluetooth Br time: %{public}" PRId64 "ms, Br power average: %{public}lfma," \
in CalculateBtPower() 79 "Br power consumption: %{public}lfmAh, bluetooth Ble time: %{public}" PRId64 "ms, " \
in CalculateBtPower() 80 "Ble power average: %{public}lfma, Ble power consumption: %{public}lfmAh, " \
in CalculateBtPower() 81 "uid power consumption: %{public}lfmAh, total power consumption: %{public}lfmAh",
in CalculateBtPower() 95 // Calculate Bluetooth Br scan power consumptio in CalculateBtPowerForApp() 235 double power = StatsUtils::DEFAULT_VALUE; GetEntityPowerMah() local 255 double power = StatsUtils::DEFAULT_VALUE; GetStatsPowerMah() local [all...] |
H A D | battery_stats_entity.cpp | 24 void BatteryStatsEntity::AggregateUserPowerMah(int32_t userId, double power)
in AggregateUserPowerMah() argument 26 STATS_HILOGE(COMP_SVC, "No need to add app power to related user");
in AggregateUserPowerMah() 98 STATS_HILOGE(COMP_SVC, "No need to get stats power, return 0");
in GetStatsPowerMah() 142 STATS_HILOGI(COMP_SVC, "Reset total consumption power and battery stats list");
in ResetStatsEntity()
|
/base/powermgr/power_manager/services/native/src/ |
H A D | power_mgr_service.cpp | 144 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); in RegisterBootCompletedCallback() 145 if (power == nullptr) { in RegisterBootCompletedCallback() 149 auto powerStateMachine = power->GetPowerStateMachine(); in RegisterBootCompletedCallback() 152 power->PowerConnectStatusInit(); in RegisterBootCompletedCallback() 153 power->UpdateSettingInvalidDisplayOffTime(); // update setting value if invalid before register in RegisterBootCompletedCallback() 158 power->GetShutdownDialog().LoadDialogConfig(); in RegisterBootCompletedCallback() 159 power->GetShutdownDialog().KeyMonitorInit(); in RegisterBootCompletedCallback() 161 power->SwitchSubscriberInit(); in RegisterBootCompletedCallback() 162 power->InputMonitorInit(); in RegisterBootCompletedCallback() 163 power in RegisterBootCompletedCallback() 178 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); PowerExternalAbilityInit() local 211 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); PowerModeSettingUpdateFunc() local 659 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); OnRemoveSystemAbility() local 683 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); OnAddSystemAbility() local 1964 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); OnPowerConnectStatusChanged() local [all...] |
/base/powermgr/battery_statistics/services/native/include/entities/ |
H A D | user_entity.h | 31 void AggregateUserPowerMah(int32_t userId, double power) override;
|
H A D | uid_entity.h | 42 void AddtoStatsList(int32_t uid, double power);
|
H A D | battery_stats_entity.h | 50 virtual void AggregateUserPowerMah(int32_t userId, double power);
|
/base/sensors/sensor/frameworks/native/include/ |
H A D | native_sensor_impl.h | 31 float power = 0.0; /**< Sensor power */ member
|
/base/powermgr/battery_statistics/interfaces/inner_api/include/ |
H A D | battery_stats_info.h | 56 void SetPower(double power);
|
/base/sensors/sensor_lite/interfaces/kits/native/include/ |
H A D | sensor_agent_type.h | 121 float power; /**< Sensor power */
member
|
/base/sensors/medical_sensor/interfaces/native/include/ |
H A D | medical_native_type.h | 89 float power; /**< Sensor power */
member
|
/base/powermgr/battery_statistics/frameworks/native/src/ |
H A D | battery_stats_info.cpp | 28 STATS_HILOGD(COMP_FWK, "uid: %{public}d, type: %{public}d, power: %{public}lf", uid_, type_, totalPowerMah_); in Marshalling() 53 STATS_HILOGD(COMP_FWK, "uid: %{public}d, type: %{public}d, power: %{public}lf", uid_, type_, totalPowerMah_); in ReadFromParcel() 78 void BatteryStatsInfo::SetPower(double power) in SetPower() argument 81 STATS_HILOGD(COMP_FWK, "Set APP power: %{public}lfmAh for uid: %{public}d", totalPowerMah_, uid_); in SetPower() 83 STATS_HILOGD(COMP_FWK, "Set power: %{public}lfmAh for part: %{public}s", totalPowerMah_, in SetPower() 86 totalPowerMah_ = power; in SetPower() 107 STATS_HILOGD(COMP_FWK, "Get app power: %{public}lfmAh for uid: %{public}d", totalPowerMah_, uid_); in GetPower() 109 STATS_HILOGD(COMP_FWK, "Get power: %{public}lfmAh for part: %{public}s", totalPowerMah_, in GetPower()
|
/base/sensors/sensor/utils/common/src/ |
H A D | sensor.cpp | 128 void Sensor::SetPower(float power) in SetPower() argument 130 power_ = power; in SetPower() 208 SEN_HILOGE("Failed, write power failed"); in Marshalling()
|
/base/sensors/sensor/frameworks/cj/include/ |
H A D | cj_sensor_ffi.h | 71 float power; member
|
/base/sensors/sensor/utils/common/include/ |
H A D | sensor.h | 47 void SetPower(float power);
|