Android是什么屏幕超时睡眠主场迎战后设备状态之间的区别? [英] Android What is difference between device state after screen timeout vs. sleep?

查看:138
本文介绍了Android是什么屏幕超时睡眠主场迎战后设备状态之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是屏幕超时的确切影响?是否该设备进入睡眠模式?什么确切的状态是屏幕超时过程中的设备?如果我做Settings.System.putInt(ContentResolver的,Settings.System.SCREEN_OFF_TIMEOUT,1);设定为1秒将在进入睡眠模式,该器件在1秒内?谢谢

What is the exact effect of a screen timeout? Does the device go into sleep mode? What exact state is the device in during screen timeout? If I do Settings.System.putInt(contentResolver, Settings.System.SCREEN_OFF_TIMEOUT, 1); set to one second will this put the device in sleep mode in 1 second? Thanks

推荐答案

所有的第一件事情,你应该知道,关闭屏幕!=睡眠模式。既然你可以听音乐或下载一些游戏大尺寸而屏幕是关闭的,但CPU仍然在运行做这些工作,因此它不是在睡眠模式。

First thing of all, you should know that "turning off the screen" != "sleep mode". Since you may listen to some music or download some games with large size while the screen is off, but the CPU is still running to do these jobs, therefore it's not in "sleep mode."

其结果,睡眠模式被定义为一种模式,则CPU处于闲置状态。当系统处于睡眠模式,在此模式下所用的时间是不是在设备正常运行时间计算(该设备的正常运行时间可以通过调用获得 SystemClock.uptimeMillis())。让我们来回答问题:

As a result, sleep mode is defined as a mode that the CPU is idle. While the system is in sleep mode, the time spent in this mode is not counted in the device uptime (the device uptime can be obtained by calling SystemClock.uptimeMillis()). Let's answer the questions:

1)关闭屏幕。

2)没有。

3),该屏幕是关闭的状态。

3) A state that the screen is off.

4)号设置屏幕超时为一秒意味着,如果不采取任何行动装置上一秒钟,设备将自动关闭屏幕。即使屏幕关闭时,该装置也未处于睡眠模式。

4) No. Setting screen timeout to one second means that if no action is taken on the device for one second, the device will turn off the screen automatically. Even the screen is turned off, the device is also not in sleep mode.

这篇关于Android是什么屏幕超时睡眠主场迎战后设备状态之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆