How to sleep of display in terminal
The system provides the AIDL interface to set sleep of display in settings menu. When connect the service, the package name is com.wizarpos.wizarviewagentassistant, and the class name is com.wizarpos.wizarviewagentassistant.SystemExtApiService. When the application uses the interface, it must import wizarviewagentassistant.
API Overview
setScreenOffTimeout
boolean setScreenOffTimeout(int milliseconds);
Set the sleep time.
Parameters | |
---|---|
milliseconds | int: milliseconds the time you want to set, can be one of following:
* 15000 - 15s * 30000 - 30s * 60000 - 1 minute * 120000 - 2 minutes * 300000 - 5 minutes * 600000 - 10 minutes * 1800000 - 30 minutes * 2147483647(Integer.MAX_VALUE) - never. |
Returns | |
---|---|
boolean | whether the new milliseconds has been set. |
Download
Please download the AIDL file.