Loading services/core/java/com/android/server/power/PowerManagerService.java +0 −21 Original line number Diff line number Diff line Loading @@ -334,9 +334,6 @@ public final class PowerManagerService extends SystemService // True if boot completed occurred. We keep the screen on until this happens. private boolean mBootCompleted; // Runnables that should be triggered on boot completed private Runnable[] mBootCompletedRunnables; // True if auto-suspend mode is enabled. // Refer to autosuspend.h. private boolean mHalAutoSuspendModeEnabled; Loading Loading @@ -732,14 +729,6 @@ public final class PowerManagerService extends SystemService userActivityNoUpdateLocked( now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID); updatePowerStateLocked(); if (!ArrayUtils.isEmpty(mBootCompletedRunnables)) { Slog.d(TAG, "Posting " + mBootCompletedRunnables.length + " delayed runnables"); for (Runnable r : mBootCompletedRunnables) { BackgroundThread.getHandler().post(r); } } mBootCompletedRunnables = null; } } } Loading Loading @@ -954,16 +943,6 @@ public final class PowerManagerService extends SystemService mDirty |= DIRTY_SETTINGS; } private void postAfterBootCompleted(Runnable r) { if (mBootCompleted) { BackgroundThread.getHandler().post(r); } else { Slog.d(TAG, "Delaying runnable until system is booted"); mBootCompletedRunnables = ArrayUtils.appendElement(Runnable.class, mBootCompletedRunnables, r); } } private void handleSettingsChangedLocked() { updateSettingsLocked(); updatePowerStateLocked(); Loading Loading
services/core/java/com/android/server/power/PowerManagerService.java +0 −21 Original line number Diff line number Diff line Loading @@ -334,9 +334,6 @@ public final class PowerManagerService extends SystemService // True if boot completed occurred. We keep the screen on until this happens. private boolean mBootCompleted; // Runnables that should be triggered on boot completed private Runnable[] mBootCompletedRunnables; // True if auto-suspend mode is enabled. // Refer to autosuspend.h. private boolean mHalAutoSuspendModeEnabled; Loading Loading @@ -732,14 +729,6 @@ public final class PowerManagerService extends SystemService userActivityNoUpdateLocked( now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID); updatePowerStateLocked(); if (!ArrayUtils.isEmpty(mBootCompletedRunnables)) { Slog.d(TAG, "Posting " + mBootCompletedRunnables.length + " delayed runnables"); for (Runnable r : mBootCompletedRunnables) { BackgroundThread.getHandler().post(r); } } mBootCompletedRunnables = null; } } } Loading Loading @@ -954,16 +943,6 @@ public final class PowerManagerService extends SystemService mDirty |= DIRTY_SETTINGS; } private void postAfterBootCompleted(Runnable r) { if (mBootCompleted) { BackgroundThread.getHandler().post(r); } else { Slog.d(TAG, "Delaying runnable until system is booted"); mBootCompletedRunnables = ArrayUtils.appendElement(Runnable.class, mBootCompletedRunnables, r); } } private void handleSettingsChangedLocked() { updateSettingsLocked(); updatePowerStateLocked(); Loading