Home
last modified time | relevance | path

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

12345678910

/frameworks/base/cmds/statsd/src/external/
DSubsystemSleepStatePuller.cpp42 using android::hardware::power::V1_0::IPower;
43 using android::hardware::power::V1_0::PowerStatePlatformSleepState;
44 using android::hardware::power::V1_0::PowerStateVoter;
45 using android::hardware::power::V1_0::Status;
46 using android::hardware::power::V1_1::PowerStateSubsystem;
47 using android::hardware::power::V1_1::PowerStateSubsystemSleepState;
58 sp<android::hardware::power::V1_0::IPower> gPowerHalV1_0 = nullptr;
59 sp<android::hardware::power::V1_1::IPower> gPowerHalV1_1 = nullptr;
65 gPowerHalV1_0 = android::hardware::power::V1_0::IPower::getService(); in getPowerHal()
67 gPowerHalV1_1 = android::hardware::power::V1_1::IPower::castFrom(gPowerHalV1_0); in getPowerHal()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DMobileRadioPowerCalculator.java120 double power = 0; in calculateRemaining() local
131 power += p; in calculateRemaining()
145 power += p; in calculateRemaining()
149 power += (mPowerRadioOn * remainingActiveTimeMs) / (1000*60*60); in calculateRemaining()
152 if (power != 0) { in calculateRemaining()
158 app.mobileRadioPowerMah = power; in calculateRemaining()
DBatteryStatsHelper.java294 public static String makemAh(double power) { in makemAh() argument
295 if (power == 0) return "0"; in makemAh()
298 if (power < .00001) { in makemAh()
300 } else if (power < .0001) { in makemAh()
302 } else if (power < .001) { in makemAh()
304 } else if (power < .01) { in makemAh()
306 } else if (power < .1) { in makemAh()
308 } else if (power < 1) { in makemAh()
310 } else if (power < 10) { in makemAh()
312 } else if (power < 100) { in makemAh()
[all …]
DWakelockPowerCalculator.java67 final double power = (wakeTimeMillis * mPowerWakelock) / (1000*60*60); in calculateRemaining() local
70 + BatteryStatsHelper.makemAh(power)); in calculateRemaining()
73 app.wakeLockPowerMah += power; in calculateRemaining()
DCpuPowerCalculator.java59 double power = in calculateApp() local
61 cpuPowerMaUs += power; in calculateApp()
65 + BatteryStatsHelper.makemAh(power / MICROSEC_IN_HR)); in calculateApp()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverController.java16 package com.android.server.power.batterysaver;
24 import android.hardware.power.V1_0.PowerHint;
42 import com.android.server.power.BatterySaverPolicy;
43 import com.android.server.power.BatterySaverPolicy.BatterySaverPolicyListener;
44 import com.android.server.power.PowerManagerService;
45 import com.android.server.power.batterysaver.BatterySavingStats.BatterySaverState;
46 import com.android.server.power.batterysaver.BatterySavingStats.DozeState;
47 import com.android.server.power.batterysaver.BatterySavingStats.InteractiveState;
DBatterySaverLocationPlugin.java16 package com.android.server.power.batterysaver;
24 import com.android.server.power.batterysaver.BatterySaverController.Plugin;
/frameworks/base/services/core/jni/
Dcom_android_server_am_BatteryStatsService.cpp46 using android::hardware::power::V1_0::PowerStatePlatformSleepState;
47 using android::hardware::power::V1_0::PowerStateVoter;
48 using android::hardware::power::V1_0::Status;
49 using android::hardware::power::V1_1::PowerStateSubsystem;
50 using android::hardware::power::V1_1::PowerStateSubsystemSleepState;
52 using IPowerV1_1 = android::hardware::power::V1_1::IPower;
53 using IPowerV1_0 = android::hardware::power::V1_0::IPower;
Dcom_android_server_power_PowerManagerService.cpp44 using android::hardware::power::V1_0::PowerHint;
45 using android::hardware::power::V1_0::Feature;
47 using IPowerV1_1 = android::hardware::power::V1_1::IPower;
48 using IPowerV1_0 = android::hardware::power::V1_0::IPower;
DAndroid.bp121 "android.hardware.power@1.0",
122 "android.hardware.power@1.1",
/frameworks/base/core/proto/android/os/
Denums.proto82 // backlight will be allowed to go off. If the user presses the power
88 // backlight will be allowed to go off. If the user presses the power
94 // brightness. If the user presses the power button, then the
112 // Put the screen in a low power state and allow the CPU to suspend if
114 // implement doze mode. It currently has no effect unless the power
120 // is dozing. It currently has no effect unless the power manager is in
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
DWakeLockRule.java54 PowerManager power = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
55 return power.newWakeLock(WAKELOCK_FLAGS, context.getPackageName());
/frameworks/base/core/proto/android/view/
Denums.proto31 // The display is dozing in a low power state; it is still on but is
35 // The display is dozing in a suspended low power state; it is still on
41 // The display is in a suspended full power state; it is still on but the
/frameworks/native/cmds/atrace/
Datrace.rc36 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
37 chmod 0666 /sys/kernel/tracing/events/power/cpu_frequency/enable
38 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_idle/enable
39 chmod 0666 /sys/kernel/tracing/events/power/cpu_idle/enable
40 chmod 0666 /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
41 chmod 0666 /sys/kernel/tracing/events/power/clock_set_rate/enable
42 chmod 0666 /sys/kernel/debug/tracing/events/power/cpu_frequency_limits/enable
43 chmod 0666 /sys/kernel/tracing/events/power/cpu_frequency_limits/enable
/frameworks/base/core/proto/android/server/
Dforceappstandbytracker.proto41 // App ids that are in power-save whitelist.
44 // App ids that are in power-save user whitelist.
47 // App ids that are in temporary power-save whitelist.
Dpowermanagerservice.proto18 package com.android.server.power;
36 // A com.android.server.power.PowerManagerService.Constants object.
62 // A com.android.server.power.PowerManagerService.UidState object.
74 // A bitfield that indicates what parts of the power state have
80 // True if the device is plugged into a power source.
139 // Timestamp of last interactive power hint.
145 // True if the display power state has been fully applied, which means the
177 // A com.android.server.power.PowerManagerService.SuspendBlockerImpl object.
185 // A com.android.server.power.PowerManagerService.WakeLock object.
311 // True if Sidekick is controlling the display and we shouldn't change its power mode.
[all …]
Dwirelesschargerdetector.proto18 package com.android.server.power;
35 // Previously observed wireless power state.
/frameworks/native/services/sensorservice/
DRotationVectorSensor.cpp40 .power = mSensorFusion.getPowerUsage(), in RotationVectorSensor()
126 .power = mSensorFusion.getPowerUsage(), in GyroDriftSensor()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySavingStatsTest.java16 package com.android.server.power.batterysaver;
33 import com.android.server.power.batterysaver.BatterySavingStats.BatterySaverState;
34 import com.android.server.power.batterysaver.BatterySavingStats.DozeState;
35 import com.android.server.power.batterysaver.BatterySavingStats.InteractiveState;
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DPowerManagerServiceTest.java17 package com.android.server.power;
35 import com.android.server.power.batterysaver.BatterySaverController;
/frameworks/base/services/core/java/com/android/server/power/
DScreenOnBlocker.java17 package com.android.server.power;
DSuspendBlocker.java17 package com.android.server.power;
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DEnhancedEstimates.java1 package com.android.systemui.power;
DEstimate.java1 package com.android.systemui.power;
DEnhancedEstimatesImpl.java1 package com.android.systemui.power;

12345678910