commit | 120664816a9bf325b618d8dd40febae2e3636ec8 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Sep 28 18:21:36 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Sep 28 18:21:36 2012 -0700 |
tree | 8a7b681cd87903f806b49504442d42a6921f1579 | |
parent | 29dcd656dfa4c22855b12fb6ee7d6e2e4c4844c1 [diff] |
Get rid of preventScreenOn(). Bug: 7165399 Change-Id: I1968265ecd74fff4d85efd2ca03b1983425ea518
diff --git a/core/java/android/os/IPowerManager.aidl b/core/java/android/os/IPowerManager.aidl index eec19cb..8bfefd4 100644 --- a/core/java/android/os/IPowerManager.aidl +++ b/core/java/android/os/IPowerManager.aidl
@@ -44,7 +44,6 @@ void setPokeLock(int pokey, IBinder lock, String tag); void setStayOnSetting(int val); void setMaximumScreenOffTimeoutFromDeviceAdmin(int timeMs); - void preventScreenOn(boolean prevent); // temporarily overrides the screen brightness settings to allow the user to // see the effect of a settings change without applying it immediately
diff --git a/services/java/com/android/server/power/PowerManagerService.java b/services/java/com/android/server/power/PowerManagerService.java index ad138e8..9f21216 100644 --- a/services/java/com/android/server/power/PowerManagerService.java +++ b/services/java/com/android/server/power/PowerManagerService.java
@@ -1644,12 +1644,6 @@ && mMaximumScreenOffTimeoutFromDeviceAdmin < Integer.MAX_VALUE; } - @Override // Binder call - public void preventScreenOn(boolean prevent) { - // TODO Auto-generated method stub - // Only used by phone app, delete this - } - /** * Used by the phone application to make the attention LED flash when ringing. */
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java index 0cf0f21..e882440 100644 --- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java +++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java
@@ -65,11 +65,6 @@ } @Override - public void preventScreenOn(boolean arg0) throws RemoteException { - // pass for now. - } - - @Override public void reboot(String arg0) throws RemoteException { // pass for now. }