Home
last modified time | relevance | path

Searched refs:power (Results 1 – 25 of 165) sorted by relevance

1234567

/base/powermgr/battery_statistics/
DREADME.md11power consumption statistics: collects statistics on power consumption of each application or soft…
12power consumption statistics: collects statistics on power consumption of the hardware. Power cons…
16 ![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsy…
31 │ ├── profile # Configuration file for average power consumption
45 [Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
/base/powermgr/battery_statistics/services/native/src/entities/
Duid_entity.cpp65 double power = StatsUtils::DEFAULT_VALUE; in CalculateForConnectivity() local
71 power += bluetoothEntity->GetEntityPowerMah(uid); in CalculateForConnectivity()
72 …HILOGD(COMP_SVC, "Connectivity power consumption: %{public}lfmAh for uid: %{public}d", power, uid); in CalculateForConnectivity()
73 return power; in CalculateForConnectivity()
78 double power = StatsUtils::DEFAULT_VALUE; in CalculateForCommon() local
91 power += cameraEntity->GetEntityPowerMah(uid); in CalculateForCommon()
94 power += flashlightEntity->GetEntityPowerMah(uid); in CalculateForCommon()
97 power += audioEntity->GetEntityPowerMah(uid); in CalculateForCommon()
100 power += sensorEntity->GetEntityPowerMah(uid); in CalculateForCommon()
103 power += gnssEntity->GetEntityPowerMah(uid); in CalculateForCommon()
[all …]
Duser_entity.cpp37 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
40 power = iter->second; in GetEntityPowerMah()
42 power, uidOrUserId); in GetEntityPowerMah()
47 return power; in GetEntityPowerMah()
50 void UserEntity::AggregateUserPowerMah(int32_t userId, double power) in AggregateUserPowerMah() argument
54 iter->second += power; in AggregateUserPowerMah()
56 power, userId); in AggregateUserPowerMah()
59 power, userId); in AggregateUserPowerMah()
60 userPowerMap_.insert(std::pair<int32_t, double>(userId, power)); in AggregateUserPowerMah()
Dalarm_entity.cpp67 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
70 power = iter->second; in GetEntityPowerMah()
72 power, uidOrUserId); in GetEntityPowerMah()
77 return power; in GetEntityPowerMah()
82 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
86 power = alarmOnIter->second; in GetStatsPowerMah()
88 power, uid); in GetStatsPowerMah()
94 return power; in GetStatsPowerMah()
Dwakelock_entity.cpp71 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
74 power = iter->second; in GetEntityPowerMah()
76 power, uidOrUserId); in GetEntityPowerMah()
81 return power; in GetEntityPowerMah()
86 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
90 power = wakelockOnIter->second; in GetStatsPowerMah()
92 power, uid); in GetStatsPowerMah()
98 return power; in GetStatsPowerMah()
Dflashlight_entity.cpp71 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
74 power = iter->second; in GetEntityPowerMah()
76 power, uidOrUserId); in GetEntityPowerMah()
81 return power; in GetEntityPowerMah()
86 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
90 power = flashlightOnIter->second; in GetStatsPowerMah()
92 … "Get flashlight on power consumption: %{public}lfmAh for uid: %{public}d", power, uid); in GetStatsPowerMah()
98 return power; in GetStatsPowerMah()
Dgnss_entity.cpp70 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
73 power = iter->second; in GetEntityPowerMah()
75 power, uidOrUserId); in GetEntityPowerMah()
80 return power; in GetEntityPowerMah()
85 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
89 power = gnssOnIter->second; in GetStatsPowerMah()
91 power, uid); in GetStatsPowerMah()
97 return power; in GetStatsPowerMah()
Daudio_entity.cpp74 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
77 power = iter->second; in GetEntityPowerMah()
79 power, uidOrUserId); in GetEntityPowerMah()
84 return power; in GetEntityPowerMah()
89 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
93 power = audioOnIter->second; in GetStatsPowerMah()
95 power, uid); in GetStatsPowerMah()
101 return power; in GetStatsPowerMah()
Dcamera_entity.cpp68 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
71 power = iter->second; in GetEntityPowerMah()
73 power, uidOrUserId); in GetEntityPowerMah()
78 return power; in GetEntityPowerMah()
83 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
87 power = cameraOnIter->second; in GetStatsPowerMah()
89 power, uid); in GetStatsPowerMah()
95 return power; in GetStatsPowerMah()
Dcpu_entity.cpp172 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
175 power = iter->second; in GetEntityPowerMah()
177 power, uidOrUserId); in GetEntityPowerMah()
182 return power; in GetEntityPowerMah()
187 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
192 power = cpuActiveIter->second; in GetStatsPowerMah()
194 power, uid); in GetStatsPowerMah()
202 power = cpuClusterIter->second; in GetStatsPowerMah()
204 power, uid); in GetStatsPowerMah()
212 power = cpuSpeedIter->second; in GetStatsPowerMah()
[all …]
Didle_entity.cpp92 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
94 power = cpuIdlePowerMah_; in GetStatsPowerMah()
95 STATS_HILOGD(COMP_SVC, "Get cpu idle power consumption: %{public}lfmAh", power); in GetStatsPowerMah()
97 power = cpuSuspendPowerMah_; in GetStatsPowerMah()
98 STATS_HILOGD(COMP_SVC, "Get cpu suspend power consumption: %{public}lfmAh", power); in GetStatsPowerMah()
100 return power; in GetStatsPowerMah()
Dsensor_entity.cpp124 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
127 power = iter->second; in GetEntityPowerMah()
129 power, uidOrUserId); in GetEntityPowerMah()
134 return power; in GetEntityPowerMah()
139 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
143 power = gravityOnIter->second; in GetStatsPowerMah()
145 power, uid); in GetStatsPowerMah()
153 power = proximityOnIter->second; in GetStatsPowerMah()
155 power, uid); in GetStatsPowerMah()
161 return power; in GetStatsPowerMah()
Dbluetooth_entity.cpp232 double power = StatsUtils::DEFAULT_VALUE; in GetEntityPowerMah() local
236 power = iter->second; in GetEntityPowerMah()
238 power, uidOrUserId); in GetEntityPowerMah()
244 power = bluetoothPowerMah_; in GetEntityPowerMah()
245 STATS_HILOGD(COMP_SVC, "Get blueooth power consumption: %{public}lfmAh", power); in GetEntityPowerMah()
247 return power; in GetEntityPowerMah()
252 double power = StatsUtils::DEFAULT_VALUE; in GetStatsPowerMah() local
255 power = bluetoothBrPowerMah_; in GetStatsPowerMah()
256 STATS_HILOGD(COMP_SVC, "Get blueooth Br on power consumption: %{public}lfmAh", power); in GetStatsPowerMah()
260 power = bluetoothBlePowerMah_; in GetStatsPowerMah()
[all …]
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/pages/
DpowerDialog.ets17 import power from '@ohos.power';
113 console.log('power dialog terminateSelf');
120 console.log('power dialog cancel failed: ' + JSON.stringify(err));
127 power.shutdown("power_dialog");
129 console.log('power dialog shutdown failed: ' + JSON.stringify(err));
136 power.reboot("power_dialog");
138 console.log('power dialog reboot failed: ' + JSON.stringify(err));
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/power_manager/system/
Dpower_shell.te14 # avc: denied { map } for pid=4345 comm="power-shell" path="/dev/parameters/u:object_r:debug_param:…
15 # avc: denied { read open } for pid=4345 comm="power-shell" path="/dev/parameters/u:object_r:debug_…
16 # avc: denied { read } for pid=4345 comm="power-shell" path="/dev/parameters/u:object_r:debug_param…
19 # avc: denied { write } for pid=4345 comm="power-shell" path="/dev/kmsg" dev="tmpfs" ino=116 sconte…
22 # avc: denied { search } for pid=4337 comm="power-shell" name="socket" dev="tmpfs" ino=118 scontext…
25 # avc: denied { ioctl } for pid=4337 comm="power-shell" path="/dev/pts/2" dev="devpts" ino=5 ioctlc…
26 # avc: denied { read write } for pid=4345 comm="power-shell" path="/dev/pts/0" dev="devpts" ino=3 s…
27 # avc: denied { write } for pid=4337 comm="power-shell" path="/dev/pts/2" dev="devpts" ino=5 sconte…
30 # avc: denied { call } for pid=4337 comm="power-shell" scontext=u:r:power_shell:s0 tcontext=u:r:fou…
33 # avc: denied { map } for pid=4337 comm="power-shell" path="/dev/parameters/u:object_r:hilog_param:…
[all …]
/base/powermgr/power_manager/
DREADME.md13 3. Obtaining the power status
17 ![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsy…
46 [Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
/base/powermgr/powermgr_lite/services/
DBUILD.gn47 "src/power/auto_suspend.c",
48 "src/power/running_lock_hub.c",
49 "src/power/suspend_controller.c",
67 "src/power/${system_type}:powermanage_feature_impl",
/base/powermgr/battery_manager/
DREADME.md17 ![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsy…
45 [Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
/base/powermgr/display_manager/
DREADME.md16 ![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsy…
45 [Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
/base/powermgr/power_manager/frameworks/
DBUILD.gn18 "napi/power:power",
/base/powermgr/power_manager/frameworks/napi/power/
DBUILD.gn16 ohos_shared_library("power") {
22 "power.cpp",
/base/startup/init/services/modules/trace/
Dinit_trace.cfg110 "events/power/cpu_frequency/enable",
111 "events/power/clock_set_rate/enable",
112 "events/power/clock_disable/enable",
113 "events/power/clock_enable/enable",
117 "events/power/cpu_frequency_limits/enable"
126 "events/power/cpu_idle/enable"
508 "name" : "power",
509 "description" : "power Manager",
/base/powermgr/powermgr_lite/
DREADME.md13 The lite power manager provides the following capabilities:
18 **Figure 1** Lite power manager architecture<a name="fig106301571239"></a>
46 The following table lists the JavaScript APIs provided by the lite power manager.
82 The lite power manager provides APIs to create, obtain, and release **Runninglock** objects.
102 [Power management subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_service.cpp122 auto power = DelayedSpSingleton<PowerMgrService>::GetInstance(); in RegisterBootCompletedCallback() local
123 if (power == nullptr) { in RegisterBootCompletedCallback()
128 auto& powerModeModule = power->GetPowerModeModule(); in RegisterBootCompletedCallback()
131 auto powerStateMachine = power->GetPowerStateMachine(); in RegisterBootCompletedCallback()
135 power->GetShutdownDialog().LoadDialogConfig(); in RegisterBootCompletedCallback()
136 power->GetShutdownDialog().KeyMonitorInit(); in RegisterBootCompletedCallback()
139 power->HallSensorSubscriberInit(); in RegisterBootCompletedCallback()
144 power->SwitchSubscriberInit(); in RegisterBootCompletedCallback()
145 power->InputMonitorInit(); in RegisterBootCompletedCallback()
146 power->SuspendControllerInit(); in RegisterBootCompletedCallback()
[all …]
/base/powermgr/battery_statistics/services/native/include/entities/
Duser_entity.h31 void AggregateUserPowerMah(int32_t userId, double power) override;

1234567