So, I could not find the answer to this, when is it exactly the doze mode
activated (becoming active).
All articles only mention, after
some time when the device is
stationary (no movement).
How long is that some time?
After some read, found this article:
https://newcircle.com/s/post/1739/20...android-m-dozeAnd here is the source code of the
DeviceIdleController:
http://tools.oesf.biz/android-MNC/xr...ontroller.javaIt looks like, the doze mode will be activated after 1 hour (2 times 30 minutes).But again, I am not Java developer, probably there are much more detail in the process.
What if the device is moved? Will the doze mode "cancelled"?
Well, it would be nice if custom ROM developer could add some customization in this, like shorten the activation time. Or even better, after the doze mode activated, it will stay active even if the device is moved (inside pocket), until the user do something (e.g. waking up, pressing button).