title: Does the Android M Doze state have multiple states itself?
body: <p>I slightly modified this app :<a href="https://github.com/commonsguy/cw-omnibus/tree/master/JobScheduler" rel="nofollow">https://github.com/commonsguy/cw-omnibus/tree/master/JobScheduler</a></p>
  
  <p>It set alarms using setExactAndAllowWhileIdle  and schedules an alarm to go off every 1 minute and log it. </p>
  
  <p>According to Doze documentation, if this app is running while the phone is in Doze mode, only one alarm should be going off per 15 minutes. I'm not seeing that behavior .</p>
  
  <p>On a a nexus 5 running Android M. After starting the app and the whole alarm scheduling process, I put the phone into Doze using the provided abd commands...</p>
  
  <p>adb shell dumpsys battery unplug
  adb shell dumpsys deviceidle step
  adb shell dumpsys deviceidle -h</p>
  
  <p>...From the log, I have seen around 30 minutes of alarms going off once per minute, then finally they are 15 minutes apart for about an hour. Then back to once per minute, and then back to 15 minutes apart. The phone was completely undisturbed during the test.</p>
  
  <p>Does anyone know why this is? I was under the impression that the phone would immediately be in Doze mode after those adb commands , and that the alarms would be going off 15 minutes apart from the start. </p>
  
  <p>Thanks for your help.</p>