Search in sources :

Example 1 with PowerManagerInternal

use of android.os.PowerManagerInternal in project android_frameworks_base by ResurrectionRemix.

the class BatteryStatsService method initPowerManagement.

/**
     * At the time when the constructor runs, the power manager has not yet been
     * initialized.  So we initialize the low power observer later.
     */
public void initPowerManagement() {
    final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class);
    powerMgr.registerLowPowerModeObserver(this);
    mStats.notePowerSaveMode(powerMgr.getLowPowerModeEnabled());
    (new WakeupReasonThread()).start();
}
Also used : PowerManagerInternal(android.os.PowerManagerInternal)

Example 2 with PowerManagerInternal

use of android.os.PowerManagerInternal in project android_frameworks_base by AOSPA.

the class BatteryStatsService method initPowerManagement.

/**
     * At the time when the constructor runs, the power manager has not yet been
     * initialized.  So we initialize the low power observer later.
     */
public void initPowerManagement() {
    final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class);
    powerMgr.registerLowPowerModeObserver(this);
    mStats.notePowerSaveMode(powerMgr.getLowPowerModeEnabled());
    (new WakeupReasonThread()).start();
}
Also used : PowerManagerInternal(android.os.PowerManagerInternal)

Example 3 with PowerManagerInternal

use of android.os.PowerManagerInternal in project platform_frameworks_base by android.

the class BatteryStatsService method initPowerManagement.

/**
     * At the time when the constructor runs, the power manager has not yet been
     * initialized.  So we initialize the low power observer later.
     */
public void initPowerManagement() {
    final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class);
    powerMgr.registerLowPowerModeObserver(this);
    mStats.notePowerSaveMode(powerMgr.getLowPowerModeEnabled());
    (new WakeupReasonThread()).start();
}
Also used : PowerManagerInternal(android.os.PowerManagerInternal)

Example 4 with PowerManagerInternal

use of android.os.PowerManagerInternal in project android_frameworks_base by crdroidandroid.

the class BatteryStatsService method initPowerManagement.

/**
     * At the time when the constructor runs, the power manager has not yet been
     * initialized.  So we initialize the low power observer later.
     */
public void initPowerManagement() {
    final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class);
    powerMgr.registerLowPowerModeObserver(this);
    mStats.notePowerSaveMode(powerMgr.getLowPowerModeEnabled());
    (new WakeupReasonThread()).start();
}
Also used : PowerManagerInternal(android.os.PowerManagerInternal)

Example 5 with PowerManagerInternal

use of android.os.PowerManagerInternal in project android_frameworks_base by DirtyUnicorns.

the class BatteryStatsService method initPowerManagement.

/**
     * At the time when the constructor runs, the power manager has not yet been
     * initialized.  So we initialize the low power observer later.
     */
public void initPowerManagement() {
    final PowerManagerInternal powerMgr = LocalServices.getService(PowerManagerInternal.class);
    powerMgr.registerLowPowerModeObserver(this);
    mStats.notePowerSaveMode(powerMgr.getLowPowerModeEnabled());
    (new WakeupReasonThread()).start();
}
Also used : PowerManagerInternal(android.os.PowerManagerInternal)

Aggregations

PowerManagerInternal (android.os.PowerManagerInternal)5