Skip to content

Commit 15415f5

Browse files
EricBSPcoolcup74
authored andcommitted
Fix dumpPowerState method
dumpPowerState method shows the current power manger service state but, BUTTON_BRIGHT_BIT is omitted. Add a routine of checking BUTTON_BRIGHT_BIT Signed-off-by: jaiyoung.park <jaiyoung.park@lge.com> Change-Id: I00484fb384963bafdc58ce89b3251a1f5585d992
1 parent 54a2a6d commit 15415f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,8 @@ private static String dumpPowerState(int state) {
11031103
? "SCREEN_BRIGHT_BIT " : "")
11041104
+ (((state & SCREEN_ON_BIT) != 0)
11051105
? "SCREEN_ON_BIT " : "")
1106+
+ (((state & BUTTON_BRIGHT_BIT) != 0)
1107+
? "BUTTON_BRIGHT_BIT " : "")
11061108
+ (((state & BATTERY_LOW_BIT) != 0)
11071109
? "BATTERY_LOW_BIT " : "");
11081110
}

0 commit comments

Comments
 (0)