I want to test my app when the device is in sleep mode.
Screen off is not a good sign because the device may be on because of other things. I want to be sure that device is in sleep mode. Is there any command via ADB or other thing to send the device in sleep mode explicitly.