Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/com/android/internal/os/
DMobileRadioPowerCalculator.java98 double power = 0; in calculateRemaining() local
109 power += p; in calculateRemaining()
123 power += p; in calculateRemaining()
127 power += (mPowerRadioOn * remainingActiveTimeMs) / (1000*60*60); in calculateRemaining()
130 if (power != 0) { in calculateRemaining()
136 app.mobileRadioPowerMah = power; in calculateRemaining()
DBatteryStatsHelper.java290 public static String makemAh(double power) { in makemAh() argument
291 if (power == 0) return "0"; in makemAh()
294 if (power < .00001) { in makemAh()
296 } else if (power < .0001) { in makemAh()
298 } else if (power < .001) { in makemAh()
300 } else if (power < .01) { in makemAh()
302 } else if (power < .1) { in makemAh()
304 } else if (power < 1) { in makemAh()
306 } else if (power < 10) { in makemAh()
308 } 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()
/frameworks/native/cmds/atrace/
Datrace.rc28 chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
29 chown root shell /sys/kernel/tracing/events/power/cpu_frequency/enable
30 chown root shell /sys/kernel/debug/tracing/events/power/cpu_idle/enable
31 chown root shell /sys/kernel/tracing/events/power/cpu_idle/enable
32 chown root shell /sys/kernel/debug/tracing/events/power/clock_set_rate/enable
33 chown root shell /sys/kernel/tracing/events/power/clock_set_rate/enable
34 chown root shell /sys/kernel/debug/tracing/events/power/cpu_frequency_limits/enable
35 chown root shell /sys/kernel/tracing/events/power/cpu_frequency_limits/enable
78 chmod 0664 /sys/kernel/debug/tracing/events/power/cpu_frequency/enable
79 chmod 0664 /sys/kernel/tracing/events/power/cpu_frequency/enable
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBrightnessLimit.java48 IPowerManager power = IPowerManager.Stub.asInterface( in onClick() local
50 if (power != null) { in onClick()
52 power.setTemporaryScreenBrightnessSettingOverride(0); in onClick()
/frameworks/base/services/core/jni/
Dcom_android_server_am_BatteryStatsService.cpp45 using android::hardware::power::V1_0::IPower;
46 using android::hardware::power::V1_0::PowerStatePlatformSleepState;
47 using android::hardware::power::V1_0::PowerStateVoter;
48 using android::hardware::power::V1_0::Status;
Dcom_android_server_power_PowerManagerService.cpp43 using android::hardware::power::V1_0::IPower;
44 using android::hardware::power::V1_0::PowerHint;
45 using android::hardware::power::V1_0::Feature;
/frameworks/support/wear/tests/src/android/support/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/os/
Dincident.proto31 import "frameworks/base/core/proto/android/service/power.proto";
68 android.service.power.PowerServiceDumpProto power = 3009; field
/frameworks/native/services/sensorservice/
DRotationVectorSensor.cpp40 .power = mSensorFusion.getPowerUsage(), in RotationVectorSensor()
126 .power = mSensorFusion.getPowerUsage(), in GyroDriftSensor()
DCorrectedGyroSensor.cpp49 .power = mSensorFusion.getPowerUsage(), in CorrectedGyroSensor()
DLinearAccelerationSensor.cpp43 .power = gsensor.getPowerUsage(), in LinearAccelerationSensor()
DGravitySensor.cpp48 .power = mSensorFusion.getPowerUsage(), in GravitySensor()
/frameworks/base/core/proto/android/service/
Dpower.proto19 package android.service.power;
124 // A bitfield that indicates what parts of the power state have
130 // True if the device is plugged into a power source.
171 // If true, the device is in low power mode.
191 // Timestamp of last interactive power hint.
197 // True if the display power state has been fully applied, which means the
255 // Put the screen in a low power state and allow the CPU to suspend
346 // If true, the device is in low power mode.
348 // Current state of whether the settings are allowing auto low power mode.
350 // The user turned off low power mode below the trigger level
Dwirelesschargerdetector.proto19 package android.service.power;
30 // Previously observed wireless power state.
/frameworks/base/services/core/java/com/android/server/power/
DScreenOnBlocker.java17 package com.android.server.power;
DSuspendBlocker.java17 package com.android.server.power;
DPowerManagerShellCommand.java17 package com.android.server.power;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaFrameworkPowerTestRunner.java19 import com.android.mediaframeworktest.power.MediaPlayerPowerTest;
/frameworks/native/services/surfaceflinger/DisplayHardware/
DPowerHAL.cpp30 using android::hardware::power::V1_0::PowerHint;
/frameworks/base/location/java/android/location/
DCriteria.java368 private static String powerToString(int power) { in powerToString() argument
369 switch (power) { in powerToString()
/frameworks/base/tests/AccessoryDisplay/
DREADME17 in this arrangement and will provide power to the source.
32 in this arrangement and will receive power from the sink.
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java16 package com.android.server.power;
23 import com.android.server.power.BatterySaverPolicy.ServiceType;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java296 IPowerManager power = IPowerManager.Stub.asInterface( in setBrightness() local
298 if (power != null) { in setBrightness()
299 power.setTemporaryScreenBrightnessSettingOverride(brightness); in setBrightness()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/
DMediaPlayerPowerTest.java17 package com.android.mediaframeworktest.power;

12345678