/base/powermgr/battery_statistics/ |
D | README.md | 11 …power consumption statistics: collects statistics on power consumption of each application or soft… 12 …power 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/ |
D | uid_entity.cpp | 63 double power = StatsUtils::DEFAULT_VALUE; in CalculateForConnectivity() local 69 power += bluetoothEntity->GetEntityPowerMah(uid); in CalculateForConnectivity() 70 …HILOGD(COMP_SVC, "Connectivity power consumption: %{public}lfmAh for uid: %{public}d", power, uid); in CalculateForConnectivity() 71 return power; in CalculateForConnectivity() 76 double power = StatsUtils::DEFAULT_VALUE; in CalculateForCommon() local 89 power += cameraEntity->GetEntityPowerMah(uid); in CalculateForCommon() 92 power += flashlightEntity->GetEntityPowerMah(uid); in CalculateForCommon() 95 power += audioEntity->GetEntityPowerMah(uid); in CalculateForCommon() 98 power += sensorEntity->GetEntityPowerMah(uid); in CalculateForCommon() 101 power += gnssEntity->GetEntityPowerMah(uid); in CalculateForCommon() [all …]
|
D | user_entity.cpp | 37 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()
|
D | alarm_entity.cpp | 67 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()
|
D | flashlight_entity.cpp | 71 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()
|
D | wakelock_entity.cpp | 71 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()
|
D | gnss_entity.cpp | 70 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()
|
D | audio_entity.cpp | 74 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()
|
D | camera_entity.cpp | 68 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()
|
D | idle_entity.cpp | 92 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()
|
D | cpu_entity.cpp | 172 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 …]
|
D | sensor_entity.cpp | 124 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()
|
D | bluetooth_entity.cpp | 232 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/ |
D | powerDialog.ets | 17 import power from '@ohos.power'; 112 console.log('power dialog terminateSelf'); 117 console.log('power dialog cancel failed: ' + JSON.stringify(err)); 124 power.shutdown("power_dialog"); 126 console.log('power dialog shutdown failed: ' + JSON.stringify(err)); 133 power.reboot("power_dialog"); 135 console.log('power dialog reboot failed: ' + JSON.stringify(err));
|
/base/powermgr/power_manager/ |
D | README.md | 13 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/ |
D | BUILD.gn | 47 "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/ |
D | README.md | 17 ![](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/ |
D | README.md | 16 ![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsy… 43 [Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-managem…
|
/base/powermgr/power_manager/frameworks/ |
D | BUILD.gn | 18 "napi/power:power",
|
/base/powermgr/power_manager/frameworks/napi/power/ |
D | BUILD.gn | 16 ohos_shared_library("power") { 22 "power.cpp",
|
/base/startup/init/services/modules/trace/ |
D | init_trace.cfg | 110 "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/battery_statistics/services/native/include/entities/ |
D | user_entity.h | 31 void AggregateUserPowerMah(int32_t userId, double power) override;
|
/base/powermgr/powermgr_lite/ |
D | README.md | 13 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/security/selinux_adapter/sepolicy/base/system/ |
D | virtfs_contexts | 87 genfscon sysfs /power/autosleep u:object_r:sysfs_autosleep:s0 88 genfscon sysfs /power/state u:object_r:sysfs_state:s0 89 genfscon sysfs /power/suspend_stats u:object_r:sysfs_suspend_stats:s0 90 genfscon sysfs /power/wakeup_count u:object_r:sysfs_power:s0 91 genfscon sysfs /power/wake_lock u:object_r:sysfs_wake_lck:s0 92 genfscon sysfs /power/wake_unlock u:object_r:sysfs_wake_lck:s0
|
/base/hiviewdfx/hitrace/cmd/config/ |
D | hitrace.rc | 56 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable 57 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_idle/enable 58 chmod 0666 /sys/kernel/debug/tracing/events/power/clock_set_rate/enable 59 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_frequency_limits/enable 60 chmod 0666 /sys/kernel/debug/tracing/events/power/gpu_frequency/enable 161 chmod 0666 /sys/kernel/tracing/events/power/cpu_frequency/enable 162 chmod 0666 /sys/kernel/tracing/events/power/cpu_idle/enable 163 chmod 0666 /sys/kernel/tracing/events/power/clock_set_rate/enable 164 chmod 0666 /sys/kernel/tracing/events/power/cpu_frequency_limits/enable 165 chmod 0666 /sys/kernel/tracing/events/power/gpu_frequency/enable
|