Skip to content

Commit 1206648

Browse files
author
Jeff Brown
committed
Get rid of preventScreenOn().
Bug: 7165399 Change-Id: I1968265ecd74fff4d85efd2ca03b1983425ea518
1 parent 29dcd65 commit 1206648

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

core/java/android/os/IPowerManager.aidl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ interface IPowerManager
4444
void setPokeLock(int pokey, IBinder lock, String tag);
4545
void setStayOnSetting(int val);
4646
void setMaximumScreenOffTimeoutFromDeviceAdmin(int timeMs);
47-
void preventScreenOn(boolean prevent);
4847

4948
// temporarily overrides the screen brightness settings to allow the user to
5049
// see the effect of a settings change without applying it immediately

services/java/com/android/server/power/PowerManagerService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,12 +1644,6 @@ private boolean isMaximumScreenOffTimeoutFromDeviceAdminEnforcedLocked() {
16441644
&& mMaximumScreenOffTimeoutFromDeviceAdmin < Integer.MAX_VALUE;
16451645
}
16461646

1647-
@Override // Binder call
1648-
public void preventScreenOn(boolean prevent) {
1649-
// TODO Auto-generated method stub
1650-
// Only used by phone app, delete this
1651-
}
1652-
16531647
/**
16541648
* Used by the phone application to make the attention LED flash when ringing.
16551649
*/

tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/BridgePowerManager.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ public void nap(long arg0) throws RemoteException {
6464
// pass for now.
6565
}
6666

67-
@Override
68-
public void preventScreenOn(boolean arg0) throws RemoteException {
69-
// pass for now.
70-
}
71-
7267
@Override
7368
public void reboot(String arg0) throws RemoteException {
7469
// pass for now.

0 commit comments

Comments
 (0)