title: Does moving the device wake it up from DOZE
body: <p>I'm seeking information regarding the specific behavior of Android device during DOZE mode, also known as Idle mode. My app provides sensor info periodically with <code>setExactAndAllowIdle()</code> method. This of course doesn't work perfectly, but since the device is (or should be) static (with screen turned off and unplug from charger) I do not need the access to the sensor. My question is: if the device is stationary and in DOZE mode, does moving the device wake it up from DOZE? I've tested with adb and the answer is no, but when I tested with a device it somewhat gave the impression that moving the device actually caused it to leave DOZE mode. </p>
  
  <p>I'm specifically asking about the moving action (without turning on the screen) whether it does or does not wake the device from DOZE. </p>
  
  <p>Another question is: </p>
  
  <p>Is there a way to programmatically tell what action woke the device from DOZE? I'm aware of <code>PowerManager.isDeviceIdle()</code>. </p>
  
  <p>Thanks in advance for your answers.</p>