After Android has detected that the device has been laying flat and motionless for a period of time (sitting on a table, for instance), Doze Mode kicks in and ensures that no nonessential apps
request a wakelock (see below) or sync in the background, which would otherwise drain the battery in a situation where the user is obviously not actively using their device.