public static String sleepReasonToString(@GoToSleepReason int sleepReason) {
switch (sleepReason) {
case GO_TO_SLEEP_REASON_ACCESSIBILITY: return "accessibility";
case GO_TO_SLEEP_REASON_APPLICATION: return "application";
case GO_TO_SLEEP_REASON_DEVICE_ADMIN: return "device_admin";
case GO_TO_SLEEP_REASON_DEVICE_FOLD: return "device_folded";
case GO_TO_SLEEP_REASON_DISPLAY_GROUP_REMOVED: return "display_group_removed";
case GO_TO_SLEEP_REASON_DISPLAY_GROUPS_TURNED_OFF: return "display_groups_turned_off";
case GO_TO_SLEEP_REASON_FORCE_SUSPEND: return "force_suspend";
case GO_TO_SLEEP_REASON_HDMI: return "hdmi";
case GO_TO_SLEEP_REASON_INATTENTIVE: return "inattentive";
case GO_TO_SLEEP_REASON_LID_SWITCH: return "lid_switch";
case GO_TO_SLEEP_REASON_POWER_BUTTON: return "power_button";
case GO_TO_SLEEP_REASON_QUIESCENT: return "quiescent";
case GO_TO_SLEEP_REASON_SLEEP_BUTTON: return "sleep_button";
case GO_TO_SLEEP_REASON_TIMEOUT: return "timeout";
default: return Integer.toString(sleepReason);
}
}
where does GO_TO_SLEEP_REASON_TIMEOUT used ?
06-12 21:37:42.384 590 637 I DisplayPowerController[0]: Unblocked screen off after 2 ms
06-12 21:37:42.391 590 637 V DisplayPowerController[0]: Brightness [0.0] reason changing to: 'screen_off', previous reason: 'manual'.
06-12 21:37:42.391 590 637 I DisplayPowerController[0]: BrightnessEvent: disp=0, physDisp=local:4619827259835644672, brt=0.0, initBrt=0.39763778, rcmdBrt=NaN, preBrt=NaN, lux=0.0, preLux=0.0, hbmMax=1.0, hbmMode=off, rbcStrength=0, powerFactor=1.0, thrmMax=1.0, wasShortTermModelActive=false, flags=, reason=screen_off, autoBrightness=false
06-12 21:37:42.392 590 637 E DisplayPowerController[0]: andy0613,setScreenState start ,isOff:true
06-12 21:37:42.392 590 637 E DisplayPowerController[0]: andy0613,setScreenState end ,isOff:true
06-12 21:37:42.392 590 637 I DisplayPowerController[0]: BrightnessEvent: disp=0, physDisp=local:4619827259835644672, brt=0.0, initBrt=0.0, rcmdBrt=NaN, preBrt=NaN, lux=0.0, preLux=0.0, hbmMax=1.0, hbmMode=off, rbcStrength=0, powerFactor=1.0, thrmMax=1.0, wasShortTermModelActive=false, flags=, reason=screen_off, autoBrightness=false
06-12 21:37:42.393 789 789 D CentralSurfaces: Received new disable state: enaihbcRso.qingr (unchanged)
06-12 21:37:42.395 415 415 D SurfaceFlinger: Setting power mode 0 on display 4619827259835644672
06-12 21:37:42.396 415 415 D SurfaceFlinger: Finished setting power mode 0 on display 4619827259835644672
06-12 21:37:42.396 236 240 E android.system.suspend@1.0-service: error writing zygote_kwl to /sys/power/wake_unlock: Invalid argument
06-12 21:37:42.396 236 240 I android.system.suspend@1.0-service: automatic system suspend enabled
06-12 21:37:42.397 590 612 I DisplayDeviceRepository: Display device changed state: "Built-in Screen", OFF
06-12 21:37:42.398 590 637 E DisplayPowerController[0]: andy0613,setScreenState start ,isOff:true
06-12 21:37:42.398 590 637 E DisplayPowerController[0]: andy0613,setScreenState end ,isOff:true
06-12 21:37:42.399 590 637 I DisplayPowerController[0]: BrightnessEvent: disp=0, physDisp=local:4619827259835644672, brt=0.0, initBrt=0.0, rcmdBrt=NaN, preBrt=NaN, lux=0.0, preLux=0.0, hbmMax=1.0, hbmMode=off, rbcStrength=0, powerFactor=1.0, thrmMax=1.0, wasShortTermModelActive=false, flags=, reason=screen_off, autoBrightness=false
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 updatePowerStateLocked start:13
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 for
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 updateProfilesLocked
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 updateDreamLocked
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 scheduleSandmanLocked:0
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 finishWakefulnessChangeIfNeededLocked
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 updatePowerStateLocked end:13
06-12 21:37:42.399 590 637 E PowerManagerService: andy0612 handleSandman start
to be cotinued .