Who calls PowerGroup#setWakefulnessLocked()

    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 .

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值