Android 真的存在深度睡眠吗?

Does Deep sleep really exist in Android?

嗨,我开始对 Android 中的深度睡眠感到好奇。因为我在搜索处理程序时在 android 文档中发现了这个术语“深度睡眠”。

public final boolean postDelayed (Runnable r, long delayMillis)

Causes the Runnable r to be added to the message queue, to be run after the specified amount of time elapses. The runnable will be run on the thread to which this handler is attached. The time-base is SystemClock.uptimeMillis(). Time spent in deep sleep will add an additional delay to execution.

所以我试图找出什么是深度睡眠,它何时发生以及在此期间发生了什么。但是没找到相关的官方文档却找到了Doze mode。所以。。我猜Deep sleep是打瞌睡模式之前的老名词了。

我的问题是“深度睡眠真的存在于Android系统中吗?深度睡眠和瞌睡有什么区别?”。还有“如果它存在,那么它什么时候发生,在深度睡眠期间会发生什么?”

感谢阅读这个问题。

确实很难找到这方面的文档,但从可用的文档来看,深度睡眠是指处理器设置为尽可能低的频率时的状态。

这与 doze 的主要区别在于对应用程序没有限制:唤醒锁仍然有效,警报仍然发生,网络仍然可用,等等。但是,如果您不持有唤醒锁,您将没有足够的 CPU 时间来做任何有意义的事情。深度睡眠仍然很重要,因为您的系统可能未处于打瞌睡模式,但已经处于深度睡眠状态。