diff options
author | Ruchi Kandoi <kandoiruchi@google.com> | 2014-08-15 11:25:14 -0700 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2014-08-15 18:29:00 +0000 |
commit | 3d69256fdf3f2006d312824386a4b68b4c6f79bd (patch) | |
tree | 9ac372dfc9266897d45f2b430091792cc58c30b2 /services/core/java/com/android/server/power | |
parent | 3571839cf0f3b37a748bad81be0e9eff9cb05617 (diff) | |
download | frameworks_base-3d69256fdf3f2006d312824386a4b68b4c6f79bd.zip frameworks_base-3d69256fdf3f2006d312824386a4b68b4c6f79bd.tar.gz frameworks_base-3d69256fdf3f2006d312824386a4b68b4c6f79bd.tar.bz2 |
Revert "PowerManager: Adds a call to reduce refresh rate while device is in BatterySaverMode"
This reverts commit d54157e2e92f58e997c4bdb50e026e6a0d0121fd.
Bug: 16654179
Change-Id: Id4f22c0a4e23518881ac58ad969c16c4612306a2
Diffstat (limited to 'services/core/java/com/android/server/power')
-rw-r--r-- | services/core/java/com/android/server/power/PowerManagerService.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/services/core/java/com/android/server/power/PowerManagerService.java b/services/core/java/com/android/server/power/PowerManagerService.java index 39c6e0e..db19285 100644 --- a/services/core/java/com/android/server/power/PowerManagerService.java +++ b/services/core/java/com/android/server/power/PowerManagerService.java @@ -58,8 +58,6 @@ import android.os.SystemProperties; import android.os.SystemService; import android.os.UserHandle; import android.os.WorkSource; -import android.os.Parcel; -import android.os.ServiceManager; import android.provider.Settings; import android.service.dreams.DreamManagerInternal; import android.util.EventLog; @@ -709,7 +707,6 @@ public final class PowerManagerService extends com.android.server.SystemService if (mLowPowerModeEnabled != lowPowerModeEnabled) { mLowPowerModeEnabled = lowPowerModeEnabled; powerHintInternal(POWER_HINT_LOW_POWER_MODE, lowPowerModeEnabled ? 1 : 0); - setSurfaceFlingerLowPowerMode(lowPowerModeEnabled ? 1 : 0); mLowPowerModeEnabled = lowPowerModeEnabled; BackgroundThread.getHandler().post(new Runnable() { @Override @@ -2198,21 +2195,6 @@ public final class PowerManagerService extends com.android.server.SystemService nativeSendPowerHint(hintId, data); } - private static void setSurfaceFlingerLowPowerMode(int enabled) { - try { - final IBinder flinger = ServiceManager.getService("SurfaceFlinger"); - if (flinger != null) { - final Parcel data = Parcel.obtain(); - data.writeInterfaceToken("android.ui.ISurfaceComposer"); - data.writeInt(enabled); - flinger.transact(1016, data, null, 0); - data.recycle(); - } - } catch (RemoteException ex) { - Slog.e(TAG, "Failed to reduce refresh rate", ex); - } - } - /** * Low-level function turn the device off immediately, without trying * to be clean. Most people should use {@link ShutdownThread} for a clean shutdown. |